From 3d3da2b6f6547a9839b9655ba831d14643cf01ee Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:05:13 -0500 Subject: [PATCH] Update aws-lc-fips-sys to v0.13.0, align w/ AWS-LC-FIPS-3.0.0 (#626) * Update aws-lc-fips-sys to v0.13, FIPS v3.0 * Symbols from macos-14-xlarge * Symbols from ubuntu-latest * Symbols from macos-13 * Symbols for x86_64-unknown-linux-musl * Symbols for aarch64-unknown-linux-musl * Symbols for aarch64-unknown-linux-gnu * Generated headers * Generated bindings from ubuntu-latest * Generated bindings from macos-14-xlarge * Generated bindings for aarch64-unknown-linux-gnu * Generated bindings from macos-13 * Generated bindings for aarch64-unknown-linux-musl * Generated bindings for x86_64-unknown-linux-musl * Update FIPS indicator test for newly supported operations --------- Co-authored-by: aws-lc-fips-sys-bindings-generator --- Makefile | 2 +- aws-lc-fips-sys/Cargo.toml | 10 +- aws-lc-fips-sys/aws-lc | 2 +- .../openssl/boringssl_prefix_symbols.h | 758 +- .../openssl/boringssl_prefix_symbols_asm.h | 758 +- .../openssl/boringssl_prefix_symbols_nasm.inc | 1514 +- .../src/aarch64_apple_darwin_crypto.rs | 25659 ++++++------ .../src/aarch64_unknown_linux_gnu_crypto.rs | 32475 ++++++++-------- .../src/aarch64_unknown_linux_musl_crypto.rs | 27455 +++++++------ .../src/x86_64_apple_darwin_crypto.rs | 27943 +++++++------ .../src/x86_64_unknown_linux_gnu_crypto.rs | 32471 ++++++++------- .../src/x86_64_unknown_linux_musl_crypto.rs | 27991 +++++++------ .../symbols/aarch64-apple-darwin.txt | 505 +- .../symbols/aarch64-unknown-linux-gnu.txt | 731 +- .../symbols/aarch64-unknown-linux-musl.txt | 731 +- .../symbols/x86_64-apple-darwin.txt | 499 +- .../symbols/x86_64-unknown-linux-gnu.txt | 747 +- .../symbols/x86_64-unknown-linux-musl.txt | 747 +- aws-lc-rs/Cargo.toml | 2 +- aws-lc-rs/src/digest/tests/fips.rs | 6 +- aws-lc-rs/src/rsa/tests/fips.rs | 10 +- aws-lc-rs/src/signature/tests/fips.rs | 38 +- aws-lc-rs/tests/rsa_test.rs | 5 +- scripts/build/collect_symbols.sh | 4 +- scripts/generate/_collect_symbols_build.sh | 2 +- scripts/tools/semver.rs | 2 + 26 files changed, 91734 insertions(+), 89333 deletions(-) diff --git a/Makefile b/Makefile index dd91aa085b0..b19184055d9 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ update-aws-lc-fips-sys: git submodule update --init --remote --checkout -- aws-lc-fips-sys/aws-lc cd aws-lc-fips-sys/aws-lc && \ git fetch --all && \ - git tag -l | xargs ../../scripts/tools/semver.rs fips-v2 | xargs git checkout + git tag -l | xargs ../../scripts/tools/semver.rs fips-v3 | xargs git checkout update-aws-lc-sys: git submodule update --init --remote --checkout -- aws-lc-sys/aws-lc diff --git a/aws-lc-fips-sys/Cargo.toml b/aws-lc-fips-sys/Cargo.toml index 1d357140a2d..5d9155c20e8 100644 --- a/aws-lc-fips-sys/Cargo.toml +++ b/aws-lc-fips-sys/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "aws-lc-fips-sys" description = "AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. This is the FIPS validated version of AWS-LC." -version = "0.12.15" -links = "aws_lc_fips_0_12_15" +version = "0.13.0" +links = "aws_lc_fips_0_13_0" authors = ["AWS-LC"] edition = "2021" repository = "https://github.com/aws/aws-lc-rs" @@ -76,5 +76,9 @@ bindgen = { version = "0.69.5" } libc = "0.2.121" paste = "1.0.11" +[dev-dependencies] +# Pinned dependency to preserve MSRV: 1.60.0 <= rust-version < 1.65.0 +regex = "~1.9.6" + [package.metadata.aws-lc-fips-sys] -commit-hash = "ec94d74a19b5a0aa738b436a95bb06ff87fc7ba9" +commit-hash = "8b7a9378b60eb82642df0cc4aa1484c2ba95f3a0" diff --git a/aws-lc-fips-sys/aws-lc b/aws-lc-fips-sys/aws-lc index ec94d74a19b..8b7a9378b60 160000 --- a/aws-lc-fips-sys/aws-lc +++ b/aws-lc-fips-sys/aws-lc @@ -1 +1 @@ -Subproject commit ec94d74a19b5a0aa738b436a95bb06ff87fc7ba9 +Subproject commit 8b7a9378b60eb82642df0cc4aa1484c2ba95f3a0 diff --git a/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols.h b/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols.h index 75331ed8bea..319a487036c 100644 --- a/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols.h +++ b/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols.h @@ -17,7 +17,7 @@ #define BORINGSSL_PREFIX_SYMBOLS_H #ifndef BORINGSSL_PREFIX -#define BORINGSSL_PREFIX aws_lc_fips_0_12_15 +#define BORINGSSL_PREFIX aws_lc_fips_0_13_0 #endif // BORINGSSL_PREFIX @@ -157,9 +157,11 @@ #define ASN1_TIME_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_set) #define ASN1_TIME_set_posix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_set_posix) #define ASN1_TIME_set_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_set_string) +#define ASN1_TIME_set_string_X509 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_set_string_X509) #define ASN1_TIME_to_generalizedtime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_to_generalizedtime) #define ASN1_TIME_to_posix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_to_posix) #define ASN1_TIME_to_time_t BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_to_time_t) +#define ASN1_TIME_to_tm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TIME_to_tm) #define ASN1_TYPE_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TYPE_cmp) #define ASN1_TYPE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TYPE_free) #define ASN1_TYPE_get BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_TYPE_get) @@ -185,8 +187,10 @@ #define ASN1_VISIBLESTRING_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_VISIBLESTRING_it) #define ASN1_VISIBLESTRING_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_VISIBLESTRING_new) #define ASN1_digest BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_digest) +#define ASN1_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_dup) #define ASN1_generate_v3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_generate_v3) #define ASN1_get_object BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_get_object) +#define ASN1_i2d_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_i2d_bio) #define ASN1_item_d2i BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_item_d2i) #define ASN1_item_d2i_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_item_d2i_bio) #define ASN1_item_d2i_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ASN1_item_d2i_fp) @@ -282,6 +286,7 @@ #define BIO_meth_set_puts BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_meth_set_puts) #define BIO_meth_set_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_meth_set_read) #define BIO_meth_set_write BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_meth_set_write) +#define BIO_method_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_method_name) #define BIO_method_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_method_type) #define BIO_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_new) #define BIO_new_bio_pair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_new_bio_pair) @@ -302,6 +307,7 @@ #define BIO_puts BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_puts) #define BIO_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_read) #define BIO_read_asn1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_read_asn1) +#define BIO_read_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_read_ex) #define BIO_read_filename BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_read_filename) #define BIO_reset BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_reset) #define BIO_rw_filename BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_rw_filename) @@ -309,6 +315,7 @@ #define BIO_s_fd BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_s_fd) #define BIO_s_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_s_file) #define BIO_s_mem BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_s_mem) +#define BIO_s_secmem BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_s_secmem) #define BIO_s_socket BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_s_socket) #define BIO_seek BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_seek) #define BIO_set_callback_arg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_set_callback_arg) @@ -346,6 +353,7 @@ #define BIO_wpending BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_wpending) #define BIO_write BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_write) #define BIO_write_all BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_write_all) +#define BIO_write_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_write_ex) #define BIO_write_filename BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BIO_write_filename) #define BLAKE2B256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BLAKE2B256) #define BLAKE2B256_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BLAKE2B256_Final) @@ -360,12 +368,14 @@ #define BN_CTX_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_CTX_free) #define BN_CTX_get BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_CTX_get) #define BN_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_CTX_new) +#define BN_CTX_secure_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_CTX_secure_new) #define BN_CTX_start BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_CTX_start) #define BN_GENCB_call BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_GENCB_call) #define BN_GENCB_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_GENCB_free) #define BN_GENCB_get_arg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_GENCB_get_arg) #define BN_GENCB_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_GENCB_new) #define BN_GENCB_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_GENCB_set) +#define BN_GENCB_set_old BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_GENCB_set_old) #define BN_MONT_CTX_copy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_MONT_CTX_copy) #define BN_MONT_CTX_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_MONT_CTX_free) #define BN_MONT_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_MONT_CTX_new) @@ -404,6 +414,7 @@ #define BN_from_montgomery BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_from_montgomery) #define BN_gcd BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_gcd) #define BN_generate_prime_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_generate_prime_ex) +#define BN_get_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_get_flags) #define BN_get_rfc3526_prime_1536 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_get_rfc3526_prime_1536) #define BN_get_rfc3526_prime_2048 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_get_rfc3526_prime_2048) #define BN_get_rfc3526_prime_3072 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_get_rfc3526_prime_3072) @@ -434,6 +445,7 @@ #define BN_mod_exp2_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_exp2_mont) #define BN_mod_exp_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_exp_mont) #define BN_mod_exp_mont_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_exp_mont_consttime) +#define BN_mod_exp_mont_consttime_x2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_exp_mont_consttime_x2) #define BN_mod_exp_mont_word BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_exp_mont_word) #define BN_mod_inverse BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_inverse) #define BN_mod_inverse_blinded BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_mod_inverse_blinded) @@ -489,7 +501,6 @@ #define BN_value_one BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_value_one) #define BN_zero BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_zero) #define BORINGSSL_FIPS_abort BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BORINGSSL_FIPS_abort) -#define BORINGSSL_integrity_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BORINGSSL_integrity_test) #define BORINGSSL_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BORINGSSL_self_test) #define BUF_MEM_append BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BUF_MEM_append) #define BUF_MEM_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BUF_MEM_free) @@ -581,6 +592,7 @@ #define CBS_get_u32 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u32) #define CBS_get_u32le BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u32le) #define CBS_get_u64 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u64) +#define CBS_get_u64_decimal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u64_decimal) #define CBS_get_u64le BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u64le) #define CBS_get_u8 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u8) #define CBS_get_u8_length_prefixed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_get_u8_length_prefixed) @@ -589,6 +601,7 @@ #define CBS_is_unsigned_asn1_integer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_is_unsigned_asn1_integer) #define CBS_is_valid_asn1_bitstring BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_is_valid_asn1_bitstring) #define CBS_is_valid_asn1_integer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_is_valid_asn1_integer) +#define CBS_is_valid_asn1_oid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_is_valid_asn1_oid) #define CBS_len BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_len) #define CBS_mem_equal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_mem_equal) #define CBS_parse_generalized_time BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CBS_parse_generalized_time) @@ -602,14 +615,18 @@ #define CERTIFICATEPOLICIES_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CERTIFICATEPOLICIES_new) #define CMAC_CTX_copy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_CTX_copy) #define CMAC_CTX_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_CTX_free) +#define CMAC_CTX_get0_cipher_ctx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_CTX_get0_cipher_ctx) #define CMAC_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_CTX_new) #define CMAC_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_Final) #define CMAC_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_Init) #define CMAC_Reset BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_Reset) #define CMAC_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CMAC_Update) #define CONF_VALUE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_VALUE_new) +#define CONF_get1_default_config_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_get1_default_config_file) +#define CONF_modules_finish BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_modules_finish) #define CONF_modules_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_modules_free) #define CONF_modules_load_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_modules_load_file) +#define CONF_modules_unload BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_modules_unload) #define CONF_parse_list BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CONF_parse_list) #define CRL_DIST_POINTS_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRL_DIST_POINTS_free) #define CRL_DIST_POINTS_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRL_DIST_POINTS_it) @@ -681,6 +698,7 @@ #define CRYPTO_has_asm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_has_asm) #define CRYPTO_hchacha20 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_hchacha20) #define CRYPTO_init_sysrand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_init_sysrand) +#define CRYPTO_is_ARMv8_DIT_capable_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_is_ARMv8_DIT_capable_for_testing) #define CRYPTO_is_confidential_build BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_is_confidential_build) #define CRYPTO_library_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_library_init) #define CRYPTO_malloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CRYPTO_malloc) @@ -722,19 +740,32 @@ #define CTR_DRBG_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CTR_DRBG_init) #define CTR_DRBG_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CTR_DRBG_new) #define CTR_DRBG_reseed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, CTR_DRBG_reseed) -#define ChaCha20_ctr32 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ChaCha20_ctr32) +#define ChaCha20_ctr32_avx2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ChaCha20_ctr32_avx2) +#define ChaCha20_ctr32_neon BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ChaCha20_ctr32_neon) +#define ChaCha20_ctr32_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ChaCha20_ctr32_nohw) +#define ChaCha20_ctr32_ssse3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ChaCha20_ctr32_ssse3) +#define ChaCha20_ctr32_ssse3_4x BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ChaCha20_ctr32_ssse3_4x) #define DES_decrypt3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_decrypt3) #define DES_ecb3_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ecb3_encrypt) +#define DES_ecb3_encrypt_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ecb3_encrypt_ex) #define DES_ecb_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ecb_encrypt) +#define DES_ecb_encrypt_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ecb_encrypt_ex) #define DES_ede2_cbc_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ede2_cbc_encrypt) #define DES_ede3_cbc_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ede3_cbc_encrypt) +#define DES_ede3_cbc_encrypt_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ede3_cbc_encrypt_ex) #define DES_encrypt3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_encrypt3) +#define DES_is_weak_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_is_weak_key) +#define DES_key_sched BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_key_sched) #define DES_ncbc_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ncbc_encrypt) +#define DES_ncbc_encrypt_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_ncbc_encrypt_ex) #define DES_set_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_set_key) +#define DES_set_key_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_set_key_ex) +#define DES_set_key_unchecked BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_set_key_unchecked) #define DES_set_odd_parity BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DES_set_odd_parity) #define DH_bits BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_bits) #define DH_check BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_check) #define DH_check_pub_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_check_pub_key) +#define DH_clear_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_clear_flags) #define DH_compute_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_compute_key) #define DH_compute_key_hashed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_compute_key_hashed) #define DH_compute_key_padded BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_compute_key_padded) @@ -751,8 +782,12 @@ #define DH_get0_q BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_get0_q) #define DH_get_2048_256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_get_2048_256) #define DH_get_rfc7919_2048 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_get_rfc7919_2048) +#define DH_get_rfc7919_3072 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_get_rfc7919_3072) +#define DH_get_rfc7919_4096 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_get_rfc7919_4096) +#define DH_get_rfc7919_8192 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_get_rfc7919_8192) #define DH_marshal_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_marshal_parameters) #define DH_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_new) +#define DH_new_by_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_new_by_nid) #define DH_num_bits BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_num_bits) #define DH_parse_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_parse_parameters) #define DH_set0_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DH_set0_key) @@ -805,6 +840,8 @@ #define DSA_parse_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_parse_parameters) #define DSA_parse_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_parse_private_key) #define DSA_parse_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_parse_public_key) +#define DSA_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_print) +#define DSA_print_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_print_fp) #define DSA_set0_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_set0_key) #define DSA_set0_pqg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_set0_pqg) #define DSA_set_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, DSA_set_ex_data) @@ -834,6 +871,7 @@ #define ECDSA_sign_with_nonce_and_leak_private_key_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ECDSA_sign_with_nonce_and_leak_private_key_for_testing) #define ECDSA_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ECDSA_size) #define ECDSA_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ECDSA_verify) +#define ECPKParameters_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ECPKParameters_print) #define EC_GFp_mont_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GFp_mont_method) #define EC_GFp_nistp224_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GFp_nistp224_method) #define EC_GFp_nistp256_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GFp_nistp256_method) @@ -845,12 +883,14 @@ #define EC_GROUP_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_free) #define EC_GROUP_get0_generator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get0_generator) #define EC_GROUP_get0_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get0_order) +#define EC_GROUP_get0_seed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get0_seed) #define EC_GROUP_get_asn1_flag BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_asn1_flag) #define EC_GROUP_get_cofactor BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_cofactor) #define EC_GROUP_get_curve_GFp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_curve_GFp) #define EC_GROUP_get_curve_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_curve_name) #define EC_GROUP_get_degree BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_degree) #define EC_GROUP_get_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_order) +#define EC_GROUP_get_seed_len BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_get_seed_len) #define EC_GROUP_method_of BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_method_of) #define EC_GROUP_new_by_curve_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_new_by_curve_name) #define EC_GROUP_new_curve_GFp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_new_curve_GFp) @@ -858,6 +898,13 @@ #define EC_GROUP_set_asn1_flag BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_set_asn1_flag) #define EC_GROUP_set_generator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_set_generator) #define EC_GROUP_set_point_conversion_form BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_set_point_conversion_form) +#define EC_GROUP_set_seed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_GROUP_set_seed) +#define EC_KEY_METHOD_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_METHOD_free) +#define EC_KEY_METHOD_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_METHOD_new) +#define EC_KEY_METHOD_set_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_METHOD_set_flags) +#define EC_KEY_METHOD_set_init_awslc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_METHOD_set_init_awslc) +#define EC_KEY_METHOD_set_sign_awslc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_METHOD_set_sign_awslc) +#define EC_KEY_OpenSSL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_OpenSSL) #define EC_KEY_check_fips BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_check_fips) #define EC_KEY_check_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_check_key) #define EC_KEY_derive_from_secret BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_derive_from_secret) @@ -869,9 +916,11 @@ #define EC_KEY_get0_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get0_private_key) #define EC_KEY_get0_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get0_public_key) #define EC_KEY_get_conv_form BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get_conv_form) +#define EC_KEY_get_default_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get_default_method) #define EC_KEY_get_enc_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get_enc_flags) #define EC_KEY_get_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get_ex_data) #define EC_KEY_get_ex_new_index BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get_ex_new_index) +#define EC_KEY_get_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_get_method) #define EC_KEY_is_opaque BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_is_opaque) #define EC_KEY_key2buf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_key2buf) #define EC_KEY_keygen_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_keygen_verify_service_indicator) @@ -888,12 +937,14 @@ #define EC_KEY_set_enc_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_enc_flags) #define EC_KEY_set_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_ex_data) #define EC_KEY_set_group BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_group) +#define EC_KEY_set_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_method) #define EC_KEY_set_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_private_key) #define EC_KEY_set_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_public_key) #define EC_KEY_set_public_key_affine_coordinates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_set_public_key_affine_coordinates) #define EC_KEY_up_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_KEY_up_ref) #define EC_METHOD_get_field_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_METHOD_get_field_type) #define EC_POINT_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_add) +#define EC_POINT_bn2point BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_bn2point) #define EC_POINT_clear_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_clear_free) #define EC_POINT_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_cmp) #define EC_POINT_copy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_copy) @@ -908,6 +959,7 @@ #define EC_POINT_mul BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_mul) #define EC_POINT_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_new) #define EC_POINT_oct2point BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_oct2point) +#define EC_POINT_point2bn BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_point2bn) #define EC_POINT_point2cbb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_point2cbb) #define EC_POINT_point2oct BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_point2oct) #define EC_POINT_set_affine_coordinates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_POINT_set_affine_coordinates) @@ -917,21 +969,32 @@ #define EC_curve_nid2nist BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_curve_nid2nist) #define EC_curve_nist2nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_curve_nist2nid) #define EC_get_builtin_curves BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_get_builtin_curves) +#define EC_group_p224 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_group_p224) +#define EC_group_p256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_group_p256) +#define EC_group_p384 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_group_p384) +#define EC_group_p521 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_group_p521) +#define EC_group_secp256k1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_group_secp256k1) +#define EC_hash_to_curve_p256_xmd_sha256_sswu BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_hash_to_curve_p256_xmd_sha256_sswu) +#define EC_hash_to_curve_p384_xmd_sha384_sswu BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EC_hash_to_curve_p384_xmd_sha384_sswu) +#define ED25519_check_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_check_public_key) #define ED25519_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_keypair) #define ED25519_keypair_from_seed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_keypair_from_seed) #define ED25519_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_sign) +#define ED25519_sign_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_sign_no_self_test) #define ED25519_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_verify) +#define ED25519_verify_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ED25519_verify_no_self_test) #define EDIPARTYNAME_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EDIPARTYNAME_free) #define EDIPARTYNAME_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EDIPARTYNAME_it) #define EDIPARTYNAME_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EDIPARTYNAME_new) +#define ENGINE_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_cleanup) #define ENGINE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_free) -#define ENGINE_get_ECDSA_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_get_ECDSA_method) -#define ENGINE_get_RSA_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_get_RSA_method) +#define ENGINE_get_EC BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_get_EC) +#define ENGINE_get_RSA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_get_RSA) #define ENGINE_load_builtin_engines BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_load_builtin_engines) #define ENGINE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_new) #define ENGINE_register_all_complete BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_register_all_complete) -#define ENGINE_set_ECDSA_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_set_ECDSA_method) -#define ENGINE_set_RSA_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_set_RSA_method) +#define ENGINE_set_EC BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_set_EC) +#define ENGINE_set_RSA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ENGINE_set_RSA) #define ERR_SAVE_STATE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_SAVE_STATE_free) #define ERR_add_error_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_add_error_data) #define ERR_add_error_dataf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_add_error_dataf) @@ -947,6 +1010,7 @@ #define ERR_get_next_error_library BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_get_next_error_library) #define ERR_lib_error_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_lib_error_string) #define ERR_load_BIO_strings BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_load_BIO_strings) +#define ERR_load_CRYPTO_strings BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_load_CRYPTO_strings) #define ERR_load_ERR_strings BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_load_ERR_strings) #define ERR_load_RAND_strings BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_load_RAND_strings) #define ERR_load_crypto_strings BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ERR_load_crypto_strings) @@ -1016,6 +1080,7 @@ #define EVP_CIPHER_iv_length BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_CIPHER_iv_length) #define EVP_CIPHER_key_length BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_CIPHER_key_length) #define EVP_CIPHER_mode BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_CIPHER_mode) +#define EVP_CIPHER_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_CIPHER_name) #define EVP_CIPHER_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_CIPHER_nid) #define EVP_Cipher BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_Cipher) #define EVP_CipherFinal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_CipherFinal) @@ -1076,6 +1141,9 @@ #define EVP_HPKE_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_new) #define EVP_HPKE_CTX_open BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_open) #define EVP_HPKE_CTX_seal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_seal) +#define EVP_HPKE_CTX_setup_auth_recipient BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_auth_recipient) +#define EVP_HPKE_CTX_setup_auth_sender BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_auth_sender) +#define EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing) #define EVP_HPKE_CTX_setup_recipient BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_recipient) #define EVP_HPKE_CTX_setup_sender BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_sender) #define EVP_HPKE_CTX_setup_sender_with_seed_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_sender_with_seed_for_testing) @@ -1092,6 +1160,7 @@ #define EVP_HPKE_KEY_generate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_generate) #define EVP_HPKE_KEY_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_init) #define EVP_HPKE_KEY_kem BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_kem) +#define EVP_HPKE_KEY_move BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_move) #define EVP_HPKE_KEY_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_new) #define EVP_HPKE_KEY_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_private_key) #define EVP_HPKE_KEY_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_HPKE_KEY_public_key) @@ -1114,10 +1183,15 @@ #define EVP_MD_CTX_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_CTX_size) #define EVP_MD_CTX_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_CTX_type) #define EVP_MD_block_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_block_size) +#define EVP_MD_do_all BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_do_all) #define EVP_MD_do_all_sorted BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_do_all_sorted) #define EVP_MD_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_flags) +#define EVP_MD_get0_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_get0_name) +#define EVP_MD_get_pkey_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_get_pkey_type) #define EVP_MD_meth_get_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_meth_get_flags) +#define EVP_MD_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_name) #define EVP_MD_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_nid) +#define EVP_MD_pkey_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_pkey_type) #define EVP_MD_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_size) #define EVP_MD_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_type) #define EVP_MD_unstable_sha3_enable BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_MD_unstable_sha3_enable) @@ -1127,10 +1201,13 @@ #define EVP_PKEY2PKCS8 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY2PKCS8) #define EVP_PKEY_CTX_add1_hkdf_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_add1_hkdf_info) #define EVP_PKEY_CTX_ctrl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_ctrl) +#define EVP_PKEY_CTX_ctrl_str BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_ctrl_str) #define EVP_PKEY_CTX_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_dup) #define EVP_PKEY_CTX_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_free) #define EVP_PKEY_CTX_get0_pkey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get0_pkey) #define EVP_PKEY_CTX_get0_rsa_oaep_label BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get0_rsa_oaep_label) +#define EVP_PKEY_CTX_get_app_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_app_data) +#define EVP_PKEY_CTX_get_keygen_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_keygen_info) #define EVP_PKEY_CTX_get_rsa_mgf1_md BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_rsa_mgf1_md) #define EVP_PKEY_CTX_get_rsa_oaep_md BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_rsa_oaep_md) #define EVP_PKEY_CTX_get_rsa_padding BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_rsa_padding) @@ -1138,11 +1215,15 @@ #define EVP_PKEY_CTX_get_signature_md BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_signature_md) #define EVP_PKEY_CTX_hkdf_mode BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_hkdf_mode) #define EVP_PKEY_CTX_kem_set_params BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_kem_set_params) +#define EVP_PKEY_CTX_md BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_md) #define EVP_PKEY_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_new) #define EVP_PKEY_CTX_new_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_new_id) #define EVP_PKEY_CTX_set0_rsa_oaep_label BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set0_rsa_oaep_label) #define EVP_PKEY_CTX_set1_hkdf_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set1_hkdf_key) #define EVP_PKEY_CTX_set1_hkdf_salt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set1_hkdf_salt) +#define EVP_PKEY_CTX_set_app_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_app_data) +#define EVP_PKEY_CTX_set_cb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_cb) +#define EVP_PKEY_CTX_set_dh_pad BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_dh_pad) #define EVP_PKEY_CTX_set_dsa_paramgen_bits BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_dsa_paramgen_bits) #define EVP_PKEY_CTX_set_dsa_paramgen_q_bits BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_dsa_paramgen_q_bits) #define EVP_PKEY_CTX_set_ec_param_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_ec_param_enc) @@ -1158,7 +1239,13 @@ #define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen) #define EVP_PKEY_CTX_set_rsa_pss_saltlen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_rsa_pss_saltlen) #define EVP_PKEY_CTX_set_signature_md BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_signature_md) +#define EVP_PKEY_asn1_find BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_asn1_find) +#define EVP_PKEY_asn1_find_str BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_asn1_find_str) +#define EVP_PKEY_asn1_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_asn1_get0) +#define EVP_PKEY_asn1_get0_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_asn1_get0_info) +#define EVP_PKEY_asn1_get_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_asn1_get_count) #define EVP_PKEY_assign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_assign) +#define EVP_PKEY_assign_DH BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_assign_DH) #define EVP_PKEY_assign_DSA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_assign_DSA) #define EVP_PKEY_assign_EC_KEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_assign_EC_KEY) #define EVP_PKEY_assign_RSA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_assign_RSA) @@ -1168,13 +1255,17 @@ #define EVP_PKEY_cmp_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_cmp_parameters) #define EVP_PKEY_copy_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_copy_parameters) #define EVP_PKEY_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_decapsulate) +#define EVP_PKEY_decapsulate_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_decapsulate_verify_service_indicator) #define EVP_PKEY_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_decrypt) #define EVP_PKEY_decrypt_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_decrypt_init) #define EVP_PKEY_derive BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_derive) #define EVP_PKEY_derive_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_derive_init) #define EVP_PKEY_derive_set_peer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_derive_set_peer) #define EVP_PKEY_ec_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_ec_pkey_meth) +#define EVP_PKEY_ed25519_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_ed25519_pkey_meth) #define EVP_PKEY_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_encapsulate) +#define EVP_PKEY_encapsulate_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_encapsulate_deterministic) +#define EVP_PKEY_encapsulate_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_encapsulate_verify_service_indicator) #define EVP_PKEY_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_encrypt) #define EVP_PKEY_encrypt_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_encrypt_init) #define EVP_PKEY_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_free) @@ -1191,16 +1282,21 @@ #define EVP_PKEY_get_raw_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_get_raw_private_key) #define EVP_PKEY_get_raw_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_get_raw_public_key) #define EVP_PKEY_hkdf_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_hkdf_pkey_meth) +#define EVP_PKEY_hmac_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_hmac_pkey_meth) #define EVP_PKEY_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_id) #define EVP_PKEY_is_opaque BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_is_opaque) +#define EVP_PKEY_kem_check_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_kem_check_key) #define EVP_PKEY_kem_new_raw_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_kem_new_raw_key) #define EVP_PKEY_kem_new_raw_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_kem_new_raw_public_key) #define EVP_PKEY_kem_new_raw_secret_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_kem_new_raw_secret_key) +#define EVP_PKEY_kem_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_kem_pkey_meth) #define EVP_PKEY_keygen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_keygen) +#define EVP_PKEY_keygen_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_keygen_deterministic) #define EVP_PKEY_keygen_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_keygen_init) #define EVP_PKEY_keygen_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_keygen_verify_service_indicator) #define EVP_PKEY_missing_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_missing_parameters) #define EVP_PKEY_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_new) +#define EVP_PKEY_new_mac_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_new_mac_key) #define EVP_PKEY_new_raw_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_new_raw_private_key) #define EVP_PKEY_new_raw_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_new_raw_public_key) #define EVP_PKEY_paramgen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_paramgen) @@ -1210,6 +1306,7 @@ #define EVP_PKEY_print_public BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_print_public) #define EVP_PKEY_rsa_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_rsa_pkey_meth) #define EVP_PKEY_rsa_pss_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_rsa_pss_pkey_meth) +#define EVP_PKEY_set1_DH BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_set1_DH) #define EVP_PKEY_set1_DSA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_set1_DSA) #define EVP_PKEY_set1_EC_KEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_set1_EC_KEY) #define EVP_PKEY_set1_RSA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_PKEY_set1_RSA) @@ -1251,6 +1348,7 @@ #define EVP_aead_aes_192_gcm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_192_gcm) #define EVP_aead_aes_256_cbc_sha1_tls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_256_cbc_sha1_tls) #define EVP_aead_aes_256_cbc_sha1_tls_implicit_iv BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_256_cbc_sha1_tls_implicit_iv) +#define EVP_aead_aes_256_cbc_sha384_tls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_256_cbc_sha384_tls) #define EVP_aead_aes_256_ctr_hmac_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_256_ctr_hmac_sha256) #define EVP_aead_aes_256_gcm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_256_gcm) #define EVP_aead_aes_256_gcm_randnonce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aead_aes_256_gcm_randnonce) @@ -1265,6 +1363,7 @@ #define EVP_aes_128_cbc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_cbc) #define EVP_aes_128_cbc_hmac_sha1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_cbc_hmac_sha1) #define EVP_aes_128_cbc_hmac_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_cbc_hmac_sha256) +#define EVP_aes_128_ccm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_ccm) #define EVP_aes_128_cfb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_cfb) #define EVP_aes_128_cfb1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_cfb1) #define EVP_aes_128_cfb128 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_cfb128) @@ -1274,6 +1373,7 @@ #define EVP_aes_128_gcm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_gcm) #define EVP_aes_128_ofb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_128_ofb) #define EVP_aes_192_cbc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_192_cbc) +#define EVP_aes_192_ccm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_192_ccm) #define EVP_aes_192_cfb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_192_cfb) #define EVP_aes_192_cfb1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_192_cfb1) #define EVP_aes_192_cfb128 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_192_cfb128) @@ -1285,6 +1385,7 @@ #define EVP_aes_256_cbc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_cbc) #define EVP_aes_256_cbc_hmac_sha1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_cbc_hmac_sha1) #define EVP_aes_256_cbc_hmac_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_cbc_hmac_sha256) +#define EVP_aes_256_ccm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_ccm) #define EVP_aes_256_cfb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_cfb) #define EVP_aes_256_cfb1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_cfb1) #define EVP_aes_256_cfb128 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_cfb128) @@ -1293,6 +1394,7 @@ #define EVP_aes_256_ecb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_ecb) #define EVP_aes_256_gcm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_gcm) #define EVP_aes_256_ofb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_ofb) +#define EVP_aes_256_wrap BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_wrap) #define EVP_aes_256_xts BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_aes_256_xts) #define EVP_bf_cbc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_bf_cbc) #define EVP_bf_cfb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_bf_cfb) @@ -1300,6 +1402,7 @@ #define EVP_blake2b256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_blake2b256) #define EVP_cast5_cbc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_cast5_cbc) #define EVP_cast5_ecb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_cast5_ecb) +#define EVP_chacha20_poly1305 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_chacha20_poly1305) #define EVP_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_cleanup) #define EVP_des_cbc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_des_cbc) #define EVP_des_ecb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_des_ecb) @@ -1311,6 +1414,7 @@ #define EVP_enc_null BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_enc_null) #define EVP_final_with_secret_suffix_sha1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_final_with_secret_suffix_sha1) #define EVP_final_with_secret_suffix_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_final_with_secret_suffix_sha256) +#define EVP_final_with_secret_suffix_sha384 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_final_with_secret_suffix_sha384) #define EVP_get_cipherbyname BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_get_cipherbyname) #define EVP_get_cipherbynid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_get_cipherbynid) #define EVP_get_digestbyname BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_get_digestbyname) @@ -1346,10 +1450,12 @@ #define EVP_sha3_384 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_sha3_384) #define EVP_sha3_512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_sha3_512) #define EVP_sha512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_sha512) +#define EVP_sha512_224 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_sha512_224) #define EVP_sha512_256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_sha512_256) +#define EVP_shake128 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_shake128) +#define EVP_shake256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_shake256) #define EVP_tls_cbc_copy_mac BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_tls_cbc_copy_mac) #define EVP_tls_cbc_digest_record BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_tls_cbc_digest_record) -#define EVP_tls_cbc_digest_record_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_tls_cbc_digest_record_sha256) #define EVP_tls_cbc_record_digest_supported BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_tls_cbc_record_digest_supported) #define EVP_tls_cbc_remove_padding BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EVP_tls_cbc_remove_padding) #define EXTENDED_KEY_USAGE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, EXTENDED_KEY_USAGE_free) @@ -1397,9 +1503,14 @@ #define HMAC_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_Final) #define HMAC_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_Init) #define HMAC_Init_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_Init_ex) +#define HMAC_Init_from_precomputed_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_Init_from_precomputed_key) +#define HMAC_KEY_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_KEY_new) #define HMAC_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_Update) +#define HMAC_get_precomputed_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_get_precomputed_key) +#define HMAC_set_precomputed_key_export BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_set_precomputed_key_export) #define HMAC_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_size) #define HMAC_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_verify_service_indicator) +#define HMAC_with_precompute BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HMAC_with_precompute) #define HRSS_decap BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HRSS_decap) #define HRSS_encap BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HRSS_encap) #define HRSS_generate_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, HRSS_generate_key) @@ -1410,6 +1521,8 @@ #define ISSUING_DIST_POINT_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ISSUING_DIST_POINT_free) #define ISSUING_DIST_POINT_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ISSUING_DIST_POINT_it) #define ISSUING_DIST_POINT_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ISSUING_DIST_POINT_new) +#define KBKDF_ctr_hmac BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, KBKDF_ctr_hmac) +#define KBKDF_ctr_hmac_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, KBKDF_ctr_hmac_verify_service_indicator) #define KEM_KEY_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, KEM_KEY_free) #define KEM_KEY_get0_kem BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, KEM_KEY_get0_kem) #define KEM_KEY_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, KEM_KEY_init) @@ -1426,10 +1539,10 @@ #define MD5 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5) #define MD5_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5_Final) #define MD5_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5_Init) +#define MD5_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5_Init_from_state) #define MD5_Transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5_Transform) #define MD5_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5_Update) -#define METHOD_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, METHOD_ref) -#define METHOD_unref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, METHOD_unref) +#define MD5_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MD5_get_state) #define MGF1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, MGF1) #define NAME_CONSTRAINTS_check BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NAME_CONSTRAINTS_check) #define NAME_CONSTRAINTS_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NAME_CONSTRAINTS_free) @@ -1450,12 +1563,14 @@ #define NETSCAPE_SPKI_get_pubkey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_get_pubkey) #define NETSCAPE_SPKI_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_it) #define NETSCAPE_SPKI_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_new) +#define NETSCAPE_SPKI_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_print) #define NETSCAPE_SPKI_set_pubkey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_set_pubkey) #define NETSCAPE_SPKI_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_sign) #define NETSCAPE_SPKI_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NETSCAPE_SPKI_verify) #define NOTICEREF_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NOTICEREF_free) #define NOTICEREF_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NOTICEREF_it) #define NOTICEREF_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, NOTICEREF_new) +#define OBJ_NAME_do_all_sorted BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_NAME_do_all_sorted) #define OBJ_cbs2nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_cbs2nid) #define OBJ_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_cleanup) #define OBJ_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_cmp) @@ -1464,6 +1579,7 @@ #define OBJ_find_sigid_algs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_find_sigid_algs) #define OBJ_find_sigid_by_algs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_find_sigid_by_algs) #define OBJ_get0_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_get0_data) +#define OBJ_get_undef BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_get_undef) #define OBJ_length BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_length) #define OBJ_ln2nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_ln2nid) #define OBJ_nid2cbb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_nid2cbb) @@ -1475,48 +1591,106 @@ #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) #define OCSP_BASICRESP_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_it) #define OCSP_BASICRESP_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_new) +#define OCSP_CERTID_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTID_dup) #define OCSP_CERTID_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTID_free) #define OCSP_CERTID_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTID_it) #define OCSP_CERTID_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTID_new) -#define OCSP_CERTSTATUS_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTSTATUS_free) #define OCSP_CERTSTATUS_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTSTATUS_it) -#define OCSP_CERTSTATUS_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_CERTSTATUS_new) +#define OCSP_ONEREQ_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_ONEREQ_free) +#define OCSP_ONEREQ_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_ONEREQ_it) +#define OCSP_ONEREQ_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_ONEREQ_new) +#define OCSP_REQINFO_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQINFO_free) +#define OCSP_REQINFO_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQINFO_it) +#define OCSP_REQINFO_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQINFO_new) +#define OCSP_REQUEST_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQUEST_free) +#define OCSP_REQUEST_get_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQUEST_get_ext) +#define OCSP_REQUEST_get_ext_by_NID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQUEST_get_ext_by_NID) +#define OCSP_REQUEST_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQUEST_it) +#define OCSP_REQUEST_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQUEST_new) +#define OCSP_REQUEST_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQUEST_print) +#define OCSP_REQ_CTX_add1_header BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_add1_header) +#define OCSP_REQ_CTX_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_free) +#define OCSP_REQ_CTX_get0_mem_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_get0_mem_bio) +#define OCSP_REQ_CTX_http BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_http) +#define OCSP_REQ_CTX_i2d BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_i2d) +#define OCSP_REQ_CTX_nbio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_nbio) +#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) -#define OCSP_RESPID_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPID_free) #define OCSP_RESPID_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPID_it) -#define OCSP_RESPID_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPID_new) #define OCSP_RESPONSE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPONSE_free) #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) +#define OCSP_SINGLERESP_add_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_add_ext) #define OCSP_SINGLERESP_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_free) +#define OCSP_SINGLERESP_get0_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_get0_id) +#define OCSP_SINGLERESP_get_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_get_ext) +#define OCSP_SINGLERESP_get_ext_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_get_ext_count) #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) #define OCSP_id_issuer_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_id_issuer_cmp) +#define OCSP_onereq_get0_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_onereq_get0_id) +#define OCSP_parse_url BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_parse_url) +#define OCSP_request_add0_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_add0_id) +#define OCSP_request_add1_cert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_add1_cert) +#define OCSP_request_add1_nonce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_add1_nonce) +#define OCSP_request_is_signed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_is_signed) +#define OCSP_request_onereq_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_onereq_count) +#define OCSP_request_onereq_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_onereq_get0) +#define OCSP_request_set1_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_set1_name) +#define OCSP_request_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_sign) +#define OCSP_request_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_request_verify) +#define OCSP_resp_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_resp_count) #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) +#define OCSP_sendreq_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_sendreq_bio) +#define OCSP_sendreq_nbio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_sendreq_nbio) +#define OCSP_sendreq_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_sendreq_new) +#define OCSP_set_max_response_length BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_set_max_response_length) #define OCSP_single_get0_status BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_single_get0_status) #define OPENSSL_add_all_algorithms_conf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_add_all_algorithms_conf) #define OPENSSL_armcap_P BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_armcap_P) #define OPENSSL_asprintf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_asprintf) -#define OPENSSL_built_in_curves BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_built_in_curves) +#define OPENSSL_calloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_calloc) #define OPENSSL_cleanse BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_cleanse) #define OPENSSL_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_cleanup) #define OPENSSL_clear_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_clear_free) @@ -1524,13 +1698,21 @@ #define OPENSSL_cpucap_initialized BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_cpucap_initialized) #define OPENSSL_cpuid_setup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_cpuid_setup) #define OPENSSL_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_free) +#define OPENSSL_fromxdigit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_fromxdigit) #define OPENSSL_gmtime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_gmtime) #define OPENSSL_gmtime_adj BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_gmtime_adj) #define OPENSSL_gmtime_diff BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_gmtime_diff) #define OPENSSL_hash32 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_hash32) +#define OPENSSL_hexstr2buf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_hexstr2buf) #define OPENSSL_ia32cap_P BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_ia32cap_P) #define OPENSSL_ia32cap_get BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_ia32cap_get) +#define OPENSSL_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_init) #define OPENSSL_init_crypto BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_init_crypto) +#define OPENSSL_isalnum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_isalnum) +#define OPENSSL_isalpha BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_isalpha) +#define OPENSSL_isdigit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_isdigit) +#define OPENSSL_isspace BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_isspace) +#define OPENSSL_isxdigit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_isxdigit) #define OPENSSL_lh_delete BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_lh_delete) #define OPENSSL_lh_doall_arg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_lh_doall_arg) #define OPENSSL_lh_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_lh_free) @@ -1548,6 +1730,29 @@ #define OPENSSL_realloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_realloc) #define OPENSSL_secure_clear_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_secure_clear_free) #define OPENSSL_secure_malloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_secure_malloc) +#define OPENSSL_secure_zalloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_secure_zalloc) +#define OPENSSL_sk_deep_copy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_deep_copy) +#define OPENSSL_sk_delete BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_delete) +#define OPENSSL_sk_delete_if BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_delete_if) +#define OPENSSL_sk_delete_ptr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_delete_ptr) +#define OPENSSL_sk_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_dup) +#define OPENSSL_sk_find BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_find) +#define OPENSSL_sk_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_free) +#define OPENSSL_sk_insert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_insert) +#define OPENSSL_sk_is_sorted BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_is_sorted) +#define OPENSSL_sk_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_new) +#define OPENSSL_sk_new_null BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_new_null) +#define OPENSSL_sk_num BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_num) +#define OPENSSL_sk_pop BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_pop) +#define OPENSSL_sk_pop_free_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_pop_free_ex) +#define OPENSSL_sk_push BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_push) +#define OPENSSL_sk_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_set) +#define OPENSSL_sk_set_cmp_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_set_cmp_func) +#define OPENSSL_sk_shift BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_shift) +#define OPENSSL_sk_sort BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_sort) +#define OPENSSL_sk_unshift BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_unshift) +#define OPENSSL_sk_value BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_value) +#define OPENSSL_sk_zero BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_sk_zero) #define OPENSSL_strcasecmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_strcasecmp) #define OPENSSL_strdup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_strdup) #define OPENSSL_strhash BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_strhash) @@ -1561,7 +1766,7 @@ #define OPENSSL_tolower BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_tolower) #define OPENSSL_vasprintf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_vasprintf) #define OPENSSL_vasprintf_internal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_vasprintf_internal) -#define OTHERNAME_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OTHERNAME_cmp) +#define OPENSSL_zalloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OPENSSL_zalloc) #define OTHERNAME_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OTHERNAME_free) #define OTHERNAME_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OTHERNAME_it) #define OTHERNAME_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OTHERNAME_new) @@ -1579,10 +1784,8 @@ #define PEM_X509_INFO_read_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_X509_INFO_read_bio) #define PEM_bytes_read_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_bytes_read_bio) #define PEM_def_callback BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_def_callback) -#define PEM_dek_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_dek_info) #define PEM_do_header BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_do_header) #define PEM_get_EVP_CIPHER_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_get_EVP_CIPHER_INFO) -#define PEM_proc_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_proc_type) #define PEM_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read) #define PEM_read_DHparams BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_DHparams) #define PEM_read_DSAPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_DSAPrivateKey) @@ -1607,12 +1810,14 @@ #define PEM_read_bio_DSAPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_DSAPrivateKey) #define PEM_read_bio_DSA_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_DSA_PUBKEY) #define PEM_read_bio_DSAparams BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_DSAparams) +#define PEM_read_bio_ECPKParameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_ECPKParameters) #define PEM_read_bio_ECPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_ECPrivateKey) #define PEM_read_bio_EC_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_EC_PUBKEY) #define PEM_read_bio_PKCS7 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_PKCS7) #define PEM_read_bio_PKCS8 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_PKCS8) #define PEM_read_bio_PKCS8_PRIV_KEY_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_PKCS8_PRIV_KEY_INFO) #define PEM_read_bio_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_PUBKEY) +#define PEM_read_bio_Parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_Parameters) #define PEM_read_bio_PrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_PrivateKey) #define PEM_read_bio_RSAPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_RSAPrivateKey) #define PEM_read_bio_RSAPublicKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_read_bio_RSAPublicKey) @@ -1648,6 +1853,7 @@ #define PEM_write_bio_DSAPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_DSAPrivateKey) #define PEM_write_bio_DSA_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_DSA_PUBKEY) #define PEM_write_bio_DSAparams BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_DSAparams) +#define PEM_write_bio_ECPKParameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_ECPKParameters) #define PEM_write_bio_ECPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_ECPrivateKey) #define PEM_write_bio_EC_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_EC_PUBKEY) #define PEM_write_bio_PKCS7 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_PKCS7) @@ -1656,7 +1862,9 @@ #define PEM_write_bio_PKCS8PrivateKey_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_PKCS8PrivateKey_nid) #define PEM_write_bio_PKCS8_PRIV_KEY_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_PKCS8_PRIV_KEY_INFO) #define PEM_write_bio_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_PUBKEY) +#define PEM_write_bio_Parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_Parameters) #define PEM_write_bio_PrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_PrivateKey) +#define PEM_write_bio_PrivateKey_traditional BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_PrivateKey_traditional) #define PEM_write_bio_RSAPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_RSAPrivateKey) #define PEM_write_bio_RSAPublicKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_RSAPublicKey) #define PEM_write_bio_RSA_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PEM_write_bio_RSA_PUBKEY) @@ -1669,21 +1877,67 @@ #define PKCS12_create BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS12_create) #define PKCS12_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS12_free) #define PKCS12_get_key_and_certs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS12_get_key_and_certs) +#define PKCS12_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS12_new) #define PKCS12_parse BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS12_parse) #define PKCS12_verify_mac BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS12_verify_mac) +#define PKCS1_MGF1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS1_MGF1) #define PKCS5_PBKDF2_HMAC BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS5_PBKDF2_HMAC) #define PKCS5_PBKDF2_HMAC_SHA1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS5_PBKDF2_HMAC_SHA1) #define PKCS5_pbe2_decrypt_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS5_pbe2_decrypt_init) #define PKCS5_pbe2_encrypt_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS5_pbe2_encrypt_init) +#define PKCS7_DIGEST_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_DIGEST_free) +#define PKCS7_DIGEST_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_DIGEST_it) +#define PKCS7_DIGEST_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_DIGEST_new) +#define PKCS7_ENCRYPT_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENCRYPT_free) +#define PKCS7_ENCRYPT_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENCRYPT_it) +#define PKCS7_ENCRYPT_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENCRYPT_new) +#define PKCS7_ENC_CONTENT_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENC_CONTENT_free) +#define PKCS7_ENC_CONTENT_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENC_CONTENT_it) +#define PKCS7_ENC_CONTENT_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENC_CONTENT_new) +#define PKCS7_ENVELOPE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENVELOPE_free) +#define PKCS7_ENVELOPE_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENVELOPE_it) +#define PKCS7_ENVELOPE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ENVELOPE_new) +#define PKCS7_ISSUER_AND_SERIAL_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ISSUER_AND_SERIAL_free) +#define PKCS7_ISSUER_AND_SERIAL_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ISSUER_AND_SERIAL_it) +#define PKCS7_ISSUER_AND_SERIAL_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_ISSUER_AND_SERIAL_new) +#define PKCS7_RECIP_INFO_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_free) +#define PKCS7_RECIP_INFO_get0_alg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_get0_alg) +#define PKCS7_RECIP_INFO_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_it) +#define PKCS7_RECIP_INFO_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_new) +#define PKCS7_RECIP_INFO_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_set) +#define PKCS7_SIGNED_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNED_free) +#define PKCS7_SIGNED_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNED_it) +#define PKCS7_SIGNED_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNED_new) +#define PKCS7_SIGNER_INFO_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_free) +#define PKCS7_SIGNER_INFO_get0_algs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_get0_algs) +#define PKCS7_SIGNER_INFO_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_it) +#define PKCS7_SIGNER_INFO_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_new) +#define PKCS7_SIGNER_INFO_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_set) +#define PKCS7_SIGN_ENVELOPE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGN_ENVELOPE_free) +#define PKCS7_SIGN_ENVELOPE_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGN_ENVELOPE_it) +#define PKCS7_SIGN_ENVELOPE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_SIGN_ENVELOPE_new) +#define PKCS7_add_certificate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_add_certificate) +#define PKCS7_add_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_add_crl) +#define PKCS7_add_recipient_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_add_recipient_info) +#define PKCS7_add_signer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_add_signer) #define PKCS7_bundle_CRLs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_bundle_CRLs) #define PKCS7_bundle_certificates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_bundle_certificates) #define PKCS7_bundle_raw_certificates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_bundle_raw_certificates) +#define PKCS7_content_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_content_new) +#define PKCS7_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_dup) #define PKCS7_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_free) #define PKCS7_get_CRLs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_CRLs) #define PKCS7_get_PEM_CRLs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_PEM_CRLs) #define PKCS7_get_PEM_certificates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_PEM_certificates) #define PKCS7_get_certificates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_certificates) #define PKCS7_get_raw_certificates BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_raw_certificates) +#define PKCS7_get_signed_attribute BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_signed_attribute) +#define PKCS7_get_signer_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_get_signer_info) +#define PKCS7_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_it) +#define PKCS7_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_new) +#define PKCS7_set_cipher BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_set_cipher) +#define PKCS7_set_content BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_set_content) +#define PKCS7_set_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_set_type) #define PKCS7_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_sign) #define PKCS7_type_is_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_type_is_data) #define PKCS7_type_is_digest BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PKCS7_type_is_digest) @@ -1711,12 +1965,6 @@ #define POLICY_MAPPING_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, POLICY_MAPPING_free) #define POLICY_MAPPING_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, POLICY_MAPPING_it) #define POLICY_MAPPING_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, POLICY_MAPPING_new) -#define PROXY_CERT_INFO_EXTENSION_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PROXY_CERT_INFO_EXTENSION_free) -#define PROXY_CERT_INFO_EXTENSION_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PROXY_CERT_INFO_EXTENSION_it) -#define PROXY_CERT_INFO_EXTENSION_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PROXY_CERT_INFO_EXTENSION_new) -#define PROXY_POLICY_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PROXY_POLICY_free) -#define PROXY_POLICY_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PROXY_POLICY_it) -#define PROXY_POLICY_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, PROXY_POLICY_new) #define RAND_OpenSSL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_OpenSSL) #define RAND_SSLeay BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_SSLeay) #define RAND_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_add) @@ -1724,18 +1972,22 @@ #define RAND_bytes_with_additional_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_bytes_with_additional_data) #define RAND_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_cleanup) #define RAND_egd BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_egd) +#define RAND_egd_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_egd_bytes) #define RAND_enable_fork_unsafe_buffering BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_enable_fork_unsafe_buffering) #define RAND_file_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_file_name) #define RAND_get_rand_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_get_rand_method) #define RAND_get_system_entropy_for_custom_prng BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_get_system_entropy_for_custom_prng) +#define RAND_keep_random_devices_open BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_keep_random_devices_open) #define RAND_load_entropy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_load_entropy) #define RAND_load_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_load_file) #define RAND_module_entropy_depleted BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_module_entropy_depleted) #define RAND_poll BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_poll) +#define RAND_priv_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_priv_bytes) #define RAND_pseudo_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_pseudo_bytes) #define RAND_seed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_seed) #define RAND_set_rand_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_set_rand_method) #define RAND_status BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_status) +#define RAND_write_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RAND_write_file) #define RC4 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RC4) #define RC4_set_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RC4_set_key) #define RIPEMD160 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RIPEMD160) @@ -1750,6 +2002,7 @@ #define RSASSA_PSS_PARAMS_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSASSA_PSS_PARAMS_new) #define RSASSA_PSS_parse_params BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSASSA_PSS_parse_params) #define RSAZ_1024_mod_exp_avx2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSAZ_1024_mod_exp_avx2) +#define RSAZ_mod_exp_avx512_x2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSAZ_mod_exp_avx512_x2) #define RSA_ALGOR_IDENTIFIER_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_ALGOR_IDENTIFIER_free) #define RSA_ALGOR_IDENTIFIER_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_ALGOR_IDENTIFIER_new) #define RSA_INTEGER_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_INTEGER_free) @@ -1761,11 +2014,11 @@ #define RSA_PSS_PARAMS_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_PSS_PARAMS_new) #define RSA_add_pkcs1_prefix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_add_pkcs1_prefix) #define RSA_bits BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_bits) +#define RSA_blinding_off_temp_for_accp_compatibility BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_blinding_off_temp_for_accp_compatibility) #define RSA_blinding_on BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_blinding_on) #define RSA_check_fips BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_check_fips) #define RSA_check_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_check_key) #define RSA_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_decrypt) -#define RSA_default_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_default_method) #define RSA_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_encrypt) #define RSA_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_flags) #define RSA_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_free) @@ -1784,31 +2037,49 @@ #define RSA_get0_p BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get0_p) #define RSA_get0_pss_params BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get0_pss_params) #define RSA_get0_q BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get0_q) +#define RSA_get_default_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get_default_method) #define RSA_get_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get_ex_data) #define RSA_get_ex_new_index BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get_ex_new_index) +#define RSA_get_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_get_method) #define RSA_is_opaque BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_is_opaque) #define RSA_marshal_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_marshal_private_key) #define RSA_marshal_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_marshal_public_key) +#define RSA_meth_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_free) +#define RSA_meth_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_new) +#define RSA_meth_set0_app_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set0_app_data) +#define RSA_meth_set_finish BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_finish) +#define RSA_meth_set_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_init) +#define RSA_meth_set_priv_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_priv_dec) +#define RSA_meth_set_priv_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_priv_enc) +#define RSA_meth_set_pub_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_pub_dec) +#define RSA_meth_set_pub_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_pub_enc) +#define RSA_meth_set_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_meth_set_sign) #define RSA_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new) #define RSA_new_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_method) +#define RSA_new_method_no_e BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_method_no_e) +#define RSA_new_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_private_key) +#define RSA_new_private_key_large_e BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_private_key_large_e) +#define RSA_new_private_key_no_crt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_private_key_no_crt) +#define RSA_new_private_key_no_e BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_private_key_no_e) +#define RSA_new_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_public_key) +#define RSA_new_public_key_large_e BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_new_public_key_large_e) #define RSA_padding_add_PKCS1_OAEP BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_OAEP) #define RSA_padding_add_PKCS1_OAEP_mgf1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_OAEP_mgf1) #define RSA_padding_add_PKCS1_PSS BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_PSS) #define RSA_padding_add_PKCS1_PSS_mgf1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_PSS_mgf1) #define RSA_padding_add_PKCS1_type_1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_type_1) -#define RSA_padding_add_PKCS1_type_2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_type_2) #define RSA_padding_add_none BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_add_none) #define RSA_padding_check_PKCS1_OAEP_mgf1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_check_PKCS1_OAEP_mgf1) #define RSA_padding_check_PKCS1_type_1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_check_PKCS1_type_1) -#define RSA_padding_check_PKCS1_type_2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_padding_check_PKCS1_type_2) #define RSA_parse_private_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_parse_private_key) #define RSA_parse_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_parse_public_key) +#define RSA_pkey_ctx_ctrl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_pkey_ctx_ctrl) #define RSA_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_print) +#define RSA_print_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_print_fp) #define RSA_private_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_private_decrypt) #define RSA_private_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_private_encrypt) #define RSA_private_key_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_private_key_from_bytes) #define RSA_private_key_to_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_private_key_to_bytes) -#define RSA_private_transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_private_transform) #define RSA_public_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_public_decrypt) #define RSA_public_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_public_encrypt) #define RSA_public_key_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_public_key_from_bytes) @@ -1817,13 +2088,14 @@ #define RSA_set0_factors BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_set0_factors) #define RSA_set0_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_set0_key) #define RSA_set_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_set_ex_data) +#define RSA_set_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_set_flags) +#define RSA_set_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_set_method) #define RSA_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_sign) #define RSA_sign_pss_mgf1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_sign_pss_mgf1) #define RSA_sign_raw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_sign_raw) #define RSA_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_size) #define RSA_test_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_test_flags) #define RSA_up_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_up_ref) -#define RSA_validate_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_validate_key) #define RSA_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_verify) #define RSA_verify_PKCS1_PSS BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_verify_PKCS1_PSS) #define RSA_verify_PKCS1_PSS_mgf1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, RSA_verify_PKCS1_PSS_mgf1) @@ -1832,22 +2104,30 @@ #define SHA1 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1) #define SHA1_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1_Final) #define SHA1_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1_Init) +#define SHA1_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1_Init_from_state) #define SHA1_Transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1_Transform) #define SHA1_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1_Update) +#define SHA1_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA1_get_state) #define SHA224 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA224) #define SHA224_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA224_Final) #define SHA224_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA224_Init) +#define SHA224_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA224_Init_from_state) #define SHA224_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA224_Update) +#define SHA224_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA224_get_state) #define SHA256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256) #define SHA256_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_Final) #define SHA256_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_Init) +#define SHA256_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_Init_from_state) #define SHA256_Transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_Transform) #define SHA256_TransformBlocks BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_TransformBlocks) #define SHA256_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_Update) +#define SHA256_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA256_get_state) #define SHA384 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA384) #define SHA384_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA384_Final) #define SHA384_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA384_Init) +#define SHA384_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA384_Init_from_state) #define SHA384_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA384_Update) +#define SHA384_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA384_get_state) #define SHA3_224 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA3_224) #define SHA3_256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA3_256) #define SHA3_384 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA3_384) @@ -1863,16 +2143,28 @@ #define SHA3_Squeeze_hw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA3_Squeeze_hw) #define SHA3_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA3_Update) #define SHA512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512) +#define SHA512_224 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_224) +#define SHA512_224_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_224_Final) +#define SHA512_224_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_224_Init) +#define SHA512_224_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_224_Init_from_state) +#define SHA512_224_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_224_Update) +#define SHA512_224_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_224_get_state) #define SHA512_256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_256) #define SHA512_256_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_256_Final) #define SHA512_256_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_256_Init) +#define SHA512_256_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_256_Init_from_state) #define SHA512_256_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_256_Update) +#define SHA512_256_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_256_get_state) #define SHA512_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_Final) #define SHA512_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_Init) +#define SHA512_Init_from_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_Init_from_state) #define SHA512_Transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_Transform) #define SHA512_Update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_Update) +#define SHA512_get_state BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHA512_get_state) #define SHAKE128 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHAKE128) #define SHAKE256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHAKE256) +#define SHAKE_Final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHAKE_Final) +#define SHAKE_Init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SHAKE_Init) #define SIPHASH_24 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SIPHASH_24) #define SPAKE2_CTX_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SPAKE2_CTX_free) #define SPAKE2_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SPAKE2_CTX_new) @@ -1880,6 +2172,10 @@ #define SPAKE2_process_msg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SPAKE2_process_msg) #define SSHKDF BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSHKDF) #define SSHKDF_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSHKDF_verify_service_indicator) +#define SSKDF_digest BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSKDF_digest) +#define SSKDF_digest_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSKDF_digest_verify_service_indicator) +#define SSKDF_hmac BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSKDF_hmac) +#define SSKDF_hmac_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSKDF_hmac_verify_service_indicator) #define SSLeay BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSLeay) #define SSLeay_version BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, SSLeay_version) #define TLSKDF_verify_service_indicator BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TLSKDF_verify_service_indicator) @@ -1898,7 +2194,6 @@ #define TRUST_TOKEN_ISSUER_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_new) #define TRUST_TOKEN_ISSUER_redeem BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_redeem) #define TRUST_TOKEN_ISSUER_redeem_over_message BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_redeem_over_message) -#define TRUST_TOKEN_ISSUER_redeem_raw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_redeem_raw) #define TRUST_TOKEN_ISSUER_set_metadata_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_set_metadata_key) #define TRUST_TOKEN_ISSUER_set_srr_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_set_srr_key) #define TRUST_TOKEN_PRETOKEN_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_PRETOKEN_free) @@ -1910,6 +2205,8 @@ #define TRUST_TOKEN_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_free) #define TRUST_TOKEN_generate_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_generate_key) #define TRUST_TOKEN_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_new) +#define TRUST_TOKEN_pst_v1_pmb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_pst_v1_pmb) +#define TRUST_TOKEN_pst_v1_voprf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, TRUST_TOKEN_pst_v1_voprf) #define USERNOTICE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, USERNOTICE_free) #define USERNOTICE_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, USERNOTICE_it) #define USERNOTICE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, USERNOTICE_new) @@ -1922,10 +2219,9 @@ #define X509V3_EXT_REQ_add_nconf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_REQ_add_nconf) #define X509V3_EXT_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_add) #define X509V3_EXT_add_alias BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_add_alias) -#define X509V3_EXT_add_list BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_add_list) #define X509V3_EXT_add_nconf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_add_nconf) #define X509V3_EXT_add_nconf_sk BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_add_nconf_sk) -#define X509V3_EXT_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_cleanup) +#define X509V3_EXT_conf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_conf) #define X509V3_EXT_conf_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_conf_nid) #define X509V3_EXT_d2i BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_d2i) #define X509V3_EXT_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_free) @@ -1936,13 +2232,13 @@ #define X509V3_EXT_nconf_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_nconf_nid) #define X509V3_EXT_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_print) #define X509V3_EXT_print_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_print_fp) -#define X509V3_EXT_val_prn BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_EXT_val_prn) #define X509V3_NAME_from_section BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_NAME_from_section) #define X509V3_add1_i2d BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_add1_i2d) #define X509V3_add_standard_extensions BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_add_standard_extensions) #define X509V3_add_value BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_add_value) #define X509V3_add_value_bool BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_add_value_bool) #define X509V3_add_value_int BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_add_value_int) +#define X509V3_bool_from_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_bool_from_string) #define X509V3_conf_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_conf_free) #define X509V3_extensions_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_extensions_print) #define X509V3_get_d2i BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509V3_get_d2i) @@ -1989,7 +2285,6 @@ #define X509_CRL_add_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_add_ext) #define X509_CRL_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_cmp) #define X509_CRL_delete_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_delete_ext) -#define X509_CRL_diff BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_diff) #define X509_CRL_digest BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_digest) #define X509_CRL_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_dup) #define X509_CRL_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_free) @@ -2011,6 +2306,7 @@ #define X509_CRL_get_nextUpdate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_get_nextUpdate) #define X509_CRL_get_signature_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_get_signature_nid) #define X509_CRL_get_version BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_get_version) +#define X509_CRL_http_nbio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_http_nbio) #define X509_CRL_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_it) #define X509_CRL_match BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_match) #define X509_CRL_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_CRL_new) @@ -2041,15 +2337,12 @@ #define X509_EXTENSION_set_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_EXTENSION_set_data) #define X509_EXTENSION_set_object BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_EXTENSION_set_object) #define X509_INFO_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_INFO_free) -#define X509_INFO_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_INFO_new) -#define X509_LOOKUP_by_subject BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_by_subject) +#define X509_LOOKUP_add_dir BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_add_dir) #define X509_LOOKUP_ctrl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_ctrl) #define X509_LOOKUP_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_file) #define X509_LOOKUP_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_free) #define X509_LOOKUP_hash_dir BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_hash_dir) -#define X509_LOOKUP_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_init) -#define X509_LOOKUP_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_new) -#define X509_LOOKUP_shutdown BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_shutdown) +#define X509_LOOKUP_load_file BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_LOOKUP_load_file) #define X509_NAME_ENTRIES_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_NAME_ENTRIES_it) #define X509_NAME_ENTRY_create_by_NID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_NAME_ENTRY_create_by_NID) #define X509_NAME_ENTRY_create_by_OBJ BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_NAME_ENTRY_create_by_OBJ) @@ -2089,25 +2382,23 @@ #define X509_NAME_print_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_NAME_print_ex) #define X509_NAME_print_ex_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_NAME_print_ex_fp) #define X509_NAME_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_NAME_set) +#define X509_OBJECT_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_free) #define X509_OBJECT_free_contents BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_free_contents) #define X509_OBJECT_get0_X509 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_get0_X509) +#define X509_OBJECT_get0_X509_CRL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_get0_X509_CRL) #define X509_OBJECT_get_type BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_get_type) -#define X509_OBJECT_idx_by_subject BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_idx_by_subject) -#define X509_OBJECT_retrieve_by_subject BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_retrieve_by_subject) -#define X509_OBJECT_retrieve_match BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_retrieve_match) -#define X509_OBJECT_up_ref_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_up_ref_count) -#define X509_PKEY_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PKEY_free) -#define X509_PKEY_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PKEY_new) +#define X509_OBJECT_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_new) +#define X509_OBJECT_set1_X509 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_set1_X509) +#define X509_OBJECT_set1_X509_CRL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_OBJECT_set1_X509_CRL) #define X509_PUBKEY_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_free) #define X509_PUBKEY_get BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_get) +#define X509_PUBKEY_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_get0) #define X509_PUBKEY_get0_param BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_get0_param) #define X509_PUBKEY_get0_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_get0_public_key) #define X509_PUBKEY_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_it) #define X509_PUBKEY_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_new) #define X509_PUBKEY_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_set) #define X509_PUBKEY_set0_param BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PUBKEY_set0_param) -#define X509_PURPOSE_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PURPOSE_add) -#define X509_PURPOSE_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PURPOSE_cleanup) #define X509_PURPOSE_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PURPOSE_get0) #define X509_PURPOSE_get0_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PURPOSE_get0_name) #define X509_PURPOSE_get0_sname BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_PURPOSE_get0_sname) @@ -2132,6 +2423,7 @@ #define X509_REQ_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_dup) #define X509_REQ_extension_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_extension_nid) #define X509_REQ_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_free) +#define X509_REQ_get0_pubkey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_get0_pubkey) #define X509_REQ_get0_signature BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_get0_signature) #define X509_REQ_get1_email BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_get1_email) #define X509_REQ_get_attr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_REQ_get_attr) @@ -2189,8 +2481,11 @@ #define X509_STORE_CTX_get0_parent_ctx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get0_parent_ctx) #define X509_STORE_CTX_get0_store BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get0_store) #define X509_STORE_CTX_get0_untrusted BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get0_untrusted) +#define X509_STORE_CTX_get1_certs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get1_certs) #define X509_STORE_CTX_get1_chain BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get1_chain) +#define X509_STORE_CTX_get1_crls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get1_crls) #define X509_STORE_CTX_get1_issuer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get1_issuer) +#define X509_STORE_CTX_get_by_subject BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get_by_subject) #define X509_STORE_CTX_get_chain BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get_chain) #define X509_STORE_CTX_get_current_cert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get_current_cert) #define X509_STORE_CTX_get_error BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get_error) @@ -2199,7 +2494,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) @@ -2216,49 +2510,29 @@ #define X509_STORE_CTX_set_trust BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_set_trust) #define X509_STORE_CTX_set_verify_cb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_set_verify_cb) #define X509_STORE_CTX_trusted_stack BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_trusted_stack) -#define X509_STORE_CTX_zero BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_zero) #define X509_STORE_add_cert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_add_cert) #define X509_STORE_add_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_add_crl) #define X509_STORE_add_lookup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_add_lookup) #define X509_STORE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_free) #define X509_STORE_get0_objects BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get0_objects) #define X509_STORE_get0_param BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get0_param) -#define X509_STORE_get1_certs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get1_certs) -#define X509_STORE_get1_crls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get1_crls) -#define X509_STORE_get_by_subject BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_by_subject) -#define X509_STORE_get_cert_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_cert_crl) -#define X509_STORE_get_check_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_check_crl) -#define X509_STORE_get_check_issued BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_check_issued) -#define X509_STORE_get_check_revocation BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_check_revocation) -#define X509_STORE_get_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_cleanup) -#define X509_STORE_get_get_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_get_crl) -#define X509_STORE_get_get_issuer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_get_issuer) -#define X509_STORE_get_lookup_certs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_lookup_certs) -#define X509_STORE_get_lookup_crls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_lookup_crls) -#define X509_STORE_get_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_verify) -#define X509_STORE_get_verify_cb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_verify_cb) +#define X509_STORE_get_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_ex_data) +#define X509_STORE_get_ex_new_index BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_get_ex_new_index) #define X509_STORE_load_locations BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_load_locations) +#define X509_STORE_lock BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_lock) #define X509_STORE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_new) #define X509_STORE_set1_param BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set1_param) -#define X509_STORE_set_cert_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_cert_crl) #define X509_STORE_set_check_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_check_crl) -#define X509_STORE_set_check_issued BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_check_issued) -#define X509_STORE_set_check_revocation BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_check_revocation) -#define X509_STORE_set_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_cleanup) #define X509_STORE_set_default_paths BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_default_paths) #define X509_STORE_set_depth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_depth) +#define X509_STORE_set_ex_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_ex_data) #define X509_STORE_set_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_flags) #define X509_STORE_set_get_crl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_get_crl) -#define X509_STORE_set_get_issuer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_get_issuer) -#define X509_STORE_set_lookup_certs BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_lookup_certs) -#define X509_STORE_set_lookup_crls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_lookup_crls) #define X509_STORE_set_purpose BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_purpose) #define X509_STORE_set_trust BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_trust) -#define X509_STORE_set_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_verify) #define X509_STORE_set_verify_cb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_set_verify_cb) +#define X509_STORE_unlock BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_unlock) #define X509_STORE_up_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_up_ref) -#define X509_TRUST_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_TRUST_add) -#define X509_TRUST_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_TRUST_cleanup) #define X509_TRUST_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_TRUST_get0) #define X509_TRUST_get0_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_TRUST_get0_name) #define X509_TRUST_get_by_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_TRUST_get_by_id) @@ -2270,14 +2544,9 @@ #define X509_VAL_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VAL_it) #define X509_VAL_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VAL_new) #define X509_VERIFY_PARAM_add0_policy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_add0_policy) -#define X509_VERIFY_PARAM_add0_table BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_add0_table) #define X509_VERIFY_PARAM_add1_host BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_add1_host) #define X509_VERIFY_PARAM_clear_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_clear_flags) #define X509_VERIFY_PARAM_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_free) -#define X509_VERIFY_PARAM_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get0) -#define X509_VERIFY_PARAM_get0_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get0_name) -#define X509_VERIFY_PARAM_get0_peername BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get0_peername) -#define X509_VERIFY_PARAM_get_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get_count) #define X509_VERIFY_PARAM_get_depth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get_depth) #define X509_VERIFY_PARAM_get_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get_flags) #define X509_VERIFY_PARAM_inherit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_inherit) @@ -2288,7 +2557,6 @@ #define X509_VERIFY_PARAM_set1_host BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_host) #define X509_VERIFY_PARAM_set1_ip BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_ip) #define X509_VERIFY_PARAM_set1_ip_asc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_ip_asc) -#define X509_VERIFY_PARAM_set1_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_name) #define X509_VERIFY_PARAM_set1_policies BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_policies) #define X509_VERIFY_PARAM_set_depth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_depth) #define X509_VERIFY_PARAM_set_flags BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_flags) @@ -2297,7 +2565,6 @@ #define X509_VERIFY_PARAM_set_time BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_time) #define X509_VERIFY_PARAM_set_time_posix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_time_posix) #define X509_VERIFY_PARAM_set_trust BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_trust) -#define X509_VERIFY_PARAM_table_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_VERIFY_PARAM_table_cleanup) #define X509_add1_ext_i2d BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_add1_ext_i2d) #define X509_add1_reject_object BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_add1_reject_object) #define X509_add1_trust_object BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_add1_trust_object) @@ -2332,6 +2599,7 @@ #define X509_get0_extensions BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_extensions) #define X509_get0_notAfter BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_notAfter) #define X509_get0_notBefore BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_notBefore) +#define X509_get0_pubkey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_pubkey) #define X509_get0_pubkey_bitstr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_pubkey_bitstr) #define X509_get0_serialNumber BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_serialNumber) #define X509_get0_signature BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get0_signature) @@ -2364,6 +2632,7 @@ #define X509_get_pathlen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_pathlen) #define X509_get_pubkey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_pubkey) #define X509_get_serialNumber BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_serialNumber) +#define X509_get_signature_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_signature_info) #define X509_get_signature_nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_signature_nid) #define X509_get_subject_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_subject_name) #define X509_get_version BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_get_version) @@ -2415,15 +2684,6 @@ #define X509_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_verify) #define X509_verify_cert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_verify_cert) #define X509_verify_cert_error_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_verify_cert_error_string) -#define X509at_add1_attr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_add1_attr) -#define X509at_add1_attr_by_NID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_add1_attr_by_NID) -#define X509at_add1_attr_by_OBJ BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_add1_attr_by_OBJ) -#define X509at_add1_attr_by_txt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_add1_attr_by_txt) -#define X509at_delete_attr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_delete_attr) -#define X509at_get_attr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_get_attr) -#define X509at_get_attr_by_NID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_get_attr_by_NID) -#define X509at_get_attr_by_OBJ BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_get_attr_by_OBJ) -#define X509at_get_attr_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509at_get_attr_count) #define X509v3_add_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509v3_add_ext) #define X509v3_delete_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509v3_delete_ext) #define X509v3_get_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509v3_get_ext) @@ -2431,7 +2691,6 @@ #define X509v3_get_ext_by_OBJ BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509v3_get_ext_by_OBJ) #define X509v3_get_ext_by_critical BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509v3_get_ext_by_critical) #define X509v3_get_ext_count BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509v3_get_ext_count) -#define a2i_GENERAL_NAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, a2i_GENERAL_NAME) #define a2i_IPADDRESS BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, a2i_IPADDRESS) #define a2i_IPADDRESS_NC BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, a2i_IPADDRESS_NC) #define abi_test_bad_unwind_temporary BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, abi_test_bad_unwind_temporary) @@ -2570,7 +2829,9 @@ #define aes_hw_set_encrypt_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_hw_set_encrypt_key) #define aes_hw_xts_cipher BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_hw_xts_cipher) #define aes_hw_xts_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_hw_xts_decrypt) +#define aes_hw_xts_decrypt_avx512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_hw_xts_decrypt_avx512) #define aes_hw_xts_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_hw_xts_encrypt) +#define aes_hw_xts_encrypt_avx512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_hw_xts_encrypt_avx512) #define aes_nohw_cbc_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_nohw_cbc_encrypt) #define aes_nohw_ctr32_encrypt_blocks BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_nohw_ctr32_encrypt_blocks) #define aes_nohw_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aes_nohw_decrypt) @@ -2591,6 +2852,11 @@ #define aesv8_gcm_8x_enc_128 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aesv8_gcm_8x_enc_128) #define aesv8_gcm_8x_enc_192 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aesv8_gcm_8x_enc_192) #define aesv8_gcm_8x_enc_256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, aesv8_gcm_8x_enc_256) +#define armv8_disable_dit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, armv8_disable_dit) +#define armv8_enable_dit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, armv8_enable_dit) +#define armv8_get_dit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, armv8_get_dit) +#define armv8_restore_dit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, armv8_restore_dit) +#define armv8_set_dit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, armv8_set_dit) #define asn1_bit_string_length BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_bit_string_length) #define asn1_do_adb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_do_adb) #define asn1_enc_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_enc_free) @@ -2598,6 +2864,8 @@ #define asn1_enc_restore BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_enc_restore) #define asn1_enc_save BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_enc_save) #define asn1_encoding_clear BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_encoding_clear) +#define asn1_evp_pkey_methods BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_evp_pkey_methods) +#define asn1_evp_pkey_methods_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_evp_pkey_methods_size) #define asn1_generalizedtime_to_tm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_generalizedtime_to_tm) #define asn1_get_choice_selector BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_get_choice_selector) #define asn1_get_field_ptr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_get_field_ptr) @@ -2607,18 +2875,23 @@ #define asn1_refcount_dec_and_test_zero BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_refcount_dec_and_test_zero) #define asn1_refcount_set_one BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_refcount_set_one) #define asn1_set_choice_selector BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_set_choice_selector) +#define asn1_type_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_type_cleanup) +#define asn1_type_set0_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_type_set0_string) #define asn1_type_value_as_pointer BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_type_value_as_pointer) #define asn1_utctime_to_tm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, asn1_utctime_to_tm) #define awslc_api_version_num BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, awslc_api_version_num) #define awslc_version_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, awslc_version_string) #define beeu_mod_inverse_vartime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, beeu_mod_inverse_vartime) #define bio_clear_socket_error BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_clear_socket_error) -#define bio_fd_should_retry BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_fd_should_retry) +#define bio_errno_should_retry BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_errno_should_retry) #define bio_ip_and_port_to_socket_and_addr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_ip_and_port_to_socket_and_addr) #define bio_sock_error BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_sock_error) #define bio_socket_nbio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_socket_nbio) +#define bio_socket_should_retry BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bio_socket_should_retry) #define bn_abs_sub_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_abs_sub_consttime) #define bn_add_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_add_words) +#define bn_assert_fits_in_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_assert_fits_in_bytes) +#define bn_big_endian_to_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_big_endian_to_words) #define bn_copy_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_copy_words) #define bn_div_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_div_consttime) #define bn_expand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_expand) @@ -2632,12 +2905,12 @@ #define bn_lcm_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_lcm_consttime) #define bn_less_than_montgomery_R BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_less_than_montgomery_R) #define bn_less_than_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_less_than_words) +#define bn_little_endian_to_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_little_endian_to_words) #define bn_miller_rabin_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_miller_rabin_init) #define bn_miller_rabin_iteration BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_miller_rabin_iteration) #define bn_minimal_width BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_minimal_width) #define bn_mod_add_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_add_consttime) #define bn_mod_add_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_add_words) -#define bn_mod_exp_base_2_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_exp_base_2_consttime) #define bn_mod_exp_mont_small BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_exp_mont_small) #define bn_mod_inverse0_prime_mont_small BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_inverse0_prime_mont_small) #define bn_mod_inverse_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_inverse_consttime) @@ -2649,15 +2922,21 @@ #define bn_mod_sub_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_sub_consttime) #define bn_mod_sub_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_sub_words) #define bn_mod_u16_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mod_u16_consttime) +#define bn_mont_ctx_cleanup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mont_ctx_cleanup) +#define bn_mont_ctx_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mont_ctx_init) +#define bn_mont_ctx_set_RR_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mont_ctx_set_RR_consttime) #define bn_mont_n0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mont_n0) +#define bn_mul4x_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul4x_mont) #define bn_mul_add_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_add_words) #define bn_mul_comba4 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_comba4) #define bn_mul_comba8 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_comba8) #define bn_mul_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_consttime) #define bn_mul_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_mont) #define bn_mul_mont_gather5 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_mont_gather5) +#define bn_mul_mont_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_mont_nohw) #define bn_mul_small BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_small) #define bn_mul_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mul_words) +#define bn_mulx4x_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_mulx4x_mont) #define bn_odd_number_is_obviously_composite BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_odd_number_is_obviously_composite) #define bn_one_to_montgomery BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_one_to_montgomery) #define bn_power5 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_power5) @@ -2675,6 +2954,7 @@ #define bn_set_static_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_set_static_words) #define bn_set_words BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_set_words) #define bn_sqr8x_internal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_sqr8x_internal) +#define bn_sqr8x_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_sqr8x_mont) #define bn_sqr_comba4 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_sqr_comba4) #define bn_sqr_comba8 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_sqr_comba8) #define bn_sqr_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_sqr_consttime) @@ -2686,8 +2966,12 @@ #define bn_uadd_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_uadd_consttime) #define bn_usub_consttime BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_usub_consttime) #define bn_wexpand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_wexpand) +#define bn_words_to_big_endian BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_words_to_big_endian) +#define bn_words_to_little_endian BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, bn_words_to_little_endian) #define boringssl_ensure_ecc_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_ensure_ecc_self_test) +#define boringssl_ensure_eddsa_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_ensure_eddsa_self_test) #define boringssl_ensure_ffdh_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_ensure_ffdh_self_test) +#define boringssl_ensure_ml_kem_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_ensure_ml_kem_self_test) #define boringssl_ensure_rsa_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_ensure_rsa_self_test) #define boringssl_self_test_hmac_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_self_test_hmac_sha256) #define boringssl_self_test_sha256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, boringssl_self_test_sha256) @@ -2753,6 +3037,8 @@ #define d2i_DSA_SIG BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_DSA_SIG) #define d2i_DSAparams BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_DSAparams) #define d2i_ECDSA_SIG BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_ECDSA_SIG) +#define d2i_ECPKParameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_ECPKParameters) +#define d2i_ECPKParameters_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_ECPKParameters_bio) #define d2i_ECParameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_ECParameters) #define d2i_ECPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_ECPrivateKey) #define d2i_ECPrivateKey_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_ECPrivateKey_bio) @@ -2760,7 +3046,6 @@ #define d2i_EC_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_EC_PUBKEY) #define d2i_EC_PUBKEY_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_EC_PUBKEY_bio) #define d2i_EC_PUBKEY_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_EC_PUBKEY_fp) -#define d2i_EDIPARTYNAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_EDIPARTYNAME) #define d2i_EXTENDED_KEY_USAGE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_EXTENDED_KEY_USAGE) #define d2i_GENERAL_NAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_GENERAL_NAME) #define d2i_GENERAL_NAMES BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_GENERAL_NAMES) @@ -2770,18 +3055,30 @@ #define d2i_NOTICEREF BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_NOTICEREF) #define d2i_OCSP_BASICRESP BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_BASICRESP) #define d2i_OCSP_CERTID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_CERTID) -#define d2i_OCSP_CERTSTATUS BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_CERTSTATUS) +#define d2i_OCSP_ONEREQ BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_ONEREQ) +#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_RESPID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_RESPID) #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_OTHERNAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OTHERNAME) #define d2i_PKCS12 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS12) #define d2i_PKCS12_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS12_bio) #define d2i_PKCS12_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS12_fp) #define d2i_PKCS7 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7) +#define d2i_PKCS7_DIGEST BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_DIGEST) +#define d2i_PKCS7_ENCRYPT BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_ENCRYPT) +#define d2i_PKCS7_ENC_CONTENT BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_ENC_CONTENT) +#define d2i_PKCS7_ENVELOPE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_ENVELOPE) +#define d2i_PKCS7_ISSUER_AND_SERIAL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_ISSUER_AND_SERIAL) +#define d2i_PKCS7_RECIP_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_RECIP_INFO) +#define d2i_PKCS7_SIGNED BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_SIGNED) +#define d2i_PKCS7_SIGNER_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_SIGNER_INFO) +#define d2i_PKCS7_SIGN_ENVELOPE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_SIGN_ENVELOPE) #define d2i_PKCS7_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS7_bio) #define d2i_PKCS8PrivateKey_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS8PrivateKey_bio) #define d2i_PKCS8PrivateKey_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS8PrivateKey_fp) @@ -2792,8 +3089,6 @@ #define d2i_PKCS8_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS8_fp) #define d2i_POLICYINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_POLICYINFO) #define d2i_POLICYQUALINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_POLICYQUALINFO) -#define d2i_PROXY_CERT_INFO_EXTENSION BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PROXY_CERT_INFO_EXTENSION) -#define d2i_PROXY_POLICY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PROXY_POLICY) #define d2i_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PUBKEY) #define d2i_PUBKEY_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PUBKEY_bio) #define d2i_PUBKEY_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PUBKEY_fp) @@ -2836,18 +3131,20 @@ #define d2i_X509_VAL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_X509_VAL) #define d2i_X509_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_X509_bio) #define d2i_X509_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_X509_fp) +#define dh_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dh_asn1_meth) +#define dh_check_params_fast BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dh_check_params_fast) #define dh_compute_key_padded_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dh_compute_key_padded_no_self_test) +#define dh_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dh_pkey_meth) #define dsa_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dsa_asn1_meth) -#define dsa_check_parameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dsa_check_parameters) +#define dsa_check_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, dsa_check_key) #define ec_GFp_mont_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_add) #define ec_GFp_mont_dbl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_dbl) +#define ec_GFp_mont_felem_exp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_felem_exp) #define ec_GFp_mont_felem_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_felem_from_bytes) #define ec_GFp_mont_felem_mul BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_felem_mul) +#define ec_GFp_mont_felem_reduce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_felem_reduce) #define ec_GFp_mont_felem_sqr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_felem_sqr) #define ec_GFp_mont_felem_to_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_felem_to_bytes) -#define ec_GFp_mont_group_finish BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_group_finish) -#define ec_GFp_mont_group_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_group_init) -#define ec_GFp_mont_group_set_curve BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_group_set_curve) #define ec_GFp_mont_init_precomp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_init_precomp) #define ec_GFp_mont_mul BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_mul) #define ec_GFp_mont_mul_base BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_mont_mul_base) @@ -2858,9 +3155,7 @@ #define ec_GFp_simple_cmp_x_coordinate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_cmp_x_coordinate) #define ec_GFp_simple_felem_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_felem_from_bytes) #define ec_GFp_simple_felem_to_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_felem_to_bytes) -#define ec_GFp_simple_group_finish BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_group_finish) #define ec_GFp_simple_group_get_curve BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_group_get_curve) -#define ec_GFp_simple_group_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_group_init) #define ec_GFp_simple_group_set_curve BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_group_set_curve) #define ec_GFp_simple_invert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_invert) #define ec_GFp_simple_is_at_infinity BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_GFp_simple_is_at_infinity) @@ -2882,18 +3177,24 @@ #define ec_felem_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_from_bytes) #define ec_felem_neg BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_neg) #define ec_felem_non_zero_mask BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_non_zero_mask) +#define ec_felem_one BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_one) #define ec_felem_select BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_select) #define ec_felem_sub BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_sub) #define ec_felem_to_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_to_bignum) #define ec_felem_to_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_felem_to_bytes) #define ec_get_x_coordinate_as_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_get_x_coordinate_as_bytes) #define ec_get_x_coordinate_as_scalar BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_get_x_coordinate_as_scalar) -#define ec_group_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_group_new) +#define ec_hash_to_curve_p256_xmd_sha256_sswu BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_hash_to_curve_p256_xmd_sha256_sswu) +#define ec_hash_to_curve_p384_xmd_sha384_sswu BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_hash_to_curve_p384_xmd_sha384_sswu) #define ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_hash_to_curve_p384_xmd_sha512_sswu_draft07) +#define ec_hash_to_scalar_p384_xmd_sha384 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_hash_to_scalar_p384_xmd_sha384) #define ec_hash_to_scalar_p384_xmd_sha512_draft07 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_hash_to_scalar_p384_xmd_sha512_draft07) #define ec_init_precomp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_init_precomp) #define ec_jacobian_to_affine BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_jacobian_to_affine) #define ec_jacobian_to_affine_batch BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_jacobian_to_affine_batch) +#define ec_nistp_point_add BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_nistp_point_add) +#define ec_nistp_point_double BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_nistp_point_double) +#define ec_nistp_scalar_mul BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_nistp_scalar_mul) #define ec_point_byte_len BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_point_byte_len) #define ec_point_from_uncompressed BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_point_from_uncompressed) #define ec_point_mul_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ec_point_mul_no_self_test) @@ -2945,7 +3246,19 @@ #define ecp_nistz256_sqr_mont BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ecp_nistz256_sqr_mont) #define ecp_nistz256_sub BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ecp_nistz256_sub) #define ed25519_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_asn1_meth) -#define ed25519_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_pkey_meth) +#define ed25519_check_public_key_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_check_public_key_nohw) +#define ed25519_check_public_key_s2n_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_check_public_key_s2n_bignum) +#define ed25519_public_key_from_hashed_seed_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_public_key_from_hashed_seed_nohw) +#define ed25519_public_key_from_hashed_seed_s2n_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_public_key_from_hashed_seed_s2n_bignum) +#define ed25519_sha512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_sha512) +#define ed25519_sign_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_sign_nohw) +#define ed25519_sign_s2n_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_sign_s2n_bignum) +#define ed25519_verify_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_verify_nohw) +#define ed25519_verify_s2n_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ed25519_verify_s2n_bignum) +#define evp_pkey_set_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, evp_pkey_set_method) +#define extract_multiplier_2x20_win5 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, extract_multiplier_2x20_win5) +#define extract_multiplier_2x30_win5 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, extract_multiplier_2x30_win5) +#define extract_multiplier_2x40_win5 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, extract_multiplier_2x40_win5) #define gcm_ghash_avx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, gcm_ghash_avx) #define gcm_ghash_avx512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, gcm_ghash_avx512) #define gcm_ghash_clmul BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, gcm_ghash_clmul) @@ -2968,7 +3281,11 @@ #define gcm_init_ssse3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, gcm_init_ssse3) #define gcm_init_v8 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, gcm_init_v8) #define gcm_setiv_avx512 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, gcm_setiv_avx512) -#define i2a_ACCESS_DESCRIPTION BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2a_ACCESS_DESCRIPTION) +#define get_legacy_kem_kyber1024_r3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, get_legacy_kem_kyber1024_r3) +#define get_legacy_kem_kyber512_r3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, get_legacy_kem_kyber512_r3) +#define get_legacy_kem_kyber768_r3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, get_legacy_kem_kyber768_r3) +#define handle_cpu_env BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, handle_cpu_env) +#define hmac_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, hmac_asn1_meth) #define i2a_ASN1_ENUMERATED BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2a_ASN1_ENUMERATED) #define i2a_ASN1_INTEGER BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2a_ASN1_INTEGER) #define i2a_ASN1_OBJECT BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2a_ASN1_OBJECT) @@ -3019,6 +3336,8 @@ #define i2d_DSA_SIG BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_DSA_SIG) #define i2d_DSAparams BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_DSAparams) #define i2d_ECDSA_SIG BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_ECDSA_SIG) +#define i2d_ECPKParameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_ECPKParameters) +#define i2d_ECPKParameters_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_ECPKParameters_bio) #define i2d_ECParameters BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_ECParameters) #define i2d_ECPrivateKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_ECPrivateKey) #define i2d_ECPrivateKey_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_ECPrivateKey_bio) @@ -3026,7 +3345,6 @@ #define i2d_EC_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_EC_PUBKEY) #define i2d_EC_PUBKEY_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_EC_PUBKEY_bio) #define i2d_EC_PUBKEY_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_EC_PUBKEY_fp) -#define i2d_EDIPARTYNAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_EDIPARTYNAME) #define i2d_EXTENDED_KEY_USAGE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_EXTENDED_KEY_USAGE) #define i2d_GENERAL_NAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_GENERAL_NAME) #define i2d_GENERAL_NAMES BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_GENERAL_NAMES) @@ -3036,18 +3354,30 @@ #define i2d_NOTICEREF BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_NOTICEREF) #define i2d_OCSP_BASICRESP BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_BASICRESP) #define i2d_OCSP_CERTID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_CERTID) -#define i2d_OCSP_CERTSTATUS BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_CERTSTATUS) +#define i2d_OCSP_ONEREQ BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_ONEREQ) +#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_RESPID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_RESPID) #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_OTHERNAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OTHERNAME) #define i2d_PKCS12 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS12) #define i2d_PKCS12_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS12_bio) #define i2d_PKCS12_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS12_fp) #define i2d_PKCS7 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7) +#define i2d_PKCS7_DIGEST BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_DIGEST) +#define i2d_PKCS7_ENCRYPT BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_ENCRYPT) +#define i2d_PKCS7_ENC_CONTENT BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_ENC_CONTENT) +#define i2d_PKCS7_ENVELOPE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_ENVELOPE) +#define i2d_PKCS7_ISSUER_AND_SERIAL BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_ISSUER_AND_SERIAL) +#define i2d_PKCS7_RECIP_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_RECIP_INFO) +#define i2d_PKCS7_SIGNED BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_SIGNED) +#define i2d_PKCS7_SIGNER_INFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_SIGNER_INFO) +#define i2d_PKCS7_SIGN_ENVELOPE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_SIGN_ENVELOPE) #define i2d_PKCS7_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS7_bio) #define i2d_PKCS8PrivateKeyInfo_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS8PrivateKeyInfo_bio) #define i2d_PKCS8PrivateKeyInfo_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS8PrivateKeyInfo_fp) @@ -3062,8 +3392,6 @@ #define i2d_PKCS8_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS8_fp) #define i2d_POLICYINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_POLICYINFO) #define i2d_POLICYQUALINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_POLICYQUALINFO) -#define i2d_PROXY_CERT_INFO_EXTENSION BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PROXY_CERT_INFO_EXTENSION) -#define i2d_PROXY_POLICY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PROXY_POLICY) #define i2d_PUBKEY BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PUBKEY) #define i2d_PUBKEY_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PUBKEY_bio) #define i2d_PUBKEY_fp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PUBKEY_fp) @@ -3119,52 +3447,87 @@ #define i2v_GENERAL_NAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2v_GENERAL_NAME) #define i2v_GENERAL_NAMES BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2v_GENERAL_NAMES) #define is_fips_build BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, is_fips_build) -#define jent_apt_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_apt_init) -#define jent_entropy_collector_alloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_entropy_collector_alloc) -#define jent_entropy_collector_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_entropy_collector_free) -#define jent_entropy_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_entropy_init) -#define jent_entropy_init_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_entropy_init_ex) -#define jent_entropy_switch_notime_impl BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_entropy_switch_notime_impl) -#define jent_gcd_analyze BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_gcd_analyze) -#define jent_gcd_fini BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_gcd_fini) -#define jent_gcd_get BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_gcd_get) -#define jent_gcd_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_gcd_init) -#define jent_gcd_selftest BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_gcd_selftest) -#define jent_health_cb_block_switch BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_health_cb_block_switch) -#define jent_health_failure BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_health_failure) -#define jent_lag_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_lag_init) -#define jent_measure_jitter BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_measure_jitter) -#define jent_random_data BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_random_data) -#define jent_read_entropy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_read_entropy) -#define jent_read_entropy_safe BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_read_entropy_safe) -#define jent_read_random_block BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_read_random_block) -#define jent_set_fips_failure_callback BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_set_fips_failure_callback) -#define jent_set_fips_failure_callback_internal BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_set_fips_failure_callback_internal) -#define jent_stuck BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_stuck) -#define jent_time_entropy_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_time_entropy_init) -#define jent_version BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, jent_version) +#define is_public_component_of_rsa_key_good BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, is_public_component_of_rsa_key_good) #define kBoringSSLRSASqrtTwo BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kBoringSSLRSASqrtTwo) #define kBoringSSLRSASqrtTwoLen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kBoringSSLRSASqrtTwoLen) #define kOpenSSLReasonStringData BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kOpenSSLReasonStringData) #define kOpenSSLReasonValues BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kOpenSSLReasonValues) #define kOpenSSLReasonValuesLen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kOpenSSLReasonValuesLen) #define kem_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kem_asn1_meth) -#define kem_kyber1024r3_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kem_kyber1024r3_method) -#define kem_kyber512r3_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kem_kyber512r3_method) -#define kem_kyber768r3_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kem_kyber768r3_method) -#define kem_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kem_pkey_meth) -#define kyber1024r3_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber1024r3_decapsulate) -#define kyber1024r3_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber1024r3_encapsulate) -#define kyber1024r3_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber1024r3_keypair) -#define kyber512r3_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber512r3_decapsulate) -#define kyber512r3_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber512r3_encapsulate) -#define kyber512r3_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber512r3_keypair) -#define kyber768r3_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber768r3_decapsulate) -#define kyber768r3_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber768r3_encapsulate) -#define kyber768r3_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, kyber768r3_keypair) #define md4_block_data_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, md4_block_data_order) #define md5_block_asm_data_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, md5_block_asm_data_order) +#define ml_kem_1024_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_1024_decapsulate) +#define ml_kem_1024_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_1024_encapsulate) +#define ml_kem_1024_encapsulate_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_1024_encapsulate_deterministic) +#define ml_kem_1024_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_1024_keypair) +#define ml_kem_1024_keypair_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_1024_keypair_deterministic) +#define ml_kem_1024_params_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_1024_params_init) +#define ml_kem_512_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_decapsulate) +#define ml_kem_512_decapsulate_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_decapsulate_no_self_test) +#define ml_kem_512_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_encapsulate) +#define ml_kem_512_encapsulate_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_encapsulate_deterministic) +#define ml_kem_512_encapsulate_deterministic_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_encapsulate_deterministic_no_self_test) +#define ml_kem_512_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_keypair) +#define ml_kem_512_keypair_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_keypair_deterministic) +#define ml_kem_512_keypair_deterministic_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_keypair_deterministic_no_self_test) +#define ml_kem_512_params_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_512_params_init) +#define ml_kem_768_decapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_768_decapsulate) +#define ml_kem_768_encapsulate BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_768_encapsulate) +#define ml_kem_768_encapsulate_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_768_encapsulate_deterministic) +#define ml_kem_768_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_768_keypair) +#define ml_kem_768_keypair_deterministic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_768_keypair_deterministic) +#define ml_kem_768_params_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_768_params_init) +#define ml_kem_barrett_reduce_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_barrett_reduce_ref) +#define ml_kem_basemul_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_basemul_ref) +#define ml_kem_cmov_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_cmov_ref) +#define ml_kem_dec_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_dec_ref) +#define ml_kem_enc_derand_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_enc_derand_ref) +#define ml_kem_enc_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_enc_ref) +#define ml_kem_gen_matrix_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_gen_matrix_ref) +#define ml_kem_indcpa_dec_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_indcpa_dec_ref) +#define ml_kem_indcpa_enc_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_indcpa_enc_ref) +#define ml_kem_indcpa_keypair_derand_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_indcpa_keypair_derand_ref) +#define ml_kem_invntt_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_invntt_ref) +#define ml_kem_keypair_derand_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_keypair_derand_ref) +#define ml_kem_keypair_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_keypair_ref) +#define ml_kem_kyber_shake128_absorb_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_kyber_shake128_absorb_ref) +#define ml_kem_kyber_shake128_squeeze_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_kyber_shake128_squeeze_ref) +#define ml_kem_kyber_shake256_prf_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_kyber_shake256_prf_ref) +#define ml_kem_kyber_shake256_rkprf_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_kyber_shake256_rkprf_ref) +#define ml_kem_montgomery_reduce_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_montgomery_reduce_ref) +#define ml_kem_ntt_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_ntt_ref) +#define ml_kem_poly_add_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_add_ref) +#define ml_kem_poly_basemul_montgomery_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_basemul_montgomery_ref) +#define ml_kem_poly_cbd_eta1_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_cbd_eta1_ref) +#define ml_kem_poly_cbd_eta2_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_cbd_eta2_ref) +#define ml_kem_poly_compress_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_compress_ref) +#define ml_kem_poly_decompress_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_decompress_ref) +#define ml_kem_poly_frombytes_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_frombytes_ref) +#define ml_kem_poly_frommsg_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_frommsg_ref) +#define ml_kem_poly_getnoise_eta1_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_getnoise_eta1_ref) +#define ml_kem_poly_getnoise_eta2_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_getnoise_eta2_ref) +#define ml_kem_poly_invntt_tomont_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_invntt_tomont_ref) +#define ml_kem_poly_ntt_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_ntt_ref) +#define ml_kem_poly_reduce_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_reduce_ref) +#define ml_kem_poly_sub_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_sub_ref) +#define ml_kem_poly_tobytes_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_tobytes_ref) +#define ml_kem_poly_tomont_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_tomont_ref) +#define ml_kem_poly_tomsg_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_poly_tomsg_ref) +#define ml_kem_polyvec_add_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_add_ref) +#define ml_kem_polyvec_basemul_acc_montgomery_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_basemul_acc_montgomery_ref) +#define ml_kem_polyvec_compress_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_compress_ref) +#define ml_kem_polyvec_decompress_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_decompress_ref) +#define ml_kem_polyvec_frombytes_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_frombytes_ref) +#define ml_kem_polyvec_invntt_tomont_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_invntt_tomont_ref) +#define ml_kem_polyvec_ntt_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_ntt_ref) +#define ml_kem_polyvec_reduce_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_reduce_ref) +#define ml_kem_polyvec_tobytes_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_polyvec_tobytes_ref) +#define ml_kem_verify_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_verify_ref) +#define ml_kem_zetas_ref BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, ml_kem_zetas_ref) #define o2i_ECPublicKey BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, o2i_ECPublicKey) +#define p256_methods BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, p256_methods) +#define p384_methods BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, p384_methods) +#define p521_methods BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, p521_methods) #define pkcs12_iterations_acceptable BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pkcs12_iterations_acceptable) #define pkcs12_key_gen BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pkcs12_key_gen) #define pkcs12_pbe_encrypt_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pkcs12_pbe_encrypt_init) @@ -3189,6 +3552,15 @@ #define pmbtoken_exp2_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_exp2_read) #define pmbtoken_exp2_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_exp2_sign) #define pmbtoken_exp2_unblind BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_exp2_unblind) +#define pmbtoken_pst1_blind BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_blind) +#define pmbtoken_pst1_client_key_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_client_key_from_bytes) +#define pmbtoken_pst1_derive_key_from_secret BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_derive_key_from_secret) +#define pmbtoken_pst1_generate_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_generate_key) +#define pmbtoken_pst1_get_h_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_get_h_for_testing) +#define pmbtoken_pst1_issuer_key_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_issuer_key_from_bytes) +#define pmbtoken_pst1_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_read) +#define pmbtoken_pst1_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_sign) +#define pmbtoken_pst1_unblind BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pmbtoken_pst1_unblind) #define poly_Rq_mul BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, poly_Rq_mul) #define pq_custom_randombytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pq_custom_randombytes) #define pq_custom_randombytes_init_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pq_custom_randombytes_init_for_testing) @@ -3198,12 +3570,14 @@ #define pqcrystals_kyber1024_ref_cmov BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_cmov) #define pqcrystals_kyber1024_ref_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_dec) #define pqcrystals_kyber1024_ref_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_enc) +#define pqcrystals_kyber1024_ref_enc_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_enc_derand) #define pqcrystals_kyber1024_ref_gen_matrix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_gen_matrix) #define pqcrystals_kyber1024_ref_indcpa_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_dec) #define pqcrystals_kyber1024_ref_indcpa_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_enc) -#define pqcrystals_kyber1024_ref_indcpa_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_keypair) +#define pqcrystals_kyber1024_ref_indcpa_keypair_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_keypair_derand) #define pqcrystals_kyber1024_ref_invntt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_invntt) #define pqcrystals_kyber1024_ref_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_keypair) +#define pqcrystals_kyber1024_ref_keypair_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_keypair_derand) #define pqcrystals_kyber1024_ref_kyber_shake128_absorb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_kyber_shake128_absorb) #define pqcrystals_kyber1024_ref_kyber_shake256_prf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_kyber_shake256_prf) #define pqcrystals_kyber1024_ref_montgomery_reduce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_montgomery_reduce) @@ -3241,12 +3615,14 @@ #define pqcrystals_kyber512_ref_cmov BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_cmov) #define pqcrystals_kyber512_ref_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_dec) #define pqcrystals_kyber512_ref_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_enc) +#define pqcrystals_kyber512_ref_enc_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_enc_derand) #define pqcrystals_kyber512_ref_gen_matrix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_gen_matrix) #define pqcrystals_kyber512_ref_indcpa_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_dec) #define pqcrystals_kyber512_ref_indcpa_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_enc) -#define pqcrystals_kyber512_ref_indcpa_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_keypair) +#define pqcrystals_kyber512_ref_indcpa_keypair_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_keypair_derand) #define pqcrystals_kyber512_ref_invntt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_invntt) #define pqcrystals_kyber512_ref_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_keypair) +#define pqcrystals_kyber512_ref_keypair_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_keypair_derand) #define pqcrystals_kyber512_ref_kyber_shake128_absorb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_kyber_shake128_absorb) #define pqcrystals_kyber512_ref_kyber_shake256_prf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_kyber_shake256_prf) #define pqcrystals_kyber512_ref_montgomery_reduce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_montgomery_reduce) @@ -3284,12 +3660,14 @@ #define pqcrystals_kyber768_ref_cmov BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_cmov) #define pqcrystals_kyber768_ref_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_dec) #define pqcrystals_kyber768_ref_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_enc) +#define pqcrystals_kyber768_ref_enc_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_enc_derand) #define pqcrystals_kyber768_ref_gen_matrix BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_gen_matrix) #define pqcrystals_kyber768_ref_indcpa_dec BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_dec) #define pqcrystals_kyber768_ref_indcpa_enc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_enc) -#define pqcrystals_kyber768_ref_indcpa_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_keypair) +#define pqcrystals_kyber768_ref_indcpa_keypair_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_keypair_derand) #define pqcrystals_kyber768_ref_invntt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_invntt) #define pqcrystals_kyber768_ref_keypair BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_keypair) +#define pqcrystals_kyber768_ref_keypair_derand BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_keypair_derand) #define pqcrystals_kyber768_ref_kyber_shake128_absorb BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_kyber_shake128_absorb) #define pqcrystals_kyber768_ref_kyber_shake256_prf BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_kyber_shake256_prf) #define pqcrystals_kyber768_ref_montgomery_reduce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_montgomery_reduce) @@ -3340,13 +3718,14 @@ #define pqcrystals_kyber_fips202_ref_shake256_squeezeblocks BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, pqcrystals_kyber_fips202_ref_shake256_squeezeblocks) #define rand_fork_unsafe_buffering_enabled BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rand_fork_unsafe_buffering_enabled) #define rsa_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_asn1_meth) -#define rsa_check_public_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_check_public_key) -#define rsa_default_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_default_decrypt) #define rsa_default_private_transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_default_private_transform) #define rsa_default_sign_raw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_default_sign_raw) #define rsa_default_size BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_default_size) #define rsa_digestsign_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_digestsign_no_self_test) #define rsa_digestverify_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_digestverify_no_self_test) +#define rsa_invalidate_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_invalidate_key) +#define rsa_private_transform BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_private_transform) +#define rsa_private_transform_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_private_transform_no_self_test) #define rsa_pss_asn1_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_pss_asn1_meth) #define rsa_sign_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_sign_no_self_test) #define rsa_verify_no_self_test BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsa_verify_no_self_test) @@ -3357,44 +3736,35 @@ #define rsaz_1024_red2norm_avx2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_1024_red2norm_avx2) #define rsaz_1024_scatter5_avx2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_1024_scatter5_avx2) #define rsaz_1024_sqr_avx2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_1024_sqr_avx2) +#define rsaz_amm52x20_x1_ifma256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_amm52x20_x1_ifma256) +#define rsaz_amm52x20_x2_ifma256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_amm52x20_x2_ifma256) +#define rsaz_amm52x30_x1_ifma256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_amm52x30_x1_ifma256) +#define rsaz_amm52x30_x2_ifma256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_amm52x30_x2_ifma256) +#define rsaz_amm52x40_x1_ifma256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_amm52x40_x1_ifma256) +#define rsaz_amm52x40_x2_ifma256 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, rsaz_amm52x40_x2_ifma256) #define s2i_ASN1_INTEGER BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, s2i_ASN1_INTEGER) #define s2i_ASN1_OCTET_STRING BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, s2i_ASN1_OCTET_STRING) -#define sha1_block_data_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_block_data_order) +#define sha1_block_data_order_avx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_block_data_order_avx) +#define sha1_block_data_order_avx2 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_block_data_order_avx2) +#define sha1_block_data_order_hw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_block_data_order_hw) +#define sha1_block_data_order_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_block_data_order_nohw) +#define sha1_block_data_order_ssse3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_block_data_order_ssse3) #define sha1_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha1_func) #define sha224_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha224_func) -#define sha256_block_data_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha256_block_data_order) +#define sha256_block_data_order_avx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha256_block_data_order_avx) +#define sha256_block_data_order_hw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha256_block_data_order_hw) +#define sha256_block_data_order_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha256_block_data_order_nohw) +#define sha256_block_data_order_ssse3 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha256_block_data_order_ssse3) #define sha256_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha256_func) #define sha384_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha384_func) -#define sha3_256_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha3_256_init) -#define sha3_alloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha3_alloc) -#define sha3_dealloc BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha3_dealloc) -#define sha3_final BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha3_final) -#define sha3_tester BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha3_tester) -#define sha3_update BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha3_update) -#define sha512_block_data_order BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha512_block_data_order) +#define sha512_block_data_order_avx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha512_block_data_order_avx) +#define sha512_block_data_order_hw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha512_block_data_order_hw) +#define sha512_block_data_order_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha512_block_data_order_nohw) #define sha512_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sha512_func) -#define sk_deep_copy BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_deep_copy) -#define sk_delete BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_delete) -#define sk_delete_if BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_delete_if) -#define sk_delete_ptr BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_delete_ptr) -#define sk_dup BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_dup) -#define sk_find BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_find) -#define sk_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_free) -#define sk_insert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_insert) -#define sk_is_sorted BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_is_sorted) -#define sk_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_new) -#define sk_new_null BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_new_null) -#define sk_num BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_num) -#define sk_pop BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_pop) #define sk_pop_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_pop_free) -#define sk_pop_free_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_pop_free_ex) -#define sk_push BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_push) -#define sk_set BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_set) -#define sk_set_cmp_func BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_set_cmp_func) -#define sk_shift BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_shift) -#define sk_sort BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_sort) -#define sk_value BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_value) -#define sk_zero BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sk_zero) +#define sskdf_variant_digest BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sskdf_variant_digest) +#define sskdf_variant_hmac BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, sskdf_variant_hmac) +#define used_for_hmac BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, used_for_hmac) #define v2i_GENERAL_NAME BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v2i_GENERAL_NAME) #define v2i_GENERAL_NAMES BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v2i_GENERAL_NAMES) #define v2i_GENERAL_NAME_ex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v2i_GENERAL_NAME_ex) @@ -3418,7 +3788,7 @@ #define v3_nscert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_nscert) #define v3_ocsp_accresp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_ocsp_accresp) #define v3_ocsp_nocheck BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_ocsp_nocheck) -#define v3_pci BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_pci) +#define v3_ocsp_nonce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_ocsp_nonce) #define v3_policy_constraints BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_policy_constraints) #define v3_policy_mappings BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_policy_mappings) #define v3_sinfo BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, v3_sinfo) @@ -3431,6 +3801,15 @@ #define voprf_exp2_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_exp2_read) #define voprf_exp2_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_exp2_sign) #define voprf_exp2_unblind BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_exp2_unblind) +#define voprf_pst1_blind BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_blind) +#define voprf_pst1_client_key_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_client_key_from_bytes) +#define voprf_pst1_derive_key_from_secret BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_derive_key_from_secret) +#define voprf_pst1_generate_key BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_generate_key) +#define voprf_pst1_issuer_key_from_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_issuer_key_from_bytes) +#define voprf_pst1_read BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_read) +#define voprf_pst1_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_sign) +#define voprf_pst1_sign_with_proof_scalar_for_testing BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_sign_with_proof_scalar_for_testing) +#define voprf_pst1_unblind BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, voprf_pst1_unblind) #define vpaes_cbc_encrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, vpaes_cbc_encrypt) #define vpaes_ctr32_encrypt_blocks BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, vpaes_ctr32_encrypt_blocks) #define vpaes_decrypt BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, vpaes_decrypt) @@ -3449,11 +3828,17 @@ #define x25519_ge_sub BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_ge_sub) #define x25519_ge_tobytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_ge_tobytes) #define x25519_pkey_meth BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_pkey_meth) +#define x25519_public_from_private_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_public_from_private_nohw) +#define x25519_public_from_private_s2n_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_public_from_private_s2n_bignum) #define x25519_sc_reduce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_sc_reduce) +#define x25519_scalar_mult_generic_nohw BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_scalar_mult_generic_nohw) +#define x25519_scalar_mult_generic_s2n_bignum BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x25519_scalar_mult_generic_s2n_bignum) #define x509V3_add_value_asn1_string BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509V3_add_value_asn1_string) #define x509_check_cert_time BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_check_cert_time) +#define x509_check_issued_with_callback BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_check_issued_with_callback) #define x509_digest_sign_algorithm BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_digest_sign_algorithm) #define x509_digest_verify_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_digest_verify_init) +#define x509_init_signature_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_init_signature_info) #define x509_print_rsa_pss_params BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_print_rsa_pss_params) #define x509_rsa_ctx_to_pss BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_rsa_ctx_to_pss) #define x509_rsa_pss_to_ctx BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509_rsa_pss_to_ctx) @@ -3461,6 +3846,7 @@ #define x509v3_bytes_to_hex BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509v3_bytes_to_hex) #define x509v3_cache_extensions BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509v3_cache_extensions) #define x509v3_conf_name_matches BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509v3_conf_name_matches) +#define x509v3_ext_free_with_method BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509v3_ext_free_with_method) #define x509v3_hex_to_bytes BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509v3_hex_to_bytes) #define x509v3_looks_like_dns_name BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x509v3_looks_like_dns_name) #define x86_64_assembly_implementation_FOR_TESTING BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, x86_64_assembly_implementation_FOR_TESTING) diff --git a/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h b/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h index ce1c24caa8b..5c4b1591d7d 100644 --- a/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h +++ b/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h @@ -20,7 +20,7 @@ #define BORINGSSL_PREFIX_SYMBOLS_ASM_H #ifndef BORINGSSL_PREFIX -#define BORINGSSL_PREFIX aws_lc_fips_0_12_15 +#define BORINGSSL_PREFIX aws_lc_fips_0_13_0 #endif // BORINGSSL_PREFIX // On iOS and macOS, we need to treat assembly symbols differently from other @@ -161,9 +161,11 @@ #define _ASN1_TIME_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_set) #define _ASN1_TIME_set_posix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_set_posix) #define _ASN1_TIME_set_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_set_string) +#define _ASN1_TIME_set_string_X509 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_set_string_X509) #define _ASN1_TIME_to_generalizedtime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_to_generalizedtime) #define _ASN1_TIME_to_posix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_to_posix) #define _ASN1_TIME_to_time_t BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_to_time_t) +#define _ASN1_TIME_to_tm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TIME_to_tm) #define _ASN1_TYPE_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TYPE_cmp) #define _ASN1_TYPE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TYPE_free) #define _ASN1_TYPE_get BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_TYPE_get) @@ -189,8 +191,10 @@ #define _ASN1_VISIBLESTRING_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_VISIBLESTRING_it) #define _ASN1_VISIBLESTRING_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_VISIBLESTRING_new) #define _ASN1_digest BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_digest) +#define _ASN1_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_dup) #define _ASN1_generate_v3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_generate_v3) #define _ASN1_get_object BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_get_object) +#define _ASN1_i2d_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_i2d_bio) #define _ASN1_item_d2i BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_item_d2i) #define _ASN1_item_d2i_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_item_d2i_bio) #define _ASN1_item_d2i_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ASN1_item_d2i_fp) @@ -286,6 +290,7 @@ #define _BIO_meth_set_puts BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_meth_set_puts) #define _BIO_meth_set_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_meth_set_read) #define _BIO_meth_set_write BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_meth_set_write) +#define _BIO_method_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_method_name) #define _BIO_method_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_method_type) #define _BIO_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_new) #define _BIO_new_bio_pair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_new_bio_pair) @@ -306,6 +311,7 @@ #define _BIO_puts BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_puts) #define _BIO_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_read) #define _BIO_read_asn1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_read_asn1) +#define _BIO_read_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_read_ex) #define _BIO_read_filename BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_read_filename) #define _BIO_reset BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_reset) #define _BIO_rw_filename BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_rw_filename) @@ -313,6 +319,7 @@ #define _BIO_s_fd BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_s_fd) #define _BIO_s_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_s_file) #define _BIO_s_mem BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_s_mem) +#define _BIO_s_secmem BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_s_secmem) #define _BIO_s_socket BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_s_socket) #define _BIO_seek BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_seek) #define _BIO_set_callback_arg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_set_callback_arg) @@ -350,6 +357,7 @@ #define _BIO_wpending BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_wpending) #define _BIO_write BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_write) #define _BIO_write_all BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_write_all) +#define _BIO_write_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_write_ex) #define _BIO_write_filename BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BIO_write_filename) #define _BLAKE2B256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BLAKE2B256) #define _BLAKE2B256_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BLAKE2B256_Final) @@ -364,12 +372,14 @@ #define _BN_CTX_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_CTX_free) #define _BN_CTX_get BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_CTX_get) #define _BN_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_CTX_new) +#define _BN_CTX_secure_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_CTX_secure_new) #define _BN_CTX_start BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_CTX_start) #define _BN_GENCB_call BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_GENCB_call) #define _BN_GENCB_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_GENCB_free) #define _BN_GENCB_get_arg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_GENCB_get_arg) #define _BN_GENCB_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_GENCB_new) #define _BN_GENCB_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_GENCB_set) +#define _BN_GENCB_set_old BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_GENCB_set_old) #define _BN_MONT_CTX_copy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_MONT_CTX_copy) #define _BN_MONT_CTX_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_MONT_CTX_free) #define _BN_MONT_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_MONT_CTX_new) @@ -408,6 +418,7 @@ #define _BN_from_montgomery BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_from_montgomery) #define _BN_gcd BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_gcd) #define _BN_generate_prime_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_generate_prime_ex) +#define _BN_get_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_get_flags) #define _BN_get_rfc3526_prime_1536 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_get_rfc3526_prime_1536) #define _BN_get_rfc3526_prime_2048 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_get_rfc3526_prime_2048) #define _BN_get_rfc3526_prime_3072 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_get_rfc3526_prime_3072) @@ -438,6 +449,7 @@ #define _BN_mod_exp2_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_exp2_mont) #define _BN_mod_exp_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_exp_mont) #define _BN_mod_exp_mont_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_exp_mont_consttime) +#define _BN_mod_exp_mont_consttime_x2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_exp_mont_consttime_x2) #define _BN_mod_exp_mont_word BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_exp_mont_word) #define _BN_mod_inverse BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_inverse) #define _BN_mod_inverse_blinded BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_mod_inverse_blinded) @@ -493,7 +505,6 @@ #define _BN_value_one BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_value_one) #define _BN_zero BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BN_zero) #define _BORINGSSL_FIPS_abort BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BORINGSSL_FIPS_abort) -#define _BORINGSSL_integrity_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BORINGSSL_integrity_test) #define _BORINGSSL_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BORINGSSL_self_test) #define _BUF_MEM_append BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BUF_MEM_append) #define _BUF_MEM_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, BUF_MEM_free) @@ -585,6 +596,7 @@ #define _CBS_get_u32 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u32) #define _CBS_get_u32le BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u32le) #define _CBS_get_u64 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u64) +#define _CBS_get_u64_decimal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u64_decimal) #define _CBS_get_u64le BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u64le) #define _CBS_get_u8 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u8) #define _CBS_get_u8_length_prefixed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_get_u8_length_prefixed) @@ -593,6 +605,7 @@ #define _CBS_is_unsigned_asn1_integer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_is_unsigned_asn1_integer) #define _CBS_is_valid_asn1_bitstring BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_is_valid_asn1_bitstring) #define _CBS_is_valid_asn1_integer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_is_valid_asn1_integer) +#define _CBS_is_valid_asn1_oid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_is_valid_asn1_oid) #define _CBS_len BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_len) #define _CBS_mem_equal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_mem_equal) #define _CBS_parse_generalized_time BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CBS_parse_generalized_time) @@ -606,14 +619,18 @@ #define _CERTIFICATEPOLICIES_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CERTIFICATEPOLICIES_new) #define _CMAC_CTX_copy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_CTX_copy) #define _CMAC_CTX_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_CTX_free) +#define _CMAC_CTX_get0_cipher_ctx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_CTX_get0_cipher_ctx) #define _CMAC_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_CTX_new) #define _CMAC_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_Final) #define _CMAC_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_Init) #define _CMAC_Reset BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_Reset) #define _CMAC_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CMAC_Update) #define _CONF_VALUE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_VALUE_new) +#define _CONF_get1_default_config_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_get1_default_config_file) +#define _CONF_modules_finish BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_modules_finish) #define _CONF_modules_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_modules_free) #define _CONF_modules_load_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_modules_load_file) +#define _CONF_modules_unload BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_modules_unload) #define _CONF_parse_list BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CONF_parse_list) #define _CRL_DIST_POINTS_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRL_DIST_POINTS_free) #define _CRL_DIST_POINTS_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRL_DIST_POINTS_it) @@ -685,6 +702,7 @@ #define _CRYPTO_has_asm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_has_asm) #define _CRYPTO_hchacha20 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_hchacha20) #define _CRYPTO_init_sysrand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_init_sysrand) +#define _CRYPTO_is_ARMv8_DIT_capable_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_is_ARMv8_DIT_capable_for_testing) #define _CRYPTO_is_confidential_build BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_is_confidential_build) #define _CRYPTO_library_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_library_init) #define _CRYPTO_malloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CRYPTO_malloc) @@ -726,19 +744,32 @@ #define _CTR_DRBG_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CTR_DRBG_init) #define _CTR_DRBG_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CTR_DRBG_new) #define _CTR_DRBG_reseed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, CTR_DRBG_reseed) -#define _ChaCha20_ctr32 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ChaCha20_ctr32) +#define _ChaCha20_ctr32_avx2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ChaCha20_ctr32_avx2) +#define _ChaCha20_ctr32_neon BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ChaCha20_ctr32_neon) +#define _ChaCha20_ctr32_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ChaCha20_ctr32_nohw) +#define _ChaCha20_ctr32_ssse3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ChaCha20_ctr32_ssse3) +#define _ChaCha20_ctr32_ssse3_4x BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ChaCha20_ctr32_ssse3_4x) #define _DES_decrypt3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_decrypt3) #define _DES_ecb3_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ecb3_encrypt) +#define _DES_ecb3_encrypt_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ecb3_encrypt_ex) #define _DES_ecb_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ecb_encrypt) +#define _DES_ecb_encrypt_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ecb_encrypt_ex) #define _DES_ede2_cbc_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ede2_cbc_encrypt) #define _DES_ede3_cbc_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ede3_cbc_encrypt) +#define _DES_ede3_cbc_encrypt_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ede3_cbc_encrypt_ex) #define _DES_encrypt3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_encrypt3) +#define _DES_is_weak_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_is_weak_key) +#define _DES_key_sched BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_key_sched) #define _DES_ncbc_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ncbc_encrypt) +#define _DES_ncbc_encrypt_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_ncbc_encrypt_ex) #define _DES_set_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_set_key) +#define _DES_set_key_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_set_key_ex) +#define _DES_set_key_unchecked BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_set_key_unchecked) #define _DES_set_odd_parity BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DES_set_odd_parity) #define _DH_bits BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_bits) #define _DH_check BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_check) #define _DH_check_pub_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_check_pub_key) +#define _DH_clear_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_clear_flags) #define _DH_compute_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_compute_key) #define _DH_compute_key_hashed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_compute_key_hashed) #define _DH_compute_key_padded BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_compute_key_padded) @@ -755,8 +786,12 @@ #define _DH_get0_q BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_get0_q) #define _DH_get_2048_256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_get_2048_256) #define _DH_get_rfc7919_2048 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_get_rfc7919_2048) +#define _DH_get_rfc7919_3072 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_get_rfc7919_3072) +#define _DH_get_rfc7919_4096 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_get_rfc7919_4096) +#define _DH_get_rfc7919_8192 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_get_rfc7919_8192) #define _DH_marshal_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_marshal_parameters) #define _DH_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_new) +#define _DH_new_by_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_new_by_nid) #define _DH_num_bits BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_num_bits) #define _DH_parse_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_parse_parameters) #define _DH_set0_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DH_set0_key) @@ -809,6 +844,8 @@ #define _DSA_parse_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_parse_parameters) #define _DSA_parse_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_parse_private_key) #define _DSA_parse_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_parse_public_key) +#define _DSA_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_print) +#define _DSA_print_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_print_fp) #define _DSA_set0_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_set0_key) #define _DSA_set0_pqg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_set0_pqg) #define _DSA_set_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, DSA_set_ex_data) @@ -838,6 +875,7 @@ #define _ECDSA_sign_with_nonce_and_leak_private_key_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ECDSA_sign_with_nonce_and_leak_private_key_for_testing) #define _ECDSA_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ECDSA_size) #define _ECDSA_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ECDSA_verify) +#define _ECPKParameters_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ECPKParameters_print) #define _EC_GFp_mont_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GFp_mont_method) #define _EC_GFp_nistp224_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GFp_nistp224_method) #define _EC_GFp_nistp256_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GFp_nistp256_method) @@ -849,12 +887,14 @@ #define _EC_GROUP_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_free) #define _EC_GROUP_get0_generator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get0_generator) #define _EC_GROUP_get0_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get0_order) +#define _EC_GROUP_get0_seed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get0_seed) #define _EC_GROUP_get_asn1_flag BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_asn1_flag) #define _EC_GROUP_get_cofactor BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_cofactor) #define _EC_GROUP_get_curve_GFp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_curve_GFp) #define _EC_GROUP_get_curve_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_curve_name) #define _EC_GROUP_get_degree BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_degree) #define _EC_GROUP_get_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_order) +#define _EC_GROUP_get_seed_len BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_get_seed_len) #define _EC_GROUP_method_of BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_method_of) #define _EC_GROUP_new_by_curve_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_new_by_curve_name) #define _EC_GROUP_new_curve_GFp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_new_curve_GFp) @@ -862,6 +902,13 @@ #define _EC_GROUP_set_asn1_flag BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_set_asn1_flag) #define _EC_GROUP_set_generator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_set_generator) #define _EC_GROUP_set_point_conversion_form BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_set_point_conversion_form) +#define _EC_GROUP_set_seed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_GROUP_set_seed) +#define _EC_KEY_METHOD_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_METHOD_free) +#define _EC_KEY_METHOD_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_METHOD_new) +#define _EC_KEY_METHOD_set_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_METHOD_set_flags) +#define _EC_KEY_METHOD_set_init_awslc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_METHOD_set_init_awslc) +#define _EC_KEY_METHOD_set_sign_awslc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_METHOD_set_sign_awslc) +#define _EC_KEY_OpenSSL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_OpenSSL) #define _EC_KEY_check_fips BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_check_fips) #define _EC_KEY_check_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_check_key) #define _EC_KEY_derive_from_secret BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_derive_from_secret) @@ -873,9 +920,11 @@ #define _EC_KEY_get0_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get0_private_key) #define _EC_KEY_get0_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get0_public_key) #define _EC_KEY_get_conv_form BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get_conv_form) +#define _EC_KEY_get_default_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get_default_method) #define _EC_KEY_get_enc_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get_enc_flags) #define _EC_KEY_get_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get_ex_data) #define _EC_KEY_get_ex_new_index BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get_ex_new_index) +#define _EC_KEY_get_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_get_method) #define _EC_KEY_is_opaque BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_is_opaque) #define _EC_KEY_key2buf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_key2buf) #define _EC_KEY_keygen_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_keygen_verify_service_indicator) @@ -892,12 +941,14 @@ #define _EC_KEY_set_enc_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_enc_flags) #define _EC_KEY_set_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_ex_data) #define _EC_KEY_set_group BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_group) +#define _EC_KEY_set_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_method) #define _EC_KEY_set_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_private_key) #define _EC_KEY_set_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_public_key) #define _EC_KEY_set_public_key_affine_coordinates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_set_public_key_affine_coordinates) #define _EC_KEY_up_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_KEY_up_ref) #define _EC_METHOD_get_field_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_METHOD_get_field_type) #define _EC_POINT_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_add) +#define _EC_POINT_bn2point BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_bn2point) #define _EC_POINT_clear_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_clear_free) #define _EC_POINT_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_cmp) #define _EC_POINT_copy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_copy) @@ -912,6 +963,7 @@ #define _EC_POINT_mul BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_mul) #define _EC_POINT_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_new) #define _EC_POINT_oct2point BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_oct2point) +#define _EC_POINT_point2bn BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_point2bn) #define _EC_POINT_point2cbb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_point2cbb) #define _EC_POINT_point2oct BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_point2oct) #define _EC_POINT_set_affine_coordinates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_POINT_set_affine_coordinates) @@ -921,21 +973,32 @@ #define _EC_curve_nid2nist BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_curve_nid2nist) #define _EC_curve_nist2nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_curve_nist2nid) #define _EC_get_builtin_curves BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_get_builtin_curves) +#define _EC_group_p224 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_group_p224) +#define _EC_group_p256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_group_p256) +#define _EC_group_p384 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_group_p384) +#define _EC_group_p521 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_group_p521) +#define _EC_group_secp256k1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_group_secp256k1) +#define _EC_hash_to_curve_p256_xmd_sha256_sswu BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_hash_to_curve_p256_xmd_sha256_sswu) +#define _EC_hash_to_curve_p384_xmd_sha384_sswu BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EC_hash_to_curve_p384_xmd_sha384_sswu) +#define _ED25519_check_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_check_public_key) #define _ED25519_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_keypair) #define _ED25519_keypair_from_seed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_keypair_from_seed) #define _ED25519_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_sign) +#define _ED25519_sign_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_sign_no_self_test) #define _ED25519_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_verify) +#define _ED25519_verify_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ED25519_verify_no_self_test) #define _EDIPARTYNAME_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EDIPARTYNAME_free) #define _EDIPARTYNAME_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EDIPARTYNAME_it) #define _EDIPARTYNAME_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EDIPARTYNAME_new) +#define _ENGINE_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_cleanup) #define _ENGINE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_free) -#define _ENGINE_get_ECDSA_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_get_ECDSA_method) -#define _ENGINE_get_RSA_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_get_RSA_method) +#define _ENGINE_get_EC BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_get_EC) +#define _ENGINE_get_RSA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_get_RSA) #define _ENGINE_load_builtin_engines BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_load_builtin_engines) #define _ENGINE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_new) #define _ENGINE_register_all_complete BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_register_all_complete) -#define _ENGINE_set_ECDSA_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_set_ECDSA_method) -#define _ENGINE_set_RSA_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_set_RSA_method) +#define _ENGINE_set_EC BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_set_EC) +#define _ENGINE_set_RSA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ENGINE_set_RSA) #define _ERR_SAVE_STATE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_SAVE_STATE_free) #define _ERR_add_error_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_add_error_data) #define _ERR_add_error_dataf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_add_error_dataf) @@ -951,6 +1014,7 @@ #define _ERR_get_next_error_library BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_get_next_error_library) #define _ERR_lib_error_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_lib_error_string) #define _ERR_load_BIO_strings BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_load_BIO_strings) +#define _ERR_load_CRYPTO_strings BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_load_CRYPTO_strings) #define _ERR_load_ERR_strings BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_load_ERR_strings) #define _ERR_load_RAND_strings BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_load_RAND_strings) #define _ERR_load_crypto_strings BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ERR_load_crypto_strings) @@ -1020,6 +1084,7 @@ #define _EVP_CIPHER_iv_length BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_CIPHER_iv_length) #define _EVP_CIPHER_key_length BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_CIPHER_key_length) #define _EVP_CIPHER_mode BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_CIPHER_mode) +#define _EVP_CIPHER_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_CIPHER_name) #define _EVP_CIPHER_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_CIPHER_nid) #define _EVP_Cipher BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_Cipher) #define _EVP_CipherFinal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_CipherFinal) @@ -1080,6 +1145,9 @@ #define _EVP_HPKE_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_new) #define _EVP_HPKE_CTX_open BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_open) #define _EVP_HPKE_CTX_seal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_seal) +#define _EVP_HPKE_CTX_setup_auth_recipient BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_auth_recipient) +#define _EVP_HPKE_CTX_setup_auth_sender BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_auth_sender) +#define _EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing) #define _EVP_HPKE_CTX_setup_recipient BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_recipient) #define _EVP_HPKE_CTX_setup_sender BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_sender) #define _EVP_HPKE_CTX_setup_sender_with_seed_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_CTX_setup_sender_with_seed_for_testing) @@ -1096,6 +1164,7 @@ #define _EVP_HPKE_KEY_generate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_generate) #define _EVP_HPKE_KEY_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_init) #define _EVP_HPKE_KEY_kem BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_kem) +#define _EVP_HPKE_KEY_move BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_move) #define _EVP_HPKE_KEY_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_new) #define _EVP_HPKE_KEY_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_private_key) #define _EVP_HPKE_KEY_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_HPKE_KEY_public_key) @@ -1118,10 +1187,15 @@ #define _EVP_MD_CTX_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_CTX_size) #define _EVP_MD_CTX_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_CTX_type) #define _EVP_MD_block_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_block_size) +#define _EVP_MD_do_all BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_do_all) #define _EVP_MD_do_all_sorted BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_do_all_sorted) #define _EVP_MD_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_flags) +#define _EVP_MD_get0_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_get0_name) +#define _EVP_MD_get_pkey_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_get_pkey_type) #define _EVP_MD_meth_get_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_meth_get_flags) +#define _EVP_MD_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_name) #define _EVP_MD_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_nid) +#define _EVP_MD_pkey_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_pkey_type) #define _EVP_MD_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_size) #define _EVP_MD_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_type) #define _EVP_MD_unstable_sha3_enable BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_MD_unstable_sha3_enable) @@ -1131,10 +1205,13 @@ #define _EVP_PKEY2PKCS8 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY2PKCS8) #define _EVP_PKEY_CTX_add1_hkdf_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_add1_hkdf_info) #define _EVP_PKEY_CTX_ctrl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_ctrl) +#define _EVP_PKEY_CTX_ctrl_str BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_ctrl_str) #define _EVP_PKEY_CTX_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_dup) #define _EVP_PKEY_CTX_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_free) #define _EVP_PKEY_CTX_get0_pkey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get0_pkey) #define _EVP_PKEY_CTX_get0_rsa_oaep_label BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get0_rsa_oaep_label) +#define _EVP_PKEY_CTX_get_app_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_app_data) +#define _EVP_PKEY_CTX_get_keygen_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_keygen_info) #define _EVP_PKEY_CTX_get_rsa_mgf1_md BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_rsa_mgf1_md) #define _EVP_PKEY_CTX_get_rsa_oaep_md BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_rsa_oaep_md) #define _EVP_PKEY_CTX_get_rsa_padding BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_rsa_padding) @@ -1142,11 +1219,15 @@ #define _EVP_PKEY_CTX_get_signature_md BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_get_signature_md) #define _EVP_PKEY_CTX_hkdf_mode BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_hkdf_mode) #define _EVP_PKEY_CTX_kem_set_params BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_kem_set_params) +#define _EVP_PKEY_CTX_md BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_md) #define _EVP_PKEY_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_new) #define _EVP_PKEY_CTX_new_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_new_id) #define _EVP_PKEY_CTX_set0_rsa_oaep_label BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set0_rsa_oaep_label) #define _EVP_PKEY_CTX_set1_hkdf_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set1_hkdf_key) #define _EVP_PKEY_CTX_set1_hkdf_salt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set1_hkdf_salt) +#define _EVP_PKEY_CTX_set_app_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_app_data) +#define _EVP_PKEY_CTX_set_cb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_cb) +#define _EVP_PKEY_CTX_set_dh_pad BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_dh_pad) #define _EVP_PKEY_CTX_set_dsa_paramgen_bits BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_dsa_paramgen_bits) #define _EVP_PKEY_CTX_set_dsa_paramgen_q_bits BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_dsa_paramgen_q_bits) #define _EVP_PKEY_CTX_set_ec_param_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_ec_param_enc) @@ -1162,7 +1243,13 @@ #define _EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen) #define _EVP_PKEY_CTX_set_rsa_pss_saltlen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_rsa_pss_saltlen) #define _EVP_PKEY_CTX_set_signature_md BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_CTX_set_signature_md) +#define _EVP_PKEY_asn1_find BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_asn1_find) +#define _EVP_PKEY_asn1_find_str BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_asn1_find_str) +#define _EVP_PKEY_asn1_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_asn1_get0) +#define _EVP_PKEY_asn1_get0_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_asn1_get0_info) +#define _EVP_PKEY_asn1_get_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_asn1_get_count) #define _EVP_PKEY_assign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_assign) +#define _EVP_PKEY_assign_DH BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_assign_DH) #define _EVP_PKEY_assign_DSA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_assign_DSA) #define _EVP_PKEY_assign_EC_KEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_assign_EC_KEY) #define _EVP_PKEY_assign_RSA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_assign_RSA) @@ -1172,13 +1259,17 @@ #define _EVP_PKEY_cmp_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_cmp_parameters) #define _EVP_PKEY_copy_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_copy_parameters) #define _EVP_PKEY_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_decapsulate) +#define _EVP_PKEY_decapsulate_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_decapsulate_verify_service_indicator) #define _EVP_PKEY_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_decrypt) #define _EVP_PKEY_decrypt_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_decrypt_init) #define _EVP_PKEY_derive BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_derive) #define _EVP_PKEY_derive_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_derive_init) #define _EVP_PKEY_derive_set_peer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_derive_set_peer) #define _EVP_PKEY_ec_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_ec_pkey_meth) +#define _EVP_PKEY_ed25519_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_ed25519_pkey_meth) #define _EVP_PKEY_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_encapsulate) +#define _EVP_PKEY_encapsulate_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_encapsulate_deterministic) +#define _EVP_PKEY_encapsulate_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_encapsulate_verify_service_indicator) #define _EVP_PKEY_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_encrypt) #define _EVP_PKEY_encrypt_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_encrypt_init) #define _EVP_PKEY_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_free) @@ -1195,16 +1286,21 @@ #define _EVP_PKEY_get_raw_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_get_raw_private_key) #define _EVP_PKEY_get_raw_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_get_raw_public_key) #define _EVP_PKEY_hkdf_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_hkdf_pkey_meth) +#define _EVP_PKEY_hmac_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_hmac_pkey_meth) #define _EVP_PKEY_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_id) #define _EVP_PKEY_is_opaque BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_is_opaque) +#define _EVP_PKEY_kem_check_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_kem_check_key) #define _EVP_PKEY_kem_new_raw_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_kem_new_raw_key) #define _EVP_PKEY_kem_new_raw_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_kem_new_raw_public_key) #define _EVP_PKEY_kem_new_raw_secret_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_kem_new_raw_secret_key) +#define _EVP_PKEY_kem_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_kem_pkey_meth) #define _EVP_PKEY_keygen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_keygen) +#define _EVP_PKEY_keygen_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_keygen_deterministic) #define _EVP_PKEY_keygen_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_keygen_init) #define _EVP_PKEY_keygen_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_keygen_verify_service_indicator) #define _EVP_PKEY_missing_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_missing_parameters) #define _EVP_PKEY_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_new) +#define _EVP_PKEY_new_mac_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_new_mac_key) #define _EVP_PKEY_new_raw_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_new_raw_private_key) #define _EVP_PKEY_new_raw_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_new_raw_public_key) #define _EVP_PKEY_paramgen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_paramgen) @@ -1214,6 +1310,7 @@ #define _EVP_PKEY_print_public BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_print_public) #define _EVP_PKEY_rsa_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_rsa_pkey_meth) #define _EVP_PKEY_rsa_pss_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_rsa_pss_pkey_meth) +#define _EVP_PKEY_set1_DH BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_set1_DH) #define _EVP_PKEY_set1_DSA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_set1_DSA) #define _EVP_PKEY_set1_EC_KEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_set1_EC_KEY) #define _EVP_PKEY_set1_RSA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_PKEY_set1_RSA) @@ -1255,6 +1352,7 @@ #define _EVP_aead_aes_192_gcm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_192_gcm) #define _EVP_aead_aes_256_cbc_sha1_tls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_256_cbc_sha1_tls) #define _EVP_aead_aes_256_cbc_sha1_tls_implicit_iv BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_256_cbc_sha1_tls_implicit_iv) +#define _EVP_aead_aes_256_cbc_sha384_tls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_256_cbc_sha384_tls) #define _EVP_aead_aes_256_ctr_hmac_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_256_ctr_hmac_sha256) #define _EVP_aead_aes_256_gcm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_256_gcm) #define _EVP_aead_aes_256_gcm_randnonce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aead_aes_256_gcm_randnonce) @@ -1269,6 +1367,7 @@ #define _EVP_aes_128_cbc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_cbc) #define _EVP_aes_128_cbc_hmac_sha1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_cbc_hmac_sha1) #define _EVP_aes_128_cbc_hmac_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_cbc_hmac_sha256) +#define _EVP_aes_128_ccm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_ccm) #define _EVP_aes_128_cfb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_cfb) #define _EVP_aes_128_cfb1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_cfb1) #define _EVP_aes_128_cfb128 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_cfb128) @@ -1278,6 +1377,7 @@ #define _EVP_aes_128_gcm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_gcm) #define _EVP_aes_128_ofb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_128_ofb) #define _EVP_aes_192_cbc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_192_cbc) +#define _EVP_aes_192_ccm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_192_ccm) #define _EVP_aes_192_cfb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_192_cfb) #define _EVP_aes_192_cfb1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_192_cfb1) #define _EVP_aes_192_cfb128 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_192_cfb128) @@ -1289,6 +1389,7 @@ #define _EVP_aes_256_cbc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_cbc) #define _EVP_aes_256_cbc_hmac_sha1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_cbc_hmac_sha1) #define _EVP_aes_256_cbc_hmac_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_cbc_hmac_sha256) +#define _EVP_aes_256_ccm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_ccm) #define _EVP_aes_256_cfb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_cfb) #define _EVP_aes_256_cfb1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_cfb1) #define _EVP_aes_256_cfb128 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_cfb128) @@ -1297,6 +1398,7 @@ #define _EVP_aes_256_ecb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_ecb) #define _EVP_aes_256_gcm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_gcm) #define _EVP_aes_256_ofb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_ofb) +#define _EVP_aes_256_wrap BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_wrap) #define _EVP_aes_256_xts BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_aes_256_xts) #define _EVP_bf_cbc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_bf_cbc) #define _EVP_bf_cfb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_bf_cfb) @@ -1304,6 +1406,7 @@ #define _EVP_blake2b256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_blake2b256) #define _EVP_cast5_cbc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_cast5_cbc) #define _EVP_cast5_ecb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_cast5_ecb) +#define _EVP_chacha20_poly1305 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_chacha20_poly1305) #define _EVP_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_cleanup) #define _EVP_des_cbc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_des_cbc) #define _EVP_des_ecb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_des_ecb) @@ -1315,6 +1418,7 @@ #define _EVP_enc_null BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_enc_null) #define _EVP_final_with_secret_suffix_sha1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_final_with_secret_suffix_sha1) #define _EVP_final_with_secret_suffix_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_final_with_secret_suffix_sha256) +#define _EVP_final_with_secret_suffix_sha384 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_final_with_secret_suffix_sha384) #define _EVP_get_cipherbyname BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_get_cipherbyname) #define _EVP_get_cipherbynid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_get_cipherbynid) #define _EVP_get_digestbyname BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_get_digestbyname) @@ -1350,10 +1454,12 @@ #define _EVP_sha3_384 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_sha3_384) #define _EVP_sha3_512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_sha3_512) #define _EVP_sha512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_sha512) +#define _EVP_sha512_224 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_sha512_224) #define _EVP_sha512_256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_sha512_256) +#define _EVP_shake128 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_shake128) +#define _EVP_shake256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_shake256) #define _EVP_tls_cbc_copy_mac BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_tls_cbc_copy_mac) #define _EVP_tls_cbc_digest_record BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_tls_cbc_digest_record) -#define _EVP_tls_cbc_digest_record_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_tls_cbc_digest_record_sha256) #define _EVP_tls_cbc_record_digest_supported BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_tls_cbc_record_digest_supported) #define _EVP_tls_cbc_remove_padding BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EVP_tls_cbc_remove_padding) #define _EXTENDED_KEY_USAGE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, EXTENDED_KEY_USAGE_free) @@ -1401,9 +1507,14 @@ #define _HMAC_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_Final) #define _HMAC_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_Init) #define _HMAC_Init_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_Init_ex) +#define _HMAC_Init_from_precomputed_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_Init_from_precomputed_key) +#define _HMAC_KEY_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_KEY_new) #define _HMAC_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_Update) +#define _HMAC_get_precomputed_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_get_precomputed_key) +#define _HMAC_set_precomputed_key_export BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_set_precomputed_key_export) #define _HMAC_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_size) #define _HMAC_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_verify_service_indicator) +#define _HMAC_with_precompute BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HMAC_with_precompute) #define _HRSS_decap BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HRSS_decap) #define _HRSS_encap BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HRSS_encap) #define _HRSS_generate_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, HRSS_generate_key) @@ -1414,6 +1525,8 @@ #define _ISSUING_DIST_POINT_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ISSUING_DIST_POINT_free) #define _ISSUING_DIST_POINT_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ISSUING_DIST_POINT_it) #define _ISSUING_DIST_POINT_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ISSUING_DIST_POINT_new) +#define _KBKDF_ctr_hmac BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, KBKDF_ctr_hmac) +#define _KBKDF_ctr_hmac_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, KBKDF_ctr_hmac_verify_service_indicator) #define _KEM_KEY_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, KEM_KEY_free) #define _KEM_KEY_get0_kem BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, KEM_KEY_get0_kem) #define _KEM_KEY_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, KEM_KEY_init) @@ -1430,10 +1543,10 @@ #define _MD5 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5) #define _MD5_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5_Final) #define _MD5_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5_Init) +#define _MD5_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5_Init_from_state) #define _MD5_Transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5_Transform) #define _MD5_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5_Update) -#define _METHOD_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, METHOD_ref) -#define _METHOD_unref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, METHOD_unref) +#define _MD5_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MD5_get_state) #define _MGF1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, MGF1) #define _NAME_CONSTRAINTS_check BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NAME_CONSTRAINTS_check) #define _NAME_CONSTRAINTS_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NAME_CONSTRAINTS_free) @@ -1454,12 +1567,14 @@ #define _NETSCAPE_SPKI_get_pubkey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_get_pubkey) #define _NETSCAPE_SPKI_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_it) #define _NETSCAPE_SPKI_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_new) +#define _NETSCAPE_SPKI_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_print) #define _NETSCAPE_SPKI_set_pubkey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_set_pubkey) #define _NETSCAPE_SPKI_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_sign) #define _NETSCAPE_SPKI_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NETSCAPE_SPKI_verify) #define _NOTICEREF_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NOTICEREF_free) #define _NOTICEREF_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NOTICEREF_it) #define _NOTICEREF_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, NOTICEREF_new) +#define _OBJ_NAME_do_all_sorted BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_NAME_do_all_sorted) #define _OBJ_cbs2nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_cbs2nid) #define _OBJ_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_cleanup) #define _OBJ_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_cmp) @@ -1468,6 +1583,7 @@ #define _OBJ_find_sigid_algs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_find_sigid_algs) #define _OBJ_find_sigid_by_algs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_find_sigid_by_algs) #define _OBJ_get0_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_get0_data) +#define _OBJ_get_undef BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_get_undef) #define _OBJ_length BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_length) #define _OBJ_ln2nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_ln2nid) #define _OBJ_nid2cbb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_nid2cbb) @@ -1479,48 +1595,106 @@ #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) #define _OCSP_BASICRESP_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_it) #define _OCSP_BASICRESP_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_new) +#define _OCSP_CERTID_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTID_dup) #define _OCSP_CERTID_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTID_free) #define _OCSP_CERTID_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTID_it) #define _OCSP_CERTID_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTID_new) -#define _OCSP_CERTSTATUS_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTSTATUS_free) #define _OCSP_CERTSTATUS_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTSTATUS_it) -#define _OCSP_CERTSTATUS_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_CERTSTATUS_new) +#define _OCSP_ONEREQ_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_ONEREQ_free) +#define _OCSP_ONEREQ_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_ONEREQ_it) +#define _OCSP_ONEREQ_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_ONEREQ_new) +#define _OCSP_REQINFO_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQINFO_free) +#define _OCSP_REQINFO_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQINFO_it) +#define _OCSP_REQINFO_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQINFO_new) +#define _OCSP_REQUEST_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQUEST_free) +#define _OCSP_REQUEST_get_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQUEST_get_ext) +#define _OCSP_REQUEST_get_ext_by_NID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQUEST_get_ext_by_NID) +#define _OCSP_REQUEST_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQUEST_it) +#define _OCSP_REQUEST_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQUEST_new) +#define _OCSP_REQUEST_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQUEST_print) +#define _OCSP_REQ_CTX_add1_header BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_add1_header) +#define _OCSP_REQ_CTX_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_free) +#define _OCSP_REQ_CTX_get0_mem_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_get0_mem_bio) +#define _OCSP_REQ_CTX_http BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_http) +#define _OCSP_REQ_CTX_i2d BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_i2d) +#define _OCSP_REQ_CTX_nbio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_nbio) +#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) -#define _OCSP_RESPID_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPID_free) #define _OCSP_RESPID_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPID_it) -#define _OCSP_RESPID_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPID_new) #define _OCSP_RESPONSE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPONSE_free) #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) +#define _OCSP_SINGLERESP_add_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_add_ext) #define _OCSP_SINGLERESP_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_free) +#define _OCSP_SINGLERESP_get0_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_get0_id) +#define _OCSP_SINGLERESP_get_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_get_ext) +#define _OCSP_SINGLERESP_get_ext_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_get_ext_count) #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) #define _OCSP_id_issuer_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_id_issuer_cmp) +#define _OCSP_onereq_get0_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_onereq_get0_id) +#define _OCSP_parse_url BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_parse_url) +#define _OCSP_request_add0_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_add0_id) +#define _OCSP_request_add1_cert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_add1_cert) +#define _OCSP_request_add1_nonce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_add1_nonce) +#define _OCSP_request_is_signed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_is_signed) +#define _OCSP_request_onereq_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_onereq_count) +#define _OCSP_request_onereq_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_onereq_get0) +#define _OCSP_request_set1_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_set1_name) +#define _OCSP_request_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_sign) +#define _OCSP_request_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_request_verify) +#define _OCSP_resp_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_resp_count) #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) +#define _OCSP_sendreq_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_sendreq_bio) +#define _OCSP_sendreq_nbio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_sendreq_nbio) +#define _OCSP_sendreq_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_sendreq_new) +#define _OCSP_set_max_response_length BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_set_max_response_length) #define _OCSP_single_get0_status BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_single_get0_status) #define _OPENSSL_add_all_algorithms_conf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_add_all_algorithms_conf) #define _OPENSSL_armcap_P BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_armcap_P) #define _OPENSSL_asprintf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_asprintf) -#define _OPENSSL_built_in_curves BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_built_in_curves) +#define _OPENSSL_calloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_calloc) #define _OPENSSL_cleanse BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_cleanse) #define _OPENSSL_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_cleanup) #define _OPENSSL_clear_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_clear_free) @@ -1528,13 +1702,21 @@ #define _OPENSSL_cpucap_initialized BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_cpucap_initialized) #define _OPENSSL_cpuid_setup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_cpuid_setup) #define _OPENSSL_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_free) +#define _OPENSSL_fromxdigit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_fromxdigit) #define _OPENSSL_gmtime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_gmtime) #define _OPENSSL_gmtime_adj BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_gmtime_adj) #define _OPENSSL_gmtime_diff BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_gmtime_diff) #define _OPENSSL_hash32 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_hash32) +#define _OPENSSL_hexstr2buf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_hexstr2buf) #define _OPENSSL_ia32cap_P BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_ia32cap_P) #define _OPENSSL_ia32cap_get BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_ia32cap_get) +#define _OPENSSL_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_init) #define _OPENSSL_init_crypto BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_init_crypto) +#define _OPENSSL_isalnum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_isalnum) +#define _OPENSSL_isalpha BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_isalpha) +#define _OPENSSL_isdigit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_isdigit) +#define _OPENSSL_isspace BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_isspace) +#define _OPENSSL_isxdigit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_isxdigit) #define _OPENSSL_lh_delete BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_lh_delete) #define _OPENSSL_lh_doall_arg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_lh_doall_arg) #define _OPENSSL_lh_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_lh_free) @@ -1552,6 +1734,29 @@ #define _OPENSSL_realloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_realloc) #define _OPENSSL_secure_clear_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_secure_clear_free) #define _OPENSSL_secure_malloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_secure_malloc) +#define _OPENSSL_secure_zalloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_secure_zalloc) +#define _OPENSSL_sk_deep_copy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_deep_copy) +#define _OPENSSL_sk_delete BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_delete) +#define _OPENSSL_sk_delete_if BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_delete_if) +#define _OPENSSL_sk_delete_ptr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_delete_ptr) +#define _OPENSSL_sk_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_dup) +#define _OPENSSL_sk_find BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_find) +#define _OPENSSL_sk_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_free) +#define _OPENSSL_sk_insert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_insert) +#define _OPENSSL_sk_is_sorted BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_is_sorted) +#define _OPENSSL_sk_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_new) +#define _OPENSSL_sk_new_null BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_new_null) +#define _OPENSSL_sk_num BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_num) +#define _OPENSSL_sk_pop BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_pop) +#define _OPENSSL_sk_pop_free_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_pop_free_ex) +#define _OPENSSL_sk_push BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_push) +#define _OPENSSL_sk_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_set) +#define _OPENSSL_sk_set_cmp_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_set_cmp_func) +#define _OPENSSL_sk_shift BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_shift) +#define _OPENSSL_sk_sort BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_sort) +#define _OPENSSL_sk_unshift BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_unshift) +#define _OPENSSL_sk_value BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_value) +#define _OPENSSL_sk_zero BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_sk_zero) #define _OPENSSL_strcasecmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_strcasecmp) #define _OPENSSL_strdup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_strdup) #define _OPENSSL_strhash BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_strhash) @@ -1565,7 +1770,7 @@ #define _OPENSSL_tolower BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_tolower) #define _OPENSSL_vasprintf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_vasprintf) #define _OPENSSL_vasprintf_internal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_vasprintf_internal) -#define _OTHERNAME_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OTHERNAME_cmp) +#define _OPENSSL_zalloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OPENSSL_zalloc) #define _OTHERNAME_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OTHERNAME_free) #define _OTHERNAME_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OTHERNAME_it) #define _OTHERNAME_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OTHERNAME_new) @@ -1583,10 +1788,8 @@ #define _PEM_X509_INFO_read_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_X509_INFO_read_bio) #define _PEM_bytes_read_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_bytes_read_bio) #define _PEM_def_callback BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_def_callback) -#define _PEM_dek_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_dek_info) #define _PEM_do_header BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_do_header) #define _PEM_get_EVP_CIPHER_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_get_EVP_CIPHER_INFO) -#define _PEM_proc_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_proc_type) #define _PEM_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read) #define _PEM_read_DHparams BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_DHparams) #define _PEM_read_DSAPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_DSAPrivateKey) @@ -1611,12 +1814,14 @@ #define _PEM_read_bio_DSAPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_DSAPrivateKey) #define _PEM_read_bio_DSA_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_DSA_PUBKEY) #define _PEM_read_bio_DSAparams BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_DSAparams) +#define _PEM_read_bio_ECPKParameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_ECPKParameters) #define _PEM_read_bio_ECPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_ECPrivateKey) #define _PEM_read_bio_EC_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_EC_PUBKEY) #define _PEM_read_bio_PKCS7 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_PKCS7) #define _PEM_read_bio_PKCS8 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_PKCS8) #define _PEM_read_bio_PKCS8_PRIV_KEY_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_PKCS8_PRIV_KEY_INFO) #define _PEM_read_bio_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_PUBKEY) +#define _PEM_read_bio_Parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_Parameters) #define _PEM_read_bio_PrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_PrivateKey) #define _PEM_read_bio_RSAPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_RSAPrivateKey) #define _PEM_read_bio_RSAPublicKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_read_bio_RSAPublicKey) @@ -1652,6 +1857,7 @@ #define _PEM_write_bio_DSAPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_DSAPrivateKey) #define _PEM_write_bio_DSA_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_DSA_PUBKEY) #define _PEM_write_bio_DSAparams BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_DSAparams) +#define _PEM_write_bio_ECPKParameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_ECPKParameters) #define _PEM_write_bio_ECPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_ECPrivateKey) #define _PEM_write_bio_EC_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_EC_PUBKEY) #define _PEM_write_bio_PKCS7 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_PKCS7) @@ -1660,7 +1866,9 @@ #define _PEM_write_bio_PKCS8PrivateKey_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_PKCS8PrivateKey_nid) #define _PEM_write_bio_PKCS8_PRIV_KEY_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_PKCS8_PRIV_KEY_INFO) #define _PEM_write_bio_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_PUBKEY) +#define _PEM_write_bio_Parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_Parameters) #define _PEM_write_bio_PrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_PrivateKey) +#define _PEM_write_bio_PrivateKey_traditional BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_PrivateKey_traditional) #define _PEM_write_bio_RSAPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_RSAPrivateKey) #define _PEM_write_bio_RSAPublicKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_RSAPublicKey) #define _PEM_write_bio_RSA_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PEM_write_bio_RSA_PUBKEY) @@ -1673,21 +1881,67 @@ #define _PKCS12_create BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS12_create) #define _PKCS12_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS12_free) #define _PKCS12_get_key_and_certs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS12_get_key_and_certs) +#define _PKCS12_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS12_new) #define _PKCS12_parse BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS12_parse) #define _PKCS12_verify_mac BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS12_verify_mac) +#define _PKCS1_MGF1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS1_MGF1) #define _PKCS5_PBKDF2_HMAC BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS5_PBKDF2_HMAC) #define _PKCS5_PBKDF2_HMAC_SHA1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS5_PBKDF2_HMAC_SHA1) #define _PKCS5_pbe2_decrypt_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS5_pbe2_decrypt_init) #define _PKCS5_pbe2_encrypt_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS5_pbe2_encrypt_init) +#define _PKCS7_DIGEST_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_DIGEST_free) +#define _PKCS7_DIGEST_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_DIGEST_it) +#define _PKCS7_DIGEST_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_DIGEST_new) +#define _PKCS7_ENCRYPT_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENCRYPT_free) +#define _PKCS7_ENCRYPT_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENCRYPT_it) +#define _PKCS7_ENCRYPT_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENCRYPT_new) +#define _PKCS7_ENC_CONTENT_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENC_CONTENT_free) +#define _PKCS7_ENC_CONTENT_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENC_CONTENT_it) +#define _PKCS7_ENC_CONTENT_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENC_CONTENT_new) +#define _PKCS7_ENVELOPE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENVELOPE_free) +#define _PKCS7_ENVELOPE_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENVELOPE_it) +#define _PKCS7_ENVELOPE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ENVELOPE_new) +#define _PKCS7_ISSUER_AND_SERIAL_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ISSUER_AND_SERIAL_free) +#define _PKCS7_ISSUER_AND_SERIAL_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ISSUER_AND_SERIAL_it) +#define _PKCS7_ISSUER_AND_SERIAL_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_ISSUER_AND_SERIAL_new) +#define _PKCS7_RECIP_INFO_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_free) +#define _PKCS7_RECIP_INFO_get0_alg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_get0_alg) +#define _PKCS7_RECIP_INFO_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_it) +#define _PKCS7_RECIP_INFO_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_new) +#define _PKCS7_RECIP_INFO_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_RECIP_INFO_set) +#define _PKCS7_SIGNED_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNED_free) +#define _PKCS7_SIGNED_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNED_it) +#define _PKCS7_SIGNED_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNED_new) +#define _PKCS7_SIGNER_INFO_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_free) +#define _PKCS7_SIGNER_INFO_get0_algs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_get0_algs) +#define _PKCS7_SIGNER_INFO_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_it) +#define _PKCS7_SIGNER_INFO_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_new) +#define _PKCS7_SIGNER_INFO_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGNER_INFO_set) +#define _PKCS7_SIGN_ENVELOPE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGN_ENVELOPE_free) +#define _PKCS7_SIGN_ENVELOPE_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGN_ENVELOPE_it) +#define _PKCS7_SIGN_ENVELOPE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_SIGN_ENVELOPE_new) +#define _PKCS7_add_certificate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_add_certificate) +#define _PKCS7_add_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_add_crl) +#define _PKCS7_add_recipient_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_add_recipient_info) +#define _PKCS7_add_signer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_add_signer) #define _PKCS7_bundle_CRLs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_bundle_CRLs) #define _PKCS7_bundle_certificates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_bundle_certificates) #define _PKCS7_bundle_raw_certificates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_bundle_raw_certificates) +#define _PKCS7_content_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_content_new) +#define _PKCS7_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_dup) #define _PKCS7_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_free) #define _PKCS7_get_CRLs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_CRLs) #define _PKCS7_get_PEM_CRLs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_PEM_CRLs) #define _PKCS7_get_PEM_certificates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_PEM_certificates) #define _PKCS7_get_certificates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_certificates) #define _PKCS7_get_raw_certificates BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_raw_certificates) +#define _PKCS7_get_signed_attribute BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_signed_attribute) +#define _PKCS7_get_signer_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_get_signer_info) +#define _PKCS7_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_it) +#define _PKCS7_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_new) +#define _PKCS7_set_cipher BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_set_cipher) +#define _PKCS7_set_content BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_set_content) +#define _PKCS7_set_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_set_type) #define _PKCS7_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_sign) #define _PKCS7_type_is_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_type_is_data) #define _PKCS7_type_is_digest BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PKCS7_type_is_digest) @@ -1715,12 +1969,6 @@ #define _POLICY_MAPPING_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, POLICY_MAPPING_free) #define _POLICY_MAPPING_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, POLICY_MAPPING_it) #define _POLICY_MAPPING_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, POLICY_MAPPING_new) -#define _PROXY_CERT_INFO_EXTENSION_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PROXY_CERT_INFO_EXTENSION_free) -#define _PROXY_CERT_INFO_EXTENSION_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PROXY_CERT_INFO_EXTENSION_it) -#define _PROXY_CERT_INFO_EXTENSION_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PROXY_CERT_INFO_EXTENSION_new) -#define _PROXY_POLICY_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PROXY_POLICY_free) -#define _PROXY_POLICY_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PROXY_POLICY_it) -#define _PROXY_POLICY_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, PROXY_POLICY_new) #define _RAND_OpenSSL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_OpenSSL) #define _RAND_SSLeay BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_SSLeay) #define _RAND_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_add) @@ -1728,18 +1976,22 @@ #define _RAND_bytes_with_additional_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_bytes_with_additional_data) #define _RAND_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_cleanup) #define _RAND_egd BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_egd) +#define _RAND_egd_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_egd_bytes) #define _RAND_enable_fork_unsafe_buffering BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_enable_fork_unsafe_buffering) #define _RAND_file_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_file_name) #define _RAND_get_rand_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_get_rand_method) #define _RAND_get_system_entropy_for_custom_prng BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_get_system_entropy_for_custom_prng) +#define _RAND_keep_random_devices_open BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_keep_random_devices_open) #define _RAND_load_entropy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_load_entropy) #define _RAND_load_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_load_file) #define _RAND_module_entropy_depleted BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_module_entropy_depleted) #define _RAND_poll BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_poll) +#define _RAND_priv_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_priv_bytes) #define _RAND_pseudo_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_pseudo_bytes) #define _RAND_seed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_seed) #define _RAND_set_rand_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_set_rand_method) #define _RAND_status BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_status) +#define _RAND_write_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RAND_write_file) #define _RC4 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RC4) #define _RC4_set_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RC4_set_key) #define _RIPEMD160 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RIPEMD160) @@ -1754,6 +2006,7 @@ #define _RSASSA_PSS_PARAMS_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSASSA_PSS_PARAMS_new) #define _RSASSA_PSS_parse_params BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSASSA_PSS_parse_params) #define _RSAZ_1024_mod_exp_avx2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSAZ_1024_mod_exp_avx2) +#define _RSAZ_mod_exp_avx512_x2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSAZ_mod_exp_avx512_x2) #define _RSA_ALGOR_IDENTIFIER_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_ALGOR_IDENTIFIER_free) #define _RSA_ALGOR_IDENTIFIER_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_ALGOR_IDENTIFIER_new) #define _RSA_INTEGER_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_INTEGER_free) @@ -1765,11 +2018,11 @@ #define _RSA_PSS_PARAMS_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_PSS_PARAMS_new) #define _RSA_add_pkcs1_prefix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_add_pkcs1_prefix) #define _RSA_bits BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_bits) +#define _RSA_blinding_off_temp_for_accp_compatibility BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_blinding_off_temp_for_accp_compatibility) #define _RSA_blinding_on BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_blinding_on) #define _RSA_check_fips BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_check_fips) #define _RSA_check_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_check_key) #define _RSA_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_decrypt) -#define _RSA_default_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_default_method) #define _RSA_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_encrypt) #define _RSA_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_flags) #define _RSA_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_free) @@ -1788,31 +2041,49 @@ #define _RSA_get0_p BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get0_p) #define _RSA_get0_pss_params BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get0_pss_params) #define _RSA_get0_q BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get0_q) +#define _RSA_get_default_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get_default_method) #define _RSA_get_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get_ex_data) #define _RSA_get_ex_new_index BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get_ex_new_index) +#define _RSA_get_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_get_method) #define _RSA_is_opaque BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_is_opaque) #define _RSA_marshal_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_marshal_private_key) #define _RSA_marshal_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_marshal_public_key) +#define _RSA_meth_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_free) +#define _RSA_meth_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_new) +#define _RSA_meth_set0_app_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set0_app_data) +#define _RSA_meth_set_finish BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_finish) +#define _RSA_meth_set_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_init) +#define _RSA_meth_set_priv_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_priv_dec) +#define _RSA_meth_set_priv_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_priv_enc) +#define _RSA_meth_set_pub_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_pub_dec) +#define _RSA_meth_set_pub_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_pub_enc) +#define _RSA_meth_set_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_meth_set_sign) #define _RSA_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new) #define _RSA_new_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_method) +#define _RSA_new_method_no_e BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_method_no_e) +#define _RSA_new_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_private_key) +#define _RSA_new_private_key_large_e BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_private_key_large_e) +#define _RSA_new_private_key_no_crt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_private_key_no_crt) +#define _RSA_new_private_key_no_e BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_private_key_no_e) +#define _RSA_new_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_public_key) +#define _RSA_new_public_key_large_e BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_new_public_key_large_e) #define _RSA_padding_add_PKCS1_OAEP BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_OAEP) #define _RSA_padding_add_PKCS1_OAEP_mgf1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_OAEP_mgf1) #define _RSA_padding_add_PKCS1_PSS BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_PSS) #define _RSA_padding_add_PKCS1_PSS_mgf1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_PSS_mgf1) #define _RSA_padding_add_PKCS1_type_1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_type_1) -#define _RSA_padding_add_PKCS1_type_2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_PKCS1_type_2) #define _RSA_padding_add_none BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_add_none) #define _RSA_padding_check_PKCS1_OAEP_mgf1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_check_PKCS1_OAEP_mgf1) #define _RSA_padding_check_PKCS1_type_1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_check_PKCS1_type_1) -#define _RSA_padding_check_PKCS1_type_2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_padding_check_PKCS1_type_2) #define _RSA_parse_private_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_parse_private_key) #define _RSA_parse_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_parse_public_key) +#define _RSA_pkey_ctx_ctrl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_pkey_ctx_ctrl) #define _RSA_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_print) +#define _RSA_print_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_print_fp) #define _RSA_private_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_private_decrypt) #define _RSA_private_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_private_encrypt) #define _RSA_private_key_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_private_key_from_bytes) #define _RSA_private_key_to_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_private_key_to_bytes) -#define _RSA_private_transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_private_transform) #define _RSA_public_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_public_decrypt) #define _RSA_public_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_public_encrypt) #define _RSA_public_key_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_public_key_from_bytes) @@ -1821,13 +2092,14 @@ #define _RSA_set0_factors BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_set0_factors) #define _RSA_set0_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_set0_key) #define _RSA_set_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_set_ex_data) +#define _RSA_set_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_set_flags) +#define _RSA_set_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_set_method) #define _RSA_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_sign) #define _RSA_sign_pss_mgf1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_sign_pss_mgf1) #define _RSA_sign_raw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_sign_raw) #define _RSA_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_size) #define _RSA_test_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_test_flags) #define _RSA_up_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_up_ref) -#define _RSA_validate_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_validate_key) #define _RSA_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_verify) #define _RSA_verify_PKCS1_PSS BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_verify_PKCS1_PSS) #define _RSA_verify_PKCS1_PSS_mgf1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, RSA_verify_PKCS1_PSS_mgf1) @@ -1836,22 +2108,30 @@ #define _SHA1 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1) #define _SHA1_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1_Final) #define _SHA1_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1_Init) +#define _SHA1_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1_Init_from_state) #define _SHA1_Transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1_Transform) #define _SHA1_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1_Update) +#define _SHA1_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA1_get_state) #define _SHA224 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA224) #define _SHA224_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA224_Final) #define _SHA224_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA224_Init) +#define _SHA224_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA224_Init_from_state) #define _SHA224_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA224_Update) +#define _SHA224_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA224_get_state) #define _SHA256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256) #define _SHA256_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_Final) #define _SHA256_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_Init) +#define _SHA256_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_Init_from_state) #define _SHA256_Transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_Transform) #define _SHA256_TransformBlocks BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_TransformBlocks) #define _SHA256_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_Update) +#define _SHA256_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA256_get_state) #define _SHA384 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA384) #define _SHA384_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA384_Final) #define _SHA384_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA384_Init) +#define _SHA384_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA384_Init_from_state) #define _SHA384_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA384_Update) +#define _SHA384_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA384_get_state) #define _SHA3_224 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA3_224) #define _SHA3_256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA3_256) #define _SHA3_384 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA3_384) @@ -1867,16 +2147,28 @@ #define _SHA3_Squeeze_hw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA3_Squeeze_hw) #define _SHA3_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA3_Update) #define _SHA512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512) +#define _SHA512_224 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_224) +#define _SHA512_224_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_224_Final) +#define _SHA512_224_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_224_Init) +#define _SHA512_224_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_224_Init_from_state) +#define _SHA512_224_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_224_Update) +#define _SHA512_224_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_224_get_state) #define _SHA512_256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_256) #define _SHA512_256_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_256_Final) #define _SHA512_256_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_256_Init) +#define _SHA512_256_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_256_Init_from_state) #define _SHA512_256_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_256_Update) +#define _SHA512_256_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_256_get_state) #define _SHA512_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_Final) #define _SHA512_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_Init) +#define _SHA512_Init_from_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_Init_from_state) #define _SHA512_Transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_Transform) #define _SHA512_Update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_Update) +#define _SHA512_get_state BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHA512_get_state) #define _SHAKE128 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHAKE128) #define _SHAKE256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHAKE256) +#define _SHAKE_Final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHAKE_Final) +#define _SHAKE_Init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SHAKE_Init) #define _SIPHASH_24 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SIPHASH_24) #define _SPAKE2_CTX_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SPAKE2_CTX_free) #define _SPAKE2_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SPAKE2_CTX_new) @@ -1884,6 +2176,10 @@ #define _SPAKE2_process_msg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SPAKE2_process_msg) #define _SSHKDF BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSHKDF) #define _SSHKDF_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSHKDF_verify_service_indicator) +#define _SSKDF_digest BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSKDF_digest) +#define _SSKDF_digest_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSKDF_digest_verify_service_indicator) +#define _SSKDF_hmac BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSKDF_hmac) +#define _SSKDF_hmac_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSKDF_hmac_verify_service_indicator) #define _SSLeay BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSLeay) #define _SSLeay_version BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, SSLeay_version) #define _TLSKDF_verify_service_indicator BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TLSKDF_verify_service_indicator) @@ -1902,7 +2198,6 @@ #define _TRUST_TOKEN_ISSUER_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_new) #define _TRUST_TOKEN_ISSUER_redeem BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_redeem) #define _TRUST_TOKEN_ISSUER_redeem_over_message BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_redeem_over_message) -#define _TRUST_TOKEN_ISSUER_redeem_raw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_redeem_raw) #define _TRUST_TOKEN_ISSUER_set_metadata_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_set_metadata_key) #define _TRUST_TOKEN_ISSUER_set_srr_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_ISSUER_set_srr_key) #define _TRUST_TOKEN_PRETOKEN_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_PRETOKEN_free) @@ -1914,6 +2209,8 @@ #define _TRUST_TOKEN_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_free) #define _TRUST_TOKEN_generate_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_generate_key) #define _TRUST_TOKEN_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_new) +#define _TRUST_TOKEN_pst_v1_pmb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_pst_v1_pmb) +#define _TRUST_TOKEN_pst_v1_voprf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, TRUST_TOKEN_pst_v1_voprf) #define _USERNOTICE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, USERNOTICE_free) #define _USERNOTICE_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, USERNOTICE_it) #define _USERNOTICE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, USERNOTICE_new) @@ -1926,10 +2223,9 @@ #define _X509V3_EXT_REQ_add_nconf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_REQ_add_nconf) #define _X509V3_EXT_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_add) #define _X509V3_EXT_add_alias BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_add_alias) -#define _X509V3_EXT_add_list BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_add_list) #define _X509V3_EXT_add_nconf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_add_nconf) #define _X509V3_EXT_add_nconf_sk BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_add_nconf_sk) -#define _X509V3_EXT_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_cleanup) +#define _X509V3_EXT_conf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_conf) #define _X509V3_EXT_conf_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_conf_nid) #define _X509V3_EXT_d2i BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_d2i) #define _X509V3_EXT_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_free) @@ -1940,13 +2236,13 @@ #define _X509V3_EXT_nconf_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_nconf_nid) #define _X509V3_EXT_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_print) #define _X509V3_EXT_print_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_print_fp) -#define _X509V3_EXT_val_prn BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_EXT_val_prn) #define _X509V3_NAME_from_section BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_NAME_from_section) #define _X509V3_add1_i2d BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_add1_i2d) #define _X509V3_add_standard_extensions BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_add_standard_extensions) #define _X509V3_add_value BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_add_value) #define _X509V3_add_value_bool BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_add_value_bool) #define _X509V3_add_value_int BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_add_value_int) +#define _X509V3_bool_from_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_bool_from_string) #define _X509V3_conf_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_conf_free) #define _X509V3_extensions_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_extensions_print) #define _X509V3_get_d2i BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509V3_get_d2i) @@ -1993,7 +2289,6 @@ #define _X509_CRL_add_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_add_ext) #define _X509_CRL_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_cmp) #define _X509_CRL_delete_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_delete_ext) -#define _X509_CRL_diff BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_diff) #define _X509_CRL_digest BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_digest) #define _X509_CRL_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_dup) #define _X509_CRL_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_free) @@ -2015,6 +2310,7 @@ #define _X509_CRL_get_nextUpdate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_get_nextUpdate) #define _X509_CRL_get_signature_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_get_signature_nid) #define _X509_CRL_get_version BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_get_version) +#define _X509_CRL_http_nbio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_http_nbio) #define _X509_CRL_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_it) #define _X509_CRL_match BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_match) #define _X509_CRL_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_CRL_new) @@ -2045,15 +2341,12 @@ #define _X509_EXTENSION_set_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_EXTENSION_set_data) #define _X509_EXTENSION_set_object BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_EXTENSION_set_object) #define _X509_INFO_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_INFO_free) -#define _X509_INFO_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_INFO_new) -#define _X509_LOOKUP_by_subject BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_by_subject) +#define _X509_LOOKUP_add_dir BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_add_dir) #define _X509_LOOKUP_ctrl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_ctrl) #define _X509_LOOKUP_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_file) #define _X509_LOOKUP_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_free) #define _X509_LOOKUP_hash_dir BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_hash_dir) -#define _X509_LOOKUP_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_init) -#define _X509_LOOKUP_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_new) -#define _X509_LOOKUP_shutdown BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_shutdown) +#define _X509_LOOKUP_load_file BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_LOOKUP_load_file) #define _X509_NAME_ENTRIES_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_NAME_ENTRIES_it) #define _X509_NAME_ENTRY_create_by_NID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_NAME_ENTRY_create_by_NID) #define _X509_NAME_ENTRY_create_by_OBJ BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_NAME_ENTRY_create_by_OBJ) @@ -2093,25 +2386,23 @@ #define _X509_NAME_print_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_NAME_print_ex) #define _X509_NAME_print_ex_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_NAME_print_ex_fp) #define _X509_NAME_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_NAME_set) +#define _X509_OBJECT_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_free) #define _X509_OBJECT_free_contents BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_free_contents) #define _X509_OBJECT_get0_X509 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_get0_X509) +#define _X509_OBJECT_get0_X509_CRL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_get0_X509_CRL) #define _X509_OBJECT_get_type BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_get_type) -#define _X509_OBJECT_idx_by_subject BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_idx_by_subject) -#define _X509_OBJECT_retrieve_by_subject BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_retrieve_by_subject) -#define _X509_OBJECT_retrieve_match BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_retrieve_match) -#define _X509_OBJECT_up_ref_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_up_ref_count) -#define _X509_PKEY_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PKEY_free) -#define _X509_PKEY_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PKEY_new) +#define _X509_OBJECT_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_new) +#define _X509_OBJECT_set1_X509 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_set1_X509) +#define _X509_OBJECT_set1_X509_CRL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_OBJECT_set1_X509_CRL) #define _X509_PUBKEY_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_free) #define _X509_PUBKEY_get BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_get) +#define _X509_PUBKEY_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_get0) #define _X509_PUBKEY_get0_param BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_get0_param) #define _X509_PUBKEY_get0_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_get0_public_key) #define _X509_PUBKEY_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_it) #define _X509_PUBKEY_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_new) #define _X509_PUBKEY_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_set) #define _X509_PUBKEY_set0_param BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PUBKEY_set0_param) -#define _X509_PURPOSE_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PURPOSE_add) -#define _X509_PURPOSE_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PURPOSE_cleanup) #define _X509_PURPOSE_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PURPOSE_get0) #define _X509_PURPOSE_get0_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PURPOSE_get0_name) #define _X509_PURPOSE_get0_sname BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_PURPOSE_get0_sname) @@ -2136,6 +2427,7 @@ #define _X509_REQ_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_dup) #define _X509_REQ_extension_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_extension_nid) #define _X509_REQ_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_free) +#define _X509_REQ_get0_pubkey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_get0_pubkey) #define _X509_REQ_get0_signature BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_get0_signature) #define _X509_REQ_get1_email BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_get1_email) #define _X509_REQ_get_attr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_REQ_get_attr) @@ -2193,8 +2485,11 @@ #define _X509_STORE_CTX_get0_parent_ctx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get0_parent_ctx) #define _X509_STORE_CTX_get0_store BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get0_store) #define _X509_STORE_CTX_get0_untrusted BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get0_untrusted) +#define _X509_STORE_CTX_get1_certs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get1_certs) #define _X509_STORE_CTX_get1_chain BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get1_chain) +#define _X509_STORE_CTX_get1_crls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get1_crls) #define _X509_STORE_CTX_get1_issuer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get1_issuer) +#define _X509_STORE_CTX_get_by_subject BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get_by_subject) #define _X509_STORE_CTX_get_chain BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get_chain) #define _X509_STORE_CTX_get_current_cert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get_current_cert) #define _X509_STORE_CTX_get_error BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get_error) @@ -2203,7 +2498,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) @@ -2220,49 +2514,29 @@ #define _X509_STORE_CTX_set_trust BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_set_trust) #define _X509_STORE_CTX_set_verify_cb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_set_verify_cb) #define _X509_STORE_CTX_trusted_stack BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_trusted_stack) -#define _X509_STORE_CTX_zero BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_zero) #define _X509_STORE_add_cert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_add_cert) #define _X509_STORE_add_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_add_crl) #define _X509_STORE_add_lookup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_add_lookup) #define _X509_STORE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_free) #define _X509_STORE_get0_objects BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get0_objects) #define _X509_STORE_get0_param BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get0_param) -#define _X509_STORE_get1_certs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get1_certs) -#define _X509_STORE_get1_crls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get1_crls) -#define _X509_STORE_get_by_subject BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_by_subject) -#define _X509_STORE_get_cert_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_cert_crl) -#define _X509_STORE_get_check_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_check_crl) -#define _X509_STORE_get_check_issued BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_check_issued) -#define _X509_STORE_get_check_revocation BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_check_revocation) -#define _X509_STORE_get_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_cleanup) -#define _X509_STORE_get_get_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_get_crl) -#define _X509_STORE_get_get_issuer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_get_issuer) -#define _X509_STORE_get_lookup_certs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_lookup_certs) -#define _X509_STORE_get_lookup_crls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_lookup_crls) -#define _X509_STORE_get_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_verify) -#define _X509_STORE_get_verify_cb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_verify_cb) +#define _X509_STORE_get_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_ex_data) +#define _X509_STORE_get_ex_new_index BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_get_ex_new_index) #define _X509_STORE_load_locations BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_load_locations) +#define _X509_STORE_lock BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_lock) #define _X509_STORE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_new) #define _X509_STORE_set1_param BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set1_param) -#define _X509_STORE_set_cert_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_cert_crl) #define _X509_STORE_set_check_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_check_crl) -#define _X509_STORE_set_check_issued BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_check_issued) -#define _X509_STORE_set_check_revocation BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_check_revocation) -#define _X509_STORE_set_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_cleanup) #define _X509_STORE_set_default_paths BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_default_paths) #define _X509_STORE_set_depth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_depth) +#define _X509_STORE_set_ex_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_ex_data) #define _X509_STORE_set_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_flags) #define _X509_STORE_set_get_crl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_get_crl) -#define _X509_STORE_set_get_issuer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_get_issuer) -#define _X509_STORE_set_lookup_certs BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_lookup_certs) -#define _X509_STORE_set_lookup_crls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_lookup_crls) #define _X509_STORE_set_purpose BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_purpose) #define _X509_STORE_set_trust BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_trust) -#define _X509_STORE_set_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_verify) #define _X509_STORE_set_verify_cb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_set_verify_cb) +#define _X509_STORE_unlock BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_unlock) #define _X509_STORE_up_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_up_ref) -#define _X509_TRUST_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_TRUST_add) -#define _X509_TRUST_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_TRUST_cleanup) #define _X509_TRUST_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_TRUST_get0) #define _X509_TRUST_get0_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_TRUST_get0_name) #define _X509_TRUST_get_by_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_TRUST_get_by_id) @@ -2274,14 +2548,9 @@ #define _X509_VAL_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VAL_it) #define _X509_VAL_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VAL_new) #define _X509_VERIFY_PARAM_add0_policy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_add0_policy) -#define _X509_VERIFY_PARAM_add0_table BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_add0_table) #define _X509_VERIFY_PARAM_add1_host BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_add1_host) #define _X509_VERIFY_PARAM_clear_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_clear_flags) #define _X509_VERIFY_PARAM_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_free) -#define _X509_VERIFY_PARAM_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get0) -#define _X509_VERIFY_PARAM_get0_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get0_name) -#define _X509_VERIFY_PARAM_get0_peername BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get0_peername) -#define _X509_VERIFY_PARAM_get_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get_count) #define _X509_VERIFY_PARAM_get_depth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get_depth) #define _X509_VERIFY_PARAM_get_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_get_flags) #define _X509_VERIFY_PARAM_inherit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_inherit) @@ -2292,7 +2561,6 @@ #define _X509_VERIFY_PARAM_set1_host BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_host) #define _X509_VERIFY_PARAM_set1_ip BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_ip) #define _X509_VERIFY_PARAM_set1_ip_asc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_ip_asc) -#define _X509_VERIFY_PARAM_set1_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_name) #define _X509_VERIFY_PARAM_set1_policies BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set1_policies) #define _X509_VERIFY_PARAM_set_depth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_depth) #define _X509_VERIFY_PARAM_set_flags BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_flags) @@ -2301,7 +2569,6 @@ #define _X509_VERIFY_PARAM_set_time BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_time) #define _X509_VERIFY_PARAM_set_time_posix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_time_posix) #define _X509_VERIFY_PARAM_set_trust BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_set_trust) -#define _X509_VERIFY_PARAM_table_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_VERIFY_PARAM_table_cleanup) #define _X509_add1_ext_i2d BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_add1_ext_i2d) #define _X509_add1_reject_object BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_add1_reject_object) #define _X509_add1_trust_object BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_add1_trust_object) @@ -2336,6 +2603,7 @@ #define _X509_get0_extensions BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_extensions) #define _X509_get0_notAfter BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_notAfter) #define _X509_get0_notBefore BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_notBefore) +#define _X509_get0_pubkey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_pubkey) #define _X509_get0_pubkey_bitstr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_pubkey_bitstr) #define _X509_get0_serialNumber BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_serialNumber) #define _X509_get0_signature BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get0_signature) @@ -2368,6 +2636,7 @@ #define _X509_get_pathlen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_pathlen) #define _X509_get_pubkey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_pubkey) #define _X509_get_serialNumber BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_serialNumber) +#define _X509_get_signature_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_signature_info) #define _X509_get_signature_nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_signature_nid) #define _X509_get_subject_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_subject_name) #define _X509_get_version BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_get_version) @@ -2419,15 +2688,6 @@ #define _X509_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_verify) #define _X509_verify_cert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_verify_cert) #define _X509_verify_cert_error_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_verify_cert_error_string) -#define _X509at_add1_attr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_add1_attr) -#define _X509at_add1_attr_by_NID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_add1_attr_by_NID) -#define _X509at_add1_attr_by_OBJ BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_add1_attr_by_OBJ) -#define _X509at_add1_attr_by_txt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_add1_attr_by_txt) -#define _X509at_delete_attr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_delete_attr) -#define _X509at_get_attr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_get_attr) -#define _X509at_get_attr_by_NID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_get_attr_by_NID) -#define _X509at_get_attr_by_OBJ BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_get_attr_by_OBJ) -#define _X509at_get_attr_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509at_get_attr_count) #define _X509v3_add_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509v3_add_ext) #define _X509v3_delete_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509v3_delete_ext) #define _X509v3_get_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509v3_get_ext) @@ -2435,7 +2695,6 @@ #define _X509v3_get_ext_by_OBJ BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509v3_get_ext_by_OBJ) #define _X509v3_get_ext_by_critical BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509v3_get_ext_by_critical) #define _X509v3_get_ext_count BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509v3_get_ext_count) -#define _a2i_GENERAL_NAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, a2i_GENERAL_NAME) #define _a2i_IPADDRESS BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, a2i_IPADDRESS) #define _a2i_IPADDRESS_NC BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, a2i_IPADDRESS_NC) #define _abi_test_bad_unwind_temporary BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, abi_test_bad_unwind_temporary) @@ -2574,7 +2833,9 @@ #define _aes_hw_set_encrypt_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_hw_set_encrypt_key) #define _aes_hw_xts_cipher BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_hw_xts_cipher) #define _aes_hw_xts_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_hw_xts_decrypt) +#define _aes_hw_xts_decrypt_avx512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_hw_xts_decrypt_avx512) #define _aes_hw_xts_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_hw_xts_encrypt) +#define _aes_hw_xts_encrypt_avx512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_hw_xts_encrypt_avx512) #define _aes_nohw_cbc_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_nohw_cbc_encrypt) #define _aes_nohw_ctr32_encrypt_blocks BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_nohw_ctr32_encrypt_blocks) #define _aes_nohw_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aes_nohw_decrypt) @@ -2595,6 +2856,11 @@ #define _aesv8_gcm_8x_enc_128 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aesv8_gcm_8x_enc_128) #define _aesv8_gcm_8x_enc_192 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aesv8_gcm_8x_enc_192) #define _aesv8_gcm_8x_enc_256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, aesv8_gcm_8x_enc_256) +#define _armv8_disable_dit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, armv8_disable_dit) +#define _armv8_enable_dit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, armv8_enable_dit) +#define _armv8_get_dit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, armv8_get_dit) +#define _armv8_restore_dit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, armv8_restore_dit) +#define _armv8_set_dit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, armv8_set_dit) #define _asn1_bit_string_length BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_bit_string_length) #define _asn1_do_adb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_do_adb) #define _asn1_enc_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_enc_free) @@ -2602,6 +2868,8 @@ #define _asn1_enc_restore BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_enc_restore) #define _asn1_enc_save BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_enc_save) #define _asn1_encoding_clear BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_encoding_clear) +#define _asn1_evp_pkey_methods BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_evp_pkey_methods) +#define _asn1_evp_pkey_methods_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_evp_pkey_methods_size) #define _asn1_generalizedtime_to_tm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_generalizedtime_to_tm) #define _asn1_get_choice_selector BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_get_choice_selector) #define _asn1_get_field_ptr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_get_field_ptr) @@ -2611,18 +2879,23 @@ #define _asn1_refcount_dec_and_test_zero BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_refcount_dec_and_test_zero) #define _asn1_refcount_set_one BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_refcount_set_one) #define _asn1_set_choice_selector BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_set_choice_selector) +#define _asn1_type_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_type_cleanup) +#define _asn1_type_set0_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_type_set0_string) #define _asn1_type_value_as_pointer BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_type_value_as_pointer) #define _asn1_utctime_to_tm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, asn1_utctime_to_tm) #define _awslc_api_version_num BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, awslc_api_version_num) #define _awslc_version_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, awslc_version_string) #define _beeu_mod_inverse_vartime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, beeu_mod_inverse_vartime) #define _bio_clear_socket_error BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_clear_socket_error) -#define _bio_fd_should_retry BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_fd_should_retry) +#define _bio_errno_should_retry BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_errno_should_retry) #define _bio_ip_and_port_to_socket_and_addr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_ip_and_port_to_socket_and_addr) #define _bio_sock_error BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_sock_error) #define _bio_socket_nbio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_socket_nbio) +#define _bio_socket_should_retry BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bio_socket_should_retry) #define _bn_abs_sub_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_abs_sub_consttime) #define _bn_add_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_add_words) +#define _bn_assert_fits_in_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_assert_fits_in_bytes) +#define _bn_big_endian_to_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_big_endian_to_words) #define _bn_copy_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_copy_words) #define _bn_div_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_div_consttime) #define _bn_expand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_expand) @@ -2636,12 +2909,12 @@ #define _bn_lcm_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_lcm_consttime) #define _bn_less_than_montgomery_R BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_less_than_montgomery_R) #define _bn_less_than_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_less_than_words) +#define _bn_little_endian_to_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_little_endian_to_words) #define _bn_miller_rabin_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_miller_rabin_init) #define _bn_miller_rabin_iteration BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_miller_rabin_iteration) #define _bn_minimal_width BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_minimal_width) #define _bn_mod_add_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_add_consttime) #define _bn_mod_add_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_add_words) -#define _bn_mod_exp_base_2_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_exp_base_2_consttime) #define _bn_mod_exp_mont_small BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_exp_mont_small) #define _bn_mod_inverse0_prime_mont_small BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_inverse0_prime_mont_small) #define _bn_mod_inverse_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_inverse_consttime) @@ -2653,15 +2926,21 @@ #define _bn_mod_sub_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_sub_consttime) #define _bn_mod_sub_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_sub_words) #define _bn_mod_u16_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mod_u16_consttime) +#define _bn_mont_ctx_cleanup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mont_ctx_cleanup) +#define _bn_mont_ctx_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mont_ctx_init) +#define _bn_mont_ctx_set_RR_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mont_ctx_set_RR_consttime) #define _bn_mont_n0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mont_n0) +#define _bn_mul4x_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul4x_mont) #define _bn_mul_add_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_add_words) #define _bn_mul_comba4 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_comba4) #define _bn_mul_comba8 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_comba8) #define _bn_mul_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_consttime) #define _bn_mul_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_mont) #define _bn_mul_mont_gather5 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_mont_gather5) +#define _bn_mul_mont_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_mont_nohw) #define _bn_mul_small BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_small) #define _bn_mul_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mul_words) +#define _bn_mulx4x_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_mulx4x_mont) #define _bn_odd_number_is_obviously_composite BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_odd_number_is_obviously_composite) #define _bn_one_to_montgomery BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_one_to_montgomery) #define _bn_power5 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_power5) @@ -2679,6 +2958,7 @@ #define _bn_set_static_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_set_static_words) #define _bn_set_words BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_set_words) #define _bn_sqr8x_internal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_sqr8x_internal) +#define _bn_sqr8x_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_sqr8x_mont) #define _bn_sqr_comba4 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_sqr_comba4) #define _bn_sqr_comba8 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_sqr_comba8) #define _bn_sqr_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_sqr_consttime) @@ -2690,8 +2970,12 @@ #define _bn_uadd_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_uadd_consttime) #define _bn_usub_consttime BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_usub_consttime) #define _bn_wexpand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_wexpand) +#define _bn_words_to_big_endian BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_words_to_big_endian) +#define _bn_words_to_little_endian BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, bn_words_to_little_endian) #define _boringssl_ensure_ecc_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_ensure_ecc_self_test) +#define _boringssl_ensure_eddsa_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_ensure_eddsa_self_test) #define _boringssl_ensure_ffdh_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_ensure_ffdh_self_test) +#define _boringssl_ensure_ml_kem_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_ensure_ml_kem_self_test) #define _boringssl_ensure_rsa_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_ensure_rsa_self_test) #define _boringssl_self_test_hmac_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_self_test_hmac_sha256) #define _boringssl_self_test_sha256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, boringssl_self_test_sha256) @@ -2757,6 +3041,8 @@ #define _d2i_DSA_SIG BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_DSA_SIG) #define _d2i_DSAparams BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_DSAparams) #define _d2i_ECDSA_SIG BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_ECDSA_SIG) +#define _d2i_ECPKParameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_ECPKParameters) +#define _d2i_ECPKParameters_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_ECPKParameters_bio) #define _d2i_ECParameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_ECParameters) #define _d2i_ECPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_ECPrivateKey) #define _d2i_ECPrivateKey_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_ECPrivateKey_bio) @@ -2764,7 +3050,6 @@ #define _d2i_EC_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_EC_PUBKEY) #define _d2i_EC_PUBKEY_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_EC_PUBKEY_bio) #define _d2i_EC_PUBKEY_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_EC_PUBKEY_fp) -#define _d2i_EDIPARTYNAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_EDIPARTYNAME) #define _d2i_EXTENDED_KEY_USAGE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_EXTENDED_KEY_USAGE) #define _d2i_GENERAL_NAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_GENERAL_NAME) #define _d2i_GENERAL_NAMES BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_GENERAL_NAMES) @@ -2774,18 +3059,30 @@ #define _d2i_NOTICEREF BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_NOTICEREF) #define _d2i_OCSP_BASICRESP BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_BASICRESP) #define _d2i_OCSP_CERTID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_CERTID) -#define _d2i_OCSP_CERTSTATUS BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_CERTSTATUS) +#define _d2i_OCSP_ONEREQ BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_ONEREQ) +#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_RESPID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_RESPID) #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_OTHERNAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OTHERNAME) #define _d2i_PKCS12 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS12) #define _d2i_PKCS12_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS12_bio) #define _d2i_PKCS12_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS12_fp) #define _d2i_PKCS7 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7) +#define _d2i_PKCS7_DIGEST BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_DIGEST) +#define _d2i_PKCS7_ENCRYPT BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_ENCRYPT) +#define _d2i_PKCS7_ENC_CONTENT BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_ENC_CONTENT) +#define _d2i_PKCS7_ENVELOPE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_ENVELOPE) +#define _d2i_PKCS7_ISSUER_AND_SERIAL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_ISSUER_AND_SERIAL) +#define _d2i_PKCS7_RECIP_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_RECIP_INFO) +#define _d2i_PKCS7_SIGNED BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_SIGNED) +#define _d2i_PKCS7_SIGNER_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_SIGNER_INFO) +#define _d2i_PKCS7_SIGN_ENVELOPE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_SIGN_ENVELOPE) #define _d2i_PKCS7_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS7_bio) #define _d2i_PKCS8PrivateKey_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS8PrivateKey_bio) #define _d2i_PKCS8PrivateKey_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS8PrivateKey_fp) @@ -2796,8 +3093,6 @@ #define _d2i_PKCS8_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS8_fp) #define _d2i_POLICYINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_POLICYINFO) #define _d2i_POLICYQUALINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_POLICYQUALINFO) -#define _d2i_PROXY_CERT_INFO_EXTENSION BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PROXY_CERT_INFO_EXTENSION) -#define _d2i_PROXY_POLICY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PROXY_POLICY) #define _d2i_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PUBKEY) #define _d2i_PUBKEY_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PUBKEY_bio) #define _d2i_PUBKEY_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PUBKEY_fp) @@ -2840,18 +3135,20 @@ #define _d2i_X509_VAL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_X509_VAL) #define _d2i_X509_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_X509_bio) #define _d2i_X509_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_X509_fp) +#define _dh_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dh_asn1_meth) +#define _dh_check_params_fast BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dh_check_params_fast) #define _dh_compute_key_padded_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dh_compute_key_padded_no_self_test) +#define _dh_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dh_pkey_meth) #define _dsa_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dsa_asn1_meth) -#define _dsa_check_parameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dsa_check_parameters) +#define _dsa_check_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, dsa_check_key) #define _ec_GFp_mont_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_add) #define _ec_GFp_mont_dbl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_dbl) +#define _ec_GFp_mont_felem_exp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_felem_exp) #define _ec_GFp_mont_felem_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_felem_from_bytes) #define _ec_GFp_mont_felem_mul BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_felem_mul) +#define _ec_GFp_mont_felem_reduce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_felem_reduce) #define _ec_GFp_mont_felem_sqr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_felem_sqr) #define _ec_GFp_mont_felem_to_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_felem_to_bytes) -#define _ec_GFp_mont_group_finish BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_group_finish) -#define _ec_GFp_mont_group_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_group_init) -#define _ec_GFp_mont_group_set_curve BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_group_set_curve) #define _ec_GFp_mont_init_precomp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_init_precomp) #define _ec_GFp_mont_mul BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_mul) #define _ec_GFp_mont_mul_base BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_mont_mul_base) @@ -2862,9 +3159,7 @@ #define _ec_GFp_simple_cmp_x_coordinate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_cmp_x_coordinate) #define _ec_GFp_simple_felem_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_felem_from_bytes) #define _ec_GFp_simple_felem_to_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_felem_to_bytes) -#define _ec_GFp_simple_group_finish BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_group_finish) #define _ec_GFp_simple_group_get_curve BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_group_get_curve) -#define _ec_GFp_simple_group_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_group_init) #define _ec_GFp_simple_group_set_curve BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_group_set_curve) #define _ec_GFp_simple_invert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_invert) #define _ec_GFp_simple_is_at_infinity BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_GFp_simple_is_at_infinity) @@ -2886,18 +3181,24 @@ #define _ec_felem_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_from_bytes) #define _ec_felem_neg BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_neg) #define _ec_felem_non_zero_mask BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_non_zero_mask) +#define _ec_felem_one BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_one) #define _ec_felem_select BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_select) #define _ec_felem_sub BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_sub) #define _ec_felem_to_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_to_bignum) #define _ec_felem_to_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_felem_to_bytes) #define _ec_get_x_coordinate_as_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_get_x_coordinate_as_bytes) #define _ec_get_x_coordinate_as_scalar BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_get_x_coordinate_as_scalar) -#define _ec_group_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_group_new) +#define _ec_hash_to_curve_p256_xmd_sha256_sswu BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_hash_to_curve_p256_xmd_sha256_sswu) +#define _ec_hash_to_curve_p384_xmd_sha384_sswu BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_hash_to_curve_p384_xmd_sha384_sswu) #define _ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_hash_to_curve_p384_xmd_sha512_sswu_draft07) +#define _ec_hash_to_scalar_p384_xmd_sha384 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_hash_to_scalar_p384_xmd_sha384) #define _ec_hash_to_scalar_p384_xmd_sha512_draft07 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_hash_to_scalar_p384_xmd_sha512_draft07) #define _ec_init_precomp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_init_precomp) #define _ec_jacobian_to_affine BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_jacobian_to_affine) #define _ec_jacobian_to_affine_batch BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_jacobian_to_affine_batch) +#define _ec_nistp_point_add BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_nistp_point_add) +#define _ec_nistp_point_double BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_nistp_point_double) +#define _ec_nistp_scalar_mul BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_nistp_scalar_mul) #define _ec_point_byte_len BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_point_byte_len) #define _ec_point_from_uncompressed BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_point_from_uncompressed) #define _ec_point_mul_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ec_point_mul_no_self_test) @@ -2949,7 +3250,19 @@ #define _ecp_nistz256_sqr_mont BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ecp_nistz256_sqr_mont) #define _ecp_nistz256_sub BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ecp_nistz256_sub) #define _ed25519_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_asn1_meth) -#define _ed25519_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_pkey_meth) +#define _ed25519_check_public_key_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_check_public_key_nohw) +#define _ed25519_check_public_key_s2n_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_check_public_key_s2n_bignum) +#define _ed25519_public_key_from_hashed_seed_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_public_key_from_hashed_seed_nohw) +#define _ed25519_public_key_from_hashed_seed_s2n_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_public_key_from_hashed_seed_s2n_bignum) +#define _ed25519_sha512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_sha512) +#define _ed25519_sign_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_sign_nohw) +#define _ed25519_sign_s2n_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_sign_s2n_bignum) +#define _ed25519_verify_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_verify_nohw) +#define _ed25519_verify_s2n_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ed25519_verify_s2n_bignum) +#define _evp_pkey_set_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, evp_pkey_set_method) +#define _extract_multiplier_2x20_win5 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, extract_multiplier_2x20_win5) +#define _extract_multiplier_2x30_win5 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, extract_multiplier_2x30_win5) +#define _extract_multiplier_2x40_win5 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, extract_multiplier_2x40_win5) #define _gcm_ghash_avx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, gcm_ghash_avx) #define _gcm_ghash_avx512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, gcm_ghash_avx512) #define _gcm_ghash_clmul BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, gcm_ghash_clmul) @@ -2972,7 +3285,11 @@ #define _gcm_init_ssse3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, gcm_init_ssse3) #define _gcm_init_v8 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, gcm_init_v8) #define _gcm_setiv_avx512 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, gcm_setiv_avx512) -#define _i2a_ACCESS_DESCRIPTION BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2a_ACCESS_DESCRIPTION) +#define _get_legacy_kem_kyber1024_r3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, get_legacy_kem_kyber1024_r3) +#define _get_legacy_kem_kyber512_r3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, get_legacy_kem_kyber512_r3) +#define _get_legacy_kem_kyber768_r3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, get_legacy_kem_kyber768_r3) +#define _handle_cpu_env BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, handle_cpu_env) +#define _hmac_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, hmac_asn1_meth) #define _i2a_ASN1_ENUMERATED BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2a_ASN1_ENUMERATED) #define _i2a_ASN1_INTEGER BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2a_ASN1_INTEGER) #define _i2a_ASN1_OBJECT BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2a_ASN1_OBJECT) @@ -3023,6 +3340,8 @@ #define _i2d_DSA_SIG BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_DSA_SIG) #define _i2d_DSAparams BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_DSAparams) #define _i2d_ECDSA_SIG BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_ECDSA_SIG) +#define _i2d_ECPKParameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_ECPKParameters) +#define _i2d_ECPKParameters_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_ECPKParameters_bio) #define _i2d_ECParameters BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_ECParameters) #define _i2d_ECPrivateKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_ECPrivateKey) #define _i2d_ECPrivateKey_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_ECPrivateKey_bio) @@ -3030,7 +3349,6 @@ #define _i2d_EC_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_EC_PUBKEY) #define _i2d_EC_PUBKEY_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_EC_PUBKEY_bio) #define _i2d_EC_PUBKEY_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_EC_PUBKEY_fp) -#define _i2d_EDIPARTYNAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_EDIPARTYNAME) #define _i2d_EXTENDED_KEY_USAGE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_EXTENDED_KEY_USAGE) #define _i2d_GENERAL_NAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_GENERAL_NAME) #define _i2d_GENERAL_NAMES BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_GENERAL_NAMES) @@ -3040,18 +3358,30 @@ #define _i2d_NOTICEREF BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_NOTICEREF) #define _i2d_OCSP_BASICRESP BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_BASICRESP) #define _i2d_OCSP_CERTID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_CERTID) -#define _i2d_OCSP_CERTSTATUS BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_CERTSTATUS) +#define _i2d_OCSP_ONEREQ BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_ONEREQ) +#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_RESPID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_RESPID) #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_OTHERNAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OTHERNAME) #define _i2d_PKCS12 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS12) #define _i2d_PKCS12_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS12_bio) #define _i2d_PKCS12_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS12_fp) #define _i2d_PKCS7 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7) +#define _i2d_PKCS7_DIGEST BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_DIGEST) +#define _i2d_PKCS7_ENCRYPT BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_ENCRYPT) +#define _i2d_PKCS7_ENC_CONTENT BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_ENC_CONTENT) +#define _i2d_PKCS7_ENVELOPE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_ENVELOPE) +#define _i2d_PKCS7_ISSUER_AND_SERIAL BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_ISSUER_AND_SERIAL) +#define _i2d_PKCS7_RECIP_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_RECIP_INFO) +#define _i2d_PKCS7_SIGNED BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_SIGNED) +#define _i2d_PKCS7_SIGNER_INFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_SIGNER_INFO) +#define _i2d_PKCS7_SIGN_ENVELOPE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_SIGN_ENVELOPE) #define _i2d_PKCS7_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS7_bio) #define _i2d_PKCS8PrivateKeyInfo_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS8PrivateKeyInfo_bio) #define _i2d_PKCS8PrivateKeyInfo_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS8PrivateKeyInfo_fp) @@ -3066,8 +3396,6 @@ #define _i2d_PKCS8_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS8_fp) #define _i2d_POLICYINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_POLICYINFO) #define _i2d_POLICYQUALINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_POLICYQUALINFO) -#define _i2d_PROXY_CERT_INFO_EXTENSION BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PROXY_CERT_INFO_EXTENSION) -#define _i2d_PROXY_POLICY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PROXY_POLICY) #define _i2d_PUBKEY BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PUBKEY) #define _i2d_PUBKEY_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PUBKEY_bio) #define _i2d_PUBKEY_fp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PUBKEY_fp) @@ -3123,52 +3451,87 @@ #define _i2v_GENERAL_NAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2v_GENERAL_NAME) #define _i2v_GENERAL_NAMES BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2v_GENERAL_NAMES) #define _is_fips_build BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, is_fips_build) -#define _jent_apt_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_apt_init) -#define _jent_entropy_collector_alloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_entropy_collector_alloc) -#define _jent_entropy_collector_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_entropy_collector_free) -#define _jent_entropy_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_entropy_init) -#define _jent_entropy_init_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_entropy_init_ex) -#define _jent_entropy_switch_notime_impl BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_entropy_switch_notime_impl) -#define _jent_gcd_analyze BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_gcd_analyze) -#define _jent_gcd_fini BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_gcd_fini) -#define _jent_gcd_get BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_gcd_get) -#define _jent_gcd_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_gcd_init) -#define _jent_gcd_selftest BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_gcd_selftest) -#define _jent_health_cb_block_switch BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_health_cb_block_switch) -#define _jent_health_failure BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_health_failure) -#define _jent_lag_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_lag_init) -#define _jent_measure_jitter BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_measure_jitter) -#define _jent_random_data BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_random_data) -#define _jent_read_entropy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_read_entropy) -#define _jent_read_entropy_safe BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_read_entropy_safe) -#define _jent_read_random_block BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_read_random_block) -#define _jent_set_fips_failure_callback BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_set_fips_failure_callback) -#define _jent_set_fips_failure_callback_internal BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_set_fips_failure_callback_internal) -#define _jent_stuck BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_stuck) -#define _jent_time_entropy_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_time_entropy_init) -#define _jent_version BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, jent_version) +#define _is_public_component_of_rsa_key_good BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, is_public_component_of_rsa_key_good) #define _kBoringSSLRSASqrtTwo BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kBoringSSLRSASqrtTwo) #define _kBoringSSLRSASqrtTwoLen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kBoringSSLRSASqrtTwoLen) #define _kOpenSSLReasonStringData BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kOpenSSLReasonStringData) #define _kOpenSSLReasonValues BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kOpenSSLReasonValues) #define _kOpenSSLReasonValuesLen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kOpenSSLReasonValuesLen) #define _kem_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kem_asn1_meth) -#define _kem_kyber1024r3_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kem_kyber1024r3_method) -#define _kem_kyber512r3_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kem_kyber512r3_method) -#define _kem_kyber768r3_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kem_kyber768r3_method) -#define _kem_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kem_pkey_meth) -#define _kyber1024r3_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber1024r3_decapsulate) -#define _kyber1024r3_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber1024r3_encapsulate) -#define _kyber1024r3_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber1024r3_keypair) -#define _kyber512r3_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber512r3_decapsulate) -#define _kyber512r3_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber512r3_encapsulate) -#define _kyber512r3_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber512r3_keypair) -#define _kyber768r3_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber768r3_decapsulate) -#define _kyber768r3_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber768r3_encapsulate) -#define _kyber768r3_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, kyber768r3_keypair) #define _md4_block_data_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, md4_block_data_order) #define _md5_block_asm_data_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, md5_block_asm_data_order) +#define _ml_kem_1024_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_1024_decapsulate) +#define _ml_kem_1024_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_1024_encapsulate) +#define _ml_kem_1024_encapsulate_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_1024_encapsulate_deterministic) +#define _ml_kem_1024_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_1024_keypair) +#define _ml_kem_1024_keypair_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_1024_keypair_deterministic) +#define _ml_kem_1024_params_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_1024_params_init) +#define _ml_kem_512_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_decapsulate) +#define _ml_kem_512_decapsulate_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_decapsulate_no_self_test) +#define _ml_kem_512_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_encapsulate) +#define _ml_kem_512_encapsulate_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_encapsulate_deterministic) +#define _ml_kem_512_encapsulate_deterministic_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_encapsulate_deterministic_no_self_test) +#define _ml_kem_512_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_keypair) +#define _ml_kem_512_keypair_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_keypair_deterministic) +#define _ml_kem_512_keypair_deterministic_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_keypair_deterministic_no_self_test) +#define _ml_kem_512_params_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_512_params_init) +#define _ml_kem_768_decapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_768_decapsulate) +#define _ml_kem_768_encapsulate BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_768_encapsulate) +#define _ml_kem_768_encapsulate_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_768_encapsulate_deterministic) +#define _ml_kem_768_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_768_keypair) +#define _ml_kem_768_keypair_deterministic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_768_keypair_deterministic) +#define _ml_kem_768_params_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_768_params_init) +#define _ml_kem_barrett_reduce_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_barrett_reduce_ref) +#define _ml_kem_basemul_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_basemul_ref) +#define _ml_kem_cmov_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_cmov_ref) +#define _ml_kem_dec_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_dec_ref) +#define _ml_kem_enc_derand_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_enc_derand_ref) +#define _ml_kem_enc_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_enc_ref) +#define _ml_kem_gen_matrix_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_gen_matrix_ref) +#define _ml_kem_indcpa_dec_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_indcpa_dec_ref) +#define _ml_kem_indcpa_enc_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_indcpa_enc_ref) +#define _ml_kem_indcpa_keypair_derand_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_indcpa_keypair_derand_ref) +#define _ml_kem_invntt_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_invntt_ref) +#define _ml_kem_keypair_derand_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_keypair_derand_ref) +#define _ml_kem_keypair_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_keypair_ref) +#define _ml_kem_kyber_shake128_absorb_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_kyber_shake128_absorb_ref) +#define _ml_kem_kyber_shake128_squeeze_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_kyber_shake128_squeeze_ref) +#define _ml_kem_kyber_shake256_prf_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_kyber_shake256_prf_ref) +#define _ml_kem_kyber_shake256_rkprf_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_kyber_shake256_rkprf_ref) +#define _ml_kem_montgomery_reduce_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_montgomery_reduce_ref) +#define _ml_kem_ntt_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_ntt_ref) +#define _ml_kem_poly_add_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_add_ref) +#define _ml_kem_poly_basemul_montgomery_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_basemul_montgomery_ref) +#define _ml_kem_poly_cbd_eta1_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_cbd_eta1_ref) +#define _ml_kem_poly_cbd_eta2_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_cbd_eta2_ref) +#define _ml_kem_poly_compress_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_compress_ref) +#define _ml_kem_poly_decompress_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_decompress_ref) +#define _ml_kem_poly_frombytes_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_frombytes_ref) +#define _ml_kem_poly_frommsg_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_frommsg_ref) +#define _ml_kem_poly_getnoise_eta1_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_getnoise_eta1_ref) +#define _ml_kem_poly_getnoise_eta2_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_getnoise_eta2_ref) +#define _ml_kem_poly_invntt_tomont_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_invntt_tomont_ref) +#define _ml_kem_poly_ntt_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_ntt_ref) +#define _ml_kem_poly_reduce_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_reduce_ref) +#define _ml_kem_poly_sub_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_sub_ref) +#define _ml_kem_poly_tobytes_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_tobytes_ref) +#define _ml_kem_poly_tomont_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_tomont_ref) +#define _ml_kem_poly_tomsg_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_poly_tomsg_ref) +#define _ml_kem_polyvec_add_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_add_ref) +#define _ml_kem_polyvec_basemul_acc_montgomery_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_basemul_acc_montgomery_ref) +#define _ml_kem_polyvec_compress_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_compress_ref) +#define _ml_kem_polyvec_decompress_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_decompress_ref) +#define _ml_kem_polyvec_frombytes_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_frombytes_ref) +#define _ml_kem_polyvec_invntt_tomont_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_invntt_tomont_ref) +#define _ml_kem_polyvec_ntt_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_ntt_ref) +#define _ml_kem_polyvec_reduce_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_reduce_ref) +#define _ml_kem_polyvec_tobytes_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_polyvec_tobytes_ref) +#define _ml_kem_verify_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_verify_ref) +#define _ml_kem_zetas_ref BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, ml_kem_zetas_ref) #define _o2i_ECPublicKey BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, o2i_ECPublicKey) +#define _p256_methods BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, p256_methods) +#define _p384_methods BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, p384_methods) +#define _p521_methods BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, p521_methods) #define _pkcs12_iterations_acceptable BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pkcs12_iterations_acceptable) #define _pkcs12_key_gen BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pkcs12_key_gen) #define _pkcs12_pbe_encrypt_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pkcs12_pbe_encrypt_init) @@ -3193,6 +3556,15 @@ #define _pmbtoken_exp2_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_exp2_read) #define _pmbtoken_exp2_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_exp2_sign) #define _pmbtoken_exp2_unblind BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_exp2_unblind) +#define _pmbtoken_pst1_blind BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_blind) +#define _pmbtoken_pst1_client_key_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_client_key_from_bytes) +#define _pmbtoken_pst1_derive_key_from_secret BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_derive_key_from_secret) +#define _pmbtoken_pst1_generate_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_generate_key) +#define _pmbtoken_pst1_get_h_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_get_h_for_testing) +#define _pmbtoken_pst1_issuer_key_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_issuer_key_from_bytes) +#define _pmbtoken_pst1_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_read) +#define _pmbtoken_pst1_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_sign) +#define _pmbtoken_pst1_unblind BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pmbtoken_pst1_unblind) #define _poly_Rq_mul BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, poly_Rq_mul) #define _pq_custom_randombytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pq_custom_randombytes) #define _pq_custom_randombytes_init_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pq_custom_randombytes_init_for_testing) @@ -3202,12 +3574,14 @@ #define _pqcrystals_kyber1024_ref_cmov BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_cmov) #define _pqcrystals_kyber1024_ref_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_dec) #define _pqcrystals_kyber1024_ref_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_enc) +#define _pqcrystals_kyber1024_ref_enc_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_enc_derand) #define _pqcrystals_kyber1024_ref_gen_matrix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_gen_matrix) #define _pqcrystals_kyber1024_ref_indcpa_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_dec) #define _pqcrystals_kyber1024_ref_indcpa_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_enc) -#define _pqcrystals_kyber1024_ref_indcpa_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_keypair) +#define _pqcrystals_kyber1024_ref_indcpa_keypair_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_indcpa_keypair_derand) #define _pqcrystals_kyber1024_ref_invntt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_invntt) #define _pqcrystals_kyber1024_ref_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_keypair) +#define _pqcrystals_kyber1024_ref_keypair_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_keypair_derand) #define _pqcrystals_kyber1024_ref_kyber_shake128_absorb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_kyber_shake128_absorb) #define _pqcrystals_kyber1024_ref_kyber_shake256_prf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_kyber_shake256_prf) #define _pqcrystals_kyber1024_ref_montgomery_reduce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber1024_ref_montgomery_reduce) @@ -3245,12 +3619,14 @@ #define _pqcrystals_kyber512_ref_cmov BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_cmov) #define _pqcrystals_kyber512_ref_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_dec) #define _pqcrystals_kyber512_ref_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_enc) +#define _pqcrystals_kyber512_ref_enc_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_enc_derand) #define _pqcrystals_kyber512_ref_gen_matrix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_gen_matrix) #define _pqcrystals_kyber512_ref_indcpa_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_dec) #define _pqcrystals_kyber512_ref_indcpa_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_enc) -#define _pqcrystals_kyber512_ref_indcpa_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_keypair) +#define _pqcrystals_kyber512_ref_indcpa_keypair_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_indcpa_keypair_derand) #define _pqcrystals_kyber512_ref_invntt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_invntt) #define _pqcrystals_kyber512_ref_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_keypair) +#define _pqcrystals_kyber512_ref_keypair_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_keypair_derand) #define _pqcrystals_kyber512_ref_kyber_shake128_absorb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_kyber_shake128_absorb) #define _pqcrystals_kyber512_ref_kyber_shake256_prf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_kyber_shake256_prf) #define _pqcrystals_kyber512_ref_montgomery_reduce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber512_ref_montgomery_reduce) @@ -3288,12 +3664,14 @@ #define _pqcrystals_kyber768_ref_cmov BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_cmov) #define _pqcrystals_kyber768_ref_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_dec) #define _pqcrystals_kyber768_ref_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_enc) +#define _pqcrystals_kyber768_ref_enc_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_enc_derand) #define _pqcrystals_kyber768_ref_gen_matrix BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_gen_matrix) #define _pqcrystals_kyber768_ref_indcpa_dec BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_dec) #define _pqcrystals_kyber768_ref_indcpa_enc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_enc) -#define _pqcrystals_kyber768_ref_indcpa_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_keypair) +#define _pqcrystals_kyber768_ref_indcpa_keypair_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_indcpa_keypair_derand) #define _pqcrystals_kyber768_ref_invntt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_invntt) #define _pqcrystals_kyber768_ref_keypair BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_keypair) +#define _pqcrystals_kyber768_ref_keypair_derand BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_keypair_derand) #define _pqcrystals_kyber768_ref_kyber_shake128_absorb BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_kyber_shake128_absorb) #define _pqcrystals_kyber768_ref_kyber_shake256_prf BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_kyber_shake256_prf) #define _pqcrystals_kyber768_ref_montgomery_reduce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber768_ref_montgomery_reduce) @@ -3344,13 +3722,14 @@ #define _pqcrystals_kyber_fips202_ref_shake256_squeezeblocks BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, pqcrystals_kyber_fips202_ref_shake256_squeezeblocks) #define _rand_fork_unsafe_buffering_enabled BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rand_fork_unsafe_buffering_enabled) #define _rsa_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_asn1_meth) -#define _rsa_check_public_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_check_public_key) -#define _rsa_default_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_default_decrypt) #define _rsa_default_private_transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_default_private_transform) #define _rsa_default_sign_raw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_default_sign_raw) #define _rsa_default_size BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_default_size) #define _rsa_digestsign_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_digestsign_no_self_test) #define _rsa_digestverify_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_digestverify_no_self_test) +#define _rsa_invalidate_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_invalidate_key) +#define _rsa_private_transform BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_private_transform) +#define _rsa_private_transform_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_private_transform_no_self_test) #define _rsa_pss_asn1_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_pss_asn1_meth) #define _rsa_sign_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_sign_no_self_test) #define _rsa_verify_no_self_test BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsa_verify_no_self_test) @@ -3361,44 +3740,35 @@ #define _rsaz_1024_red2norm_avx2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_1024_red2norm_avx2) #define _rsaz_1024_scatter5_avx2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_1024_scatter5_avx2) #define _rsaz_1024_sqr_avx2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_1024_sqr_avx2) +#define _rsaz_amm52x20_x1_ifma256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_amm52x20_x1_ifma256) +#define _rsaz_amm52x20_x2_ifma256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_amm52x20_x2_ifma256) +#define _rsaz_amm52x30_x1_ifma256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_amm52x30_x1_ifma256) +#define _rsaz_amm52x30_x2_ifma256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_amm52x30_x2_ifma256) +#define _rsaz_amm52x40_x1_ifma256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_amm52x40_x1_ifma256) +#define _rsaz_amm52x40_x2_ifma256 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, rsaz_amm52x40_x2_ifma256) #define _s2i_ASN1_INTEGER BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, s2i_ASN1_INTEGER) #define _s2i_ASN1_OCTET_STRING BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, s2i_ASN1_OCTET_STRING) -#define _sha1_block_data_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_block_data_order) +#define _sha1_block_data_order_avx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_block_data_order_avx) +#define _sha1_block_data_order_avx2 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_block_data_order_avx2) +#define _sha1_block_data_order_hw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_block_data_order_hw) +#define _sha1_block_data_order_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_block_data_order_nohw) +#define _sha1_block_data_order_ssse3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_block_data_order_ssse3) #define _sha1_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha1_func) #define _sha224_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha224_func) -#define _sha256_block_data_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha256_block_data_order) +#define _sha256_block_data_order_avx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha256_block_data_order_avx) +#define _sha256_block_data_order_hw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha256_block_data_order_hw) +#define _sha256_block_data_order_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha256_block_data_order_nohw) +#define _sha256_block_data_order_ssse3 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha256_block_data_order_ssse3) #define _sha256_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha256_func) #define _sha384_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha384_func) -#define _sha3_256_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha3_256_init) -#define _sha3_alloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha3_alloc) -#define _sha3_dealloc BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha3_dealloc) -#define _sha3_final BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha3_final) -#define _sha3_tester BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha3_tester) -#define _sha3_update BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha3_update) -#define _sha512_block_data_order BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha512_block_data_order) +#define _sha512_block_data_order_avx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha512_block_data_order_avx) +#define _sha512_block_data_order_hw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha512_block_data_order_hw) +#define _sha512_block_data_order_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha512_block_data_order_nohw) #define _sha512_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sha512_func) -#define _sk_deep_copy BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_deep_copy) -#define _sk_delete BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_delete) -#define _sk_delete_if BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_delete_if) -#define _sk_delete_ptr BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_delete_ptr) -#define _sk_dup BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_dup) -#define _sk_find BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_find) -#define _sk_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_free) -#define _sk_insert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_insert) -#define _sk_is_sorted BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_is_sorted) -#define _sk_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_new) -#define _sk_new_null BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_new_null) -#define _sk_num BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_num) -#define _sk_pop BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_pop) #define _sk_pop_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_pop_free) -#define _sk_pop_free_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_pop_free_ex) -#define _sk_push BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_push) -#define _sk_set BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_set) -#define _sk_set_cmp_func BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_set_cmp_func) -#define _sk_shift BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_shift) -#define _sk_sort BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_sort) -#define _sk_value BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_value) -#define _sk_zero BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sk_zero) +#define _sskdf_variant_digest BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sskdf_variant_digest) +#define _sskdf_variant_hmac BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, sskdf_variant_hmac) +#define _used_for_hmac BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, used_for_hmac) #define _v2i_GENERAL_NAME BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v2i_GENERAL_NAME) #define _v2i_GENERAL_NAMES BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v2i_GENERAL_NAMES) #define _v2i_GENERAL_NAME_ex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v2i_GENERAL_NAME_ex) @@ -3422,7 +3792,7 @@ #define _v3_nscert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_nscert) #define _v3_ocsp_accresp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_ocsp_accresp) #define _v3_ocsp_nocheck BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_ocsp_nocheck) -#define _v3_pci BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_pci) +#define _v3_ocsp_nonce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_ocsp_nonce) #define _v3_policy_constraints BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_policy_constraints) #define _v3_policy_mappings BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_policy_mappings) #define _v3_sinfo BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, v3_sinfo) @@ -3435,6 +3805,15 @@ #define _voprf_exp2_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_exp2_read) #define _voprf_exp2_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_exp2_sign) #define _voprf_exp2_unblind BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_exp2_unblind) +#define _voprf_pst1_blind BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_blind) +#define _voprf_pst1_client_key_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_client_key_from_bytes) +#define _voprf_pst1_derive_key_from_secret BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_derive_key_from_secret) +#define _voprf_pst1_generate_key BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_generate_key) +#define _voprf_pst1_issuer_key_from_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_issuer_key_from_bytes) +#define _voprf_pst1_read BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_read) +#define _voprf_pst1_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_sign) +#define _voprf_pst1_sign_with_proof_scalar_for_testing BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_sign_with_proof_scalar_for_testing) +#define _voprf_pst1_unblind BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, voprf_pst1_unblind) #define _vpaes_cbc_encrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, vpaes_cbc_encrypt) #define _vpaes_ctr32_encrypt_blocks BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, vpaes_ctr32_encrypt_blocks) #define _vpaes_decrypt BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, vpaes_decrypt) @@ -3453,11 +3832,17 @@ #define _x25519_ge_sub BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_ge_sub) #define _x25519_ge_tobytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_ge_tobytes) #define _x25519_pkey_meth BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_pkey_meth) +#define _x25519_public_from_private_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_public_from_private_nohw) +#define _x25519_public_from_private_s2n_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_public_from_private_s2n_bignum) #define _x25519_sc_reduce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_sc_reduce) +#define _x25519_scalar_mult_generic_nohw BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_scalar_mult_generic_nohw) +#define _x25519_scalar_mult_generic_s2n_bignum BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x25519_scalar_mult_generic_s2n_bignum) #define _x509V3_add_value_asn1_string BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509V3_add_value_asn1_string) #define _x509_check_cert_time BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_check_cert_time) +#define _x509_check_issued_with_callback BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_check_issued_with_callback) #define _x509_digest_sign_algorithm BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_digest_sign_algorithm) #define _x509_digest_verify_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_digest_verify_init) +#define _x509_init_signature_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_init_signature_info) #define _x509_print_rsa_pss_params BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_print_rsa_pss_params) #define _x509_rsa_ctx_to_pss BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_rsa_ctx_to_pss) #define _x509_rsa_pss_to_ctx BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509_rsa_pss_to_ctx) @@ -3465,6 +3850,7 @@ #define _x509v3_bytes_to_hex BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509v3_bytes_to_hex) #define _x509v3_cache_extensions BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509v3_cache_extensions) #define _x509v3_conf_name_matches BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509v3_conf_name_matches) +#define _x509v3_ext_free_with_method BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509v3_ext_free_with_method) #define _x509v3_hex_to_bytes BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509v3_hex_to_bytes) #define _x509v3_looks_like_dns_name BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x509v3_looks_like_dns_name) #define _x86_64_assembly_implementation_FOR_TESTING BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, x86_64_assembly_implementation_FOR_TESTING) diff --git a/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc b/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc index 05898474ad3..db1ec322ab5 100644 --- a/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc +++ b/aws-lc-fips-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc @@ -17,7 +17,7 @@ %define BORINGSSL_PREFIX_SYMBOLS_NASM_INC %ifndef BORINGSSL_PREFIX -%define BORINGSSL_PREFIX aws_lc_fips_0_12_15 +%define BORINGSSL_PREFIX aws_lc_fips_0_13_0 %endif ; BORINGSSL_PREFIX ; 32-bit Windows adds underscores to C functions, while 64-bit Windows does not. @@ -154,9 +154,11 @@ %xdefine _ASN1_TIME_set _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_set %xdefine _ASN1_TIME_set_posix _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_set_posix %xdefine _ASN1_TIME_set_string _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_set_string +%xdefine _ASN1_TIME_set_string_X509 _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_set_string_X509 %xdefine _ASN1_TIME_to_generalizedtime _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_to_generalizedtime %xdefine _ASN1_TIME_to_posix _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_to_posix %xdefine _ASN1_TIME_to_time_t _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_to_time_t +%xdefine _ASN1_TIME_to_tm _ %+ BORINGSSL_PREFIX %+ _ASN1_TIME_to_tm %xdefine _ASN1_TYPE_cmp _ %+ BORINGSSL_PREFIX %+ _ASN1_TYPE_cmp %xdefine _ASN1_TYPE_free _ %+ BORINGSSL_PREFIX %+ _ASN1_TYPE_free %xdefine _ASN1_TYPE_get _ %+ BORINGSSL_PREFIX %+ _ASN1_TYPE_get @@ -182,8 +184,10 @@ %xdefine _ASN1_VISIBLESTRING_it _ %+ BORINGSSL_PREFIX %+ _ASN1_VISIBLESTRING_it %xdefine _ASN1_VISIBLESTRING_new _ %+ BORINGSSL_PREFIX %+ _ASN1_VISIBLESTRING_new %xdefine _ASN1_digest _ %+ BORINGSSL_PREFIX %+ _ASN1_digest +%xdefine _ASN1_dup _ %+ BORINGSSL_PREFIX %+ _ASN1_dup %xdefine _ASN1_generate_v3 _ %+ BORINGSSL_PREFIX %+ _ASN1_generate_v3 %xdefine _ASN1_get_object _ %+ BORINGSSL_PREFIX %+ _ASN1_get_object +%xdefine _ASN1_i2d_bio _ %+ BORINGSSL_PREFIX %+ _ASN1_i2d_bio %xdefine _ASN1_item_d2i _ %+ BORINGSSL_PREFIX %+ _ASN1_item_d2i %xdefine _ASN1_item_d2i_bio _ %+ BORINGSSL_PREFIX %+ _ASN1_item_d2i_bio %xdefine _ASN1_item_d2i_fp _ %+ BORINGSSL_PREFIX %+ _ASN1_item_d2i_fp @@ -279,6 +283,7 @@ %xdefine _BIO_meth_set_puts _ %+ BORINGSSL_PREFIX %+ _BIO_meth_set_puts %xdefine _BIO_meth_set_read _ %+ BORINGSSL_PREFIX %+ _BIO_meth_set_read %xdefine _BIO_meth_set_write _ %+ BORINGSSL_PREFIX %+ _BIO_meth_set_write +%xdefine _BIO_method_name _ %+ BORINGSSL_PREFIX %+ _BIO_method_name %xdefine _BIO_method_type _ %+ BORINGSSL_PREFIX %+ _BIO_method_type %xdefine _BIO_new _ %+ BORINGSSL_PREFIX %+ _BIO_new %xdefine _BIO_new_bio_pair _ %+ BORINGSSL_PREFIX %+ _BIO_new_bio_pair @@ -299,6 +304,7 @@ %xdefine _BIO_puts _ %+ BORINGSSL_PREFIX %+ _BIO_puts %xdefine _BIO_read _ %+ BORINGSSL_PREFIX %+ _BIO_read %xdefine _BIO_read_asn1 _ %+ BORINGSSL_PREFIX %+ _BIO_read_asn1 +%xdefine _BIO_read_ex _ %+ BORINGSSL_PREFIX %+ _BIO_read_ex %xdefine _BIO_read_filename _ %+ BORINGSSL_PREFIX %+ _BIO_read_filename %xdefine _BIO_reset _ %+ BORINGSSL_PREFIX %+ _BIO_reset %xdefine _BIO_rw_filename _ %+ BORINGSSL_PREFIX %+ _BIO_rw_filename @@ -306,6 +312,7 @@ %xdefine _BIO_s_fd _ %+ BORINGSSL_PREFIX %+ _BIO_s_fd %xdefine _BIO_s_file _ %+ BORINGSSL_PREFIX %+ _BIO_s_file %xdefine _BIO_s_mem _ %+ BORINGSSL_PREFIX %+ _BIO_s_mem +%xdefine _BIO_s_secmem _ %+ BORINGSSL_PREFIX %+ _BIO_s_secmem %xdefine _BIO_s_socket _ %+ BORINGSSL_PREFIX %+ _BIO_s_socket %xdefine _BIO_seek _ %+ BORINGSSL_PREFIX %+ _BIO_seek %xdefine _BIO_set_callback_arg _ %+ BORINGSSL_PREFIX %+ _BIO_set_callback_arg @@ -343,6 +350,7 @@ %xdefine _BIO_wpending _ %+ BORINGSSL_PREFIX %+ _BIO_wpending %xdefine _BIO_write _ %+ BORINGSSL_PREFIX %+ _BIO_write %xdefine _BIO_write_all _ %+ BORINGSSL_PREFIX %+ _BIO_write_all +%xdefine _BIO_write_ex _ %+ BORINGSSL_PREFIX %+ _BIO_write_ex %xdefine _BIO_write_filename _ %+ BORINGSSL_PREFIX %+ _BIO_write_filename %xdefine _BLAKE2B256 _ %+ BORINGSSL_PREFIX %+ _BLAKE2B256 %xdefine _BLAKE2B256_Final _ %+ BORINGSSL_PREFIX %+ _BLAKE2B256_Final @@ -357,12 +365,14 @@ %xdefine _BN_CTX_free _ %+ BORINGSSL_PREFIX %+ _BN_CTX_free %xdefine _BN_CTX_get _ %+ BORINGSSL_PREFIX %+ _BN_CTX_get %xdefine _BN_CTX_new _ %+ BORINGSSL_PREFIX %+ _BN_CTX_new +%xdefine _BN_CTX_secure_new _ %+ BORINGSSL_PREFIX %+ _BN_CTX_secure_new %xdefine _BN_CTX_start _ %+ BORINGSSL_PREFIX %+ _BN_CTX_start %xdefine _BN_GENCB_call _ %+ BORINGSSL_PREFIX %+ _BN_GENCB_call %xdefine _BN_GENCB_free _ %+ BORINGSSL_PREFIX %+ _BN_GENCB_free %xdefine _BN_GENCB_get_arg _ %+ BORINGSSL_PREFIX %+ _BN_GENCB_get_arg %xdefine _BN_GENCB_new _ %+ BORINGSSL_PREFIX %+ _BN_GENCB_new %xdefine _BN_GENCB_set _ %+ BORINGSSL_PREFIX %+ _BN_GENCB_set +%xdefine _BN_GENCB_set_old _ %+ BORINGSSL_PREFIX %+ _BN_GENCB_set_old %xdefine _BN_MONT_CTX_copy _ %+ BORINGSSL_PREFIX %+ _BN_MONT_CTX_copy %xdefine _BN_MONT_CTX_free _ %+ BORINGSSL_PREFIX %+ _BN_MONT_CTX_free %xdefine _BN_MONT_CTX_new _ %+ BORINGSSL_PREFIX %+ _BN_MONT_CTX_new @@ -401,6 +411,7 @@ %xdefine _BN_from_montgomery _ %+ BORINGSSL_PREFIX %+ _BN_from_montgomery %xdefine _BN_gcd _ %+ BORINGSSL_PREFIX %+ _BN_gcd %xdefine _BN_generate_prime_ex _ %+ BORINGSSL_PREFIX %+ _BN_generate_prime_ex +%xdefine _BN_get_flags _ %+ BORINGSSL_PREFIX %+ _BN_get_flags %xdefine _BN_get_rfc3526_prime_1536 _ %+ BORINGSSL_PREFIX %+ _BN_get_rfc3526_prime_1536 %xdefine _BN_get_rfc3526_prime_2048 _ %+ BORINGSSL_PREFIX %+ _BN_get_rfc3526_prime_2048 %xdefine _BN_get_rfc3526_prime_3072 _ %+ BORINGSSL_PREFIX %+ _BN_get_rfc3526_prime_3072 @@ -431,6 +442,7 @@ %xdefine _BN_mod_exp2_mont _ %+ BORINGSSL_PREFIX %+ _BN_mod_exp2_mont %xdefine _BN_mod_exp_mont _ %+ BORINGSSL_PREFIX %+ _BN_mod_exp_mont %xdefine _BN_mod_exp_mont_consttime _ %+ BORINGSSL_PREFIX %+ _BN_mod_exp_mont_consttime +%xdefine _BN_mod_exp_mont_consttime_x2 _ %+ BORINGSSL_PREFIX %+ _BN_mod_exp_mont_consttime_x2 %xdefine _BN_mod_exp_mont_word _ %+ BORINGSSL_PREFIX %+ _BN_mod_exp_mont_word %xdefine _BN_mod_inverse _ %+ BORINGSSL_PREFIX %+ _BN_mod_inverse %xdefine _BN_mod_inverse_blinded _ %+ BORINGSSL_PREFIX %+ _BN_mod_inverse_blinded @@ -486,7 +498,6 @@ %xdefine _BN_value_one _ %+ BORINGSSL_PREFIX %+ _BN_value_one %xdefine _BN_zero _ %+ BORINGSSL_PREFIX %+ _BN_zero %xdefine _BORINGSSL_FIPS_abort _ %+ BORINGSSL_PREFIX %+ _BORINGSSL_FIPS_abort -%xdefine _BORINGSSL_integrity_test _ %+ BORINGSSL_PREFIX %+ _BORINGSSL_integrity_test %xdefine _BORINGSSL_self_test _ %+ BORINGSSL_PREFIX %+ _BORINGSSL_self_test %xdefine _BUF_MEM_append _ %+ BORINGSSL_PREFIX %+ _BUF_MEM_append %xdefine _BUF_MEM_free _ %+ BORINGSSL_PREFIX %+ _BUF_MEM_free @@ -578,6 +589,7 @@ %xdefine _CBS_get_u32 _ %+ BORINGSSL_PREFIX %+ _CBS_get_u32 %xdefine _CBS_get_u32le _ %+ BORINGSSL_PREFIX %+ _CBS_get_u32le %xdefine _CBS_get_u64 _ %+ BORINGSSL_PREFIX %+ _CBS_get_u64 +%xdefine _CBS_get_u64_decimal _ %+ BORINGSSL_PREFIX %+ _CBS_get_u64_decimal %xdefine _CBS_get_u64le _ %+ BORINGSSL_PREFIX %+ _CBS_get_u64le %xdefine _CBS_get_u8 _ %+ BORINGSSL_PREFIX %+ _CBS_get_u8 %xdefine _CBS_get_u8_length_prefixed _ %+ BORINGSSL_PREFIX %+ _CBS_get_u8_length_prefixed @@ -586,6 +598,7 @@ %xdefine _CBS_is_unsigned_asn1_integer _ %+ BORINGSSL_PREFIX %+ _CBS_is_unsigned_asn1_integer %xdefine _CBS_is_valid_asn1_bitstring _ %+ BORINGSSL_PREFIX %+ _CBS_is_valid_asn1_bitstring %xdefine _CBS_is_valid_asn1_integer _ %+ BORINGSSL_PREFIX %+ _CBS_is_valid_asn1_integer +%xdefine _CBS_is_valid_asn1_oid _ %+ BORINGSSL_PREFIX %+ _CBS_is_valid_asn1_oid %xdefine _CBS_len _ %+ BORINGSSL_PREFIX %+ _CBS_len %xdefine _CBS_mem_equal _ %+ BORINGSSL_PREFIX %+ _CBS_mem_equal %xdefine _CBS_parse_generalized_time _ %+ BORINGSSL_PREFIX %+ _CBS_parse_generalized_time @@ -599,14 +612,18 @@ %xdefine _CERTIFICATEPOLICIES_new _ %+ BORINGSSL_PREFIX %+ _CERTIFICATEPOLICIES_new %xdefine _CMAC_CTX_copy _ %+ BORINGSSL_PREFIX %+ _CMAC_CTX_copy %xdefine _CMAC_CTX_free _ %+ BORINGSSL_PREFIX %+ _CMAC_CTX_free +%xdefine _CMAC_CTX_get0_cipher_ctx _ %+ BORINGSSL_PREFIX %+ _CMAC_CTX_get0_cipher_ctx %xdefine _CMAC_CTX_new _ %+ BORINGSSL_PREFIX %+ _CMAC_CTX_new %xdefine _CMAC_Final _ %+ BORINGSSL_PREFIX %+ _CMAC_Final %xdefine _CMAC_Init _ %+ BORINGSSL_PREFIX %+ _CMAC_Init %xdefine _CMAC_Reset _ %+ BORINGSSL_PREFIX %+ _CMAC_Reset %xdefine _CMAC_Update _ %+ BORINGSSL_PREFIX %+ _CMAC_Update %xdefine _CONF_VALUE_new _ %+ BORINGSSL_PREFIX %+ _CONF_VALUE_new +%xdefine _CONF_get1_default_config_file _ %+ BORINGSSL_PREFIX %+ _CONF_get1_default_config_file +%xdefine _CONF_modules_finish _ %+ BORINGSSL_PREFIX %+ _CONF_modules_finish %xdefine _CONF_modules_free _ %+ BORINGSSL_PREFIX %+ _CONF_modules_free %xdefine _CONF_modules_load_file _ %+ BORINGSSL_PREFIX %+ _CONF_modules_load_file +%xdefine _CONF_modules_unload _ %+ BORINGSSL_PREFIX %+ _CONF_modules_unload %xdefine _CONF_parse_list _ %+ BORINGSSL_PREFIX %+ _CONF_parse_list %xdefine _CRL_DIST_POINTS_free _ %+ BORINGSSL_PREFIX %+ _CRL_DIST_POINTS_free %xdefine _CRL_DIST_POINTS_it _ %+ BORINGSSL_PREFIX %+ _CRL_DIST_POINTS_it @@ -678,6 +695,7 @@ %xdefine _CRYPTO_has_asm _ %+ BORINGSSL_PREFIX %+ _CRYPTO_has_asm %xdefine _CRYPTO_hchacha20 _ %+ BORINGSSL_PREFIX %+ _CRYPTO_hchacha20 %xdefine _CRYPTO_init_sysrand _ %+ BORINGSSL_PREFIX %+ _CRYPTO_init_sysrand +%xdefine _CRYPTO_is_ARMv8_DIT_capable_for_testing _ %+ BORINGSSL_PREFIX %+ _CRYPTO_is_ARMv8_DIT_capable_for_testing %xdefine _CRYPTO_is_confidential_build _ %+ BORINGSSL_PREFIX %+ _CRYPTO_is_confidential_build %xdefine _CRYPTO_library_init _ %+ BORINGSSL_PREFIX %+ _CRYPTO_library_init %xdefine _CRYPTO_malloc _ %+ BORINGSSL_PREFIX %+ _CRYPTO_malloc @@ -719,19 +737,32 @@ %xdefine _CTR_DRBG_init _ %+ BORINGSSL_PREFIX %+ _CTR_DRBG_init %xdefine _CTR_DRBG_new _ %+ BORINGSSL_PREFIX %+ _CTR_DRBG_new %xdefine _CTR_DRBG_reseed _ %+ BORINGSSL_PREFIX %+ _CTR_DRBG_reseed -%xdefine _ChaCha20_ctr32 _ %+ BORINGSSL_PREFIX %+ _ChaCha20_ctr32 +%xdefine _ChaCha20_ctr32_avx2 _ %+ BORINGSSL_PREFIX %+ _ChaCha20_ctr32_avx2 +%xdefine _ChaCha20_ctr32_neon _ %+ BORINGSSL_PREFIX %+ _ChaCha20_ctr32_neon +%xdefine _ChaCha20_ctr32_nohw _ %+ BORINGSSL_PREFIX %+ _ChaCha20_ctr32_nohw +%xdefine _ChaCha20_ctr32_ssse3 _ %+ BORINGSSL_PREFIX %+ _ChaCha20_ctr32_ssse3 +%xdefine _ChaCha20_ctr32_ssse3_4x _ %+ BORINGSSL_PREFIX %+ _ChaCha20_ctr32_ssse3_4x %xdefine _DES_decrypt3 _ %+ BORINGSSL_PREFIX %+ _DES_decrypt3 %xdefine _DES_ecb3_encrypt _ %+ BORINGSSL_PREFIX %+ _DES_ecb3_encrypt +%xdefine _DES_ecb3_encrypt_ex _ %+ BORINGSSL_PREFIX %+ _DES_ecb3_encrypt_ex %xdefine _DES_ecb_encrypt _ %+ BORINGSSL_PREFIX %+ _DES_ecb_encrypt +%xdefine _DES_ecb_encrypt_ex _ %+ BORINGSSL_PREFIX %+ _DES_ecb_encrypt_ex %xdefine _DES_ede2_cbc_encrypt _ %+ BORINGSSL_PREFIX %+ _DES_ede2_cbc_encrypt %xdefine _DES_ede3_cbc_encrypt _ %+ BORINGSSL_PREFIX %+ _DES_ede3_cbc_encrypt +%xdefine _DES_ede3_cbc_encrypt_ex _ %+ BORINGSSL_PREFIX %+ _DES_ede3_cbc_encrypt_ex %xdefine _DES_encrypt3 _ %+ BORINGSSL_PREFIX %+ _DES_encrypt3 +%xdefine _DES_is_weak_key _ %+ BORINGSSL_PREFIX %+ _DES_is_weak_key +%xdefine _DES_key_sched _ %+ BORINGSSL_PREFIX %+ _DES_key_sched %xdefine _DES_ncbc_encrypt _ %+ BORINGSSL_PREFIX %+ _DES_ncbc_encrypt +%xdefine _DES_ncbc_encrypt_ex _ %+ BORINGSSL_PREFIX %+ _DES_ncbc_encrypt_ex %xdefine _DES_set_key _ %+ BORINGSSL_PREFIX %+ _DES_set_key +%xdefine _DES_set_key_ex _ %+ BORINGSSL_PREFIX %+ _DES_set_key_ex +%xdefine _DES_set_key_unchecked _ %+ BORINGSSL_PREFIX %+ _DES_set_key_unchecked %xdefine _DES_set_odd_parity _ %+ BORINGSSL_PREFIX %+ _DES_set_odd_parity %xdefine _DH_bits _ %+ BORINGSSL_PREFIX %+ _DH_bits %xdefine _DH_check _ %+ BORINGSSL_PREFIX %+ _DH_check %xdefine _DH_check_pub_key _ %+ BORINGSSL_PREFIX %+ _DH_check_pub_key +%xdefine _DH_clear_flags _ %+ BORINGSSL_PREFIX %+ _DH_clear_flags %xdefine _DH_compute_key _ %+ BORINGSSL_PREFIX %+ _DH_compute_key %xdefine _DH_compute_key_hashed _ %+ BORINGSSL_PREFIX %+ _DH_compute_key_hashed %xdefine _DH_compute_key_padded _ %+ BORINGSSL_PREFIX %+ _DH_compute_key_padded @@ -748,8 +779,12 @@ %xdefine _DH_get0_q _ %+ BORINGSSL_PREFIX %+ _DH_get0_q %xdefine _DH_get_2048_256 _ %+ BORINGSSL_PREFIX %+ _DH_get_2048_256 %xdefine _DH_get_rfc7919_2048 _ %+ BORINGSSL_PREFIX %+ _DH_get_rfc7919_2048 +%xdefine _DH_get_rfc7919_3072 _ %+ BORINGSSL_PREFIX %+ _DH_get_rfc7919_3072 +%xdefine _DH_get_rfc7919_4096 _ %+ BORINGSSL_PREFIX %+ _DH_get_rfc7919_4096 +%xdefine _DH_get_rfc7919_8192 _ %+ BORINGSSL_PREFIX %+ _DH_get_rfc7919_8192 %xdefine _DH_marshal_parameters _ %+ BORINGSSL_PREFIX %+ _DH_marshal_parameters %xdefine _DH_new _ %+ BORINGSSL_PREFIX %+ _DH_new +%xdefine _DH_new_by_nid _ %+ BORINGSSL_PREFIX %+ _DH_new_by_nid %xdefine _DH_num_bits _ %+ BORINGSSL_PREFIX %+ _DH_num_bits %xdefine _DH_parse_parameters _ %+ BORINGSSL_PREFIX %+ _DH_parse_parameters %xdefine _DH_set0_key _ %+ BORINGSSL_PREFIX %+ _DH_set0_key @@ -802,6 +837,8 @@ %xdefine _DSA_parse_parameters _ %+ BORINGSSL_PREFIX %+ _DSA_parse_parameters %xdefine _DSA_parse_private_key _ %+ BORINGSSL_PREFIX %+ _DSA_parse_private_key %xdefine _DSA_parse_public_key _ %+ BORINGSSL_PREFIX %+ _DSA_parse_public_key +%xdefine _DSA_print _ %+ BORINGSSL_PREFIX %+ _DSA_print +%xdefine _DSA_print_fp _ %+ BORINGSSL_PREFIX %+ _DSA_print_fp %xdefine _DSA_set0_key _ %+ BORINGSSL_PREFIX %+ _DSA_set0_key %xdefine _DSA_set0_pqg _ %+ BORINGSSL_PREFIX %+ _DSA_set0_pqg %xdefine _DSA_set_ex_data _ %+ BORINGSSL_PREFIX %+ _DSA_set_ex_data @@ -831,6 +868,7 @@ %xdefine _ECDSA_sign_with_nonce_and_leak_private_key_for_testing _ %+ BORINGSSL_PREFIX %+ _ECDSA_sign_with_nonce_and_leak_private_key_for_testing %xdefine _ECDSA_size _ %+ BORINGSSL_PREFIX %+ _ECDSA_size %xdefine _ECDSA_verify _ %+ BORINGSSL_PREFIX %+ _ECDSA_verify +%xdefine _ECPKParameters_print _ %+ BORINGSSL_PREFIX %+ _ECPKParameters_print %xdefine _EC_GFp_mont_method _ %+ BORINGSSL_PREFIX %+ _EC_GFp_mont_method %xdefine _EC_GFp_nistp224_method _ %+ BORINGSSL_PREFIX %+ _EC_GFp_nistp224_method %xdefine _EC_GFp_nistp256_method _ %+ BORINGSSL_PREFIX %+ _EC_GFp_nistp256_method @@ -842,12 +880,14 @@ %xdefine _EC_GROUP_free _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_free %xdefine _EC_GROUP_get0_generator _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get0_generator %xdefine _EC_GROUP_get0_order _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get0_order +%xdefine _EC_GROUP_get0_seed _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get0_seed %xdefine _EC_GROUP_get_asn1_flag _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_asn1_flag %xdefine _EC_GROUP_get_cofactor _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_cofactor %xdefine _EC_GROUP_get_curve_GFp _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_curve_GFp %xdefine _EC_GROUP_get_curve_name _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_curve_name %xdefine _EC_GROUP_get_degree _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_degree %xdefine _EC_GROUP_get_order _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_order +%xdefine _EC_GROUP_get_seed_len _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_get_seed_len %xdefine _EC_GROUP_method_of _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_method_of %xdefine _EC_GROUP_new_by_curve_name _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_new_by_curve_name %xdefine _EC_GROUP_new_curve_GFp _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_new_curve_GFp @@ -855,6 +895,13 @@ %xdefine _EC_GROUP_set_asn1_flag _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_set_asn1_flag %xdefine _EC_GROUP_set_generator _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_set_generator %xdefine _EC_GROUP_set_point_conversion_form _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_set_point_conversion_form +%xdefine _EC_GROUP_set_seed _ %+ BORINGSSL_PREFIX %+ _EC_GROUP_set_seed +%xdefine _EC_KEY_METHOD_free _ %+ BORINGSSL_PREFIX %+ _EC_KEY_METHOD_free +%xdefine _EC_KEY_METHOD_new _ %+ BORINGSSL_PREFIX %+ _EC_KEY_METHOD_new +%xdefine _EC_KEY_METHOD_set_flags _ %+ BORINGSSL_PREFIX %+ _EC_KEY_METHOD_set_flags +%xdefine _EC_KEY_METHOD_set_init_awslc _ %+ BORINGSSL_PREFIX %+ _EC_KEY_METHOD_set_init_awslc +%xdefine _EC_KEY_METHOD_set_sign_awslc _ %+ BORINGSSL_PREFIX %+ _EC_KEY_METHOD_set_sign_awslc +%xdefine _EC_KEY_OpenSSL _ %+ BORINGSSL_PREFIX %+ _EC_KEY_OpenSSL %xdefine _EC_KEY_check_fips _ %+ BORINGSSL_PREFIX %+ _EC_KEY_check_fips %xdefine _EC_KEY_check_key _ %+ BORINGSSL_PREFIX %+ _EC_KEY_check_key %xdefine _EC_KEY_derive_from_secret _ %+ BORINGSSL_PREFIX %+ _EC_KEY_derive_from_secret @@ -866,9 +913,11 @@ %xdefine _EC_KEY_get0_private_key _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get0_private_key %xdefine _EC_KEY_get0_public_key _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get0_public_key %xdefine _EC_KEY_get_conv_form _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get_conv_form +%xdefine _EC_KEY_get_default_method _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get_default_method %xdefine _EC_KEY_get_enc_flags _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get_enc_flags %xdefine _EC_KEY_get_ex_data _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get_ex_data %xdefine _EC_KEY_get_ex_new_index _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get_ex_new_index +%xdefine _EC_KEY_get_method _ %+ BORINGSSL_PREFIX %+ _EC_KEY_get_method %xdefine _EC_KEY_is_opaque _ %+ BORINGSSL_PREFIX %+ _EC_KEY_is_opaque %xdefine _EC_KEY_key2buf _ %+ BORINGSSL_PREFIX %+ _EC_KEY_key2buf %xdefine _EC_KEY_keygen_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _EC_KEY_keygen_verify_service_indicator @@ -885,12 +934,14 @@ %xdefine _EC_KEY_set_enc_flags _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_enc_flags %xdefine _EC_KEY_set_ex_data _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_ex_data %xdefine _EC_KEY_set_group _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_group +%xdefine _EC_KEY_set_method _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_method %xdefine _EC_KEY_set_private_key _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_private_key %xdefine _EC_KEY_set_public_key _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_public_key %xdefine _EC_KEY_set_public_key_affine_coordinates _ %+ BORINGSSL_PREFIX %+ _EC_KEY_set_public_key_affine_coordinates %xdefine _EC_KEY_up_ref _ %+ BORINGSSL_PREFIX %+ _EC_KEY_up_ref %xdefine _EC_METHOD_get_field_type _ %+ BORINGSSL_PREFIX %+ _EC_METHOD_get_field_type %xdefine _EC_POINT_add _ %+ BORINGSSL_PREFIX %+ _EC_POINT_add +%xdefine _EC_POINT_bn2point _ %+ BORINGSSL_PREFIX %+ _EC_POINT_bn2point %xdefine _EC_POINT_clear_free _ %+ BORINGSSL_PREFIX %+ _EC_POINT_clear_free %xdefine _EC_POINT_cmp _ %+ BORINGSSL_PREFIX %+ _EC_POINT_cmp %xdefine _EC_POINT_copy _ %+ BORINGSSL_PREFIX %+ _EC_POINT_copy @@ -905,6 +956,7 @@ %xdefine _EC_POINT_mul _ %+ BORINGSSL_PREFIX %+ _EC_POINT_mul %xdefine _EC_POINT_new _ %+ BORINGSSL_PREFIX %+ _EC_POINT_new %xdefine _EC_POINT_oct2point _ %+ BORINGSSL_PREFIX %+ _EC_POINT_oct2point +%xdefine _EC_POINT_point2bn _ %+ BORINGSSL_PREFIX %+ _EC_POINT_point2bn %xdefine _EC_POINT_point2cbb _ %+ BORINGSSL_PREFIX %+ _EC_POINT_point2cbb %xdefine _EC_POINT_point2oct _ %+ BORINGSSL_PREFIX %+ _EC_POINT_point2oct %xdefine _EC_POINT_set_affine_coordinates _ %+ BORINGSSL_PREFIX %+ _EC_POINT_set_affine_coordinates @@ -914,21 +966,32 @@ %xdefine _EC_curve_nid2nist _ %+ BORINGSSL_PREFIX %+ _EC_curve_nid2nist %xdefine _EC_curve_nist2nid _ %+ BORINGSSL_PREFIX %+ _EC_curve_nist2nid %xdefine _EC_get_builtin_curves _ %+ BORINGSSL_PREFIX %+ _EC_get_builtin_curves +%xdefine _EC_group_p224 _ %+ BORINGSSL_PREFIX %+ _EC_group_p224 +%xdefine _EC_group_p256 _ %+ BORINGSSL_PREFIX %+ _EC_group_p256 +%xdefine _EC_group_p384 _ %+ BORINGSSL_PREFIX %+ _EC_group_p384 +%xdefine _EC_group_p521 _ %+ BORINGSSL_PREFIX %+ _EC_group_p521 +%xdefine _EC_group_secp256k1 _ %+ BORINGSSL_PREFIX %+ _EC_group_secp256k1 +%xdefine _EC_hash_to_curve_p256_xmd_sha256_sswu _ %+ BORINGSSL_PREFIX %+ _EC_hash_to_curve_p256_xmd_sha256_sswu +%xdefine _EC_hash_to_curve_p384_xmd_sha384_sswu _ %+ BORINGSSL_PREFIX %+ _EC_hash_to_curve_p384_xmd_sha384_sswu +%xdefine _ED25519_check_public_key _ %+ BORINGSSL_PREFIX %+ _ED25519_check_public_key %xdefine _ED25519_keypair _ %+ BORINGSSL_PREFIX %+ _ED25519_keypair %xdefine _ED25519_keypair_from_seed _ %+ BORINGSSL_PREFIX %+ _ED25519_keypair_from_seed %xdefine _ED25519_sign _ %+ BORINGSSL_PREFIX %+ _ED25519_sign +%xdefine _ED25519_sign_no_self_test _ %+ BORINGSSL_PREFIX %+ _ED25519_sign_no_self_test %xdefine _ED25519_verify _ %+ BORINGSSL_PREFIX %+ _ED25519_verify +%xdefine _ED25519_verify_no_self_test _ %+ BORINGSSL_PREFIX %+ _ED25519_verify_no_self_test %xdefine _EDIPARTYNAME_free _ %+ BORINGSSL_PREFIX %+ _EDIPARTYNAME_free %xdefine _EDIPARTYNAME_it _ %+ BORINGSSL_PREFIX %+ _EDIPARTYNAME_it %xdefine _EDIPARTYNAME_new _ %+ BORINGSSL_PREFIX %+ _EDIPARTYNAME_new +%xdefine _ENGINE_cleanup _ %+ BORINGSSL_PREFIX %+ _ENGINE_cleanup %xdefine _ENGINE_free _ %+ BORINGSSL_PREFIX %+ _ENGINE_free -%xdefine _ENGINE_get_ECDSA_method _ %+ BORINGSSL_PREFIX %+ _ENGINE_get_ECDSA_method -%xdefine _ENGINE_get_RSA_method _ %+ BORINGSSL_PREFIX %+ _ENGINE_get_RSA_method +%xdefine _ENGINE_get_EC _ %+ BORINGSSL_PREFIX %+ _ENGINE_get_EC +%xdefine _ENGINE_get_RSA _ %+ BORINGSSL_PREFIX %+ _ENGINE_get_RSA %xdefine _ENGINE_load_builtin_engines _ %+ BORINGSSL_PREFIX %+ _ENGINE_load_builtin_engines %xdefine _ENGINE_new _ %+ BORINGSSL_PREFIX %+ _ENGINE_new %xdefine _ENGINE_register_all_complete _ %+ BORINGSSL_PREFIX %+ _ENGINE_register_all_complete -%xdefine _ENGINE_set_ECDSA_method _ %+ BORINGSSL_PREFIX %+ _ENGINE_set_ECDSA_method -%xdefine _ENGINE_set_RSA_method _ %+ BORINGSSL_PREFIX %+ _ENGINE_set_RSA_method +%xdefine _ENGINE_set_EC _ %+ BORINGSSL_PREFIX %+ _ENGINE_set_EC +%xdefine _ENGINE_set_RSA _ %+ BORINGSSL_PREFIX %+ _ENGINE_set_RSA %xdefine _ERR_SAVE_STATE_free _ %+ BORINGSSL_PREFIX %+ _ERR_SAVE_STATE_free %xdefine _ERR_add_error_data _ %+ BORINGSSL_PREFIX %+ _ERR_add_error_data %xdefine _ERR_add_error_dataf _ %+ BORINGSSL_PREFIX %+ _ERR_add_error_dataf @@ -944,6 +1007,7 @@ %xdefine _ERR_get_next_error_library _ %+ BORINGSSL_PREFIX %+ _ERR_get_next_error_library %xdefine _ERR_lib_error_string _ %+ BORINGSSL_PREFIX %+ _ERR_lib_error_string %xdefine _ERR_load_BIO_strings _ %+ BORINGSSL_PREFIX %+ _ERR_load_BIO_strings +%xdefine _ERR_load_CRYPTO_strings _ %+ BORINGSSL_PREFIX %+ _ERR_load_CRYPTO_strings %xdefine _ERR_load_ERR_strings _ %+ BORINGSSL_PREFIX %+ _ERR_load_ERR_strings %xdefine _ERR_load_RAND_strings _ %+ BORINGSSL_PREFIX %+ _ERR_load_RAND_strings %xdefine _ERR_load_crypto_strings _ %+ BORINGSSL_PREFIX %+ _ERR_load_crypto_strings @@ -1013,6 +1077,7 @@ %xdefine _EVP_CIPHER_iv_length _ %+ BORINGSSL_PREFIX %+ _EVP_CIPHER_iv_length %xdefine _EVP_CIPHER_key_length _ %+ BORINGSSL_PREFIX %+ _EVP_CIPHER_key_length %xdefine _EVP_CIPHER_mode _ %+ BORINGSSL_PREFIX %+ _EVP_CIPHER_mode +%xdefine _EVP_CIPHER_name _ %+ BORINGSSL_PREFIX %+ _EVP_CIPHER_name %xdefine _EVP_CIPHER_nid _ %+ BORINGSSL_PREFIX %+ _EVP_CIPHER_nid %xdefine _EVP_Cipher _ %+ BORINGSSL_PREFIX %+ _EVP_Cipher %xdefine _EVP_CipherFinal _ %+ BORINGSSL_PREFIX %+ _EVP_CipherFinal @@ -1073,6 +1138,9 @@ %xdefine _EVP_HPKE_CTX_new _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_new %xdefine _EVP_HPKE_CTX_open _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_open %xdefine _EVP_HPKE_CTX_seal _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_seal +%xdefine _EVP_HPKE_CTX_setup_auth_recipient _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_auth_recipient +%xdefine _EVP_HPKE_CTX_setup_auth_sender _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_auth_sender +%xdefine _EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing %xdefine _EVP_HPKE_CTX_setup_recipient _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_recipient %xdefine _EVP_HPKE_CTX_setup_sender _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_sender %xdefine _EVP_HPKE_CTX_setup_sender_with_seed_for_testing _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -1089,6 +1157,7 @@ %xdefine _EVP_HPKE_KEY_generate _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_generate %xdefine _EVP_HPKE_KEY_init _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_init %xdefine _EVP_HPKE_KEY_kem _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_kem +%xdefine _EVP_HPKE_KEY_move _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_move %xdefine _EVP_HPKE_KEY_new _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_new %xdefine _EVP_HPKE_KEY_private_key _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_private_key %xdefine _EVP_HPKE_KEY_public_key _ %+ BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_public_key @@ -1111,10 +1180,15 @@ %xdefine _EVP_MD_CTX_size _ %+ BORINGSSL_PREFIX %+ _EVP_MD_CTX_size %xdefine _EVP_MD_CTX_type _ %+ BORINGSSL_PREFIX %+ _EVP_MD_CTX_type %xdefine _EVP_MD_block_size _ %+ BORINGSSL_PREFIX %+ _EVP_MD_block_size +%xdefine _EVP_MD_do_all _ %+ BORINGSSL_PREFIX %+ _EVP_MD_do_all %xdefine _EVP_MD_do_all_sorted _ %+ BORINGSSL_PREFIX %+ _EVP_MD_do_all_sorted %xdefine _EVP_MD_flags _ %+ BORINGSSL_PREFIX %+ _EVP_MD_flags +%xdefine _EVP_MD_get0_name _ %+ BORINGSSL_PREFIX %+ _EVP_MD_get0_name +%xdefine _EVP_MD_get_pkey_type _ %+ BORINGSSL_PREFIX %+ _EVP_MD_get_pkey_type %xdefine _EVP_MD_meth_get_flags _ %+ BORINGSSL_PREFIX %+ _EVP_MD_meth_get_flags +%xdefine _EVP_MD_name _ %+ BORINGSSL_PREFIX %+ _EVP_MD_name %xdefine _EVP_MD_nid _ %+ BORINGSSL_PREFIX %+ _EVP_MD_nid +%xdefine _EVP_MD_pkey_type _ %+ BORINGSSL_PREFIX %+ _EVP_MD_pkey_type %xdefine _EVP_MD_size _ %+ BORINGSSL_PREFIX %+ _EVP_MD_size %xdefine _EVP_MD_type _ %+ BORINGSSL_PREFIX %+ _EVP_MD_type %xdefine _EVP_MD_unstable_sha3_enable _ %+ BORINGSSL_PREFIX %+ _EVP_MD_unstable_sha3_enable @@ -1124,10 +1198,13 @@ %xdefine _EVP_PKEY2PKCS8 _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY2PKCS8 %xdefine _EVP_PKEY_CTX_add1_hkdf_info _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_add1_hkdf_info %xdefine _EVP_PKEY_CTX_ctrl _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_ctrl +%xdefine _EVP_PKEY_CTX_ctrl_str _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_ctrl_str %xdefine _EVP_PKEY_CTX_dup _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_dup %xdefine _EVP_PKEY_CTX_free _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_free %xdefine _EVP_PKEY_CTX_get0_pkey _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get0_pkey %xdefine _EVP_PKEY_CTX_get0_rsa_oaep_label _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get0_rsa_oaep_label +%xdefine _EVP_PKEY_CTX_get_app_data _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_app_data +%xdefine _EVP_PKEY_CTX_get_keygen_info _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_keygen_info %xdefine _EVP_PKEY_CTX_get_rsa_mgf1_md _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_rsa_mgf1_md %xdefine _EVP_PKEY_CTX_get_rsa_oaep_md _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_rsa_oaep_md %xdefine _EVP_PKEY_CTX_get_rsa_padding _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_rsa_padding @@ -1135,11 +1212,15 @@ %xdefine _EVP_PKEY_CTX_get_signature_md _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_signature_md %xdefine _EVP_PKEY_CTX_hkdf_mode _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_hkdf_mode %xdefine _EVP_PKEY_CTX_kem_set_params _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_kem_set_params +%xdefine _EVP_PKEY_CTX_md _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_md %xdefine _EVP_PKEY_CTX_new _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_new %xdefine _EVP_PKEY_CTX_new_id _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_new_id %xdefine _EVP_PKEY_CTX_set0_rsa_oaep_label _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set0_rsa_oaep_label %xdefine _EVP_PKEY_CTX_set1_hkdf_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set1_hkdf_key %xdefine _EVP_PKEY_CTX_set1_hkdf_salt _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set1_hkdf_salt +%xdefine _EVP_PKEY_CTX_set_app_data _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_app_data +%xdefine _EVP_PKEY_CTX_set_cb _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_cb +%xdefine _EVP_PKEY_CTX_set_dh_pad _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_dh_pad %xdefine _EVP_PKEY_CTX_set_dsa_paramgen_bits _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_dsa_paramgen_bits %xdefine _EVP_PKEY_CTX_set_dsa_paramgen_q_bits _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_dsa_paramgen_q_bits %xdefine _EVP_PKEY_CTX_set_ec_param_enc _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_ec_param_enc @@ -1155,7 +1236,13 @@ %xdefine _EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen %xdefine _EVP_PKEY_CTX_set_rsa_pss_saltlen _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_rsa_pss_saltlen %xdefine _EVP_PKEY_CTX_set_signature_md _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_signature_md +%xdefine _EVP_PKEY_asn1_find _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_find +%xdefine _EVP_PKEY_asn1_find_str _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_find_str +%xdefine _EVP_PKEY_asn1_get0 _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_get0 +%xdefine _EVP_PKEY_asn1_get0_info _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_get0_info +%xdefine _EVP_PKEY_asn1_get_count _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_get_count %xdefine _EVP_PKEY_assign _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_assign +%xdefine _EVP_PKEY_assign_DH _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_assign_DH %xdefine _EVP_PKEY_assign_DSA _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_assign_DSA %xdefine _EVP_PKEY_assign_EC_KEY _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_assign_EC_KEY %xdefine _EVP_PKEY_assign_RSA _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_assign_RSA @@ -1165,13 +1252,17 @@ %xdefine _EVP_PKEY_cmp_parameters _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_cmp_parameters %xdefine _EVP_PKEY_copy_parameters _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_copy_parameters %xdefine _EVP_PKEY_decapsulate _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_decapsulate +%xdefine _EVP_PKEY_decapsulate_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_decapsulate_verify_service_indicator %xdefine _EVP_PKEY_decrypt _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_decrypt %xdefine _EVP_PKEY_decrypt_init _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_decrypt_init %xdefine _EVP_PKEY_derive _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_derive %xdefine _EVP_PKEY_derive_init _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_derive_init %xdefine _EVP_PKEY_derive_set_peer _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_derive_set_peer %xdefine _EVP_PKEY_ec_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_ec_pkey_meth +%xdefine _EVP_PKEY_ed25519_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_ed25519_pkey_meth %xdefine _EVP_PKEY_encapsulate _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_encapsulate +%xdefine _EVP_PKEY_encapsulate_deterministic _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_encapsulate_deterministic +%xdefine _EVP_PKEY_encapsulate_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_encapsulate_verify_service_indicator %xdefine _EVP_PKEY_encrypt _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_encrypt %xdefine _EVP_PKEY_encrypt_init _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_encrypt_init %xdefine _EVP_PKEY_free _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_free @@ -1188,16 +1279,21 @@ %xdefine _EVP_PKEY_get_raw_private_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_get_raw_private_key %xdefine _EVP_PKEY_get_raw_public_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_get_raw_public_key %xdefine _EVP_PKEY_hkdf_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_hkdf_pkey_meth +%xdefine _EVP_PKEY_hmac_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_hmac_pkey_meth %xdefine _EVP_PKEY_id _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_id %xdefine _EVP_PKEY_is_opaque _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_is_opaque +%xdefine _EVP_PKEY_kem_check_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_kem_check_key %xdefine _EVP_PKEY_kem_new_raw_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_kem_new_raw_key %xdefine _EVP_PKEY_kem_new_raw_public_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_kem_new_raw_public_key %xdefine _EVP_PKEY_kem_new_raw_secret_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_kem_new_raw_secret_key +%xdefine _EVP_PKEY_kem_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_kem_pkey_meth %xdefine _EVP_PKEY_keygen _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_keygen +%xdefine _EVP_PKEY_keygen_deterministic _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_keygen_deterministic %xdefine _EVP_PKEY_keygen_init _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_keygen_init %xdefine _EVP_PKEY_keygen_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_keygen_verify_service_indicator %xdefine _EVP_PKEY_missing_parameters _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_missing_parameters %xdefine _EVP_PKEY_new _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_new +%xdefine _EVP_PKEY_new_mac_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_new_mac_key %xdefine _EVP_PKEY_new_raw_private_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_new_raw_private_key %xdefine _EVP_PKEY_new_raw_public_key _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_new_raw_public_key %xdefine _EVP_PKEY_paramgen _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_paramgen @@ -1207,6 +1303,7 @@ %xdefine _EVP_PKEY_print_public _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_print_public %xdefine _EVP_PKEY_rsa_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_rsa_pkey_meth %xdefine _EVP_PKEY_rsa_pss_pkey_meth _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_rsa_pss_pkey_meth +%xdefine _EVP_PKEY_set1_DH _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_set1_DH %xdefine _EVP_PKEY_set1_DSA _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_set1_DSA %xdefine _EVP_PKEY_set1_EC_KEY _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_set1_EC_KEY %xdefine _EVP_PKEY_set1_RSA _ %+ BORINGSSL_PREFIX %+ _EVP_PKEY_set1_RSA @@ -1248,6 +1345,7 @@ %xdefine _EVP_aead_aes_192_gcm _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_192_gcm %xdefine _EVP_aead_aes_256_cbc_sha1_tls _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_256_cbc_sha1_tls %xdefine _EVP_aead_aes_256_cbc_sha1_tls_implicit_iv _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +%xdefine _EVP_aead_aes_256_cbc_sha384_tls _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_256_cbc_sha384_tls %xdefine _EVP_aead_aes_256_ctr_hmac_sha256 _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_256_ctr_hmac_sha256 %xdefine _EVP_aead_aes_256_gcm _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_256_gcm %xdefine _EVP_aead_aes_256_gcm_randnonce _ %+ BORINGSSL_PREFIX %+ _EVP_aead_aes_256_gcm_randnonce @@ -1262,6 +1360,7 @@ %xdefine _EVP_aes_128_cbc _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_cbc %xdefine _EVP_aes_128_cbc_hmac_sha1 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_cbc_hmac_sha1 %xdefine _EVP_aes_128_cbc_hmac_sha256 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_cbc_hmac_sha256 +%xdefine _EVP_aes_128_ccm _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_ccm %xdefine _EVP_aes_128_cfb _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_cfb %xdefine _EVP_aes_128_cfb1 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_cfb1 %xdefine _EVP_aes_128_cfb128 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_cfb128 @@ -1271,6 +1370,7 @@ %xdefine _EVP_aes_128_gcm _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_gcm %xdefine _EVP_aes_128_ofb _ %+ BORINGSSL_PREFIX %+ _EVP_aes_128_ofb %xdefine _EVP_aes_192_cbc _ %+ BORINGSSL_PREFIX %+ _EVP_aes_192_cbc +%xdefine _EVP_aes_192_ccm _ %+ BORINGSSL_PREFIX %+ _EVP_aes_192_ccm %xdefine _EVP_aes_192_cfb _ %+ BORINGSSL_PREFIX %+ _EVP_aes_192_cfb %xdefine _EVP_aes_192_cfb1 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_192_cfb1 %xdefine _EVP_aes_192_cfb128 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_192_cfb128 @@ -1282,6 +1382,7 @@ %xdefine _EVP_aes_256_cbc _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_cbc %xdefine _EVP_aes_256_cbc_hmac_sha1 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_cbc_hmac_sha1 %xdefine _EVP_aes_256_cbc_hmac_sha256 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_cbc_hmac_sha256 +%xdefine _EVP_aes_256_ccm _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_ccm %xdefine _EVP_aes_256_cfb _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_cfb %xdefine _EVP_aes_256_cfb1 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_cfb1 %xdefine _EVP_aes_256_cfb128 _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_cfb128 @@ -1290,6 +1391,7 @@ %xdefine _EVP_aes_256_ecb _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_ecb %xdefine _EVP_aes_256_gcm _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_gcm %xdefine _EVP_aes_256_ofb _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_ofb +%xdefine _EVP_aes_256_wrap _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_wrap %xdefine _EVP_aes_256_xts _ %+ BORINGSSL_PREFIX %+ _EVP_aes_256_xts %xdefine _EVP_bf_cbc _ %+ BORINGSSL_PREFIX %+ _EVP_bf_cbc %xdefine _EVP_bf_cfb _ %+ BORINGSSL_PREFIX %+ _EVP_bf_cfb @@ -1297,6 +1399,7 @@ %xdefine _EVP_blake2b256 _ %+ BORINGSSL_PREFIX %+ _EVP_blake2b256 %xdefine _EVP_cast5_cbc _ %+ BORINGSSL_PREFIX %+ _EVP_cast5_cbc %xdefine _EVP_cast5_ecb _ %+ BORINGSSL_PREFIX %+ _EVP_cast5_ecb +%xdefine _EVP_chacha20_poly1305 _ %+ BORINGSSL_PREFIX %+ _EVP_chacha20_poly1305 %xdefine _EVP_cleanup _ %+ BORINGSSL_PREFIX %+ _EVP_cleanup %xdefine _EVP_des_cbc _ %+ BORINGSSL_PREFIX %+ _EVP_des_cbc %xdefine _EVP_des_ecb _ %+ BORINGSSL_PREFIX %+ _EVP_des_ecb @@ -1308,6 +1411,7 @@ %xdefine _EVP_enc_null _ %+ BORINGSSL_PREFIX %+ _EVP_enc_null %xdefine _EVP_final_with_secret_suffix_sha1 _ %+ BORINGSSL_PREFIX %+ _EVP_final_with_secret_suffix_sha1 %xdefine _EVP_final_with_secret_suffix_sha256 _ %+ BORINGSSL_PREFIX %+ _EVP_final_with_secret_suffix_sha256 +%xdefine _EVP_final_with_secret_suffix_sha384 _ %+ BORINGSSL_PREFIX %+ _EVP_final_with_secret_suffix_sha384 %xdefine _EVP_get_cipherbyname _ %+ BORINGSSL_PREFIX %+ _EVP_get_cipherbyname %xdefine _EVP_get_cipherbynid _ %+ BORINGSSL_PREFIX %+ _EVP_get_cipherbynid %xdefine _EVP_get_digestbyname _ %+ BORINGSSL_PREFIX %+ _EVP_get_digestbyname @@ -1343,10 +1447,12 @@ %xdefine _EVP_sha3_384 _ %+ BORINGSSL_PREFIX %+ _EVP_sha3_384 %xdefine _EVP_sha3_512 _ %+ BORINGSSL_PREFIX %+ _EVP_sha3_512 %xdefine _EVP_sha512 _ %+ BORINGSSL_PREFIX %+ _EVP_sha512 +%xdefine _EVP_sha512_224 _ %+ BORINGSSL_PREFIX %+ _EVP_sha512_224 %xdefine _EVP_sha512_256 _ %+ BORINGSSL_PREFIX %+ _EVP_sha512_256 +%xdefine _EVP_shake128 _ %+ BORINGSSL_PREFIX %+ _EVP_shake128 +%xdefine _EVP_shake256 _ %+ BORINGSSL_PREFIX %+ _EVP_shake256 %xdefine _EVP_tls_cbc_copy_mac _ %+ BORINGSSL_PREFIX %+ _EVP_tls_cbc_copy_mac %xdefine _EVP_tls_cbc_digest_record _ %+ BORINGSSL_PREFIX %+ _EVP_tls_cbc_digest_record -%xdefine _EVP_tls_cbc_digest_record_sha256 _ %+ BORINGSSL_PREFIX %+ _EVP_tls_cbc_digest_record_sha256 %xdefine _EVP_tls_cbc_record_digest_supported _ %+ BORINGSSL_PREFIX %+ _EVP_tls_cbc_record_digest_supported %xdefine _EVP_tls_cbc_remove_padding _ %+ BORINGSSL_PREFIX %+ _EVP_tls_cbc_remove_padding %xdefine _EXTENDED_KEY_USAGE_free _ %+ BORINGSSL_PREFIX %+ _EXTENDED_KEY_USAGE_free @@ -1394,9 +1500,14 @@ %xdefine _HMAC_Final _ %+ BORINGSSL_PREFIX %+ _HMAC_Final %xdefine _HMAC_Init _ %+ BORINGSSL_PREFIX %+ _HMAC_Init %xdefine _HMAC_Init_ex _ %+ BORINGSSL_PREFIX %+ _HMAC_Init_ex +%xdefine _HMAC_Init_from_precomputed_key _ %+ BORINGSSL_PREFIX %+ _HMAC_Init_from_precomputed_key +%xdefine _HMAC_KEY_new _ %+ BORINGSSL_PREFIX %+ _HMAC_KEY_new %xdefine _HMAC_Update _ %+ BORINGSSL_PREFIX %+ _HMAC_Update +%xdefine _HMAC_get_precomputed_key _ %+ BORINGSSL_PREFIX %+ _HMAC_get_precomputed_key +%xdefine _HMAC_set_precomputed_key_export _ %+ BORINGSSL_PREFIX %+ _HMAC_set_precomputed_key_export %xdefine _HMAC_size _ %+ BORINGSSL_PREFIX %+ _HMAC_size %xdefine _HMAC_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _HMAC_verify_service_indicator +%xdefine _HMAC_with_precompute _ %+ BORINGSSL_PREFIX %+ _HMAC_with_precompute %xdefine _HRSS_decap _ %+ BORINGSSL_PREFIX %+ _HRSS_decap %xdefine _HRSS_encap _ %+ BORINGSSL_PREFIX %+ _HRSS_encap %xdefine _HRSS_generate_key _ %+ BORINGSSL_PREFIX %+ _HRSS_generate_key @@ -1407,6 +1518,8 @@ %xdefine _ISSUING_DIST_POINT_free _ %+ BORINGSSL_PREFIX %+ _ISSUING_DIST_POINT_free %xdefine _ISSUING_DIST_POINT_it _ %+ BORINGSSL_PREFIX %+ _ISSUING_DIST_POINT_it %xdefine _ISSUING_DIST_POINT_new _ %+ BORINGSSL_PREFIX %+ _ISSUING_DIST_POINT_new +%xdefine _KBKDF_ctr_hmac _ %+ BORINGSSL_PREFIX %+ _KBKDF_ctr_hmac +%xdefine _KBKDF_ctr_hmac_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _KBKDF_ctr_hmac_verify_service_indicator %xdefine _KEM_KEY_free _ %+ BORINGSSL_PREFIX %+ _KEM_KEY_free %xdefine _KEM_KEY_get0_kem _ %+ BORINGSSL_PREFIX %+ _KEM_KEY_get0_kem %xdefine _KEM_KEY_init _ %+ BORINGSSL_PREFIX %+ _KEM_KEY_init @@ -1423,10 +1536,10 @@ %xdefine _MD5 _ %+ BORINGSSL_PREFIX %+ _MD5 %xdefine _MD5_Final _ %+ BORINGSSL_PREFIX %+ _MD5_Final %xdefine _MD5_Init _ %+ BORINGSSL_PREFIX %+ _MD5_Init +%xdefine _MD5_Init_from_state _ %+ BORINGSSL_PREFIX %+ _MD5_Init_from_state %xdefine _MD5_Transform _ %+ BORINGSSL_PREFIX %+ _MD5_Transform %xdefine _MD5_Update _ %+ BORINGSSL_PREFIX %+ _MD5_Update -%xdefine _METHOD_ref _ %+ BORINGSSL_PREFIX %+ _METHOD_ref -%xdefine _METHOD_unref _ %+ BORINGSSL_PREFIX %+ _METHOD_unref +%xdefine _MD5_get_state _ %+ BORINGSSL_PREFIX %+ _MD5_get_state %xdefine _MGF1 _ %+ BORINGSSL_PREFIX %+ _MGF1 %xdefine _NAME_CONSTRAINTS_check _ %+ BORINGSSL_PREFIX %+ _NAME_CONSTRAINTS_check %xdefine _NAME_CONSTRAINTS_free _ %+ BORINGSSL_PREFIX %+ _NAME_CONSTRAINTS_free @@ -1447,12 +1560,14 @@ %xdefine _NETSCAPE_SPKI_get_pubkey _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_get_pubkey %xdefine _NETSCAPE_SPKI_it _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_it %xdefine _NETSCAPE_SPKI_new _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_new +%xdefine _NETSCAPE_SPKI_print _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_print %xdefine _NETSCAPE_SPKI_set_pubkey _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_set_pubkey %xdefine _NETSCAPE_SPKI_sign _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_sign %xdefine _NETSCAPE_SPKI_verify _ %+ BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_verify %xdefine _NOTICEREF_free _ %+ BORINGSSL_PREFIX %+ _NOTICEREF_free %xdefine _NOTICEREF_it _ %+ BORINGSSL_PREFIX %+ _NOTICEREF_it %xdefine _NOTICEREF_new _ %+ BORINGSSL_PREFIX %+ _NOTICEREF_new +%xdefine _OBJ_NAME_do_all_sorted _ %+ BORINGSSL_PREFIX %+ _OBJ_NAME_do_all_sorted %xdefine _OBJ_cbs2nid _ %+ BORINGSSL_PREFIX %+ _OBJ_cbs2nid %xdefine _OBJ_cleanup _ %+ BORINGSSL_PREFIX %+ _OBJ_cleanup %xdefine _OBJ_cmp _ %+ BORINGSSL_PREFIX %+ _OBJ_cmp @@ -1461,6 +1576,7 @@ %xdefine _OBJ_find_sigid_algs _ %+ BORINGSSL_PREFIX %+ _OBJ_find_sigid_algs %xdefine _OBJ_find_sigid_by_algs _ %+ BORINGSSL_PREFIX %+ _OBJ_find_sigid_by_algs %xdefine _OBJ_get0_data _ %+ BORINGSSL_PREFIX %+ _OBJ_get0_data +%xdefine _OBJ_get_undef _ %+ BORINGSSL_PREFIX %+ _OBJ_get_undef %xdefine _OBJ_length _ %+ BORINGSSL_PREFIX %+ _OBJ_length %xdefine _OBJ_ln2nid _ %+ BORINGSSL_PREFIX %+ _OBJ_ln2nid %xdefine _OBJ_nid2cbb _ %+ BORINGSSL_PREFIX %+ _OBJ_nid2cbb @@ -1472,48 +1588,106 @@ %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 %xdefine _OCSP_BASICRESP_it _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_it %xdefine _OCSP_BASICRESP_new _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_new +%xdefine _OCSP_CERTID_dup _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTID_dup %xdefine _OCSP_CERTID_free _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTID_free %xdefine _OCSP_CERTID_it _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTID_it %xdefine _OCSP_CERTID_new _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTID_new -%xdefine _OCSP_CERTSTATUS_free _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTSTATUS_free %xdefine _OCSP_CERTSTATUS_it _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTSTATUS_it -%xdefine _OCSP_CERTSTATUS_new _ %+ BORINGSSL_PREFIX %+ _OCSP_CERTSTATUS_new +%xdefine _OCSP_ONEREQ_free _ %+ BORINGSSL_PREFIX %+ _OCSP_ONEREQ_free +%xdefine _OCSP_ONEREQ_it _ %+ BORINGSSL_PREFIX %+ _OCSP_ONEREQ_it +%xdefine _OCSP_ONEREQ_new _ %+ BORINGSSL_PREFIX %+ _OCSP_ONEREQ_new +%xdefine _OCSP_REQINFO_free _ %+ BORINGSSL_PREFIX %+ _OCSP_REQINFO_free +%xdefine _OCSP_REQINFO_it _ %+ BORINGSSL_PREFIX %+ _OCSP_REQINFO_it +%xdefine _OCSP_REQINFO_new _ %+ BORINGSSL_PREFIX %+ _OCSP_REQINFO_new +%xdefine _OCSP_REQUEST_free _ %+ BORINGSSL_PREFIX %+ _OCSP_REQUEST_free +%xdefine _OCSP_REQUEST_get_ext _ %+ BORINGSSL_PREFIX %+ _OCSP_REQUEST_get_ext +%xdefine _OCSP_REQUEST_get_ext_by_NID _ %+ BORINGSSL_PREFIX %+ _OCSP_REQUEST_get_ext_by_NID +%xdefine _OCSP_REQUEST_it _ %+ BORINGSSL_PREFIX %+ _OCSP_REQUEST_it +%xdefine _OCSP_REQUEST_new _ %+ BORINGSSL_PREFIX %+ _OCSP_REQUEST_new +%xdefine _OCSP_REQUEST_print _ %+ BORINGSSL_PREFIX %+ _OCSP_REQUEST_print +%xdefine _OCSP_REQ_CTX_add1_header _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_add1_header +%xdefine _OCSP_REQ_CTX_free _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_free +%xdefine _OCSP_REQ_CTX_get0_mem_bio _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_get0_mem_bio +%xdefine _OCSP_REQ_CTX_http _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_http +%xdefine _OCSP_REQ_CTX_i2d _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_i2d +%xdefine _OCSP_REQ_CTX_nbio _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_nbio +%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 -%xdefine _OCSP_RESPID_free _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPID_free %xdefine _OCSP_RESPID_it _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPID_it -%xdefine _OCSP_RESPID_new _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPID_new %xdefine _OCSP_RESPONSE_free _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPONSE_free %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 +%xdefine _OCSP_SINGLERESP_add_ext _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_add_ext %xdefine _OCSP_SINGLERESP_free _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_free +%xdefine _OCSP_SINGLERESP_get0_id _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_get0_id +%xdefine _OCSP_SINGLERESP_get_ext _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_get_ext +%xdefine _OCSP_SINGLERESP_get_ext_count _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_get_ext_count %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 %xdefine _OCSP_id_issuer_cmp _ %+ BORINGSSL_PREFIX %+ _OCSP_id_issuer_cmp +%xdefine _OCSP_onereq_get0_id _ %+ BORINGSSL_PREFIX %+ _OCSP_onereq_get0_id +%xdefine _OCSP_parse_url _ %+ BORINGSSL_PREFIX %+ _OCSP_parse_url +%xdefine _OCSP_request_add0_id _ %+ BORINGSSL_PREFIX %+ _OCSP_request_add0_id +%xdefine _OCSP_request_add1_cert _ %+ BORINGSSL_PREFIX %+ _OCSP_request_add1_cert +%xdefine _OCSP_request_add1_nonce _ %+ BORINGSSL_PREFIX %+ _OCSP_request_add1_nonce +%xdefine _OCSP_request_is_signed _ %+ BORINGSSL_PREFIX %+ _OCSP_request_is_signed +%xdefine _OCSP_request_onereq_count _ %+ BORINGSSL_PREFIX %+ _OCSP_request_onereq_count +%xdefine _OCSP_request_onereq_get0 _ %+ BORINGSSL_PREFIX %+ _OCSP_request_onereq_get0 +%xdefine _OCSP_request_set1_name _ %+ BORINGSSL_PREFIX %+ _OCSP_request_set1_name +%xdefine _OCSP_request_sign _ %+ BORINGSSL_PREFIX %+ _OCSP_request_sign +%xdefine _OCSP_request_verify _ %+ BORINGSSL_PREFIX %+ _OCSP_request_verify +%xdefine _OCSP_resp_count _ %+ BORINGSSL_PREFIX %+ _OCSP_resp_count %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 +%xdefine _OCSP_sendreq_bio _ %+ BORINGSSL_PREFIX %+ _OCSP_sendreq_bio +%xdefine _OCSP_sendreq_nbio _ %+ BORINGSSL_PREFIX %+ _OCSP_sendreq_nbio +%xdefine _OCSP_sendreq_new _ %+ BORINGSSL_PREFIX %+ _OCSP_sendreq_new +%xdefine _OCSP_set_max_response_length _ %+ BORINGSSL_PREFIX %+ _OCSP_set_max_response_length %xdefine _OCSP_single_get0_status _ %+ BORINGSSL_PREFIX %+ _OCSP_single_get0_status %xdefine _OPENSSL_add_all_algorithms_conf _ %+ BORINGSSL_PREFIX %+ _OPENSSL_add_all_algorithms_conf %xdefine _OPENSSL_armcap_P _ %+ BORINGSSL_PREFIX %+ _OPENSSL_armcap_P %xdefine _OPENSSL_asprintf _ %+ BORINGSSL_PREFIX %+ _OPENSSL_asprintf -%xdefine _OPENSSL_built_in_curves _ %+ BORINGSSL_PREFIX %+ _OPENSSL_built_in_curves +%xdefine _OPENSSL_calloc _ %+ BORINGSSL_PREFIX %+ _OPENSSL_calloc %xdefine _OPENSSL_cleanse _ %+ BORINGSSL_PREFIX %+ _OPENSSL_cleanse %xdefine _OPENSSL_cleanup _ %+ BORINGSSL_PREFIX %+ _OPENSSL_cleanup %xdefine _OPENSSL_clear_free _ %+ BORINGSSL_PREFIX %+ _OPENSSL_clear_free @@ -1521,13 +1695,21 @@ %xdefine _OPENSSL_cpucap_initialized _ %+ BORINGSSL_PREFIX %+ _OPENSSL_cpucap_initialized %xdefine _OPENSSL_cpuid_setup _ %+ BORINGSSL_PREFIX %+ _OPENSSL_cpuid_setup %xdefine _OPENSSL_free _ %+ BORINGSSL_PREFIX %+ _OPENSSL_free +%xdefine _OPENSSL_fromxdigit _ %+ BORINGSSL_PREFIX %+ _OPENSSL_fromxdigit %xdefine _OPENSSL_gmtime _ %+ BORINGSSL_PREFIX %+ _OPENSSL_gmtime %xdefine _OPENSSL_gmtime_adj _ %+ BORINGSSL_PREFIX %+ _OPENSSL_gmtime_adj %xdefine _OPENSSL_gmtime_diff _ %+ BORINGSSL_PREFIX %+ _OPENSSL_gmtime_diff %xdefine _OPENSSL_hash32 _ %+ BORINGSSL_PREFIX %+ _OPENSSL_hash32 +%xdefine _OPENSSL_hexstr2buf _ %+ BORINGSSL_PREFIX %+ _OPENSSL_hexstr2buf %xdefine _OPENSSL_ia32cap_P _ %+ BORINGSSL_PREFIX %+ _OPENSSL_ia32cap_P %xdefine _OPENSSL_ia32cap_get _ %+ BORINGSSL_PREFIX %+ _OPENSSL_ia32cap_get +%xdefine _OPENSSL_init _ %+ BORINGSSL_PREFIX %+ _OPENSSL_init %xdefine _OPENSSL_init_crypto _ %+ BORINGSSL_PREFIX %+ _OPENSSL_init_crypto +%xdefine _OPENSSL_isalnum _ %+ BORINGSSL_PREFIX %+ _OPENSSL_isalnum +%xdefine _OPENSSL_isalpha _ %+ BORINGSSL_PREFIX %+ _OPENSSL_isalpha +%xdefine _OPENSSL_isdigit _ %+ BORINGSSL_PREFIX %+ _OPENSSL_isdigit +%xdefine _OPENSSL_isspace _ %+ BORINGSSL_PREFIX %+ _OPENSSL_isspace +%xdefine _OPENSSL_isxdigit _ %+ BORINGSSL_PREFIX %+ _OPENSSL_isxdigit %xdefine _OPENSSL_lh_delete _ %+ BORINGSSL_PREFIX %+ _OPENSSL_lh_delete %xdefine _OPENSSL_lh_doall_arg _ %+ BORINGSSL_PREFIX %+ _OPENSSL_lh_doall_arg %xdefine _OPENSSL_lh_free _ %+ BORINGSSL_PREFIX %+ _OPENSSL_lh_free @@ -1545,6 +1727,29 @@ %xdefine _OPENSSL_realloc _ %+ BORINGSSL_PREFIX %+ _OPENSSL_realloc %xdefine _OPENSSL_secure_clear_free _ %+ BORINGSSL_PREFIX %+ _OPENSSL_secure_clear_free %xdefine _OPENSSL_secure_malloc _ %+ BORINGSSL_PREFIX %+ _OPENSSL_secure_malloc +%xdefine _OPENSSL_secure_zalloc _ %+ BORINGSSL_PREFIX %+ _OPENSSL_secure_zalloc +%xdefine _OPENSSL_sk_deep_copy _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_deep_copy +%xdefine _OPENSSL_sk_delete _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_delete +%xdefine _OPENSSL_sk_delete_if _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_delete_if +%xdefine _OPENSSL_sk_delete_ptr _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_delete_ptr +%xdefine _OPENSSL_sk_dup _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_dup +%xdefine _OPENSSL_sk_find _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_find +%xdefine _OPENSSL_sk_free _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_free +%xdefine _OPENSSL_sk_insert _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_insert +%xdefine _OPENSSL_sk_is_sorted _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_is_sorted +%xdefine _OPENSSL_sk_new _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_new +%xdefine _OPENSSL_sk_new_null _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_new_null +%xdefine _OPENSSL_sk_num _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_num +%xdefine _OPENSSL_sk_pop _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_pop +%xdefine _OPENSSL_sk_pop_free_ex _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_pop_free_ex +%xdefine _OPENSSL_sk_push _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_push +%xdefine _OPENSSL_sk_set _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_set +%xdefine _OPENSSL_sk_set_cmp_func _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_set_cmp_func +%xdefine _OPENSSL_sk_shift _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_shift +%xdefine _OPENSSL_sk_sort _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_sort +%xdefine _OPENSSL_sk_unshift _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_unshift +%xdefine _OPENSSL_sk_value _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_value +%xdefine _OPENSSL_sk_zero _ %+ BORINGSSL_PREFIX %+ _OPENSSL_sk_zero %xdefine _OPENSSL_strcasecmp _ %+ BORINGSSL_PREFIX %+ _OPENSSL_strcasecmp %xdefine _OPENSSL_strdup _ %+ BORINGSSL_PREFIX %+ _OPENSSL_strdup %xdefine _OPENSSL_strhash _ %+ BORINGSSL_PREFIX %+ _OPENSSL_strhash @@ -1558,7 +1763,7 @@ %xdefine _OPENSSL_tolower _ %+ BORINGSSL_PREFIX %+ _OPENSSL_tolower %xdefine _OPENSSL_vasprintf _ %+ BORINGSSL_PREFIX %+ _OPENSSL_vasprintf %xdefine _OPENSSL_vasprintf_internal _ %+ BORINGSSL_PREFIX %+ _OPENSSL_vasprintf_internal -%xdefine _OTHERNAME_cmp _ %+ BORINGSSL_PREFIX %+ _OTHERNAME_cmp +%xdefine _OPENSSL_zalloc _ %+ BORINGSSL_PREFIX %+ _OPENSSL_zalloc %xdefine _OTHERNAME_free _ %+ BORINGSSL_PREFIX %+ _OTHERNAME_free %xdefine _OTHERNAME_it _ %+ BORINGSSL_PREFIX %+ _OTHERNAME_it %xdefine _OTHERNAME_new _ %+ BORINGSSL_PREFIX %+ _OTHERNAME_new @@ -1576,10 +1781,8 @@ %xdefine _PEM_X509_INFO_read_bio _ %+ BORINGSSL_PREFIX %+ _PEM_X509_INFO_read_bio %xdefine _PEM_bytes_read_bio _ %+ BORINGSSL_PREFIX %+ _PEM_bytes_read_bio %xdefine _PEM_def_callback _ %+ BORINGSSL_PREFIX %+ _PEM_def_callback -%xdefine _PEM_dek_info _ %+ BORINGSSL_PREFIX %+ _PEM_dek_info %xdefine _PEM_do_header _ %+ BORINGSSL_PREFIX %+ _PEM_do_header %xdefine _PEM_get_EVP_CIPHER_INFO _ %+ BORINGSSL_PREFIX %+ _PEM_get_EVP_CIPHER_INFO -%xdefine _PEM_proc_type _ %+ BORINGSSL_PREFIX %+ _PEM_proc_type %xdefine _PEM_read _ %+ BORINGSSL_PREFIX %+ _PEM_read %xdefine _PEM_read_DHparams _ %+ BORINGSSL_PREFIX %+ _PEM_read_DHparams %xdefine _PEM_read_DSAPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_read_DSAPrivateKey @@ -1604,12 +1807,14 @@ %xdefine _PEM_read_bio_DSAPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_DSAPrivateKey %xdefine _PEM_read_bio_DSA_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_DSA_PUBKEY %xdefine _PEM_read_bio_DSAparams _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_DSAparams +%xdefine _PEM_read_bio_ECPKParameters _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_ECPKParameters %xdefine _PEM_read_bio_ECPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_ECPrivateKey %xdefine _PEM_read_bio_EC_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_EC_PUBKEY %xdefine _PEM_read_bio_PKCS7 _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_PKCS7 %xdefine _PEM_read_bio_PKCS8 _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_PKCS8 %xdefine _PEM_read_bio_PKCS8_PRIV_KEY_INFO _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_PKCS8_PRIV_KEY_INFO %xdefine _PEM_read_bio_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_PUBKEY +%xdefine _PEM_read_bio_Parameters _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_Parameters %xdefine _PEM_read_bio_PrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_PrivateKey %xdefine _PEM_read_bio_RSAPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_RSAPrivateKey %xdefine _PEM_read_bio_RSAPublicKey _ %+ BORINGSSL_PREFIX %+ _PEM_read_bio_RSAPublicKey @@ -1645,6 +1850,7 @@ %xdefine _PEM_write_bio_DSAPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_DSAPrivateKey %xdefine _PEM_write_bio_DSA_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_DSA_PUBKEY %xdefine _PEM_write_bio_DSAparams _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_DSAparams +%xdefine _PEM_write_bio_ECPKParameters _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_ECPKParameters %xdefine _PEM_write_bio_ECPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_ECPrivateKey %xdefine _PEM_write_bio_EC_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_EC_PUBKEY %xdefine _PEM_write_bio_PKCS7 _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_PKCS7 @@ -1653,7 +1859,9 @@ %xdefine _PEM_write_bio_PKCS8PrivateKey_nid _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_PKCS8PrivateKey_nid %xdefine _PEM_write_bio_PKCS8_PRIV_KEY_INFO _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_PKCS8_PRIV_KEY_INFO %xdefine _PEM_write_bio_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_PUBKEY +%xdefine _PEM_write_bio_Parameters _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_Parameters %xdefine _PEM_write_bio_PrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_PrivateKey +%xdefine _PEM_write_bio_PrivateKey_traditional _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_PrivateKey_traditional %xdefine _PEM_write_bio_RSAPrivateKey _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_RSAPrivateKey %xdefine _PEM_write_bio_RSAPublicKey _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_RSAPublicKey %xdefine _PEM_write_bio_RSA_PUBKEY _ %+ BORINGSSL_PREFIX %+ _PEM_write_bio_RSA_PUBKEY @@ -1666,21 +1874,67 @@ %xdefine _PKCS12_create _ %+ BORINGSSL_PREFIX %+ _PKCS12_create %xdefine _PKCS12_free _ %+ BORINGSSL_PREFIX %+ _PKCS12_free %xdefine _PKCS12_get_key_and_certs _ %+ BORINGSSL_PREFIX %+ _PKCS12_get_key_and_certs +%xdefine _PKCS12_new _ %+ BORINGSSL_PREFIX %+ _PKCS12_new %xdefine _PKCS12_parse _ %+ BORINGSSL_PREFIX %+ _PKCS12_parse %xdefine _PKCS12_verify_mac _ %+ BORINGSSL_PREFIX %+ _PKCS12_verify_mac +%xdefine _PKCS1_MGF1 _ %+ BORINGSSL_PREFIX %+ _PKCS1_MGF1 %xdefine _PKCS5_PBKDF2_HMAC _ %+ BORINGSSL_PREFIX %+ _PKCS5_PBKDF2_HMAC %xdefine _PKCS5_PBKDF2_HMAC_SHA1 _ %+ BORINGSSL_PREFIX %+ _PKCS5_PBKDF2_HMAC_SHA1 %xdefine _PKCS5_pbe2_decrypt_init _ %+ BORINGSSL_PREFIX %+ _PKCS5_pbe2_decrypt_init %xdefine _PKCS5_pbe2_encrypt_init _ %+ BORINGSSL_PREFIX %+ _PKCS5_pbe2_encrypt_init +%xdefine _PKCS7_DIGEST_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_DIGEST_free +%xdefine _PKCS7_DIGEST_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_DIGEST_it +%xdefine _PKCS7_DIGEST_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_DIGEST_new +%xdefine _PKCS7_ENCRYPT_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENCRYPT_free +%xdefine _PKCS7_ENCRYPT_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENCRYPT_it +%xdefine _PKCS7_ENCRYPT_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENCRYPT_new +%xdefine _PKCS7_ENC_CONTENT_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENC_CONTENT_free +%xdefine _PKCS7_ENC_CONTENT_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENC_CONTENT_it +%xdefine _PKCS7_ENC_CONTENT_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENC_CONTENT_new +%xdefine _PKCS7_ENVELOPE_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENVELOPE_free +%xdefine _PKCS7_ENVELOPE_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENVELOPE_it +%xdefine _PKCS7_ENVELOPE_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_ENVELOPE_new +%xdefine _PKCS7_ISSUER_AND_SERIAL_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_ISSUER_AND_SERIAL_free +%xdefine _PKCS7_ISSUER_AND_SERIAL_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_ISSUER_AND_SERIAL_it +%xdefine _PKCS7_ISSUER_AND_SERIAL_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_ISSUER_AND_SERIAL_new +%xdefine _PKCS7_RECIP_INFO_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_free +%xdefine _PKCS7_RECIP_INFO_get0_alg _ %+ BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_get0_alg +%xdefine _PKCS7_RECIP_INFO_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_it +%xdefine _PKCS7_RECIP_INFO_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_new +%xdefine _PKCS7_RECIP_INFO_set _ %+ BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_set +%xdefine _PKCS7_SIGNED_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNED_free +%xdefine _PKCS7_SIGNED_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNED_it +%xdefine _PKCS7_SIGNED_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNED_new +%xdefine _PKCS7_SIGNER_INFO_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_free +%xdefine _PKCS7_SIGNER_INFO_get0_algs _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_get0_algs +%xdefine _PKCS7_SIGNER_INFO_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_it +%xdefine _PKCS7_SIGNER_INFO_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_new +%xdefine _PKCS7_SIGNER_INFO_set _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_set +%xdefine _PKCS7_SIGN_ENVELOPE_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGN_ENVELOPE_free +%xdefine _PKCS7_SIGN_ENVELOPE_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGN_ENVELOPE_it +%xdefine _PKCS7_SIGN_ENVELOPE_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_SIGN_ENVELOPE_new +%xdefine _PKCS7_add_certificate _ %+ BORINGSSL_PREFIX %+ _PKCS7_add_certificate +%xdefine _PKCS7_add_crl _ %+ BORINGSSL_PREFIX %+ _PKCS7_add_crl +%xdefine _PKCS7_add_recipient_info _ %+ BORINGSSL_PREFIX %+ _PKCS7_add_recipient_info +%xdefine _PKCS7_add_signer _ %+ BORINGSSL_PREFIX %+ _PKCS7_add_signer %xdefine _PKCS7_bundle_CRLs _ %+ BORINGSSL_PREFIX %+ _PKCS7_bundle_CRLs %xdefine _PKCS7_bundle_certificates _ %+ BORINGSSL_PREFIX %+ _PKCS7_bundle_certificates %xdefine _PKCS7_bundle_raw_certificates _ %+ BORINGSSL_PREFIX %+ _PKCS7_bundle_raw_certificates +%xdefine _PKCS7_content_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_content_new +%xdefine _PKCS7_dup _ %+ BORINGSSL_PREFIX %+ _PKCS7_dup %xdefine _PKCS7_free _ %+ BORINGSSL_PREFIX %+ _PKCS7_free %xdefine _PKCS7_get_CRLs _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_CRLs %xdefine _PKCS7_get_PEM_CRLs _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_PEM_CRLs %xdefine _PKCS7_get_PEM_certificates _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_PEM_certificates %xdefine _PKCS7_get_certificates _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_certificates %xdefine _PKCS7_get_raw_certificates _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_raw_certificates +%xdefine _PKCS7_get_signed_attribute _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_signed_attribute +%xdefine _PKCS7_get_signer_info _ %+ BORINGSSL_PREFIX %+ _PKCS7_get_signer_info +%xdefine _PKCS7_it _ %+ BORINGSSL_PREFIX %+ _PKCS7_it +%xdefine _PKCS7_new _ %+ BORINGSSL_PREFIX %+ _PKCS7_new +%xdefine _PKCS7_set_cipher _ %+ BORINGSSL_PREFIX %+ _PKCS7_set_cipher +%xdefine _PKCS7_set_content _ %+ BORINGSSL_PREFIX %+ _PKCS7_set_content +%xdefine _PKCS7_set_type _ %+ BORINGSSL_PREFIX %+ _PKCS7_set_type %xdefine _PKCS7_sign _ %+ BORINGSSL_PREFIX %+ _PKCS7_sign %xdefine _PKCS7_type_is_data _ %+ BORINGSSL_PREFIX %+ _PKCS7_type_is_data %xdefine _PKCS7_type_is_digest _ %+ BORINGSSL_PREFIX %+ _PKCS7_type_is_digest @@ -1708,12 +1962,6 @@ %xdefine _POLICY_MAPPING_free _ %+ BORINGSSL_PREFIX %+ _POLICY_MAPPING_free %xdefine _POLICY_MAPPING_it _ %+ BORINGSSL_PREFIX %+ _POLICY_MAPPING_it %xdefine _POLICY_MAPPING_new _ %+ BORINGSSL_PREFIX %+ _POLICY_MAPPING_new -%xdefine _PROXY_CERT_INFO_EXTENSION_free _ %+ BORINGSSL_PREFIX %+ _PROXY_CERT_INFO_EXTENSION_free -%xdefine _PROXY_CERT_INFO_EXTENSION_it _ %+ BORINGSSL_PREFIX %+ _PROXY_CERT_INFO_EXTENSION_it -%xdefine _PROXY_CERT_INFO_EXTENSION_new _ %+ BORINGSSL_PREFIX %+ _PROXY_CERT_INFO_EXTENSION_new -%xdefine _PROXY_POLICY_free _ %+ BORINGSSL_PREFIX %+ _PROXY_POLICY_free -%xdefine _PROXY_POLICY_it _ %+ BORINGSSL_PREFIX %+ _PROXY_POLICY_it -%xdefine _PROXY_POLICY_new _ %+ BORINGSSL_PREFIX %+ _PROXY_POLICY_new %xdefine _RAND_OpenSSL _ %+ BORINGSSL_PREFIX %+ _RAND_OpenSSL %xdefine _RAND_SSLeay _ %+ BORINGSSL_PREFIX %+ _RAND_SSLeay %xdefine _RAND_add _ %+ BORINGSSL_PREFIX %+ _RAND_add @@ -1721,18 +1969,22 @@ %xdefine _RAND_bytes_with_additional_data _ %+ BORINGSSL_PREFIX %+ _RAND_bytes_with_additional_data %xdefine _RAND_cleanup _ %+ BORINGSSL_PREFIX %+ _RAND_cleanup %xdefine _RAND_egd _ %+ BORINGSSL_PREFIX %+ _RAND_egd +%xdefine _RAND_egd_bytes _ %+ BORINGSSL_PREFIX %+ _RAND_egd_bytes %xdefine _RAND_enable_fork_unsafe_buffering _ %+ BORINGSSL_PREFIX %+ _RAND_enable_fork_unsafe_buffering %xdefine _RAND_file_name _ %+ BORINGSSL_PREFIX %+ _RAND_file_name %xdefine _RAND_get_rand_method _ %+ BORINGSSL_PREFIX %+ _RAND_get_rand_method %xdefine _RAND_get_system_entropy_for_custom_prng _ %+ BORINGSSL_PREFIX %+ _RAND_get_system_entropy_for_custom_prng +%xdefine _RAND_keep_random_devices_open _ %+ BORINGSSL_PREFIX %+ _RAND_keep_random_devices_open %xdefine _RAND_load_entropy _ %+ BORINGSSL_PREFIX %+ _RAND_load_entropy %xdefine _RAND_load_file _ %+ BORINGSSL_PREFIX %+ _RAND_load_file %xdefine _RAND_module_entropy_depleted _ %+ BORINGSSL_PREFIX %+ _RAND_module_entropy_depleted %xdefine _RAND_poll _ %+ BORINGSSL_PREFIX %+ _RAND_poll +%xdefine _RAND_priv_bytes _ %+ BORINGSSL_PREFIX %+ _RAND_priv_bytes %xdefine _RAND_pseudo_bytes _ %+ BORINGSSL_PREFIX %+ _RAND_pseudo_bytes %xdefine _RAND_seed _ %+ BORINGSSL_PREFIX %+ _RAND_seed %xdefine _RAND_set_rand_method _ %+ BORINGSSL_PREFIX %+ _RAND_set_rand_method %xdefine _RAND_status _ %+ BORINGSSL_PREFIX %+ _RAND_status +%xdefine _RAND_write_file _ %+ BORINGSSL_PREFIX %+ _RAND_write_file %xdefine _RC4 _ %+ BORINGSSL_PREFIX %+ _RC4 %xdefine _RC4_set_key _ %+ BORINGSSL_PREFIX %+ _RC4_set_key %xdefine _RIPEMD160 _ %+ BORINGSSL_PREFIX %+ _RIPEMD160 @@ -1747,6 +1999,7 @@ %xdefine _RSASSA_PSS_PARAMS_new _ %+ BORINGSSL_PREFIX %+ _RSASSA_PSS_PARAMS_new %xdefine _RSASSA_PSS_parse_params _ %+ BORINGSSL_PREFIX %+ _RSASSA_PSS_parse_params %xdefine _RSAZ_1024_mod_exp_avx2 _ %+ BORINGSSL_PREFIX %+ _RSAZ_1024_mod_exp_avx2 +%xdefine _RSAZ_mod_exp_avx512_x2 _ %+ BORINGSSL_PREFIX %+ _RSAZ_mod_exp_avx512_x2 %xdefine _RSA_ALGOR_IDENTIFIER_free _ %+ BORINGSSL_PREFIX %+ _RSA_ALGOR_IDENTIFIER_free %xdefine _RSA_ALGOR_IDENTIFIER_new _ %+ BORINGSSL_PREFIX %+ _RSA_ALGOR_IDENTIFIER_new %xdefine _RSA_INTEGER_free _ %+ BORINGSSL_PREFIX %+ _RSA_INTEGER_free @@ -1758,11 +2011,11 @@ %xdefine _RSA_PSS_PARAMS_new _ %+ BORINGSSL_PREFIX %+ _RSA_PSS_PARAMS_new %xdefine _RSA_add_pkcs1_prefix _ %+ BORINGSSL_PREFIX %+ _RSA_add_pkcs1_prefix %xdefine _RSA_bits _ %+ BORINGSSL_PREFIX %+ _RSA_bits +%xdefine _RSA_blinding_off_temp_for_accp_compatibility _ %+ BORINGSSL_PREFIX %+ _RSA_blinding_off_temp_for_accp_compatibility %xdefine _RSA_blinding_on _ %+ BORINGSSL_PREFIX %+ _RSA_blinding_on %xdefine _RSA_check_fips _ %+ BORINGSSL_PREFIX %+ _RSA_check_fips %xdefine _RSA_check_key _ %+ BORINGSSL_PREFIX %+ _RSA_check_key %xdefine _RSA_decrypt _ %+ BORINGSSL_PREFIX %+ _RSA_decrypt -%xdefine _RSA_default_method _ %+ BORINGSSL_PREFIX %+ _RSA_default_method %xdefine _RSA_encrypt _ %+ BORINGSSL_PREFIX %+ _RSA_encrypt %xdefine _RSA_flags _ %+ BORINGSSL_PREFIX %+ _RSA_flags %xdefine _RSA_free _ %+ BORINGSSL_PREFIX %+ _RSA_free @@ -1781,31 +2034,49 @@ %xdefine _RSA_get0_p _ %+ BORINGSSL_PREFIX %+ _RSA_get0_p %xdefine _RSA_get0_pss_params _ %+ BORINGSSL_PREFIX %+ _RSA_get0_pss_params %xdefine _RSA_get0_q _ %+ BORINGSSL_PREFIX %+ _RSA_get0_q +%xdefine _RSA_get_default_method _ %+ BORINGSSL_PREFIX %+ _RSA_get_default_method %xdefine _RSA_get_ex_data _ %+ BORINGSSL_PREFIX %+ _RSA_get_ex_data %xdefine _RSA_get_ex_new_index _ %+ BORINGSSL_PREFIX %+ _RSA_get_ex_new_index +%xdefine _RSA_get_method _ %+ BORINGSSL_PREFIX %+ _RSA_get_method %xdefine _RSA_is_opaque _ %+ BORINGSSL_PREFIX %+ _RSA_is_opaque %xdefine _RSA_marshal_private_key _ %+ BORINGSSL_PREFIX %+ _RSA_marshal_private_key %xdefine _RSA_marshal_public_key _ %+ BORINGSSL_PREFIX %+ _RSA_marshal_public_key +%xdefine _RSA_meth_free _ %+ BORINGSSL_PREFIX %+ _RSA_meth_free +%xdefine _RSA_meth_new _ %+ BORINGSSL_PREFIX %+ _RSA_meth_new +%xdefine _RSA_meth_set0_app_data _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set0_app_data +%xdefine _RSA_meth_set_finish _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_finish +%xdefine _RSA_meth_set_init _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_init +%xdefine _RSA_meth_set_priv_dec _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_priv_dec +%xdefine _RSA_meth_set_priv_enc _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_priv_enc +%xdefine _RSA_meth_set_pub_dec _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_pub_dec +%xdefine _RSA_meth_set_pub_enc _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_pub_enc +%xdefine _RSA_meth_set_sign _ %+ BORINGSSL_PREFIX %+ _RSA_meth_set_sign %xdefine _RSA_new _ %+ BORINGSSL_PREFIX %+ _RSA_new %xdefine _RSA_new_method _ %+ BORINGSSL_PREFIX %+ _RSA_new_method +%xdefine _RSA_new_method_no_e _ %+ BORINGSSL_PREFIX %+ _RSA_new_method_no_e +%xdefine _RSA_new_private_key _ %+ BORINGSSL_PREFIX %+ _RSA_new_private_key +%xdefine _RSA_new_private_key_large_e _ %+ BORINGSSL_PREFIX %+ _RSA_new_private_key_large_e +%xdefine _RSA_new_private_key_no_crt _ %+ BORINGSSL_PREFIX %+ _RSA_new_private_key_no_crt +%xdefine _RSA_new_private_key_no_e _ %+ BORINGSSL_PREFIX %+ _RSA_new_private_key_no_e +%xdefine _RSA_new_public_key _ %+ BORINGSSL_PREFIX %+ _RSA_new_public_key +%xdefine _RSA_new_public_key_large_e _ %+ BORINGSSL_PREFIX %+ _RSA_new_public_key_large_e %xdefine _RSA_padding_add_PKCS1_OAEP _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_OAEP %xdefine _RSA_padding_add_PKCS1_OAEP_mgf1 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_OAEP_mgf1 %xdefine _RSA_padding_add_PKCS1_PSS _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_PSS %xdefine _RSA_padding_add_PKCS1_PSS_mgf1 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_PSS_mgf1 %xdefine _RSA_padding_add_PKCS1_type_1 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_type_1 -%xdefine _RSA_padding_add_PKCS1_type_2 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_type_2 %xdefine _RSA_padding_add_none _ %+ BORINGSSL_PREFIX %+ _RSA_padding_add_none %xdefine _RSA_padding_check_PKCS1_OAEP_mgf1 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_check_PKCS1_OAEP_mgf1 %xdefine _RSA_padding_check_PKCS1_type_1 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_check_PKCS1_type_1 -%xdefine _RSA_padding_check_PKCS1_type_2 _ %+ BORINGSSL_PREFIX %+ _RSA_padding_check_PKCS1_type_2 %xdefine _RSA_parse_private_key _ %+ BORINGSSL_PREFIX %+ _RSA_parse_private_key %xdefine _RSA_parse_public_key _ %+ BORINGSSL_PREFIX %+ _RSA_parse_public_key +%xdefine _RSA_pkey_ctx_ctrl _ %+ BORINGSSL_PREFIX %+ _RSA_pkey_ctx_ctrl %xdefine _RSA_print _ %+ BORINGSSL_PREFIX %+ _RSA_print +%xdefine _RSA_print_fp _ %+ BORINGSSL_PREFIX %+ _RSA_print_fp %xdefine _RSA_private_decrypt _ %+ BORINGSSL_PREFIX %+ _RSA_private_decrypt %xdefine _RSA_private_encrypt _ %+ BORINGSSL_PREFIX %+ _RSA_private_encrypt %xdefine _RSA_private_key_from_bytes _ %+ BORINGSSL_PREFIX %+ _RSA_private_key_from_bytes %xdefine _RSA_private_key_to_bytes _ %+ BORINGSSL_PREFIX %+ _RSA_private_key_to_bytes -%xdefine _RSA_private_transform _ %+ BORINGSSL_PREFIX %+ _RSA_private_transform %xdefine _RSA_public_decrypt _ %+ BORINGSSL_PREFIX %+ _RSA_public_decrypt %xdefine _RSA_public_encrypt _ %+ BORINGSSL_PREFIX %+ _RSA_public_encrypt %xdefine _RSA_public_key_from_bytes _ %+ BORINGSSL_PREFIX %+ _RSA_public_key_from_bytes @@ -1814,13 +2085,14 @@ %xdefine _RSA_set0_factors _ %+ BORINGSSL_PREFIX %+ _RSA_set0_factors %xdefine _RSA_set0_key _ %+ BORINGSSL_PREFIX %+ _RSA_set0_key %xdefine _RSA_set_ex_data _ %+ BORINGSSL_PREFIX %+ _RSA_set_ex_data +%xdefine _RSA_set_flags _ %+ BORINGSSL_PREFIX %+ _RSA_set_flags +%xdefine _RSA_set_method _ %+ BORINGSSL_PREFIX %+ _RSA_set_method %xdefine _RSA_sign _ %+ BORINGSSL_PREFIX %+ _RSA_sign %xdefine _RSA_sign_pss_mgf1 _ %+ BORINGSSL_PREFIX %+ _RSA_sign_pss_mgf1 %xdefine _RSA_sign_raw _ %+ BORINGSSL_PREFIX %+ _RSA_sign_raw %xdefine _RSA_size _ %+ BORINGSSL_PREFIX %+ _RSA_size %xdefine _RSA_test_flags _ %+ BORINGSSL_PREFIX %+ _RSA_test_flags %xdefine _RSA_up_ref _ %+ BORINGSSL_PREFIX %+ _RSA_up_ref -%xdefine _RSA_validate_key _ %+ BORINGSSL_PREFIX %+ _RSA_validate_key %xdefine _RSA_verify _ %+ BORINGSSL_PREFIX %+ _RSA_verify %xdefine _RSA_verify_PKCS1_PSS _ %+ BORINGSSL_PREFIX %+ _RSA_verify_PKCS1_PSS %xdefine _RSA_verify_PKCS1_PSS_mgf1 _ %+ BORINGSSL_PREFIX %+ _RSA_verify_PKCS1_PSS_mgf1 @@ -1829,22 +2101,30 @@ %xdefine _SHA1 _ %+ BORINGSSL_PREFIX %+ _SHA1 %xdefine _SHA1_Final _ %+ BORINGSSL_PREFIX %+ _SHA1_Final %xdefine _SHA1_Init _ %+ BORINGSSL_PREFIX %+ _SHA1_Init +%xdefine _SHA1_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA1_Init_from_state %xdefine _SHA1_Transform _ %+ BORINGSSL_PREFIX %+ _SHA1_Transform %xdefine _SHA1_Update _ %+ BORINGSSL_PREFIX %+ _SHA1_Update +%xdefine _SHA1_get_state _ %+ BORINGSSL_PREFIX %+ _SHA1_get_state %xdefine _SHA224 _ %+ BORINGSSL_PREFIX %+ _SHA224 %xdefine _SHA224_Final _ %+ BORINGSSL_PREFIX %+ _SHA224_Final %xdefine _SHA224_Init _ %+ BORINGSSL_PREFIX %+ _SHA224_Init +%xdefine _SHA224_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA224_Init_from_state %xdefine _SHA224_Update _ %+ BORINGSSL_PREFIX %+ _SHA224_Update +%xdefine _SHA224_get_state _ %+ BORINGSSL_PREFIX %+ _SHA224_get_state %xdefine _SHA256 _ %+ BORINGSSL_PREFIX %+ _SHA256 %xdefine _SHA256_Final _ %+ BORINGSSL_PREFIX %+ _SHA256_Final %xdefine _SHA256_Init _ %+ BORINGSSL_PREFIX %+ _SHA256_Init +%xdefine _SHA256_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA256_Init_from_state %xdefine _SHA256_Transform _ %+ BORINGSSL_PREFIX %+ _SHA256_Transform %xdefine _SHA256_TransformBlocks _ %+ BORINGSSL_PREFIX %+ _SHA256_TransformBlocks %xdefine _SHA256_Update _ %+ BORINGSSL_PREFIX %+ _SHA256_Update +%xdefine _SHA256_get_state _ %+ BORINGSSL_PREFIX %+ _SHA256_get_state %xdefine _SHA384 _ %+ BORINGSSL_PREFIX %+ _SHA384 %xdefine _SHA384_Final _ %+ BORINGSSL_PREFIX %+ _SHA384_Final %xdefine _SHA384_Init _ %+ BORINGSSL_PREFIX %+ _SHA384_Init +%xdefine _SHA384_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA384_Init_from_state %xdefine _SHA384_Update _ %+ BORINGSSL_PREFIX %+ _SHA384_Update +%xdefine _SHA384_get_state _ %+ BORINGSSL_PREFIX %+ _SHA384_get_state %xdefine _SHA3_224 _ %+ BORINGSSL_PREFIX %+ _SHA3_224 %xdefine _SHA3_256 _ %+ BORINGSSL_PREFIX %+ _SHA3_256 %xdefine _SHA3_384 _ %+ BORINGSSL_PREFIX %+ _SHA3_384 @@ -1860,16 +2140,28 @@ %xdefine _SHA3_Squeeze_hw _ %+ BORINGSSL_PREFIX %+ _SHA3_Squeeze_hw %xdefine _SHA3_Update _ %+ BORINGSSL_PREFIX %+ _SHA3_Update %xdefine _SHA512 _ %+ BORINGSSL_PREFIX %+ _SHA512 +%xdefine _SHA512_224 _ %+ BORINGSSL_PREFIX %+ _SHA512_224 +%xdefine _SHA512_224_Final _ %+ BORINGSSL_PREFIX %+ _SHA512_224_Final +%xdefine _SHA512_224_Init _ %+ BORINGSSL_PREFIX %+ _SHA512_224_Init +%xdefine _SHA512_224_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA512_224_Init_from_state +%xdefine _SHA512_224_Update _ %+ BORINGSSL_PREFIX %+ _SHA512_224_Update +%xdefine _SHA512_224_get_state _ %+ BORINGSSL_PREFIX %+ _SHA512_224_get_state %xdefine _SHA512_256 _ %+ BORINGSSL_PREFIX %+ _SHA512_256 %xdefine _SHA512_256_Final _ %+ BORINGSSL_PREFIX %+ _SHA512_256_Final %xdefine _SHA512_256_Init _ %+ BORINGSSL_PREFIX %+ _SHA512_256_Init +%xdefine _SHA512_256_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA512_256_Init_from_state %xdefine _SHA512_256_Update _ %+ BORINGSSL_PREFIX %+ _SHA512_256_Update +%xdefine _SHA512_256_get_state _ %+ BORINGSSL_PREFIX %+ _SHA512_256_get_state %xdefine _SHA512_Final _ %+ BORINGSSL_PREFIX %+ _SHA512_Final %xdefine _SHA512_Init _ %+ BORINGSSL_PREFIX %+ _SHA512_Init +%xdefine _SHA512_Init_from_state _ %+ BORINGSSL_PREFIX %+ _SHA512_Init_from_state %xdefine _SHA512_Transform _ %+ BORINGSSL_PREFIX %+ _SHA512_Transform %xdefine _SHA512_Update _ %+ BORINGSSL_PREFIX %+ _SHA512_Update +%xdefine _SHA512_get_state _ %+ BORINGSSL_PREFIX %+ _SHA512_get_state %xdefine _SHAKE128 _ %+ BORINGSSL_PREFIX %+ _SHAKE128 %xdefine _SHAKE256 _ %+ BORINGSSL_PREFIX %+ _SHAKE256 +%xdefine _SHAKE_Final _ %+ BORINGSSL_PREFIX %+ _SHAKE_Final +%xdefine _SHAKE_Init _ %+ BORINGSSL_PREFIX %+ _SHAKE_Init %xdefine _SIPHASH_24 _ %+ BORINGSSL_PREFIX %+ _SIPHASH_24 %xdefine _SPAKE2_CTX_free _ %+ BORINGSSL_PREFIX %+ _SPAKE2_CTX_free %xdefine _SPAKE2_CTX_new _ %+ BORINGSSL_PREFIX %+ _SPAKE2_CTX_new @@ -1877,6 +2169,10 @@ %xdefine _SPAKE2_process_msg _ %+ BORINGSSL_PREFIX %+ _SPAKE2_process_msg %xdefine _SSHKDF _ %+ BORINGSSL_PREFIX %+ _SSHKDF %xdefine _SSHKDF_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _SSHKDF_verify_service_indicator +%xdefine _SSKDF_digest _ %+ BORINGSSL_PREFIX %+ _SSKDF_digest +%xdefine _SSKDF_digest_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _SSKDF_digest_verify_service_indicator +%xdefine _SSKDF_hmac _ %+ BORINGSSL_PREFIX %+ _SSKDF_hmac +%xdefine _SSKDF_hmac_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _SSKDF_hmac_verify_service_indicator %xdefine _SSLeay _ %+ BORINGSSL_PREFIX %+ _SSLeay %xdefine _SSLeay_version _ %+ BORINGSSL_PREFIX %+ _SSLeay_version %xdefine _TLSKDF_verify_service_indicator _ %+ BORINGSSL_PREFIX %+ _TLSKDF_verify_service_indicator @@ -1895,7 +2191,6 @@ %xdefine _TRUST_TOKEN_ISSUER_new _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_new %xdefine _TRUST_TOKEN_ISSUER_redeem _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_redeem %xdefine _TRUST_TOKEN_ISSUER_redeem_over_message _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_redeem_over_message -%xdefine _TRUST_TOKEN_ISSUER_redeem_raw _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_redeem_raw %xdefine _TRUST_TOKEN_ISSUER_set_metadata_key _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_set_metadata_key %xdefine _TRUST_TOKEN_ISSUER_set_srr_key _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_set_srr_key %xdefine _TRUST_TOKEN_PRETOKEN_free _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_PRETOKEN_free @@ -1907,6 +2202,8 @@ %xdefine _TRUST_TOKEN_free _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_free %xdefine _TRUST_TOKEN_generate_key _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_generate_key %xdefine _TRUST_TOKEN_new _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_new +%xdefine _TRUST_TOKEN_pst_v1_pmb _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_pst_v1_pmb +%xdefine _TRUST_TOKEN_pst_v1_voprf _ %+ BORINGSSL_PREFIX %+ _TRUST_TOKEN_pst_v1_voprf %xdefine _USERNOTICE_free _ %+ BORINGSSL_PREFIX %+ _USERNOTICE_free %xdefine _USERNOTICE_it _ %+ BORINGSSL_PREFIX %+ _USERNOTICE_it %xdefine _USERNOTICE_new _ %+ BORINGSSL_PREFIX %+ _USERNOTICE_new @@ -1919,10 +2216,9 @@ %xdefine _X509V3_EXT_REQ_add_nconf _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_REQ_add_nconf %xdefine _X509V3_EXT_add _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_add %xdefine _X509V3_EXT_add_alias _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_add_alias -%xdefine _X509V3_EXT_add_list _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_add_list %xdefine _X509V3_EXT_add_nconf _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_add_nconf %xdefine _X509V3_EXT_add_nconf_sk _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_add_nconf_sk -%xdefine _X509V3_EXT_cleanup _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_cleanup +%xdefine _X509V3_EXT_conf _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_conf %xdefine _X509V3_EXT_conf_nid _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_conf_nid %xdefine _X509V3_EXT_d2i _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_d2i %xdefine _X509V3_EXT_free _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_free @@ -1933,13 +2229,13 @@ %xdefine _X509V3_EXT_nconf_nid _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_nconf_nid %xdefine _X509V3_EXT_print _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_print %xdefine _X509V3_EXT_print_fp _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_print_fp -%xdefine _X509V3_EXT_val_prn _ %+ BORINGSSL_PREFIX %+ _X509V3_EXT_val_prn %xdefine _X509V3_NAME_from_section _ %+ BORINGSSL_PREFIX %+ _X509V3_NAME_from_section %xdefine _X509V3_add1_i2d _ %+ BORINGSSL_PREFIX %+ _X509V3_add1_i2d %xdefine _X509V3_add_standard_extensions _ %+ BORINGSSL_PREFIX %+ _X509V3_add_standard_extensions %xdefine _X509V3_add_value _ %+ BORINGSSL_PREFIX %+ _X509V3_add_value %xdefine _X509V3_add_value_bool _ %+ BORINGSSL_PREFIX %+ _X509V3_add_value_bool %xdefine _X509V3_add_value_int _ %+ BORINGSSL_PREFIX %+ _X509V3_add_value_int +%xdefine _X509V3_bool_from_string _ %+ BORINGSSL_PREFIX %+ _X509V3_bool_from_string %xdefine _X509V3_conf_free _ %+ BORINGSSL_PREFIX %+ _X509V3_conf_free %xdefine _X509V3_extensions_print _ %+ BORINGSSL_PREFIX %+ _X509V3_extensions_print %xdefine _X509V3_get_d2i _ %+ BORINGSSL_PREFIX %+ _X509V3_get_d2i @@ -1986,7 +2282,6 @@ %xdefine _X509_CRL_add_ext _ %+ BORINGSSL_PREFIX %+ _X509_CRL_add_ext %xdefine _X509_CRL_cmp _ %+ BORINGSSL_PREFIX %+ _X509_CRL_cmp %xdefine _X509_CRL_delete_ext _ %+ BORINGSSL_PREFIX %+ _X509_CRL_delete_ext -%xdefine _X509_CRL_diff _ %+ BORINGSSL_PREFIX %+ _X509_CRL_diff %xdefine _X509_CRL_digest _ %+ BORINGSSL_PREFIX %+ _X509_CRL_digest %xdefine _X509_CRL_dup _ %+ BORINGSSL_PREFIX %+ _X509_CRL_dup %xdefine _X509_CRL_free _ %+ BORINGSSL_PREFIX %+ _X509_CRL_free @@ -2008,6 +2303,7 @@ %xdefine _X509_CRL_get_nextUpdate _ %+ BORINGSSL_PREFIX %+ _X509_CRL_get_nextUpdate %xdefine _X509_CRL_get_signature_nid _ %+ BORINGSSL_PREFIX %+ _X509_CRL_get_signature_nid %xdefine _X509_CRL_get_version _ %+ BORINGSSL_PREFIX %+ _X509_CRL_get_version +%xdefine _X509_CRL_http_nbio _ %+ BORINGSSL_PREFIX %+ _X509_CRL_http_nbio %xdefine _X509_CRL_it _ %+ BORINGSSL_PREFIX %+ _X509_CRL_it %xdefine _X509_CRL_match _ %+ BORINGSSL_PREFIX %+ _X509_CRL_match %xdefine _X509_CRL_new _ %+ BORINGSSL_PREFIX %+ _X509_CRL_new @@ -2038,15 +2334,12 @@ %xdefine _X509_EXTENSION_set_data _ %+ BORINGSSL_PREFIX %+ _X509_EXTENSION_set_data %xdefine _X509_EXTENSION_set_object _ %+ BORINGSSL_PREFIX %+ _X509_EXTENSION_set_object %xdefine _X509_INFO_free _ %+ BORINGSSL_PREFIX %+ _X509_INFO_free -%xdefine _X509_INFO_new _ %+ BORINGSSL_PREFIX %+ _X509_INFO_new -%xdefine _X509_LOOKUP_by_subject _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_by_subject +%xdefine _X509_LOOKUP_add_dir _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_add_dir %xdefine _X509_LOOKUP_ctrl _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_ctrl %xdefine _X509_LOOKUP_file _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_file %xdefine _X509_LOOKUP_free _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_free %xdefine _X509_LOOKUP_hash_dir _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_hash_dir -%xdefine _X509_LOOKUP_init _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_init -%xdefine _X509_LOOKUP_new _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_new -%xdefine _X509_LOOKUP_shutdown _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_shutdown +%xdefine _X509_LOOKUP_load_file _ %+ BORINGSSL_PREFIX %+ _X509_LOOKUP_load_file %xdefine _X509_NAME_ENTRIES_it _ %+ BORINGSSL_PREFIX %+ _X509_NAME_ENTRIES_it %xdefine _X509_NAME_ENTRY_create_by_NID _ %+ BORINGSSL_PREFIX %+ _X509_NAME_ENTRY_create_by_NID %xdefine _X509_NAME_ENTRY_create_by_OBJ _ %+ BORINGSSL_PREFIX %+ _X509_NAME_ENTRY_create_by_OBJ @@ -2086,25 +2379,23 @@ %xdefine _X509_NAME_print_ex _ %+ BORINGSSL_PREFIX %+ _X509_NAME_print_ex %xdefine _X509_NAME_print_ex_fp _ %+ BORINGSSL_PREFIX %+ _X509_NAME_print_ex_fp %xdefine _X509_NAME_set _ %+ BORINGSSL_PREFIX %+ _X509_NAME_set +%xdefine _X509_OBJECT_free _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_free %xdefine _X509_OBJECT_free_contents _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_free_contents %xdefine _X509_OBJECT_get0_X509 _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_get0_X509 +%xdefine _X509_OBJECT_get0_X509_CRL _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_get0_X509_CRL %xdefine _X509_OBJECT_get_type _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_get_type -%xdefine _X509_OBJECT_idx_by_subject _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_idx_by_subject -%xdefine _X509_OBJECT_retrieve_by_subject _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_retrieve_by_subject -%xdefine _X509_OBJECT_retrieve_match _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_retrieve_match -%xdefine _X509_OBJECT_up_ref_count _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_up_ref_count -%xdefine _X509_PKEY_free _ %+ BORINGSSL_PREFIX %+ _X509_PKEY_free -%xdefine _X509_PKEY_new _ %+ BORINGSSL_PREFIX %+ _X509_PKEY_new +%xdefine _X509_OBJECT_new _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_new +%xdefine _X509_OBJECT_set1_X509 _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_set1_X509 +%xdefine _X509_OBJECT_set1_X509_CRL _ %+ BORINGSSL_PREFIX %+ _X509_OBJECT_set1_X509_CRL %xdefine _X509_PUBKEY_free _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_free %xdefine _X509_PUBKEY_get _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_get +%xdefine _X509_PUBKEY_get0 _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_get0 %xdefine _X509_PUBKEY_get0_param _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_get0_param %xdefine _X509_PUBKEY_get0_public_key _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_get0_public_key %xdefine _X509_PUBKEY_it _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_it %xdefine _X509_PUBKEY_new _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_new %xdefine _X509_PUBKEY_set _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_set %xdefine _X509_PUBKEY_set0_param _ %+ BORINGSSL_PREFIX %+ _X509_PUBKEY_set0_param -%xdefine _X509_PURPOSE_add _ %+ BORINGSSL_PREFIX %+ _X509_PURPOSE_add -%xdefine _X509_PURPOSE_cleanup _ %+ BORINGSSL_PREFIX %+ _X509_PURPOSE_cleanup %xdefine _X509_PURPOSE_get0 _ %+ BORINGSSL_PREFIX %+ _X509_PURPOSE_get0 %xdefine _X509_PURPOSE_get0_name _ %+ BORINGSSL_PREFIX %+ _X509_PURPOSE_get0_name %xdefine _X509_PURPOSE_get0_sname _ %+ BORINGSSL_PREFIX %+ _X509_PURPOSE_get0_sname @@ -2129,6 +2420,7 @@ %xdefine _X509_REQ_dup _ %+ BORINGSSL_PREFIX %+ _X509_REQ_dup %xdefine _X509_REQ_extension_nid _ %+ BORINGSSL_PREFIX %+ _X509_REQ_extension_nid %xdefine _X509_REQ_free _ %+ BORINGSSL_PREFIX %+ _X509_REQ_free +%xdefine _X509_REQ_get0_pubkey _ %+ BORINGSSL_PREFIX %+ _X509_REQ_get0_pubkey %xdefine _X509_REQ_get0_signature _ %+ BORINGSSL_PREFIX %+ _X509_REQ_get0_signature %xdefine _X509_REQ_get1_email _ %+ BORINGSSL_PREFIX %+ _X509_REQ_get1_email %xdefine _X509_REQ_get_attr _ %+ BORINGSSL_PREFIX %+ _X509_REQ_get_attr @@ -2186,8 +2478,11 @@ %xdefine _X509_STORE_CTX_get0_parent_ctx _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get0_parent_ctx %xdefine _X509_STORE_CTX_get0_store _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get0_store %xdefine _X509_STORE_CTX_get0_untrusted _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get0_untrusted +%xdefine _X509_STORE_CTX_get1_certs _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_certs %xdefine _X509_STORE_CTX_get1_chain _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_chain +%xdefine _X509_STORE_CTX_get1_crls _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_crls %xdefine _X509_STORE_CTX_get1_issuer _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_issuer +%xdefine _X509_STORE_CTX_get_by_subject _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_by_subject %xdefine _X509_STORE_CTX_get_chain _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_chain %xdefine _X509_STORE_CTX_get_current_cert _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_current_cert %xdefine _X509_STORE_CTX_get_error _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_error @@ -2196,7 +2491,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 @@ -2213,49 +2507,29 @@ %xdefine _X509_STORE_CTX_set_trust _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_set_trust %xdefine _X509_STORE_CTX_set_verify_cb _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_set_verify_cb %xdefine _X509_STORE_CTX_trusted_stack _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_trusted_stack -%xdefine _X509_STORE_CTX_zero _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_zero %xdefine _X509_STORE_add_cert _ %+ BORINGSSL_PREFIX %+ _X509_STORE_add_cert %xdefine _X509_STORE_add_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_add_crl %xdefine _X509_STORE_add_lookup _ %+ BORINGSSL_PREFIX %+ _X509_STORE_add_lookup %xdefine _X509_STORE_free _ %+ BORINGSSL_PREFIX %+ _X509_STORE_free %xdefine _X509_STORE_get0_objects _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get0_objects %xdefine _X509_STORE_get0_param _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get0_param -%xdefine _X509_STORE_get1_certs _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get1_certs -%xdefine _X509_STORE_get1_crls _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get1_crls -%xdefine _X509_STORE_get_by_subject _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_by_subject -%xdefine _X509_STORE_get_cert_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_cert_crl -%xdefine _X509_STORE_get_check_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_check_crl -%xdefine _X509_STORE_get_check_issued _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_check_issued -%xdefine _X509_STORE_get_check_revocation _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_check_revocation -%xdefine _X509_STORE_get_cleanup _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_cleanup -%xdefine _X509_STORE_get_get_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_get_crl -%xdefine _X509_STORE_get_get_issuer _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_get_issuer -%xdefine _X509_STORE_get_lookup_certs _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_lookup_certs -%xdefine _X509_STORE_get_lookup_crls _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_lookup_crls -%xdefine _X509_STORE_get_verify _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_verify -%xdefine _X509_STORE_get_verify_cb _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_verify_cb +%xdefine _X509_STORE_get_ex_data _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_ex_data +%xdefine _X509_STORE_get_ex_new_index _ %+ BORINGSSL_PREFIX %+ _X509_STORE_get_ex_new_index %xdefine _X509_STORE_load_locations _ %+ BORINGSSL_PREFIX %+ _X509_STORE_load_locations +%xdefine _X509_STORE_lock _ %+ BORINGSSL_PREFIX %+ _X509_STORE_lock %xdefine _X509_STORE_new _ %+ BORINGSSL_PREFIX %+ _X509_STORE_new %xdefine _X509_STORE_set1_param _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set1_param -%xdefine _X509_STORE_set_cert_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_cert_crl %xdefine _X509_STORE_set_check_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_check_crl -%xdefine _X509_STORE_set_check_issued _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_check_issued -%xdefine _X509_STORE_set_check_revocation _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_check_revocation -%xdefine _X509_STORE_set_cleanup _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_cleanup %xdefine _X509_STORE_set_default_paths _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_default_paths %xdefine _X509_STORE_set_depth _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_depth +%xdefine _X509_STORE_set_ex_data _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_ex_data %xdefine _X509_STORE_set_flags _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_flags %xdefine _X509_STORE_set_get_crl _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_get_crl -%xdefine _X509_STORE_set_get_issuer _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_get_issuer -%xdefine _X509_STORE_set_lookup_certs _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_lookup_certs -%xdefine _X509_STORE_set_lookup_crls _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_lookup_crls %xdefine _X509_STORE_set_purpose _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_purpose %xdefine _X509_STORE_set_trust _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_trust -%xdefine _X509_STORE_set_verify _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_verify %xdefine _X509_STORE_set_verify_cb _ %+ BORINGSSL_PREFIX %+ _X509_STORE_set_verify_cb +%xdefine _X509_STORE_unlock _ %+ BORINGSSL_PREFIX %+ _X509_STORE_unlock %xdefine _X509_STORE_up_ref _ %+ BORINGSSL_PREFIX %+ _X509_STORE_up_ref -%xdefine _X509_TRUST_add _ %+ BORINGSSL_PREFIX %+ _X509_TRUST_add -%xdefine _X509_TRUST_cleanup _ %+ BORINGSSL_PREFIX %+ _X509_TRUST_cleanup %xdefine _X509_TRUST_get0 _ %+ BORINGSSL_PREFIX %+ _X509_TRUST_get0 %xdefine _X509_TRUST_get0_name _ %+ BORINGSSL_PREFIX %+ _X509_TRUST_get0_name %xdefine _X509_TRUST_get_by_id _ %+ BORINGSSL_PREFIX %+ _X509_TRUST_get_by_id @@ -2267,14 +2541,9 @@ %xdefine _X509_VAL_it _ %+ BORINGSSL_PREFIX %+ _X509_VAL_it %xdefine _X509_VAL_new _ %+ BORINGSSL_PREFIX %+ _X509_VAL_new %xdefine _X509_VERIFY_PARAM_add0_policy _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_add0_policy -%xdefine _X509_VERIFY_PARAM_add0_table _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_add0_table %xdefine _X509_VERIFY_PARAM_add1_host _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_add1_host %xdefine _X509_VERIFY_PARAM_clear_flags _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_clear_flags %xdefine _X509_VERIFY_PARAM_free _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_free -%xdefine _X509_VERIFY_PARAM_get0 _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get0 -%xdefine _X509_VERIFY_PARAM_get0_name _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get0_name -%xdefine _X509_VERIFY_PARAM_get0_peername _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get0_peername -%xdefine _X509_VERIFY_PARAM_get_count _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get_count %xdefine _X509_VERIFY_PARAM_get_depth _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get_depth %xdefine _X509_VERIFY_PARAM_get_flags _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get_flags %xdefine _X509_VERIFY_PARAM_inherit _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_inherit @@ -2285,7 +2554,6 @@ %xdefine _X509_VERIFY_PARAM_set1_host _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_host %xdefine _X509_VERIFY_PARAM_set1_ip _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_ip %xdefine _X509_VERIFY_PARAM_set1_ip_asc _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_ip_asc -%xdefine _X509_VERIFY_PARAM_set1_name _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_name %xdefine _X509_VERIFY_PARAM_set1_policies _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_policies %xdefine _X509_VERIFY_PARAM_set_depth _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_depth %xdefine _X509_VERIFY_PARAM_set_flags _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_flags @@ -2294,7 +2562,6 @@ %xdefine _X509_VERIFY_PARAM_set_time _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_time %xdefine _X509_VERIFY_PARAM_set_time_posix _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_time_posix %xdefine _X509_VERIFY_PARAM_set_trust _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_trust -%xdefine _X509_VERIFY_PARAM_table_cleanup _ %+ BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_table_cleanup %xdefine _X509_add1_ext_i2d _ %+ BORINGSSL_PREFIX %+ _X509_add1_ext_i2d %xdefine _X509_add1_reject_object _ %+ BORINGSSL_PREFIX %+ _X509_add1_reject_object %xdefine _X509_add1_trust_object _ %+ BORINGSSL_PREFIX %+ _X509_add1_trust_object @@ -2329,6 +2596,7 @@ %xdefine _X509_get0_extensions _ %+ BORINGSSL_PREFIX %+ _X509_get0_extensions %xdefine _X509_get0_notAfter _ %+ BORINGSSL_PREFIX %+ _X509_get0_notAfter %xdefine _X509_get0_notBefore _ %+ BORINGSSL_PREFIX %+ _X509_get0_notBefore +%xdefine _X509_get0_pubkey _ %+ BORINGSSL_PREFIX %+ _X509_get0_pubkey %xdefine _X509_get0_pubkey_bitstr _ %+ BORINGSSL_PREFIX %+ _X509_get0_pubkey_bitstr %xdefine _X509_get0_serialNumber _ %+ BORINGSSL_PREFIX %+ _X509_get0_serialNumber %xdefine _X509_get0_signature _ %+ BORINGSSL_PREFIX %+ _X509_get0_signature @@ -2361,6 +2629,7 @@ %xdefine _X509_get_pathlen _ %+ BORINGSSL_PREFIX %+ _X509_get_pathlen %xdefine _X509_get_pubkey _ %+ BORINGSSL_PREFIX %+ _X509_get_pubkey %xdefine _X509_get_serialNumber _ %+ BORINGSSL_PREFIX %+ _X509_get_serialNumber +%xdefine _X509_get_signature_info _ %+ BORINGSSL_PREFIX %+ _X509_get_signature_info %xdefine _X509_get_signature_nid _ %+ BORINGSSL_PREFIX %+ _X509_get_signature_nid %xdefine _X509_get_subject_name _ %+ BORINGSSL_PREFIX %+ _X509_get_subject_name %xdefine _X509_get_version _ %+ BORINGSSL_PREFIX %+ _X509_get_version @@ -2412,15 +2681,6 @@ %xdefine _X509_verify _ %+ BORINGSSL_PREFIX %+ _X509_verify %xdefine _X509_verify_cert _ %+ BORINGSSL_PREFIX %+ _X509_verify_cert %xdefine _X509_verify_cert_error_string _ %+ BORINGSSL_PREFIX %+ _X509_verify_cert_error_string -%xdefine _X509at_add1_attr _ %+ BORINGSSL_PREFIX %+ _X509at_add1_attr -%xdefine _X509at_add1_attr_by_NID _ %+ BORINGSSL_PREFIX %+ _X509at_add1_attr_by_NID -%xdefine _X509at_add1_attr_by_OBJ _ %+ BORINGSSL_PREFIX %+ _X509at_add1_attr_by_OBJ -%xdefine _X509at_add1_attr_by_txt _ %+ BORINGSSL_PREFIX %+ _X509at_add1_attr_by_txt -%xdefine _X509at_delete_attr _ %+ BORINGSSL_PREFIX %+ _X509at_delete_attr -%xdefine _X509at_get_attr _ %+ BORINGSSL_PREFIX %+ _X509at_get_attr -%xdefine _X509at_get_attr_by_NID _ %+ BORINGSSL_PREFIX %+ _X509at_get_attr_by_NID -%xdefine _X509at_get_attr_by_OBJ _ %+ BORINGSSL_PREFIX %+ _X509at_get_attr_by_OBJ -%xdefine _X509at_get_attr_count _ %+ BORINGSSL_PREFIX %+ _X509at_get_attr_count %xdefine _X509v3_add_ext _ %+ BORINGSSL_PREFIX %+ _X509v3_add_ext %xdefine _X509v3_delete_ext _ %+ BORINGSSL_PREFIX %+ _X509v3_delete_ext %xdefine _X509v3_get_ext _ %+ BORINGSSL_PREFIX %+ _X509v3_get_ext @@ -2428,7 +2688,6 @@ %xdefine _X509v3_get_ext_by_OBJ _ %+ BORINGSSL_PREFIX %+ _X509v3_get_ext_by_OBJ %xdefine _X509v3_get_ext_by_critical _ %+ BORINGSSL_PREFIX %+ _X509v3_get_ext_by_critical %xdefine _X509v3_get_ext_count _ %+ BORINGSSL_PREFIX %+ _X509v3_get_ext_count -%xdefine _a2i_GENERAL_NAME _ %+ BORINGSSL_PREFIX %+ _a2i_GENERAL_NAME %xdefine _a2i_IPADDRESS _ %+ BORINGSSL_PREFIX %+ _a2i_IPADDRESS %xdefine _a2i_IPADDRESS_NC _ %+ BORINGSSL_PREFIX %+ _a2i_IPADDRESS_NC %xdefine _abi_test_bad_unwind_temporary _ %+ BORINGSSL_PREFIX %+ _abi_test_bad_unwind_temporary @@ -2567,7 +2826,9 @@ %xdefine _aes_hw_set_encrypt_key _ %+ BORINGSSL_PREFIX %+ _aes_hw_set_encrypt_key %xdefine _aes_hw_xts_cipher _ %+ BORINGSSL_PREFIX %+ _aes_hw_xts_cipher %xdefine _aes_hw_xts_decrypt _ %+ BORINGSSL_PREFIX %+ _aes_hw_xts_decrypt +%xdefine _aes_hw_xts_decrypt_avx512 _ %+ BORINGSSL_PREFIX %+ _aes_hw_xts_decrypt_avx512 %xdefine _aes_hw_xts_encrypt _ %+ BORINGSSL_PREFIX %+ _aes_hw_xts_encrypt +%xdefine _aes_hw_xts_encrypt_avx512 _ %+ BORINGSSL_PREFIX %+ _aes_hw_xts_encrypt_avx512 %xdefine _aes_nohw_cbc_encrypt _ %+ BORINGSSL_PREFIX %+ _aes_nohw_cbc_encrypt %xdefine _aes_nohw_ctr32_encrypt_blocks _ %+ BORINGSSL_PREFIX %+ _aes_nohw_ctr32_encrypt_blocks %xdefine _aes_nohw_decrypt _ %+ BORINGSSL_PREFIX %+ _aes_nohw_decrypt @@ -2588,6 +2849,11 @@ %xdefine _aesv8_gcm_8x_enc_128 _ %+ BORINGSSL_PREFIX %+ _aesv8_gcm_8x_enc_128 %xdefine _aesv8_gcm_8x_enc_192 _ %+ BORINGSSL_PREFIX %+ _aesv8_gcm_8x_enc_192 %xdefine _aesv8_gcm_8x_enc_256 _ %+ BORINGSSL_PREFIX %+ _aesv8_gcm_8x_enc_256 +%xdefine _armv8_disable_dit _ %+ BORINGSSL_PREFIX %+ _armv8_disable_dit +%xdefine _armv8_enable_dit _ %+ BORINGSSL_PREFIX %+ _armv8_enable_dit +%xdefine _armv8_get_dit _ %+ BORINGSSL_PREFIX %+ _armv8_get_dit +%xdefine _armv8_restore_dit _ %+ BORINGSSL_PREFIX %+ _armv8_restore_dit +%xdefine _armv8_set_dit _ %+ BORINGSSL_PREFIX %+ _armv8_set_dit %xdefine _asn1_bit_string_length _ %+ BORINGSSL_PREFIX %+ _asn1_bit_string_length %xdefine _asn1_do_adb _ %+ BORINGSSL_PREFIX %+ _asn1_do_adb %xdefine _asn1_enc_free _ %+ BORINGSSL_PREFIX %+ _asn1_enc_free @@ -2595,6 +2861,8 @@ %xdefine _asn1_enc_restore _ %+ BORINGSSL_PREFIX %+ _asn1_enc_restore %xdefine _asn1_enc_save _ %+ BORINGSSL_PREFIX %+ _asn1_enc_save %xdefine _asn1_encoding_clear _ %+ BORINGSSL_PREFIX %+ _asn1_encoding_clear +%xdefine _asn1_evp_pkey_methods _ %+ BORINGSSL_PREFIX %+ _asn1_evp_pkey_methods +%xdefine _asn1_evp_pkey_methods_size _ %+ BORINGSSL_PREFIX %+ _asn1_evp_pkey_methods_size %xdefine _asn1_generalizedtime_to_tm _ %+ BORINGSSL_PREFIX %+ _asn1_generalizedtime_to_tm %xdefine _asn1_get_choice_selector _ %+ BORINGSSL_PREFIX %+ _asn1_get_choice_selector %xdefine _asn1_get_field_ptr _ %+ BORINGSSL_PREFIX %+ _asn1_get_field_ptr @@ -2604,18 +2872,23 @@ %xdefine _asn1_refcount_dec_and_test_zero _ %+ BORINGSSL_PREFIX %+ _asn1_refcount_dec_and_test_zero %xdefine _asn1_refcount_set_one _ %+ BORINGSSL_PREFIX %+ _asn1_refcount_set_one %xdefine _asn1_set_choice_selector _ %+ BORINGSSL_PREFIX %+ _asn1_set_choice_selector +%xdefine _asn1_type_cleanup _ %+ BORINGSSL_PREFIX %+ _asn1_type_cleanup +%xdefine _asn1_type_set0_string _ %+ BORINGSSL_PREFIX %+ _asn1_type_set0_string %xdefine _asn1_type_value_as_pointer _ %+ BORINGSSL_PREFIX %+ _asn1_type_value_as_pointer %xdefine _asn1_utctime_to_tm _ %+ BORINGSSL_PREFIX %+ _asn1_utctime_to_tm %xdefine _awslc_api_version_num _ %+ BORINGSSL_PREFIX %+ _awslc_api_version_num %xdefine _awslc_version_string _ %+ BORINGSSL_PREFIX %+ _awslc_version_string %xdefine _beeu_mod_inverse_vartime _ %+ BORINGSSL_PREFIX %+ _beeu_mod_inverse_vartime %xdefine _bio_clear_socket_error _ %+ BORINGSSL_PREFIX %+ _bio_clear_socket_error -%xdefine _bio_fd_should_retry _ %+ BORINGSSL_PREFIX %+ _bio_fd_should_retry +%xdefine _bio_errno_should_retry _ %+ BORINGSSL_PREFIX %+ _bio_errno_should_retry %xdefine _bio_ip_and_port_to_socket_and_addr _ %+ BORINGSSL_PREFIX %+ _bio_ip_and_port_to_socket_and_addr %xdefine _bio_sock_error _ %+ BORINGSSL_PREFIX %+ _bio_sock_error %xdefine _bio_socket_nbio _ %+ BORINGSSL_PREFIX %+ _bio_socket_nbio +%xdefine _bio_socket_should_retry _ %+ BORINGSSL_PREFIX %+ _bio_socket_should_retry %xdefine _bn_abs_sub_consttime _ %+ BORINGSSL_PREFIX %+ _bn_abs_sub_consttime %xdefine _bn_add_words _ %+ BORINGSSL_PREFIX %+ _bn_add_words +%xdefine _bn_assert_fits_in_bytes _ %+ BORINGSSL_PREFIX %+ _bn_assert_fits_in_bytes +%xdefine _bn_big_endian_to_words _ %+ BORINGSSL_PREFIX %+ _bn_big_endian_to_words %xdefine _bn_copy_words _ %+ BORINGSSL_PREFIX %+ _bn_copy_words %xdefine _bn_div_consttime _ %+ BORINGSSL_PREFIX %+ _bn_div_consttime %xdefine _bn_expand _ %+ BORINGSSL_PREFIX %+ _bn_expand @@ -2629,12 +2902,12 @@ %xdefine _bn_lcm_consttime _ %+ BORINGSSL_PREFIX %+ _bn_lcm_consttime %xdefine _bn_less_than_montgomery_R _ %+ BORINGSSL_PREFIX %+ _bn_less_than_montgomery_R %xdefine _bn_less_than_words _ %+ BORINGSSL_PREFIX %+ _bn_less_than_words +%xdefine _bn_little_endian_to_words _ %+ BORINGSSL_PREFIX %+ _bn_little_endian_to_words %xdefine _bn_miller_rabin_init _ %+ BORINGSSL_PREFIX %+ _bn_miller_rabin_init %xdefine _bn_miller_rabin_iteration _ %+ BORINGSSL_PREFIX %+ _bn_miller_rabin_iteration %xdefine _bn_minimal_width _ %+ BORINGSSL_PREFIX %+ _bn_minimal_width %xdefine _bn_mod_add_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mod_add_consttime %xdefine _bn_mod_add_words _ %+ BORINGSSL_PREFIX %+ _bn_mod_add_words -%xdefine _bn_mod_exp_base_2_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mod_exp_base_2_consttime %xdefine _bn_mod_exp_mont_small _ %+ BORINGSSL_PREFIX %+ _bn_mod_exp_mont_small %xdefine _bn_mod_inverse0_prime_mont_small _ %+ BORINGSSL_PREFIX %+ _bn_mod_inverse0_prime_mont_small %xdefine _bn_mod_inverse_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mod_inverse_consttime @@ -2646,15 +2919,21 @@ %xdefine _bn_mod_sub_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mod_sub_consttime %xdefine _bn_mod_sub_words _ %+ BORINGSSL_PREFIX %+ _bn_mod_sub_words %xdefine _bn_mod_u16_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mod_u16_consttime +%xdefine _bn_mont_ctx_cleanup _ %+ BORINGSSL_PREFIX %+ _bn_mont_ctx_cleanup +%xdefine _bn_mont_ctx_init _ %+ BORINGSSL_PREFIX %+ _bn_mont_ctx_init +%xdefine _bn_mont_ctx_set_RR_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mont_ctx_set_RR_consttime %xdefine _bn_mont_n0 _ %+ BORINGSSL_PREFIX %+ _bn_mont_n0 +%xdefine _bn_mul4x_mont _ %+ BORINGSSL_PREFIX %+ _bn_mul4x_mont %xdefine _bn_mul_add_words _ %+ BORINGSSL_PREFIX %+ _bn_mul_add_words %xdefine _bn_mul_comba4 _ %+ BORINGSSL_PREFIX %+ _bn_mul_comba4 %xdefine _bn_mul_comba8 _ %+ BORINGSSL_PREFIX %+ _bn_mul_comba8 %xdefine _bn_mul_consttime _ %+ BORINGSSL_PREFIX %+ _bn_mul_consttime %xdefine _bn_mul_mont _ %+ BORINGSSL_PREFIX %+ _bn_mul_mont %xdefine _bn_mul_mont_gather5 _ %+ BORINGSSL_PREFIX %+ _bn_mul_mont_gather5 +%xdefine _bn_mul_mont_nohw _ %+ BORINGSSL_PREFIX %+ _bn_mul_mont_nohw %xdefine _bn_mul_small _ %+ BORINGSSL_PREFIX %+ _bn_mul_small %xdefine _bn_mul_words _ %+ BORINGSSL_PREFIX %+ _bn_mul_words +%xdefine _bn_mulx4x_mont _ %+ BORINGSSL_PREFIX %+ _bn_mulx4x_mont %xdefine _bn_odd_number_is_obviously_composite _ %+ BORINGSSL_PREFIX %+ _bn_odd_number_is_obviously_composite %xdefine _bn_one_to_montgomery _ %+ BORINGSSL_PREFIX %+ _bn_one_to_montgomery %xdefine _bn_power5 _ %+ BORINGSSL_PREFIX %+ _bn_power5 @@ -2672,6 +2951,7 @@ %xdefine _bn_set_static_words _ %+ BORINGSSL_PREFIX %+ _bn_set_static_words %xdefine _bn_set_words _ %+ BORINGSSL_PREFIX %+ _bn_set_words %xdefine _bn_sqr8x_internal _ %+ BORINGSSL_PREFIX %+ _bn_sqr8x_internal +%xdefine _bn_sqr8x_mont _ %+ BORINGSSL_PREFIX %+ _bn_sqr8x_mont %xdefine _bn_sqr_comba4 _ %+ BORINGSSL_PREFIX %+ _bn_sqr_comba4 %xdefine _bn_sqr_comba8 _ %+ BORINGSSL_PREFIX %+ _bn_sqr_comba8 %xdefine _bn_sqr_consttime _ %+ BORINGSSL_PREFIX %+ _bn_sqr_consttime @@ -2683,8 +2963,12 @@ %xdefine _bn_uadd_consttime _ %+ BORINGSSL_PREFIX %+ _bn_uadd_consttime %xdefine _bn_usub_consttime _ %+ BORINGSSL_PREFIX %+ _bn_usub_consttime %xdefine _bn_wexpand _ %+ BORINGSSL_PREFIX %+ _bn_wexpand +%xdefine _bn_words_to_big_endian _ %+ BORINGSSL_PREFIX %+ _bn_words_to_big_endian +%xdefine _bn_words_to_little_endian _ %+ BORINGSSL_PREFIX %+ _bn_words_to_little_endian %xdefine _boringssl_ensure_ecc_self_test _ %+ BORINGSSL_PREFIX %+ _boringssl_ensure_ecc_self_test +%xdefine _boringssl_ensure_eddsa_self_test _ %+ BORINGSSL_PREFIX %+ _boringssl_ensure_eddsa_self_test %xdefine _boringssl_ensure_ffdh_self_test _ %+ BORINGSSL_PREFIX %+ _boringssl_ensure_ffdh_self_test +%xdefine _boringssl_ensure_ml_kem_self_test _ %+ BORINGSSL_PREFIX %+ _boringssl_ensure_ml_kem_self_test %xdefine _boringssl_ensure_rsa_self_test _ %+ BORINGSSL_PREFIX %+ _boringssl_ensure_rsa_self_test %xdefine _boringssl_self_test_hmac_sha256 _ %+ BORINGSSL_PREFIX %+ _boringssl_self_test_hmac_sha256 %xdefine _boringssl_self_test_sha256 _ %+ BORINGSSL_PREFIX %+ _boringssl_self_test_sha256 @@ -2750,6 +3034,8 @@ %xdefine _d2i_DSA_SIG _ %+ BORINGSSL_PREFIX %+ _d2i_DSA_SIG %xdefine _d2i_DSAparams _ %+ BORINGSSL_PREFIX %+ _d2i_DSAparams %xdefine _d2i_ECDSA_SIG _ %+ BORINGSSL_PREFIX %+ _d2i_ECDSA_SIG +%xdefine _d2i_ECPKParameters _ %+ BORINGSSL_PREFIX %+ _d2i_ECPKParameters +%xdefine _d2i_ECPKParameters_bio _ %+ BORINGSSL_PREFIX %+ _d2i_ECPKParameters_bio %xdefine _d2i_ECParameters _ %+ BORINGSSL_PREFIX %+ _d2i_ECParameters %xdefine _d2i_ECPrivateKey _ %+ BORINGSSL_PREFIX %+ _d2i_ECPrivateKey %xdefine _d2i_ECPrivateKey_bio _ %+ BORINGSSL_PREFIX %+ _d2i_ECPrivateKey_bio @@ -2757,7 +3043,6 @@ %xdefine _d2i_EC_PUBKEY _ %+ BORINGSSL_PREFIX %+ _d2i_EC_PUBKEY %xdefine _d2i_EC_PUBKEY_bio _ %+ BORINGSSL_PREFIX %+ _d2i_EC_PUBKEY_bio %xdefine _d2i_EC_PUBKEY_fp _ %+ BORINGSSL_PREFIX %+ _d2i_EC_PUBKEY_fp -%xdefine _d2i_EDIPARTYNAME _ %+ BORINGSSL_PREFIX %+ _d2i_EDIPARTYNAME %xdefine _d2i_EXTENDED_KEY_USAGE _ %+ BORINGSSL_PREFIX %+ _d2i_EXTENDED_KEY_USAGE %xdefine _d2i_GENERAL_NAME _ %+ BORINGSSL_PREFIX %+ _d2i_GENERAL_NAME %xdefine _d2i_GENERAL_NAMES _ %+ BORINGSSL_PREFIX %+ _d2i_GENERAL_NAMES @@ -2767,18 +3052,30 @@ %xdefine _d2i_NOTICEREF _ %+ BORINGSSL_PREFIX %+ _d2i_NOTICEREF %xdefine _d2i_OCSP_BASICRESP _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_BASICRESP %xdefine _d2i_OCSP_CERTID _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_CERTID -%xdefine _d2i_OCSP_CERTSTATUS _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_CERTSTATUS +%xdefine _d2i_OCSP_ONEREQ _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_ONEREQ +%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_RESPID _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_RESPID %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_OTHERNAME _ %+ BORINGSSL_PREFIX %+ _d2i_OTHERNAME %xdefine _d2i_PKCS12 _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS12 %xdefine _d2i_PKCS12_bio _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS12_bio %xdefine _d2i_PKCS12_fp _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS12_fp %xdefine _d2i_PKCS7 _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7 +%xdefine _d2i_PKCS7_DIGEST _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_DIGEST +%xdefine _d2i_PKCS7_ENCRYPT _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_ENCRYPT +%xdefine _d2i_PKCS7_ENC_CONTENT _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_ENC_CONTENT +%xdefine _d2i_PKCS7_ENVELOPE _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_ENVELOPE +%xdefine _d2i_PKCS7_ISSUER_AND_SERIAL _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_ISSUER_AND_SERIAL +%xdefine _d2i_PKCS7_RECIP_INFO _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_RECIP_INFO +%xdefine _d2i_PKCS7_SIGNED _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_SIGNED +%xdefine _d2i_PKCS7_SIGNER_INFO _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_SIGNER_INFO +%xdefine _d2i_PKCS7_SIGN_ENVELOPE _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_SIGN_ENVELOPE %xdefine _d2i_PKCS7_bio _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS7_bio %xdefine _d2i_PKCS8PrivateKey_bio _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS8PrivateKey_bio %xdefine _d2i_PKCS8PrivateKey_fp _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS8PrivateKey_fp @@ -2789,8 +3086,6 @@ %xdefine _d2i_PKCS8_fp _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS8_fp %xdefine _d2i_POLICYINFO _ %+ BORINGSSL_PREFIX %+ _d2i_POLICYINFO %xdefine _d2i_POLICYQUALINFO _ %+ BORINGSSL_PREFIX %+ _d2i_POLICYQUALINFO -%xdefine _d2i_PROXY_CERT_INFO_EXTENSION _ %+ BORINGSSL_PREFIX %+ _d2i_PROXY_CERT_INFO_EXTENSION -%xdefine _d2i_PROXY_POLICY _ %+ BORINGSSL_PREFIX %+ _d2i_PROXY_POLICY %xdefine _d2i_PUBKEY _ %+ BORINGSSL_PREFIX %+ _d2i_PUBKEY %xdefine _d2i_PUBKEY_bio _ %+ BORINGSSL_PREFIX %+ _d2i_PUBKEY_bio %xdefine _d2i_PUBKEY_fp _ %+ BORINGSSL_PREFIX %+ _d2i_PUBKEY_fp @@ -2833,18 +3128,20 @@ %xdefine _d2i_X509_VAL _ %+ BORINGSSL_PREFIX %+ _d2i_X509_VAL %xdefine _d2i_X509_bio _ %+ BORINGSSL_PREFIX %+ _d2i_X509_bio %xdefine _d2i_X509_fp _ %+ BORINGSSL_PREFIX %+ _d2i_X509_fp +%xdefine _dh_asn1_meth _ %+ BORINGSSL_PREFIX %+ _dh_asn1_meth +%xdefine _dh_check_params_fast _ %+ BORINGSSL_PREFIX %+ _dh_check_params_fast %xdefine _dh_compute_key_padded_no_self_test _ %+ BORINGSSL_PREFIX %+ _dh_compute_key_padded_no_self_test +%xdefine _dh_pkey_meth _ %+ BORINGSSL_PREFIX %+ _dh_pkey_meth %xdefine _dsa_asn1_meth _ %+ BORINGSSL_PREFIX %+ _dsa_asn1_meth -%xdefine _dsa_check_parameters _ %+ BORINGSSL_PREFIX %+ _dsa_check_parameters +%xdefine _dsa_check_key _ %+ BORINGSSL_PREFIX %+ _dsa_check_key %xdefine _ec_GFp_mont_add _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_add %xdefine _ec_GFp_mont_dbl _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_dbl +%xdefine _ec_GFp_mont_felem_exp _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_exp %xdefine _ec_GFp_mont_felem_from_bytes _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_from_bytes %xdefine _ec_GFp_mont_felem_mul _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_mul +%xdefine _ec_GFp_mont_felem_reduce _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_reduce %xdefine _ec_GFp_mont_felem_sqr _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_sqr %xdefine _ec_GFp_mont_felem_to_bytes _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_to_bytes -%xdefine _ec_GFp_mont_group_finish _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_group_finish -%xdefine _ec_GFp_mont_group_init _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_group_init -%xdefine _ec_GFp_mont_group_set_curve _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_group_set_curve %xdefine _ec_GFp_mont_init_precomp _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_init_precomp %xdefine _ec_GFp_mont_mul _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_mul %xdefine _ec_GFp_mont_mul_base _ %+ BORINGSSL_PREFIX %+ _ec_GFp_mont_mul_base @@ -2855,9 +3152,7 @@ %xdefine _ec_GFp_simple_cmp_x_coordinate _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_cmp_x_coordinate %xdefine _ec_GFp_simple_felem_from_bytes _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_felem_from_bytes %xdefine _ec_GFp_simple_felem_to_bytes _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_felem_to_bytes -%xdefine _ec_GFp_simple_group_finish _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_group_finish %xdefine _ec_GFp_simple_group_get_curve _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_group_get_curve -%xdefine _ec_GFp_simple_group_init _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_group_init %xdefine _ec_GFp_simple_group_set_curve _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_group_set_curve %xdefine _ec_GFp_simple_invert _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_invert %xdefine _ec_GFp_simple_is_at_infinity _ %+ BORINGSSL_PREFIX %+ _ec_GFp_simple_is_at_infinity @@ -2879,18 +3174,24 @@ %xdefine _ec_felem_from_bytes _ %+ BORINGSSL_PREFIX %+ _ec_felem_from_bytes %xdefine _ec_felem_neg _ %+ BORINGSSL_PREFIX %+ _ec_felem_neg %xdefine _ec_felem_non_zero_mask _ %+ BORINGSSL_PREFIX %+ _ec_felem_non_zero_mask +%xdefine _ec_felem_one _ %+ BORINGSSL_PREFIX %+ _ec_felem_one %xdefine _ec_felem_select _ %+ BORINGSSL_PREFIX %+ _ec_felem_select %xdefine _ec_felem_sub _ %+ BORINGSSL_PREFIX %+ _ec_felem_sub %xdefine _ec_felem_to_bignum _ %+ BORINGSSL_PREFIX %+ _ec_felem_to_bignum %xdefine _ec_felem_to_bytes _ %+ BORINGSSL_PREFIX %+ _ec_felem_to_bytes %xdefine _ec_get_x_coordinate_as_bytes _ %+ BORINGSSL_PREFIX %+ _ec_get_x_coordinate_as_bytes %xdefine _ec_get_x_coordinate_as_scalar _ %+ BORINGSSL_PREFIX %+ _ec_get_x_coordinate_as_scalar -%xdefine _ec_group_new _ %+ BORINGSSL_PREFIX %+ _ec_group_new +%xdefine _ec_hash_to_curve_p256_xmd_sha256_sswu _ %+ BORINGSSL_PREFIX %+ _ec_hash_to_curve_p256_xmd_sha256_sswu +%xdefine _ec_hash_to_curve_p384_xmd_sha384_sswu _ %+ BORINGSSL_PREFIX %+ _ec_hash_to_curve_p384_xmd_sha384_sswu %xdefine _ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 _ %+ BORINGSSL_PREFIX %+ _ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +%xdefine _ec_hash_to_scalar_p384_xmd_sha384 _ %+ BORINGSSL_PREFIX %+ _ec_hash_to_scalar_p384_xmd_sha384 %xdefine _ec_hash_to_scalar_p384_xmd_sha512_draft07 _ %+ BORINGSSL_PREFIX %+ _ec_hash_to_scalar_p384_xmd_sha512_draft07 %xdefine _ec_init_precomp _ %+ BORINGSSL_PREFIX %+ _ec_init_precomp %xdefine _ec_jacobian_to_affine _ %+ BORINGSSL_PREFIX %+ _ec_jacobian_to_affine %xdefine _ec_jacobian_to_affine_batch _ %+ BORINGSSL_PREFIX %+ _ec_jacobian_to_affine_batch +%xdefine _ec_nistp_point_add _ %+ BORINGSSL_PREFIX %+ _ec_nistp_point_add +%xdefine _ec_nistp_point_double _ %+ BORINGSSL_PREFIX %+ _ec_nistp_point_double +%xdefine _ec_nistp_scalar_mul _ %+ BORINGSSL_PREFIX %+ _ec_nistp_scalar_mul %xdefine _ec_point_byte_len _ %+ BORINGSSL_PREFIX %+ _ec_point_byte_len %xdefine _ec_point_from_uncompressed _ %+ BORINGSSL_PREFIX %+ _ec_point_from_uncompressed %xdefine _ec_point_mul_no_self_test _ %+ BORINGSSL_PREFIX %+ _ec_point_mul_no_self_test @@ -2942,7 +3243,19 @@ %xdefine _ecp_nistz256_sqr_mont _ %+ BORINGSSL_PREFIX %+ _ecp_nistz256_sqr_mont %xdefine _ecp_nistz256_sub _ %+ BORINGSSL_PREFIX %+ _ecp_nistz256_sub %xdefine _ed25519_asn1_meth _ %+ BORINGSSL_PREFIX %+ _ed25519_asn1_meth -%xdefine _ed25519_pkey_meth _ %+ BORINGSSL_PREFIX %+ _ed25519_pkey_meth +%xdefine _ed25519_check_public_key_nohw _ %+ BORINGSSL_PREFIX %+ _ed25519_check_public_key_nohw +%xdefine _ed25519_check_public_key_s2n_bignum _ %+ BORINGSSL_PREFIX %+ _ed25519_check_public_key_s2n_bignum +%xdefine _ed25519_public_key_from_hashed_seed_nohw _ %+ BORINGSSL_PREFIX %+ _ed25519_public_key_from_hashed_seed_nohw +%xdefine _ed25519_public_key_from_hashed_seed_s2n_bignum _ %+ BORINGSSL_PREFIX %+ _ed25519_public_key_from_hashed_seed_s2n_bignum +%xdefine _ed25519_sha512 _ %+ BORINGSSL_PREFIX %+ _ed25519_sha512 +%xdefine _ed25519_sign_nohw _ %+ BORINGSSL_PREFIX %+ _ed25519_sign_nohw +%xdefine _ed25519_sign_s2n_bignum _ %+ BORINGSSL_PREFIX %+ _ed25519_sign_s2n_bignum +%xdefine _ed25519_verify_nohw _ %+ BORINGSSL_PREFIX %+ _ed25519_verify_nohw +%xdefine _ed25519_verify_s2n_bignum _ %+ BORINGSSL_PREFIX %+ _ed25519_verify_s2n_bignum +%xdefine _evp_pkey_set_method _ %+ BORINGSSL_PREFIX %+ _evp_pkey_set_method +%xdefine _extract_multiplier_2x20_win5 _ %+ BORINGSSL_PREFIX %+ _extract_multiplier_2x20_win5 +%xdefine _extract_multiplier_2x30_win5 _ %+ BORINGSSL_PREFIX %+ _extract_multiplier_2x30_win5 +%xdefine _extract_multiplier_2x40_win5 _ %+ BORINGSSL_PREFIX %+ _extract_multiplier_2x40_win5 %xdefine _gcm_ghash_avx _ %+ BORINGSSL_PREFIX %+ _gcm_ghash_avx %xdefine _gcm_ghash_avx512 _ %+ BORINGSSL_PREFIX %+ _gcm_ghash_avx512 %xdefine _gcm_ghash_clmul _ %+ BORINGSSL_PREFIX %+ _gcm_ghash_clmul @@ -2965,7 +3278,11 @@ %xdefine _gcm_init_ssse3 _ %+ BORINGSSL_PREFIX %+ _gcm_init_ssse3 %xdefine _gcm_init_v8 _ %+ BORINGSSL_PREFIX %+ _gcm_init_v8 %xdefine _gcm_setiv_avx512 _ %+ BORINGSSL_PREFIX %+ _gcm_setiv_avx512 -%xdefine _i2a_ACCESS_DESCRIPTION _ %+ BORINGSSL_PREFIX %+ _i2a_ACCESS_DESCRIPTION +%xdefine _get_legacy_kem_kyber1024_r3 _ %+ BORINGSSL_PREFIX %+ _get_legacy_kem_kyber1024_r3 +%xdefine _get_legacy_kem_kyber512_r3 _ %+ BORINGSSL_PREFIX %+ _get_legacy_kem_kyber512_r3 +%xdefine _get_legacy_kem_kyber768_r3 _ %+ BORINGSSL_PREFIX %+ _get_legacy_kem_kyber768_r3 +%xdefine _handle_cpu_env _ %+ BORINGSSL_PREFIX %+ _handle_cpu_env +%xdefine _hmac_asn1_meth _ %+ BORINGSSL_PREFIX %+ _hmac_asn1_meth %xdefine _i2a_ASN1_ENUMERATED _ %+ BORINGSSL_PREFIX %+ _i2a_ASN1_ENUMERATED %xdefine _i2a_ASN1_INTEGER _ %+ BORINGSSL_PREFIX %+ _i2a_ASN1_INTEGER %xdefine _i2a_ASN1_OBJECT _ %+ BORINGSSL_PREFIX %+ _i2a_ASN1_OBJECT @@ -3016,6 +3333,8 @@ %xdefine _i2d_DSA_SIG _ %+ BORINGSSL_PREFIX %+ _i2d_DSA_SIG %xdefine _i2d_DSAparams _ %+ BORINGSSL_PREFIX %+ _i2d_DSAparams %xdefine _i2d_ECDSA_SIG _ %+ BORINGSSL_PREFIX %+ _i2d_ECDSA_SIG +%xdefine _i2d_ECPKParameters _ %+ BORINGSSL_PREFIX %+ _i2d_ECPKParameters +%xdefine _i2d_ECPKParameters_bio _ %+ BORINGSSL_PREFIX %+ _i2d_ECPKParameters_bio %xdefine _i2d_ECParameters _ %+ BORINGSSL_PREFIX %+ _i2d_ECParameters %xdefine _i2d_ECPrivateKey _ %+ BORINGSSL_PREFIX %+ _i2d_ECPrivateKey %xdefine _i2d_ECPrivateKey_bio _ %+ BORINGSSL_PREFIX %+ _i2d_ECPrivateKey_bio @@ -3023,7 +3342,6 @@ %xdefine _i2d_EC_PUBKEY _ %+ BORINGSSL_PREFIX %+ _i2d_EC_PUBKEY %xdefine _i2d_EC_PUBKEY_bio _ %+ BORINGSSL_PREFIX %+ _i2d_EC_PUBKEY_bio %xdefine _i2d_EC_PUBKEY_fp _ %+ BORINGSSL_PREFIX %+ _i2d_EC_PUBKEY_fp -%xdefine _i2d_EDIPARTYNAME _ %+ BORINGSSL_PREFIX %+ _i2d_EDIPARTYNAME %xdefine _i2d_EXTENDED_KEY_USAGE _ %+ BORINGSSL_PREFIX %+ _i2d_EXTENDED_KEY_USAGE %xdefine _i2d_GENERAL_NAME _ %+ BORINGSSL_PREFIX %+ _i2d_GENERAL_NAME %xdefine _i2d_GENERAL_NAMES _ %+ BORINGSSL_PREFIX %+ _i2d_GENERAL_NAMES @@ -3033,18 +3351,30 @@ %xdefine _i2d_NOTICEREF _ %+ BORINGSSL_PREFIX %+ _i2d_NOTICEREF %xdefine _i2d_OCSP_BASICRESP _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_BASICRESP %xdefine _i2d_OCSP_CERTID _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_CERTID -%xdefine _i2d_OCSP_CERTSTATUS _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_CERTSTATUS +%xdefine _i2d_OCSP_ONEREQ _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_ONEREQ +%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_RESPID _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_RESPID %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_OTHERNAME _ %+ BORINGSSL_PREFIX %+ _i2d_OTHERNAME %xdefine _i2d_PKCS12 _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS12 %xdefine _i2d_PKCS12_bio _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS12_bio %xdefine _i2d_PKCS12_fp _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS12_fp %xdefine _i2d_PKCS7 _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7 +%xdefine _i2d_PKCS7_DIGEST _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_DIGEST +%xdefine _i2d_PKCS7_ENCRYPT _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_ENCRYPT +%xdefine _i2d_PKCS7_ENC_CONTENT _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_ENC_CONTENT +%xdefine _i2d_PKCS7_ENVELOPE _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_ENVELOPE +%xdefine _i2d_PKCS7_ISSUER_AND_SERIAL _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_ISSUER_AND_SERIAL +%xdefine _i2d_PKCS7_RECIP_INFO _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_RECIP_INFO +%xdefine _i2d_PKCS7_SIGNED _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_SIGNED +%xdefine _i2d_PKCS7_SIGNER_INFO _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_SIGNER_INFO +%xdefine _i2d_PKCS7_SIGN_ENVELOPE _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_SIGN_ENVELOPE %xdefine _i2d_PKCS7_bio _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS7_bio %xdefine _i2d_PKCS8PrivateKeyInfo_bio _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS8PrivateKeyInfo_bio %xdefine _i2d_PKCS8PrivateKeyInfo_fp _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS8PrivateKeyInfo_fp @@ -3059,8 +3389,6 @@ %xdefine _i2d_PKCS8_fp _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS8_fp %xdefine _i2d_POLICYINFO _ %+ BORINGSSL_PREFIX %+ _i2d_POLICYINFO %xdefine _i2d_POLICYQUALINFO _ %+ BORINGSSL_PREFIX %+ _i2d_POLICYQUALINFO -%xdefine _i2d_PROXY_CERT_INFO_EXTENSION _ %+ BORINGSSL_PREFIX %+ _i2d_PROXY_CERT_INFO_EXTENSION -%xdefine _i2d_PROXY_POLICY _ %+ BORINGSSL_PREFIX %+ _i2d_PROXY_POLICY %xdefine _i2d_PUBKEY _ %+ BORINGSSL_PREFIX %+ _i2d_PUBKEY %xdefine _i2d_PUBKEY_bio _ %+ BORINGSSL_PREFIX %+ _i2d_PUBKEY_bio %xdefine _i2d_PUBKEY_fp _ %+ BORINGSSL_PREFIX %+ _i2d_PUBKEY_fp @@ -3116,52 +3444,87 @@ %xdefine _i2v_GENERAL_NAME _ %+ BORINGSSL_PREFIX %+ _i2v_GENERAL_NAME %xdefine _i2v_GENERAL_NAMES _ %+ BORINGSSL_PREFIX %+ _i2v_GENERAL_NAMES %xdefine _is_fips_build _ %+ BORINGSSL_PREFIX %+ _is_fips_build -%xdefine _jent_apt_init _ %+ BORINGSSL_PREFIX %+ _jent_apt_init -%xdefine _jent_entropy_collector_alloc _ %+ BORINGSSL_PREFIX %+ _jent_entropy_collector_alloc -%xdefine _jent_entropy_collector_free _ %+ BORINGSSL_PREFIX %+ _jent_entropy_collector_free -%xdefine _jent_entropy_init _ %+ BORINGSSL_PREFIX %+ _jent_entropy_init -%xdefine _jent_entropy_init_ex _ %+ BORINGSSL_PREFIX %+ _jent_entropy_init_ex -%xdefine _jent_entropy_switch_notime_impl _ %+ BORINGSSL_PREFIX %+ _jent_entropy_switch_notime_impl -%xdefine _jent_gcd_analyze _ %+ BORINGSSL_PREFIX %+ _jent_gcd_analyze -%xdefine _jent_gcd_fini _ %+ BORINGSSL_PREFIX %+ _jent_gcd_fini -%xdefine _jent_gcd_get _ %+ BORINGSSL_PREFIX %+ _jent_gcd_get -%xdefine _jent_gcd_init _ %+ BORINGSSL_PREFIX %+ _jent_gcd_init -%xdefine _jent_gcd_selftest _ %+ BORINGSSL_PREFIX %+ _jent_gcd_selftest -%xdefine _jent_health_cb_block_switch _ %+ BORINGSSL_PREFIX %+ _jent_health_cb_block_switch -%xdefine _jent_health_failure _ %+ BORINGSSL_PREFIX %+ _jent_health_failure -%xdefine _jent_lag_init _ %+ BORINGSSL_PREFIX %+ _jent_lag_init -%xdefine _jent_measure_jitter _ %+ BORINGSSL_PREFIX %+ _jent_measure_jitter -%xdefine _jent_random_data _ %+ BORINGSSL_PREFIX %+ _jent_random_data -%xdefine _jent_read_entropy _ %+ BORINGSSL_PREFIX %+ _jent_read_entropy -%xdefine _jent_read_entropy_safe _ %+ BORINGSSL_PREFIX %+ _jent_read_entropy_safe -%xdefine _jent_read_random_block _ %+ BORINGSSL_PREFIX %+ _jent_read_random_block -%xdefine _jent_set_fips_failure_callback _ %+ BORINGSSL_PREFIX %+ _jent_set_fips_failure_callback -%xdefine _jent_set_fips_failure_callback_internal _ %+ BORINGSSL_PREFIX %+ _jent_set_fips_failure_callback_internal -%xdefine _jent_stuck _ %+ BORINGSSL_PREFIX %+ _jent_stuck -%xdefine _jent_time_entropy_init _ %+ BORINGSSL_PREFIX %+ _jent_time_entropy_init -%xdefine _jent_version _ %+ BORINGSSL_PREFIX %+ _jent_version +%xdefine _is_public_component_of_rsa_key_good _ %+ BORINGSSL_PREFIX %+ _is_public_component_of_rsa_key_good %xdefine _kBoringSSLRSASqrtTwo _ %+ BORINGSSL_PREFIX %+ _kBoringSSLRSASqrtTwo %xdefine _kBoringSSLRSASqrtTwoLen _ %+ BORINGSSL_PREFIX %+ _kBoringSSLRSASqrtTwoLen %xdefine _kOpenSSLReasonStringData _ %+ BORINGSSL_PREFIX %+ _kOpenSSLReasonStringData %xdefine _kOpenSSLReasonValues _ %+ BORINGSSL_PREFIX %+ _kOpenSSLReasonValues %xdefine _kOpenSSLReasonValuesLen _ %+ BORINGSSL_PREFIX %+ _kOpenSSLReasonValuesLen %xdefine _kem_asn1_meth _ %+ BORINGSSL_PREFIX %+ _kem_asn1_meth -%xdefine _kem_kyber1024r3_method _ %+ BORINGSSL_PREFIX %+ _kem_kyber1024r3_method -%xdefine _kem_kyber512r3_method _ %+ BORINGSSL_PREFIX %+ _kem_kyber512r3_method -%xdefine _kem_kyber768r3_method _ %+ BORINGSSL_PREFIX %+ _kem_kyber768r3_method -%xdefine _kem_pkey_meth _ %+ BORINGSSL_PREFIX %+ _kem_pkey_meth -%xdefine _kyber1024r3_decapsulate _ %+ BORINGSSL_PREFIX %+ _kyber1024r3_decapsulate -%xdefine _kyber1024r3_encapsulate _ %+ BORINGSSL_PREFIX %+ _kyber1024r3_encapsulate -%xdefine _kyber1024r3_keypair _ %+ BORINGSSL_PREFIX %+ _kyber1024r3_keypair -%xdefine _kyber512r3_decapsulate _ %+ BORINGSSL_PREFIX %+ _kyber512r3_decapsulate -%xdefine _kyber512r3_encapsulate _ %+ BORINGSSL_PREFIX %+ _kyber512r3_encapsulate -%xdefine _kyber512r3_keypair _ %+ BORINGSSL_PREFIX %+ _kyber512r3_keypair -%xdefine _kyber768r3_decapsulate _ %+ BORINGSSL_PREFIX %+ _kyber768r3_decapsulate -%xdefine _kyber768r3_encapsulate _ %+ BORINGSSL_PREFIX %+ _kyber768r3_encapsulate -%xdefine _kyber768r3_keypair _ %+ BORINGSSL_PREFIX %+ _kyber768r3_keypair %xdefine _md4_block_data_order _ %+ BORINGSSL_PREFIX %+ _md4_block_data_order %xdefine _md5_block_asm_data_order _ %+ BORINGSSL_PREFIX %+ _md5_block_asm_data_order +%xdefine _ml_kem_1024_decapsulate _ %+ BORINGSSL_PREFIX %+ _ml_kem_1024_decapsulate +%xdefine _ml_kem_1024_encapsulate _ %+ BORINGSSL_PREFIX %+ _ml_kem_1024_encapsulate +%xdefine _ml_kem_1024_encapsulate_deterministic _ %+ BORINGSSL_PREFIX %+ _ml_kem_1024_encapsulate_deterministic +%xdefine _ml_kem_1024_keypair _ %+ BORINGSSL_PREFIX %+ _ml_kem_1024_keypair +%xdefine _ml_kem_1024_keypair_deterministic _ %+ BORINGSSL_PREFIX %+ _ml_kem_1024_keypair_deterministic +%xdefine _ml_kem_1024_params_init _ %+ BORINGSSL_PREFIX %+ _ml_kem_1024_params_init +%xdefine _ml_kem_512_decapsulate _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_decapsulate +%xdefine _ml_kem_512_decapsulate_no_self_test _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_decapsulate_no_self_test +%xdefine _ml_kem_512_encapsulate _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_encapsulate +%xdefine _ml_kem_512_encapsulate_deterministic _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_encapsulate_deterministic +%xdefine _ml_kem_512_encapsulate_deterministic_no_self_test _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_encapsulate_deterministic_no_self_test +%xdefine _ml_kem_512_keypair _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_keypair +%xdefine _ml_kem_512_keypair_deterministic _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_keypair_deterministic +%xdefine _ml_kem_512_keypair_deterministic_no_self_test _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_keypair_deterministic_no_self_test +%xdefine _ml_kem_512_params_init _ %+ BORINGSSL_PREFIX %+ _ml_kem_512_params_init +%xdefine _ml_kem_768_decapsulate _ %+ BORINGSSL_PREFIX %+ _ml_kem_768_decapsulate +%xdefine _ml_kem_768_encapsulate _ %+ BORINGSSL_PREFIX %+ _ml_kem_768_encapsulate +%xdefine _ml_kem_768_encapsulate_deterministic _ %+ BORINGSSL_PREFIX %+ _ml_kem_768_encapsulate_deterministic +%xdefine _ml_kem_768_keypair _ %+ BORINGSSL_PREFIX %+ _ml_kem_768_keypair +%xdefine _ml_kem_768_keypair_deterministic _ %+ BORINGSSL_PREFIX %+ _ml_kem_768_keypair_deterministic +%xdefine _ml_kem_768_params_init _ %+ BORINGSSL_PREFIX %+ _ml_kem_768_params_init +%xdefine _ml_kem_barrett_reduce_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_barrett_reduce_ref +%xdefine _ml_kem_basemul_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_basemul_ref +%xdefine _ml_kem_cmov_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_cmov_ref +%xdefine _ml_kem_dec_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_dec_ref +%xdefine _ml_kem_enc_derand_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_enc_derand_ref +%xdefine _ml_kem_enc_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_enc_ref +%xdefine _ml_kem_gen_matrix_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_gen_matrix_ref +%xdefine _ml_kem_indcpa_dec_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_indcpa_dec_ref +%xdefine _ml_kem_indcpa_enc_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_indcpa_enc_ref +%xdefine _ml_kem_indcpa_keypair_derand_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_indcpa_keypair_derand_ref +%xdefine _ml_kem_invntt_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_invntt_ref +%xdefine _ml_kem_keypair_derand_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_keypair_derand_ref +%xdefine _ml_kem_keypair_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_keypair_ref +%xdefine _ml_kem_kyber_shake128_absorb_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_kyber_shake128_absorb_ref +%xdefine _ml_kem_kyber_shake128_squeeze_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_kyber_shake128_squeeze_ref +%xdefine _ml_kem_kyber_shake256_prf_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_kyber_shake256_prf_ref +%xdefine _ml_kem_kyber_shake256_rkprf_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_kyber_shake256_rkprf_ref +%xdefine _ml_kem_montgomery_reduce_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_montgomery_reduce_ref +%xdefine _ml_kem_ntt_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_ntt_ref +%xdefine _ml_kem_poly_add_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_add_ref +%xdefine _ml_kem_poly_basemul_montgomery_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_basemul_montgomery_ref +%xdefine _ml_kem_poly_cbd_eta1_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_cbd_eta1_ref +%xdefine _ml_kem_poly_cbd_eta2_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_cbd_eta2_ref +%xdefine _ml_kem_poly_compress_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_compress_ref +%xdefine _ml_kem_poly_decompress_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_decompress_ref +%xdefine _ml_kem_poly_frombytes_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_frombytes_ref +%xdefine _ml_kem_poly_frommsg_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_frommsg_ref +%xdefine _ml_kem_poly_getnoise_eta1_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_getnoise_eta1_ref +%xdefine _ml_kem_poly_getnoise_eta2_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_getnoise_eta2_ref +%xdefine _ml_kem_poly_invntt_tomont_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_invntt_tomont_ref +%xdefine _ml_kem_poly_ntt_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_ntt_ref +%xdefine _ml_kem_poly_reduce_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_reduce_ref +%xdefine _ml_kem_poly_sub_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_sub_ref +%xdefine _ml_kem_poly_tobytes_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_tobytes_ref +%xdefine _ml_kem_poly_tomont_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_tomont_ref +%xdefine _ml_kem_poly_tomsg_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_poly_tomsg_ref +%xdefine _ml_kem_polyvec_add_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_add_ref +%xdefine _ml_kem_polyvec_basemul_acc_montgomery_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_basemul_acc_montgomery_ref +%xdefine _ml_kem_polyvec_compress_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_compress_ref +%xdefine _ml_kem_polyvec_decompress_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_decompress_ref +%xdefine _ml_kem_polyvec_frombytes_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_frombytes_ref +%xdefine _ml_kem_polyvec_invntt_tomont_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_invntt_tomont_ref +%xdefine _ml_kem_polyvec_ntt_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_ntt_ref +%xdefine _ml_kem_polyvec_reduce_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_reduce_ref +%xdefine _ml_kem_polyvec_tobytes_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_polyvec_tobytes_ref +%xdefine _ml_kem_verify_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_verify_ref +%xdefine _ml_kem_zetas_ref _ %+ BORINGSSL_PREFIX %+ _ml_kem_zetas_ref %xdefine _o2i_ECPublicKey _ %+ BORINGSSL_PREFIX %+ _o2i_ECPublicKey +%xdefine _p256_methods _ %+ BORINGSSL_PREFIX %+ _p256_methods +%xdefine _p384_methods _ %+ BORINGSSL_PREFIX %+ _p384_methods +%xdefine _p521_methods _ %+ BORINGSSL_PREFIX %+ _p521_methods %xdefine _pkcs12_iterations_acceptable _ %+ BORINGSSL_PREFIX %+ _pkcs12_iterations_acceptable %xdefine _pkcs12_key_gen _ %+ BORINGSSL_PREFIX %+ _pkcs12_key_gen %xdefine _pkcs12_pbe_encrypt_init _ %+ BORINGSSL_PREFIX %+ _pkcs12_pbe_encrypt_init @@ -3186,6 +3549,15 @@ %xdefine _pmbtoken_exp2_read _ %+ BORINGSSL_PREFIX %+ _pmbtoken_exp2_read %xdefine _pmbtoken_exp2_sign _ %+ BORINGSSL_PREFIX %+ _pmbtoken_exp2_sign %xdefine _pmbtoken_exp2_unblind _ %+ BORINGSSL_PREFIX %+ _pmbtoken_exp2_unblind +%xdefine _pmbtoken_pst1_blind _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_blind +%xdefine _pmbtoken_pst1_client_key_from_bytes _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_client_key_from_bytes +%xdefine _pmbtoken_pst1_derive_key_from_secret _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_derive_key_from_secret +%xdefine _pmbtoken_pst1_generate_key _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_generate_key +%xdefine _pmbtoken_pst1_get_h_for_testing _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_get_h_for_testing +%xdefine _pmbtoken_pst1_issuer_key_from_bytes _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_issuer_key_from_bytes +%xdefine _pmbtoken_pst1_read _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_read +%xdefine _pmbtoken_pst1_sign _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_sign +%xdefine _pmbtoken_pst1_unblind _ %+ BORINGSSL_PREFIX %+ _pmbtoken_pst1_unblind %xdefine _poly_Rq_mul _ %+ BORINGSSL_PREFIX %+ _poly_Rq_mul %xdefine _pq_custom_randombytes _ %+ BORINGSSL_PREFIX %+ _pq_custom_randombytes %xdefine _pq_custom_randombytes_init_for_testing _ %+ BORINGSSL_PREFIX %+ _pq_custom_randombytes_init_for_testing @@ -3195,12 +3567,14 @@ %xdefine _pqcrystals_kyber1024_ref_cmov _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_cmov %xdefine _pqcrystals_kyber1024_ref_dec _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_dec %xdefine _pqcrystals_kyber1024_ref_enc _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_enc +%xdefine _pqcrystals_kyber1024_ref_enc_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_enc_derand %xdefine _pqcrystals_kyber1024_ref_gen_matrix _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_gen_matrix %xdefine _pqcrystals_kyber1024_ref_indcpa_dec _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_dec %xdefine _pqcrystals_kyber1024_ref_indcpa_enc _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_enc -%xdefine _pqcrystals_kyber1024_ref_indcpa_keypair _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_keypair +%xdefine _pqcrystals_kyber1024_ref_indcpa_keypair_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_keypair_derand %xdefine _pqcrystals_kyber1024_ref_invntt _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_invntt %xdefine _pqcrystals_kyber1024_ref_keypair _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_keypair +%xdefine _pqcrystals_kyber1024_ref_keypair_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_keypair_derand %xdefine _pqcrystals_kyber1024_ref_kyber_shake128_absorb _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_kyber_shake128_absorb %xdefine _pqcrystals_kyber1024_ref_kyber_shake256_prf _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_kyber_shake256_prf %xdefine _pqcrystals_kyber1024_ref_montgomery_reduce _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_montgomery_reduce @@ -3238,12 +3612,14 @@ %xdefine _pqcrystals_kyber512_ref_cmov _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_cmov %xdefine _pqcrystals_kyber512_ref_dec _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_dec %xdefine _pqcrystals_kyber512_ref_enc _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_enc +%xdefine _pqcrystals_kyber512_ref_enc_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_enc_derand %xdefine _pqcrystals_kyber512_ref_gen_matrix _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_gen_matrix %xdefine _pqcrystals_kyber512_ref_indcpa_dec _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_dec %xdefine _pqcrystals_kyber512_ref_indcpa_enc _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_enc -%xdefine _pqcrystals_kyber512_ref_indcpa_keypair _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_keypair +%xdefine _pqcrystals_kyber512_ref_indcpa_keypair_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_keypair_derand %xdefine _pqcrystals_kyber512_ref_invntt _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_invntt %xdefine _pqcrystals_kyber512_ref_keypair _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_keypair +%xdefine _pqcrystals_kyber512_ref_keypair_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_keypair_derand %xdefine _pqcrystals_kyber512_ref_kyber_shake128_absorb _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_kyber_shake128_absorb %xdefine _pqcrystals_kyber512_ref_kyber_shake256_prf _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_kyber_shake256_prf %xdefine _pqcrystals_kyber512_ref_montgomery_reduce _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_montgomery_reduce @@ -3281,12 +3657,14 @@ %xdefine _pqcrystals_kyber768_ref_cmov _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_cmov %xdefine _pqcrystals_kyber768_ref_dec _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_dec %xdefine _pqcrystals_kyber768_ref_enc _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_enc +%xdefine _pqcrystals_kyber768_ref_enc_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_enc_derand %xdefine _pqcrystals_kyber768_ref_gen_matrix _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_gen_matrix %xdefine _pqcrystals_kyber768_ref_indcpa_dec _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_dec %xdefine _pqcrystals_kyber768_ref_indcpa_enc _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_enc -%xdefine _pqcrystals_kyber768_ref_indcpa_keypair _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_keypair +%xdefine _pqcrystals_kyber768_ref_indcpa_keypair_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_keypair_derand %xdefine _pqcrystals_kyber768_ref_invntt _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_invntt %xdefine _pqcrystals_kyber768_ref_keypair _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_keypair +%xdefine _pqcrystals_kyber768_ref_keypair_derand _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_keypair_derand %xdefine _pqcrystals_kyber768_ref_kyber_shake128_absorb _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_kyber_shake128_absorb %xdefine _pqcrystals_kyber768_ref_kyber_shake256_prf _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_kyber_shake256_prf %xdefine _pqcrystals_kyber768_ref_montgomery_reduce _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_montgomery_reduce @@ -3337,13 +3715,14 @@ %xdefine _pqcrystals_kyber_fips202_ref_shake256_squeezeblocks _ %+ BORINGSSL_PREFIX %+ _pqcrystals_kyber_fips202_ref_shake256_squeezeblocks %xdefine _rand_fork_unsafe_buffering_enabled _ %+ BORINGSSL_PREFIX %+ _rand_fork_unsafe_buffering_enabled %xdefine _rsa_asn1_meth _ %+ BORINGSSL_PREFIX %+ _rsa_asn1_meth -%xdefine _rsa_check_public_key _ %+ BORINGSSL_PREFIX %+ _rsa_check_public_key -%xdefine _rsa_default_decrypt _ %+ BORINGSSL_PREFIX %+ _rsa_default_decrypt %xdefine _rsa_default_private_transform _ %+ BORINGSSL_PREFIX %+ _rsa_default_private_transform %xdefine _rsa_default_sign_raw _ %+ BORINGSSL_PREFIX %+ _rsa_default_sign_raw %xdefine _rsa_default_size _ %+ BORINGSSL_PREFIX %+ _rsa_default_size %xdefine _rsa_digestsign_no_self_test _ %+ BORINGSSL_PREFIX %+ _rsa_digestsign_no_self_test %xdefine _rsa_digestverify_no_self_test _ %+ BORINGSSL_PREFIX %+ _rsa_digestverify_no_self_test +%xdefine _rsa_invalidate_key _ %+ BORINGSSL_PREFIX %+ _rsa_invalidate_key +%xdefine _rsa_private_transform _ %+ BORINGSSL_PREFIX %+ _rsa_private_transform +%xdefine _rsa_private_transform_no_self_test _ %+ BORINGSSL_PREFIX %+ _rsa_private_transform_no_self_test %xdefine _rsa_pss_asn1_meth _ %+ BORINGSSL_PREFIX %+ _rsa_pss_asn1_meth %xdefine _rsa_sign_no_self_test _ %+ BORINGSSL_PREFIX %+ _rsa_sign_no_self_test %xdefine _rsa_verify_no_self_test _ %+ BORINGSSL_PREFIX %+ _rsa_verify_no_self_test @@ -3354,44 +3733,35 @@ %xdefine _rsaz_1024_red2norm_avx2 _ %+ BORINGSSL_PREFIX %+ _rsaz_1024_red2norm_avx2 %xdefine _rsaz_1024_scatter5_avx2 _ %+ BORINGSSL_PREFIX %+ _rsaz_1024_scatter5_avx2 %xdefine _rsaz_1024_sqr_avx2 _ %+ BORINGSSL_PREFIX %+ _rsaz_1024_sqr_avx2 +%xdefine _rsaz_amm52x20_x1_ifma256 _ %+ BORINGSSL_PREFIX %+ _rsaz_amm52x20_x1_ifma256 +%xdefine _rsaz_amm52x20_x2_ifma256 _ %+ BORINGSSL_PREFIX %+ _rsaz_amm52x20_x2_ifma256 +%xdefine _rsaz_amm52x30_x1_ifma256 _ %+ BORINGSSL_PREFIX %+ _rsaz_amm52x30_x1_ifma256 +%xdefine _rsaz_amm52x30_x2_ifma256 _ %+ BORINGSSL_PREFIX %+ _rsaz_amm52x30_x2_ifma256 +%xdefine _rsaz_amm52x40_x1_ifma256 _ %+ BORINGSSL_PREFIX %+ _rsaz_amm52x40_x1_ifma256 +%xdefine _rsaz_amm52x40_x2_ifma256 _ %+ BORINGSSL_PREFIX %+ _rsaz_amm52x40_x2_ifma256 %xdefine _s2i_ASN1_INTEGER _ %+ BORINGSSL_PREFIX %+ _s2i_ASN1_INTEGER %xdefine _s2i_ASN1_OCTET_STRING _ %+ BORINGSSL_PREFIX %+ _s2i_ASN1_OCTET_STRING -%xdefine _sha1_block_data_order _ %+ BORINGSSL_PREFIX %+ _sha1_block_data_order +%xdefine _sha1_block_data_order_avx _ %+ BORINGSSL_PREFIX %+ _sha1_block_data_order_avx +%xdefine _sha1_block_data_order_avx2 _ %+ BORINGSSL_PREFIX %+ _sha1_block_data_order_avx2 +%xdefine _sha1_block_data_order_hw _ %+ BORINGSSL_PREFIX %+ _sha1_block_data_order_hw +%xdefine _sha1_block_data_order_nohw _ %+ BORINGSSL_PREFIX %+ _sha1_block_data_order_nohw +%xdefine _sha1_block_data_order_ssse3 _ %+ BORINGSSL_PREFIX %+ _sha1_block_data_order_ssse3 %xdefine _sha1_func _ %+ BORINGSSL_PREFIX %+ _sha1_func %xdefine _sha224_func _ %+ BORINGSSL_PREFIX %+ _sha224_func -%xdefine _sha256_block_data_order _ %+ BORINGSSL_PREFIX %+ _sha256_block_data_order +%xdefine _sha256_block_data_order_avx _ %+ BORINGSSL_PREFIX %+ _sha256_block_data_order_avx +%xdefine _sha256_block_data_order_hw _ %+ BORINGSSL_PREFIX %+ _sha256_block_data_order_hw +%xdefine _sha256_block_data_order_nohw _ %+ BORINGSSL_PREFIX %+ _sha256_block_data_order_nohw +%xdefine _sha256_block_data_order_ssse3 _ %+ BORINGSSL_PREFIX %+ _sha256_block_data_order_ssse3 %xdefine _sha256_func _ %+ BORINGSSL_PREFIX %+ _sha256_func %xdefine _sha384_func _ %+ BORINGSSL_PREFIX %+ _sha384_func -%xdefine _sha3_256_init _ %+ BORINGSSL_PREFIX %+ _sha3_256_init -%xdefine _sha3_alloc _ %+ BORINGSSL_PREFIX %+ _sha3_alloc -%xdefine _sha3_dealloc _ %+ BORINGSSL_PREFIX %+ _sha3_dealloc -%xdefine _sha3_final _ %+ BORINGSSL_PREFIX %+ _sha3_final -%xdefine _sha3_tester _ %+ BORINGSSL_PREFIX %+ _sha3_tester -%xdefine _sha3_update _ %+ BORINGSSL_PREFIX %+ _sha3_update -%xdefine _sha512_block_data_order _ %+ BORINGSSL_PREFIX %+ _sha512_block_data_order +%xdefine _sha512_block_data_order_avx _ %+ BORINGSSL_PREFIX %+ _sha512_block_data_order_avx +%xdefine _sha512_block_data_order_hw _ %+ BORINGSSL_PREFIX %+ _sha512_block_data_order_hw +%xdefine _sha512_block_data_order_nohw _ %+ BORINGSSL_PREFIX %+ _sha512_block_data_order_nohw %xdefine _sha512_func _ %+ BORINGSSL_PREFIX %+ _sha512_func -%xdefine _sk_deep_copy _ %+ BORINGSSL_PREFIX %+ _sk_deep_copy -%xdefine _sk_delete _ %+ BORINGSSL_PREFIX %+ _sk_delete -%xdefine _sk_delete_if _ %+ BORINGSSL_PREFIX %+ _sk_delete_if -%xdefine _sk_delete_ptr _ %+ BORINGSSL_PREFIX %+ _sk_delete_ptr -%xdefine _sk_dup _ %+ BORINGSSL_PREFIX %+ _sk_dup -%xdefine _sk_find _ %+ BORINGSSL_PREFIX %+ _sk_find -%xdefine _sk_free _ %+ BORINGSSL_PREFIX %+ _sk_free -%xdefine _sk_insert _ %+ BORINGSSL_PREFIX %+ _sk_insert -%xdefine _sk_is_sorted _ %+ BORINGSSL_PREFIX %+ _sk_is_sorted -%xdefine _sk_new _ %+ BORINGSSL_PREFIX %+ _sk_new -%xdefine _sk_new_null _ %+ BORINGSSL_PREFIX %+ _sk_new_null -%xdefine _sk_num _ %+ BORINGSSL_PREFIX %+ _sk_num -%xdefine _sk_pop _ %+ BORINGSSL_PREFIX %+ _sk_pop %xdefine _sk_pop_free _ %+ BORINGSSL_PREFIX %+ _sk_pop_free -%xdefine _sk_pop_free_ex _ %+ BORINGSSL_PREFIX %+ _sk_pop_free_ex -%xdefine _sk_push _ %+ BORINGSSL_PREFIX %+ _sk_push -%xdefine _sk_set _ %+ BORINGSSL_PREFIX %+ _sk_set -%xdefine _sk_set_cmp_func _ %+ BORINGSSL_PREFIX %+ _sk_set_cmp_func -%xdefine _sk_shift _ %+ BORINGSSL_PREFIX %+ _sk_shift -%xdefine _sk_sort _ %+ BORINGSSL_PREFIX %+ _sk_sort -%xdefine _sk_value _ %+ BORINGSSL_PREFIX %+ _sk_value -%xdefine _sk_zero _ %+ BORINGSSL_PREFIX %+ _sk_zero +%xdefine _sskdf_variant_digest _ %+ BORINGSSL_PREFIX %+ _sskdf_variant_digest +%xdefine _sskdf_variant_hmac _ %+ BORINGSSL_PREFIX %+ _sskdf_variant_hmac +%xdefine _used_for_hmac _ %+ BORINGSSL_PREFIX %+ _used_for_hmac %xdefine _v2i_GENERAL_NAME _ %+ BORINGSSL_PREFIX %+ _v2i_GENERAL_NAME %xdefine _v2i_GENERAL_NAMES _ %+ BORINGSSL_PREFIX %+ _v2i_GENERAL_NAMES %xdefine _v2i_GENERAL_NAME_ex _ %+ BORINGSSL_PREFIX %+ _v2i_GENERAL_NAME_ex @@ -3415,7 +3785,7 @@ %xdefine _v3_nscert _ %+ BORINGSSL_PREFIX %+ _v3_nscert %xdefine _v3_ocsp_accresp _ %+ BORINGSSL_PREFIX %+ _v3_ocsp_accresp %xdefine _v3_ocsp_nocheck _ %+ BORINGSSL_PREFIX %+ _v3_ocsp_nocheck -%xdefine _v3_pci _ %+ BORINGSSL_PREFIX %+ _v3_pci +%xdefine _v3_ocsp_nonce _ %+ BORINGSSL_PREFIX %+ _v3_ocsp_nonce %xdefine _v3_policy_constraints _ %+ BORINGSSL_PREFIX %+ _v3_policy_constraints %xdefine _v3_policy_mappings _ %+ BORINGSSL_PREFIX %+ _v3_policy_mappings %xdefine _v3_sinfo _ %+ BORINGSSL_PREFIX %+ _v3_sinfo @@ -3428,6 +3798,15 @@ %xdefine _voprf_exp2_read _ %+ BORINGSSL_PREFIX %+ _voprf_exp2_read %xdefine _voprf_exp2_sign _ %+ BORINGSSL_PREFIX %+ _voprf_exp2_sign %xdefine _voprf_exp2_unblind _ %+ BORINGSSL_PREFIX %+ _voprf_exp2_unblind +%xdefine _voprf_pst1_blind _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_blind +%xdefine _voprf_pst1_client_key_from_bytes _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_client_key_from_bytes +%xdefine _voprf_pst1_derive_key_from_secret _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_derive_key_from_secret +%xdefine _voprf_pst1_generate_key _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_generate_key +%xdefine _voprf_pst1_issuer_key_from_bytes _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_issuer_key_from_bytes +%xdefine _voprf_pst1_read _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_read +%xdefine _voprf_pst1_sign _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_sign +%xdefine _voprf_pst1_sign_with_proof_scalar_for_testing _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_sign_with_proof_scalar_for_testing +%xdefine _voprf_pst1_unblind _ %+ BORINGSSL_PREFIX %+ _voprf_pst1_unblind %xdefine _vpaes_cbc_encrypt _ %+ BORINGSSL_PREFIX %+ _vpaes_cbc_encrypt %xdefine _vpaes_ctr32_encrypt_blocks _ %+ BORINGSSL_PREFIX %+ _vpaes_ctr32_encrypt_blocks %xdefine _vpaes_decrypt _ %+ BORINGSSL_PREFIX %+ _vpaes_decrypt @@ -3446,11 +3825,17 @@ %xdefine _x25519_ge_sub _ %+ BORINGSSL_PREFIX %+ _x25519_ge_sub %xdefine _x25519_ge_tobytes _ %+ BORINGSSL_PREFIX %+ _x25519_ge_tobytes %xdefine _x25519_pkey_meth _ %+ BORINGSSL_PREFIX %+ _x25519_pkey_meth +%xdefine _x25519_public_from_private_nohw _ %+ BORINGSSL_PREFIX %+ _x25519_public_from_private_nohw +%xdefine _x25519_public_from_private_s2n_bignum _ %+ BORINGSSL_PREFIX %+ _x25519_public_from_private_s2n_bignum %xdefine _x25519_sc_reduce _ %+ BORINGSSL_PREFIX %+ _x25519_sc_reduce +%xdefine _x25519_scalar_mult_generic_nohw _ %+ BORINGSSL_PREFIX %+ _x25519_scalar_mult_generic_nohw +%xdefine _x25519_scalar_mult_generic_s2n_bignum _ %+ BORINGSSL_PREFIX %+ _x25519_scalar_mult_generic_s2n_bignum %xdefine _x509V3_add_value_asn1_string _ %+ BORINGSSL_PREFIX %+ _x509V3_add_value_asn1_string %xdefine _x509_check_cert_time _ %+ BORINGSSL_PREFIX %+ _x509_check_cert_time +%xdefine _x509_check_issued_with_callback _ %+ BORINGSSL_PREFIX %+ _x509_check_issued_with_callback %xdefine _x509_digest_sign_algorithm _ %+ BORINGSSL_PREFIX %+ _x509_digest_sign_algorithm %xdefine _x509_digest_verify_init _ %+ BORINGSSL_PREFIX %+ _x509_digest_verify_init +%xdefine _x509_init_signature_info _ %+ BORINGSSL_PREFIX %+ _x509_init_signature_info %xdefine _x509_print_rsa_pss_params _ %+ BORINGSSL_PREFIX %+ _x509_print_rsa_pss_params %xdefine _x509_rsa_ctx_to_pss _ %+ BORINGSSL_PREFIX %+ _x509_rsa_ctx_to_pss %xdefine _x509_rsa_pss_to_ctx _ %+ BORINGSSL_PREFIX %+ _x509_rsa_pss_to_ctx @@ -3458,6 +3843,7 @@ %xdefine _x509v3_bytes_to_hex _ %+ BORINGSSL_PREFIX %+ _x509v3_bytes_to_hex %xdefine _x509v3_cache_extensions _ %+ BORINGSSL_PREFIX %+ _x509v3_cache_extensions %xdefine _x509v3_conf_name_matches _ %+ BORINGSSL_PREFIX %+ _x509v3_conf_name_matches +%xdefine _x509v3_ext_free_with_method _ %+ BORINGSSL_PREFIX %+ _x509v3_ext_free_with_method %xdefine _x509v3_hex_to_bytes _ %+ BORINGSSL_PREFIX %+ _x509v3_hex_to_bytes %xdefine _x509v3_looks_like_dns_name _ %+ BORINGSSL_PREFIX %+ _x509v3_looks_like_dns_name %xdefine _x86_64_assembly_implementation_FOR_TESTING _ %+ BORINGSSL_PREFIX %+ _x86_64_assembly_implementation_FOR_TESTING @@ -3593,9 +3979,11 @@ %xdefine ASN1_TIME_set BORINGSSL_PREFIX %+ _ASN1_TIME_set %xdefine ASN1_TIME_set_posix BORINGSSL_PREFIX %+ _ASN1_TIME_set_posix %xdefine ASN1_TIME_set_string BORINGSSL_PREFIX %+ _ASN1_TIME_set_string +%xdefine ASN1_TIME_set_string_X509 BORINGSSL_PREFIX %+ _ASN1_TIME_set_string_X509 %xdefine ASN1_TIME_to_generalizedtime BORINGSSL_PREFIX %+ _ASN1_TIME_to_generalizedtime %xdefine ASN1_TIME_to_posix BORINGSSL_PREFIX %+ _ASN1_TIME_to_posix %xdefine ASN1_TIME_to_time_t BORINGSSL_PREFIX %+ _ASN1_TIME_to_time_t +%xdefine ASN1_TIME_to_tm BORINGSSL_PREFIX %+ _ASN1_TIME_to_tm %xdefine ASN1_TYPE_cmp BORINGSSL_PREFIX %+ _ASN1_TYPE_cmp %xdefine ASN1_TYPE_free BORINGSSL_PREFIX %+ _ASN1_TYPE_free %xdefine ASN1_TYPE_get BORINGSSL_PREFIX %+ _ASN1_TYPE_get @@ -3621,8 +4009,10 @@ %xdefine ASN1_VISIBLESTRING_it BORINGSSL_PREFIX %+ _ASN1_VISIBLESTRING_it %xdefine ASN1_VISIBLESTRING_new BORINGSSL_PREFIX %+ _ASN1_VISIBLESTRING_new %xdefine ASN1_digest BORINGSSL_PREFIX %+ _ASN1_digest +%xdefine ASN1_dup BORINGSSL_PREFIX %+ _ASN1_dup %xdefine ASN1_generate_v3 BORINGSSL_PREFIX %+ _ASN1_generate_v3 %xdefine ASN1_get_object BORINGSSL_PREFIX %+ _ASN1_get_object +%xdefine ASN1_i2d_bio BORINGSSL_PREFIX %+ _ASN1_i2d_bio %xdefine ASN1_item_d2i BORINGSSL_PREFIX %+ _ASN1_item_d2i %xdefine ASN1_item_d2i_bio BORINGSSL_PREFIX %+ _ASN1_item_d2i_bio %xdefine ASN1_item_d2i_fp BORINGSSL_PREFIX %+ _ASN1_item_d2i_fp @@ -3718,6 +4108,7 @@ %xdefine BIO_meth_set_puts BORINGSSL_PREFIX %+ _BIO_meth_set_puts %xdefine BIO_meth_set_read BORINGSSL_PREFIX %+ _BIO_meth_set_read %xdefine BIO_meth_set_write BORINGSSL_PREFIX %+ _BIO_meth_set_write +%xdefine BIO_method_name BORINGSSL_PREFIX %+ _BIO_method_name %xdefine BIO_method_type BORINGSSL_PREFIX %+ _BIO_method_type %xdefine BIO_new BORINGSSL_PREFIX %+ _BIO_new %xdefine BIO_new_bio_pair BORINGSSL_PREFIX %+ _BIO_new_bio_pair @@ -3738,6 +4129,7 @@ %xdefine BIO_puts BORINGSSL_PREFIX %+ _BIO_puts %xdefine BIO_read BORINGSSL_PREFIX %+ _BIO_read %xdefine BIO_read_asn1 BORINGSSL_PREFIX %+ _BIO_read_asn1 +%xdefine BIO_read_ex BORINGSSL_PREFIX %+ _BIO_read_ex %xdefine BIO_read_filename BORINGSSL_PREFIX %+ _BIO_read_filename %xdefine BIO_reset BORINGSSL_PREFIX %+ _BIO_reset %xdefine BIO_rw_filename BORINGSSL_PREFIX %+ _BIO_rw_filename @@ -3745,6 +4137,7 @@ %xdefine BIO_s_fd BORINGSSL_PREFIX %+ _BIO_s_fd %xdefine BIO_s_file BORINGSSL_PREFIX %+ _BIO_s_file %xdefine BIO_s_mem BORINGSSL_PREFIX %+ _BIO_s_mem +%xdefine BIO_s_secmem BORINGSSL_PREFIX %+ _BIO_s_secmem %xdefine BIO_s_socket BORINGSSL_PREFIX %+ _BIO_s_socket %xdefine BIO_seek BORINGSSL_PREFIX %+ _BIO_seek %xdefine BIO_set_callback_arg BORINGSSL_PREFIX %+ _BIO_set_callback_arg @@ -3782,6 +4175,7 @@ %xdefine BIO_wpending BORINGSSL_PREFIX %+ _BIO_wpending %xdefine BIO_write BORINGSSL_PREFIX %+ _BIO_write %xdefine BIO_write_all BORINGSSL_PREFIX %+ _BIO_write_all +%xdefine BIO_write_ex BORINGSSL_PREFIX %+ _BIO_write_ex %xdefine BIO_write_filename BORINGSSL_PREFIX %+ _BIO_write_filename %xdefine BLAKE2B256 BORINGSSL_PREFIX %+ _BLAKE2B256 %xdefine BLAKE2B256_Final BORINGSSL_PREFIX %+ _BLAKE2B256_Final @@ -3796,12 +4190,14 @@ %xdefine BN_CTX_free BORINGSSL_PREFIX %+ _BN_CTX_free %xdefine BN_CTX_get BORINGSSL_PREFIX %+ _BN_CTX_get %xdefine BN_CTX_new BORINGSSL_PREFIX %+ _BN_CTX_new +%xdefine BN_CTX_secure_new BORINGSSL_PREFIX %+ _BN_CTX_secure_new %xdefine BN_CTX_start BORINGSSL_PREFIX %+ _BN_CTX_start %xdefine BN_GENCB_call BORINGSSL_PREFIX %+ _BN_GENCB_call %xdefine BN_GENCB_free BORINGSSL_PREFIX %+ _BN_GENCB_free %xdefine BN_GENCB_get_arg BORINGSSL_PREFIX %+ _BN_GENCB_get_arg %xdefine BN_GENCB_new BORINGSSL_PREFIX %+ _BN_GENCB_new %xdefine BN_GENCB_set BORINGSSL_PREFIX %+ _BN_GENCB_set +%xdefine BN_GENCB_set_old BORINGSSL_PREFIX %+ _BN_GENCB_set_old %xdefine BN_MONT_CTX_copy BORINGSSL_PREFIX %+ _BN_MONT_CTX_copy %xdefine BN_MONT_CTX_free BORINGSSL_PREFIX %+ _BN_MONT_CTX_free %xdefine BN_MONT_CTX_new BORINGSSL_PREFIX %+ _BN_MONT_CTX_new @@ -3840,6 +4236,7 @@ %xdefine BN_from_montgomery BORINGSSL_PREFIX %+ _BN_from_montgomery %xdefine BN_gcd BORINGSSL_PREFIX %+ _BN_gcd %xdefine BN_generate_prime_ex BORINGSSL_PREFIX %+ _BN_generate_prime_ex +%xdefine BN_get_flags BORINGSSL_PREFIX %+ _BN_get_flags %xdefine BN_get_rfc3526_prime_1536 BORINGSSL_PREFIX %+ _BN_get_rfc3526_prime_1536 %xdefine BN_get_rfc3526_prime_2048 BORINGSSL_PREFIX %+ _BN_get_rfc3526_prime_2048 %xdefine BN_get_rfc3526_prime_3072 BORINGSSL_PREFIX %+ _BN_get_rfc3526_prime_3072 @@ -3870,6 +4267,7 @@ %xdefine BN_mod_exp2_mont BORINGSSL_PREFIX %+ _BN_mod_exp2_mont %xdefine BN_mod_exp_mont BORINGSSL_PREFIX %+ _BN_mod_exp_mont %xdefine BN_mod_exp_mont_consttime BORINGSSL_PREFIX %+ _BN_mod_exp_mont_consttime +%xdefine BN_mod_exp_mont_consttime_x2 BORINGSSL_PREFIX %+ _BN_mod_exp_mont_consttime_x2 %xdefine BN_mod_exp_mont_word BORINGSSL_PREFIX %+ _BN_mod_exp_mont_word %xdefine BN_mod_inverse BORINGSSL_PREFIX %+ _BN_mod_inverse %xdefine BN_mod_inverse_blinded BORINGSSL_PREFIX %+ _BN_mod_inverse_blinded @@ -3925,7 +4323,6 @@ %xdefine BN_value_one BORINGSSL_PREFIX %+ _BN_value_one %xdefine BN_zero BORINGSSL_PREFIX %+ _BN_zero %xdefine BORINGSSL_FIPS_abort BORINGSSL_PREFIX %+ _BORINGSSL_FIPS_abort -%xdefine BORINGSSL_integrity_test BORINGSSL_PREFIX %+ _BORINGSSL_integrity_test %xdefine BORINGSSL_self_test BORINGSSL_PREFIX %+ _BORINGSSL_self_test %xdefine BUF_MEM_append BORINGSSL_PREFIX %+ _BUF_MEM_append %xdefine BUF_MEM_free BORINGSSL_PREFIX %+ _BUF_MEM_free @@ -4017,6 +4414,7 @@ %xdefine CBS_get_u32 BORINGSSL_PREFIX %+ _CBS_get_u32 %xdefine CBS_get_u32le BORINGSSL_PREFIX %+ _CBS_get_u32le %xdefine CBS_get_u64 BORINGSSL_PREFIX %+ _CBS_get_u64 +%xdefine CBS_get_u64_decimal BORINGSSL_PREFIX %+ _CBS_get_u64_decimal %xdefine CBS_get_u64le BORINGSSL_PREFIX %+ _CBS_get_u64le %xdefine CBS_get_u8 BORINGSSL_PREFIX %+ _CBS_get_u8 %xdefine CBS_get_u8_length_prefixed BORINGSSL_PREFIX %+ _CBS_get_u8_length_prefixed @@ -4025,6 +4423,7 @@ %xdefine CBS_is_unsigned_asn1_integer BORINGSSL_PREFIX %+ _CBS_is_unsigned_asn1_integer %xdefine CBS_is_valid_asn1_bitstring BORINGSSL_PREFIX %+ _CBS_is_valid_asn1_bitstring %xdefine CBS_is_valid_asn1_integer BORINGSSL_PREFIX %+ _CBS_is_valid_asn1_integer +%xdefine CBS_is_valid_asn1_oid BORINGSSL_PREFIX %+ _CBS_is_valid_asn1_oid %xdefine CBS_len BORINGSSL_PREFIX %+ _CBS_len %xdefine CBS_mem_equal BORINGSSL_PREFIX %+ _CBS_mem_equal %xdefine CBS_parse_generalized_time BORINGSSL_PREFIX %+ _CBS_parse_generalized_time @@ -4038,14 +4437,18 @@ %xdefine CERTIFICATEPOLICIES_new BORINGSSL_PREFIX %+ _CERTIFICATEPOLICIES_new %xdefine CMAC_CTX_copy BORINGSSL_PREFIX %+ _CMAC_CTX_copy %xdefine CMAC_CTX_free BORINGSSL_PREFIX %+ _CMAC_CTX_free +%xdefine CMAC_CTX_get0_cipher_ctx BORINGSSL_PREFIX %+ _CMAC_CTX_get0_cipher_ctx %xdefine CMAC_CTX_new BORINGSSL_PREFIX %+ _CMAC_CTX_new %xdefine CMAC_Final BORINGSSL_PREFIX %+ _CMAC_Final %xdefine CMAC_Init BORINGSSL_PREFIX %+ _CMAC_Init %xdefine CMAC_Reset BORINGSSL_PREFIX %+ _CMAC_Reset %xdefine CMAC_Update BORINGSSL_PREFIX %+ _CMAC_Update %xdefine CONF_VALUE_new BORINGSSL_PREFIX %+ _CONF_VALUE_new +%xdefine CONF_get1_default_config_file BORINGSSL_PREFIX %+ _CONF_get1_default_config_file +%xdefine CONF_modules_finish BORINGSSL_PREFIX %+ _CONF_modules_finish %xdefine CONF_modules_free BORINGSSL_PREFIX %+ _CONF_modules_free %xdefine CONF_modules_load_file BORINGSSL_PREFIX %+ _CONF_modules_load_file +%xdefine CONF_modules_unload BORINGSSL_PREFIX %+ _CONF_modules_unload %xdefine CONF_parse_list BORINGSSL_PREFIX %+ _CONF_parse_list %xdefine CRL_DIST_POINTS_free BORINGSSL_PREFIX %+ _CRL_DIST_POINTS_free %xdefine CRL_DIST_POINTS_it BORINGSSL_PREFIX %+ _CRL_DIST_POINTS_it @@ -4117,6 +4520,7 @@ %xdefine CRYPTO_has_asm BORINGSSL_PREFIX %+ _CRYPTO_has_asm %xdefine CRYPTO_hchacha20 BORINGSSL_PREFIX %+ _CRYPTO_hchacha20 %xdefine CRYPTO_init_sysrand BORINGSSL_PREFIX %+ _CRYPTO_init_sysrand +%xdefine CRYPTO_is_ARMv8_DIT_capable_for_testing BORINGSSL_PREFIX %+ _CRYPTO_is_ARMv8_DIT_capable_for_testing %xdefine CRYPTO_is_confidential_build BORINGSSL_PREFIX %+ _CRYPTO_is_confidential_build %xdefine CRYPTO_library_init BORINGSSL_PREFIX %+ _CRYPTO_library_init %xdefine CRYPTO_malloc BORINGSSL_PREFIX %+ _CRYPTO_malloc @@ -4158,19 +4562,32 @@ %xdefine CTR_DRBG_init BORINGSSL_PREFIX %+ _CTR_DRBG_init %xdefine CTR_DRBG_new BORINGSSL_PREFIX %+ _CTR_DRBG_new %xdefine CTR_DRBG_reseed BORINGSSL_PREFIX %+ _CTR_DRBG_reseed -%xdefine ChaCha20_ctr32 BORINGSSL_PREFIX %+ _ChaCha20_ctr32 +%xdefine ChaCha20_ctr32_avx2 BORINGSSL_PREFIX %+ _ChaCha20_ctr32_avx2 +%xdefine ChaCha20_ctr32_neon BORINGSSL_PREFIX %+ _ChaCha20_ctr32_neon +%xdefine ChaCha20_ctr32_nohw BORINGSSL_PREFIX %+ _ChaCha20_ctr32_nohw +%xdefine ChaCha20_ctr32_ssse3 BORINGSSL_PREFIX %+ _ChaCha20_ctr32_ssse3 +%xdefine ChaCha20_ctr32_ssse3_4x BORINGSSL_PREFIX %+ _ChaCha20_ctr32_ssse3_4x %xdefine DES_decrypt3 BORINGSSL_PREFIX %+ _DES_decrypt3 %xdefine DES_ecb3_encrypt BORINGSSL_PREFIX %+ _DES_ecb3_encrypt +%xdefine DES_ecb3_encrypt_ex BORINGSSL_PREFIX %+ _DES_ecb3_encrypt_ex %xdefine DES_ecb_encrypt BORINGSSL_PREFIX %+ _DES_ecb_encrypt +%xdefine DES_ecb_encrypt_ex BORINGSSL_PREFIX %+ _DES_ecb_encrypt_ex %xdefine DES_ede2_cbc_encrypt BORINGSSL_PREFIX %+ _DES_ede2_cbc_encrypt %xdefine DES_ede3_cbc_encrypt BORINGSSL_PREFIX %+ _DES_ede3_cbc_encrypt +%xdefine DES_ede3_cbc_encrypt_ex BORINGSSL_PREFIX %+ _DES_ede3_cbc_encrypt_ex %xdefine DES_encrypt3 BORINGSSL_PREFIX %+ _DES_encrypt3 +%xdefine DES_is_weak_key BORINGSSL_PREFIX %+ _DES_is_weak_key +%xdefine DES_key_sched BORINGSSL_PREFIX %+ _DES_key_sched %xdefine DES_ncbc_encrypt BORINGSSL_PREFIX %+ _DES_ncbc_encrypt +%xdefine DES_ncbc_encrypt_ex BORINGSSL_PREFIX %+ _DES_ncbc_encrypt_ex %xdefine DES_set_key BORINGSSL_PREFIX %+ _DES_set_key +%xdefine DES_set_key_ex BORINGSSL_PREFIX %+ _DES_set_key_ex +%xdefine DES_set_key_unchecked BORINGSSL_PREFIX %+ _DES_set_key_unchecked %xdefine DES_set_odd_parity BORINGSSL_PREFIX %+ _DES_set_odd_parity %xdefine DH_bits BORINGSSL_PREFIX %+ _DH_bits %xdefine DH_check BORINGSSL_PREFIX %+ _DH_check %xdefine DH_check_pub_key BORINGSSL_PREFIX %+ _DH_check_pub_key +%xdefine DH_clear_flags BORINGSSL_PREFIX %+ _DH_clear_flags %xdefine DH_compute_key BORINGSSL_PREFIX %+ _DH_compute_key %xdefine DH_compute_key_hashed BORINGSSL_PREFIX %+ _DH_compute_key_hashed %xdefine DH_compute_key_padded BORINGSSL_PREFIX %+ _DH_compute_key_padded @@ -4187,8 +4604,12 @@ %xdefine DH_get0_q BORINGSSL_PREFIX %+ _DH_get0_q %xdefine DH_get_2048_256 BORINGSSL_PREFIX %+ _DH_get_2048_256 %xdefine DH_get_rfc7919_2048 BORINGSSL_PREFIX %+ _DH_get_rfc7919_2048 +%xdefine DH_get_rfc7919_3072 BORINGSSL_PREFIX %+ _DH_get_rfc7919_3072 +%xdefine DH_get_rfc7919_4096 BORINGSSL_PREFIX %+ _DH_get_rfc7919_4096 +%xdefine DH_get_rfc7919_8192 BORINGSSL_PREFIX %+ _DH_get_rfc7919_8192 %xdefine DH_marshal_parameters BORINGSSL_PREFIX %+ _DH_marshal_parameters %xdefine DH_new BORINGSSL_PREFIX %+ _DH_new +%xdefine DH_new_by_nid BORINGSSL_PREFIX %+ _DH_new_by_nid %xdefine DH_num_bits BORINGSSL_PREFIX %+ _DH_num_bits %xdefine DH_parse_parameters BORINGSSL_PREFIX %+ _DH_parse_parameters %xdefine DH_set0_key BORINGSSL_PREFIX %+ _DH_set0_key @@ -4241,6 +4662,8 @@ %xdefine DSA_parse_parameters BORINGSSL_PREFIX %+ _DSA_parse_parameters %xdefine DSA_parse_private_key BORINGSSL_PREFIX %+ _DSA_parse_private_key %xdefine DSA_parse_public_key BORINGSSL_PREFIX %+ _DSA_parse_public_key +%xdefine DSA_print BORINGSSL_PREFIX %+ _DSA_print +%xdefine DSA_print_fp BORINGSSL_PREFIX %+ _DSA_print_fp %xdefine DSA_set0_key BORINGSSL_PREFIX %+ _DSA_set0_key %xdefine DSA_set0_pqg BORINGSSL_PREFIX %+ _DSA_set0_pqg %xdefine DSA_set_ex_data BORINGSSL_PREFIX %+ _DSA_set_ex_data @@ -4270,6 +4693,7 @@ %xdefine ECDSA_sign_with_nonce_and_leak_private_key_for_testing BORINGSSL_PREFIX %+ _ECDSA_sign_with_nonce_and_leak_private_key_for_testing %xdefine ECDSA_size BORINGSSL_PREFIX %+ _ECDSA_size %xdefine ECDSA_verify BORINGSSL_PREFIX %+ _ECDSA_verify +%xdefine ECPKParameters_print BORINGSSL_PREFIX %+ _ECPKParameters_print %xdefine EC_GFp_mont_method BORINGSSL_PREFIX %+ _EC_GFp_mont_method %xdefine EC_GFp_nistp224_method BORINGSSL_PREFIX %+ _EC_GFp_nistp224_method %xdefine EC_GFp_nistp256_method BORINGSSL_PREFIX %+ _EC_GFp_nistp256_method @@ -4281,12 +4705,14 @@ %xdefine EC_GROUP_free BORINGSSL_PREFIX %+ _EC_GROUP_free %xdefine EC_GROUP_get0_generator BORINGSSL_PREFIX %+ _EC_GROUP_get0_generator %xdefine EC_GROUP_get0_order BORINGSSL_PREFIX %+ _EC_GROUP_get0_order +%xdefine EC_GROUP_get0_seed BORINGSSL_PREFIX %+ _EC_GROUP_get0_seed %xdefine EC_GROUP_get_asn1_flag BORINGSSL_PREFIX %+ _EC_GROUP_get_asn1_flag %xdefine EC_GROUP_get_cofactor BORINGSSL_PREFIX %+ _EC_GROUP_get_cofactor %xdefine EC_GROUP_get_curve_GFp BORINGSSL_PREFIX %+ _EC_GROUP_get_curve_GFp %xdefine EC_GROUP_get_curve_name BORINGSSL_PREFIX %+ _EC_GROUP_get_curve_name %xdefine EC_GROUP_get_degree BORINGSSL_PREFIX %+ _EC_GROUP_get_degree %xdefine EC_GROUP_get_order BORINGSSL_PREFIX %+ _EC_GROUP_get_order +%xdefine EC_GROUP_get_seed_len BORINGSSL_PREFIX %+ _EC_GROUP_get_seed_len %xdefine EC_GROUP_method_of BORINGSSL_PREFIX %+ _EC_GROUP_method_of %xdefine EC_GROUP_new_by_curve_name BORINGSSL_PREFIX %+ _EC_GROUP_new_by_curve_name %xdefine EC_GROUP_new_curve_GFp BORINGSSL_PREFIX %+ _EC_GROUP_new_curve_GFp @@ -4294,6 +4720,13 @@ %xdefine EC_GROUP_set_asn1_flag BORINGSSL_PREFIX %+ _EC_GROUP_set_asn1_flag %xdefine EC_GROUP_set_generator BORINGSSL_PREFIX %+ _EC_GROUP_set_generator %xdefine EC_GROUP_set_point_conversion_form BORINGSSL_PREFIX %+ _EC_GROUP_set_point_conversion_form +%xdefine EC_GROUP_set_seed BORINGSSL_PREFIX %+ _EC_GROUP_set_seed +%xdefine EC_KEY_METHOD_free BORINGSSL_PREFIX %+ _EC_KEY_METHOD_free +%xdefine EC_KEY_METHOD_new BORINGSSL_PREFIX %+ _EC_KEY_METHOD_new +%xdefine EC_KEY_METHOD_set_flags BORINGSSL_PREFIX %+ _EC_KEY_METHOD_set_flags +%xdefine EC_KEY_METHOD_set_init_awslc BORINGSSL_PREFIX %+ _EC_KEY_METHOD_set_init_awslc +%xdefine EC_KEY_METHOD_set_sign_awslc BORINGSSL_PREFIX %+ _EC_KEY_METHOD_set_sign_awslc +%xdefine EC_KEY_OpenSSL BORINGSSL_PREFIX %+ _EC_KEY_OpenSSL %xdefine EC_KEY_check_fips BORINGSSL_PREFIX %+ _EC_KEY_check_fips %xdefine EC_KEY_check_key BORINGSSL_PREFIX %+ _EC_KEY_check_key %xdefine EC_KEY_derive_from_secret BORINGSSL_PREFIX %+ _EC_KEY_derive_from_secret @@ -4305,9 +4738,11 @@ %xdefine EC_KEY_get0_private_key BORINGSSL_PREFIX %+ _EC_KEY_get0_private_key %xdefine EC_KEY_get0_public_key BORINGSSL_PREFIX %+ _EC_KEY_get0_public_key %xdefine EC_KEY_get_conv_form BORINGSSL_PREFIX %+ _EC_KEY_get_conv_form +%xdefine EC_KEY_get_default_method BORINGSSL_PREFIX %+ _EC_KEY_get_default_method %xdefine EC_KEY_get_enc_flags BORINGSSL_PREFIX %+ _EC_KEY_get_enc_flags %xdefine EC_KEY_get_ex_data BORINGSSL_PREFIX %+ _EC_KEY_get_ex_data %xdefine EC_KEY_get_ex_new_index BORINGSSL_PREFIX %+ _EC_KEY_get_ex_new_index +%xdefine EC_KEY_get_method BORINGSSL_PREFIX %+ _EC_KEY_get_method %xdefine EC_KEY_is_opaque BORINGSSL_PREFIX %+ _EC_KEY_is_opaque %xdefine EC_KEY_key2buf BORINGSSL_PREFIX %+ _EC_KEY_key2buf %xdefine EC_KEY_keygen_verify_service_indicator BORINGSSL_PREFIX %+ _EC_KEY_keygen_verify_service_indicator @@ -4324,12 +4759,14 @@ %xdefine EC_KEY_set_enc_flags BORINGSSL_PREFIX %+ _EC_KEY_set_enc_flags %xdefine EC_KEY_set_ex_data BORINGSSL_PREFIX %+ _EC_KEY_set_ex_data %xdefine EC_KEY_set_group BORINGSSL_PREFIX %+ _EC_KEY_set_group +%xdefine EC_KEY_set_method BORINGSSL_PREFIX %+ _EC_KEY_set_method %xdefine EC_KEY_set_private_key BORINGSSL_PREFIX %+ _EC_KEY_set_private_key %xdefine EC_KEY_set_public_key BORINGSSL_PREFIX %+ _EC_KEY_set_public_key %xdefine EC_KEY_set_public_key_affine_coordinates BORINGSSL_PREFIX %+ _EC_KEY_set_public_key_affine_coordinates %xdefine EC_KEY_up_ref BORINGSSL_PREFIX %+ _EC_KEY_up_ref %xdefine EC_METHOD_get_field_type BORINGSSL_PREFIX %+ _EC_METHOD_get_field_type %xdefine EC_POINT_add BORINGSSL_PREFIX %+ _EC_POINT_add +%xdefine EC_POINT_bn2point BORINGSSL_PREFIX %+ _EC_POINT_bn2point %xdefine EC_POINT_clear_free BORINGSSL_PREFIX %+ _EC_POINT_clear_free %xdefine EC_POINT_cmp BORINGSSL_PREFIX %+ _EC_POINT_cmp %xdefine EC_POINT_copy BORINGSSL_PREFIX %+ _EC_POINT_copy @@ -4344,6 +4781,7 @@ %xdefine EC_POINT_mul BORINGSSL_PREFIX %+ _EC_POINT_mul %xdefine EC_POINT_new BORINGSSL_PREFIX %+ _EC_POINT_new %xdefine EC_POINT_oct2point BORINGSSL_PREFIX %+ _EC_POINT_oct2point +%xdefine EC_POINT_point2bn BORINGSSL_PREFIX %+ _EC_POINT_point2bn %xdefine EC_POINT_point2cbb BORINGSSL_PREFIX %+ _EC_POINT_point2cbb %xdefine EC_POINT_point2oct BORINGSSL_PREFIX %+ _EC_POINT_point2oct %xdefine EC_POINT_set_affine_coordinates BORINGSSL_PREFIX %+ _EC_POINT_set_affine_coordinates @@ -4353,21 +4791,32 @@ %xdefine EC_curve_nid2nist BORINGSSL_PREFIX %+ _EC_curve_nid2nist %xdefine EC_curve_nist2nid BORINGSSL_PREFIX %+ _EC_curve_nist2nid %xdefine EC_get_builtin_curves BORINGSSL_PREFIX %+ _EC_get_builtin_curves +%xdefine EC_group_p224 BORINGSSL_PREFIX %+ _EC_group_p224 +%xdefine EC_group_p256 BORINGSSL_PREFIX %+ _EC_group_p256 +%xdefine EC_group_p384 BORINGSSL_PREFIX %+ _EC_group_p384 +%xdefine EC_group_p521 BORINGSSL_PREFIX %+ _EC_group_p521 +%xdefine EC_group_secp256k1 BORINGSSL_PREFIX %+ _EC_group_secp256k1 +%xdefine EC_hash_to_curve_p256_xmd_sha256_sswu BORINGSSL_PREFIX %+ _EC_hash_to_curve_p256_xmd_sha256_sswu +%xdefine EC_hash_to_curve_p384_xmd_sha384_sswu BORINGSSL_PREFIX %+ _EC_hash_to_curve_p384_xmd_sha384_sswu +%xdefine ED25519_check_public_key BORINGSSL_PREFIX %+ _ED25519_check_public_key %xdefine ED25519_keypair BORINGSSL_PREFIX %+ _ED25519_keypair %xdefine ED25519_keypair_from_seed BORINGSSL_PREFIX %+ _ED25519_keypair_from_seed %xdefine ED25519_sign BORINGSSL_PREFIX %+ _ED25519_sign +%xdefine ED25519_sign_no_self_test BORINGSSL_PREFIX %+ _ED25519_sign_no_self_test %xdefine ED25519_verify BORINGSSL_PREFIX %+ _ED25519_verify +%xdefine ED25519_verify_no_self_test BORINGSSL_PREFIX %+ _ED25519_verify_no_self_test %xdefine EDIPARTYNAME_free BORINGSSL_PREFIX %+ _EDIPARTYNAME_free %xdefine EDIPARTYNAME_it BORINGSSL_PREFIX %+ _EDIPARTYNAME_it %xdefine EDIPARTYNAME_new BORINGSSL_PREFIX %+ _EDIPARTYNAME_new +%xdefine ENGINE_cleanup BORINGSSL_PREFIX %+ _ENGINE_cleanup %xdefine ENGINE_free BORINGSSL_PREFIX %+ _ENGINE_free -%xdefine ENGINE_get_ECDSA_method BORINGSSL_PREFIX %+ _ENGINE_get_ECDSA_method -%xdefine ENGINE_get_RSA_method BORINGSSL_PREFIX %+ _ENGINE_get_RSA_method +%xdefine ENGINE_get_EC BORINGSSL_PREFIX %+ _ENGINE_get_EC +%xdefine ENGINE_get_RSA BORINGSSL_PREFIX %+ _ENGINE_get_RSA %xdefine ENGINE_load_builtin_engines BORINGSSL_PREFIX %+ _ENGINE_load_builtin_engines %xdefine ENGINE_new BORINGSSL_PREFIX %+ _ENGINE_new %xdefine ENGINE_register_all_complete BORINGSSL_PREFIX %+ _ENGINE_register_all_complete -%xdefine ENGINE_set_ECDSA_method BORINGSSL_PREFIX %+ _ENGINE_set_ECDSA_method -%xdefine ENGINE_set_RSA_method BORINGSSL_PREFIX %+ _ENGINE_set_RSA_method +%xdefine ENGINE_set_EC BORINGSSL_PREFIX %+ _ENGINE_set_EC +%xdefine ENGINE_set_RSA BORINGSSL_PREFIX %+ _ENGINE_set_RSA %xdefine ERR_SAVE_STATE_free BORINGSSL_PREFIX %+ _ERR_SAVE_STATE_free %xdefine ERR_add_error_data BORINGSSL_PREFIX %+ _ERR_add_error_data %xdefine ERR_add_error_dataf BORINGSSL_PREFIX %+ _ERR_add_error_dataf @@ -4383,6 +4832,7 @@ %xdefine ERR_get_next_error_library BORINGSSL_PREFIX %+ _ERR_get_next_error_library %xdefine ERR_lib_error_string BORINGSSL_PREFIX %+ _ERR_lib_error_string %xdefine ERR_load_BIO_strings BORINGSSL_PREFIX %+ _ERR_load_BIO_strings +%xdefine ERR_load_CRYPTO_strings BORINGSSL_PREFIX %+ _ERR_load_CRYPTO_strings %xdefine ERR_load_ERR_strings BORINGSSL_PREFIX %+ _ERR_load_ERR_strings %xdefine ERR_load_RAND_strings BORINGSSL_PREFIX %+ _ERR_load_RAND_strings %xdefine ERR_load_crypto_strings BORINGSSL_PREFIX %+ _ERR_load_crypto_strings @@ -4452,6 +4902,7 @@ %xdefine EVP_CIPHER_iv_length BORINGSSL_PREFIX %+ _EVP_CIPHER_iv_length %xdefine EVP_CIPHER_key_length BORINGSSL_PREFIX %+ _EVP_CIPHER_key_length %xdefine EVP_CIPHER_mode BORINGSSL_PREFIX %+ _EVP_CIPHER_mode +%xdefine EVP_CIPHER_name BORINGSSL_PREFIX %+ _EVP_CIPHER_name %xdefine EVP_CIPHER_nid BORINGSSL_PREFIX %+ _EVP_CIPHER_nid %xdefine EVP_Cipher BORINGSSL_PREFIX %+ _EVP_Cipher %xdefine EVP_CipherFinal BORINGSSL_PREFIX %+ _EVP_CipherFinal @@ -4512,6 +4963,9 @@ %xdefine EVP_HPKE_CTX_new BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_new %xdefine EVP_HPKE_CTX_open BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_open %xdefine EVP_HPKE_CTX_seal BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_seal +%xdefine EVP_HPKE_CTX_setup_auth_recipient BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_auth_recipient +%xdefine EVP_HPKE_CTX_setup_auth_sender BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_auth_sender +%xdefine EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing %xdefine EVP_HPKE_CTX_setup_recipient BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_recipient %xdefine EVP_HPKE_CTX_setup_sender BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_sender %xdefine EVP_HPKE_CTX_setup_sender_with_seed_for_testing BORINGSSL_PREFIX %+ _EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -4528,6 +4982,7 @@ %xdefine EVP_HPKE_KEY_generate BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_generate %xdefine EVP_HPKE_KEY_init BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_init %xdefine EVP_HPKE_KEY_kem BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_kem +%xdefine EVP_HPKE_KEY_move BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_move %xdefine EVP_HPKE_KEY_new BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_new %xdefine EVP_HPKE_KEY_private_key BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_private_key %xdefine EVP_HPKE_KEY_public_key BORINGSSL_PREFIX %+ _EVP_HPKE_KEY_public_key @@ -4550,10 +5005,15 @@ %xdefine EVP_MD_CTX_size BORINGSSL_PREFIX %+ _EVP_MD_CTX_size %xdefine EVP_MD_CTX_type BORINGSSL_PREFIX %+ _EVP_MD_CTX_type %xdefine EVP_MD_block_size BORINGSSL_PREFIX %+ _EVP_MD_block_size +%xdefine EVP_MD_do_all BORINGSSL_PREFIX %+ _EVP_MD_do_all %xdefine EVP_MD_do_all_sorted BORINGSSL_PREFIX %+ _EVP_MD_do_all_sorted %xdefine EVP_MD_flags BORINGSSL_PREFIX %+ _EVP_MD_flags +%xdefine EVP_MD_get0_name BORINGSSL_PREFIX %+ _EVP_MD_get0_name +%xdefine EVP_MD_get_pkey_type BORINGSSL_PREFIX %+ _EVP_MD_get_pkey_type %xdefine EVP_MD_meth_get_flags BORINGSSL_PREFIX %+ _EVP_MD_meth_get_flags +%xdefine EVP_MD_name BORINGSSL_PREFIX %+ _EVP_MD_name %xdefine EVP_MD_nid BORINGSSL_PREFIX %+ _EVP_MD_nid +%xdefine EVP_MD_pkey_type BORINGSSL_PREFIX %+ _EVP_MD_pkey_type %xdefine EVP_MD_size BORINGSSL_PREFIX %+ _EVP_MD_size %xdefine EVP_MD_type BORINGSSL_PREFIX %+ _EVP_MD_type %xdefine EVP_MD_unstable_sha3_enable BORINGSSL_PREFIX %+ _EVP_MD_unstable_sha3_enable @@ -4563,10 +5023,13 @@ %xdefine EVP_PKEY2PKCS8 BORINGSSL_PREFIX %+ _EVP_PKEY2PKCS8 %xdefine EVP_PKEY_CTX_add1_hkdf_info BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_add1_hkdf_info %xdefine EVP_PKEY_CTX_ctrl BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_ctrl +%xdefine EVP_PKEY_CTX_ctrl_str BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_ctrl_str %xdefine EVP_PKEY_CTX_dup BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_dup %xdefine EVP_PKEY_CTX_free BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_free %xdefine EVP_PKEY_CTX_get0_pkey BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get0_pkey %xdefine EVP_PKEY_CTX_get0_rsa_oaep_label BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get0_rsa_oaep_label +%xdefine EVP_PKEY_CTX_get_app_data BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_app_data +%xdefine EVP_PKEY_CTX_get_keygen_info BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_keygen_info %xdefine EVP_PKEY_CTX_get_rsa_mgf1_md BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_rsa_mgf1_md %xdefine EVP_PKEY_CTX_get_rsa_oaep_md BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_rsa_oaep_md %xdefine EVP_PKEY_CTX_get_rsa_padding BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_rsa_padding @@ -4574,11 +5037,15 @@ %xdefine EVP_PKEY_CTX_get_signature_md BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_get_signature_md %xdefine EVP_PKEY_CTX_hkdf_mode BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_hkdf_mode %xdefine EVP_PKEY_CTX_kem_set_params BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_kem_set_params +%xdefine EVP_PKEY_CTX_md BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_md %xdefine EVP_PKEY_CTX_new BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_new %xdefine EVP_PKEY_CTX_new_id BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_new_id %xdefine EVP_PKEY_CTX_set0_rsa_oaep_label BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set0_rsa_oaep_label %xdefine EVP_PKEY_CTX_set1_hkdf_key BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set1_hkdf_key %xdefine EVP_PKEY_CTX_set1_hkdf_salt BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set1_hkdf_salt +%xdefine EVP_PKEY_CTX_set_app_data BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_app_data +%xdefine EVP_PKEY_CTX_set_cb BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_cb +%xdefine EVP_PKEY_CTX_set_dh_pad BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_dh_pad %xdefine EVP_PKEY_CTX_set_dsa_paramgen_bits BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_dsa_paramgen_bits %xdefine EVP_PKEY_CTX_set_dsa_paramgen_q_bits BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_dsa_paramgen_q_bits %xdefine EVP_PKEY_CTX_set_ec_param_enc BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_ec_param_enc @@ -4594,7 +5061,13 @@ %xdefine EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen %xdefine EVP_PKEY_CTX_set_rsa_pss_saltlen BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_rsa_pss_saltlen %xdefine EVP_PKEY_CTX_set_signature_md BORINGSSL_PREFIX %+ _EVP_PKEY_CTX_set_signature_md +%xdefine EVP_PKEY_asn1_find BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_find +%xdefine EVP_PKEY_asn1_find_str BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_find_str +%xdefine EVP_PKEY_asn1_get0 BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_get0 +%xdefine EVP_PKEY_asn1_get0_info BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_get0_info +%xdefine EVP_PKEY_asn1_get_count BORINGSSL_PREFIX %+ _EVP_PKEY_asn1_get_count %xdefine EVP_PKEY_assign BORINGSSL_PREFIX %+ _EVP_PKEY_assign +%xdefine EVP_PKEY_assign_DH BORINGSSL_PREFIX %+ _EVP_PKEY_assign_DH %xdefine EVP_PKEY_assign_DSA BORINGSSL_PREFIX %+ _EVP_PKEY_assign_DSA %xdefine EVP_PKEY_assign_EC_KEY BORINGSSL_PREFIX %+ _EVP_PKEY_assign_EC_KEY %xdefine EVP_PKEY_assign_RSA BORINGSSL_PREFIX %+ _EVP_PKEY_assign_RSA @@ -4604,13 +5077,17 @@ %xdefine EVP_PKEY_cmp_parameters BORINGSSL_PREFIX %+ _EVP_PKEY_cmp_parameters %xdefine EVP_PKEY_copy_parameters BORINGSSL_PREFIX %+ _EVP_PKEY_copy_parameters %xdefine EVP_PKEY_decapsulate BORINGSSL_PREFIX %+ _EVP_PKEY_decapsulate +%xdefine EVP_PKEY_decapsulate_verify_service_indicator BORINGSSL_PREFIX %+ _EVP_PKEY_decapsulate_verify_service_indicator %xdefine EVP_PKEY_decrypt BORINGSSL_PREFIX %+ _EVP_PKEY_decrypt %xdefine EVP_PKEY_decrypt_init BORINGSSL_PREFIX %+ _EVP_PKEY_decrypt_init %xdefine EVP_PKEY_derive BORINGSSL_PREFIX %+ _EVP_PKEY_derive %xdefine EVP_PKEY_derive_init BORINGSSL_PREFIX %+ _EVP_PKEY_derive_init %xdefine EVP_PKEY_derive_set_peer BORINGSSL_PREFIX %+ _EVP_PKEY_derive_set_peer %xdefine EVP_PKEY_ec_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_ec_pkey_meth +%xdefine EVP_PKEY_ed25519_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_ed25519_pkey_meth %xdefine EVP_PKEY_encapsulate BORINGSSL_PREFIX %+ _EVP_PKEY_encapsulate +%xdefine EVP_PKEY_encapsulate_deterministic BORINGSSL_PREFIX %+ _EVP_PKEY_encapsulate_deterministic +%xdefine EVP_PKEY_encapsulate_verify_service_indicator BORINGSSL_PREFIX %+ _EVP_PKEY_encapsulate_verify_service_indicator %xdefine EVP_PKEY_encrypt BORINGSSL_PREFIX %+ _EVP_PKEY_encrypt %xdefine EVP_PKEY_encrypt_init BORINGSSL_PREFIX %+ _EVP_PKEY_encrypt_init %xdefine EVP_PKEY_free BORINGSSL_PREFIX %+ _EVP_PKEY_free @@ -4627,16 +5104,21 @@ %xdefine EVP_PKEY_get_raw_private_key BORINGSSL_PREFIX %+ _EVP_PKEY_get_raw_private_key %xdefine EVP_PKEY_get_raw_public_key BORINGSSL_PREFIX %+ _EVP_PKEY_get_raw_public_key %xdefine EVP_PKEY_hkdf_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_hkdf_pkey_meth +%xdefine EVP_PKEY_hmac_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_hmac_pkey_meth %xdefine EVP_PKEY_id BORINGSSL_PREFIX %+ _EVP_PKEY_id %xdefine EVP_PKEY_is_opaque BORINGSSL_PREFIX %+ _EVP_PKEY_is_opaque +%xdefine EVP_PKEY_kem_check_key BORINGSSL_PREFIX %+ _EVP_PKEY_kem_check_key %xdefine EVP_PKEY_kem_new_raw_key BORINGSSL_PREFIX %+ _EVP_PKEY_kem_new_raw_key %xdefine EVP_PKEY_kem_new_raw_public_key BORINGSSL_PREFIX %+ _EVP_PKEY_kem_new_raw_public_key %xdefine EVP_PKEY_kem_new_raw_secret_key BORINGSSL_PREFIX %+ _EVP_PKEY_kem_new_raw_secret_key +%xdefine EVP_PKEY_kem_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_kem_pkey_meth %xdefine EVP_PKEY_keygen BORINGSSL_PREFIX %+ _EVP_PKEY_keygen +%xdefine EVP_PKEY_keygen_deterministic BORINGSSL_PREFIX %+ _EVP_PKEY_keygen_deterministic %xdefine EVP_PKEY_keygen_init BORINGSSL_PREFIX %+ _EVP_PKEY_keygen_init %xdefine EVP_PKEY_keygen_verify_service_indicator BORINGSSL_PREFIX %+ _EVP_PKEY_keygen_verify_service_indicator %xdefine EVP_PKEY_missing_parameters BORINGSSL_PREFIX %+ _EVP_PKEY_missing_parameters %xdefine EVP_PKEY_new BORINGSSL_PREFIX %+ _EVP_PKEY_new +%xdefine EVP_PKEY_new_mac_key BORINGSSL_PREFIX %+ _EVP_PKEY_new_mac_key %xdefine EVP_PKEY_new_raw_private_key BORINGSSL_PREFIX %+ _EVP_PKEY_new_raw_private_key %xdefine EVP_PKEY_new_raw_public_key BORINGSSL_PREFIX %+ _EVP_PKEY_new_raw_public_key %xdefine EVP_PKEY_paramgen BORINGSSL_PREFIX %+ _EVP_PKEY_paramgen @@ -4646,6 +5128,7 @@ %xdefine EVP_PKEY_print_public BORINGSSL_PREFIX %+ _EVP_PKEY_print_public %xdefine EVP_PKEY_rsa_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_rsa_pkey_meth %xdefine EVP_PKEY_rsa_pss_pkey_meth BORINGSSL_PREFIX %+ _EVP_PKEY_rsa_pss_pkey_meth +%xdefine EVP_PKEY_set1_DH BORINGSSL_PREFIX %+ _EVP_PKEY_set1_DH %xdefine EVP_PKEY_set1_DSA BORINGSSL_PREFIX %+ _EVP_PKEY_set1_DSA %xdefine EVP_PKEY_set1_EC_KEY BORINGSSL_PREFIX %+ _EVP_PKEY_set1_EC_KEY %xdefine EVP_PKEY_set1_RSA BORINGSSL_PREFIX %+ _EVP_PKEY_set1_RSA @@ -4687,6 +5170,7 @@ %xdefine EVP_aead_aes_192_gcm BORINGSSL_PREFIX %+ _EVP_aead_aes_192_gcm %xdefine EVP_aead_aes_256_cbc_sha1_tls BORINGSSL_PREFIX %+ _EVP_aead_aes_256_cbc_sha1_tls %xdefine EVP_aead_aes_256_cbc_sha1_tls_implicit_iv BORINGSSL_PREFIX %+ _EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +%xdefine EVP_aead_aes_256_cbc_sha384_tls BORINGSSL_PREFIX %+ _EVP_aead_aes_256_cbc_sha384_tls %xdefine EVP_aead_aes_256_ctr_hmac_sha256 BORINGSSL_PREFIX %+ _EVP_aead_aes_256_ctr_hmac_sha256 %xdefine EVP_aead_aes_256_gcm BORINGSSL_PREFIX %+ _EVP_aead_aes_256_gcm %xdefine EVP_aead_aes_256_gcm_randnonce BORINGSSL_PREFIX %+ _EVP_aead_aes_256_gcm_randnonce @@ -4701,6 +5185,7 @@ %xdefine EVP_aes_128_cbc BORINGSSL_PREFIX %+ _EVP_aes_128_cbc %xdefine EVP_aes_128_cbc_hmac_sha1 BORINGSSL_PREFIX %+ _EVP_aes_128_cbc_hmac_sha1 %xdefine EVP_aes_128_cbc_hmac_sha256 BORINGSSL_PREFIX %+ _EVP_aes_128_cbc_hmac_sha256 +%xdefine EVP_aes_128_ccm BORINGSSL_PREFIX %+ _EVP_aes_128_ccm %xdefine EVP_aes_128_cfb BORINGSSL_PREFIX %+ _EVP_aes_128_cfb %xdefine EVP_aes_128_cfb1 BORINGSSL_PREFIX %+ _EVP_aes_128_cfb1 %xdefine EVP_aes_128_cfb128 BORINGSSL_PREFIX %+ _EVP_aes_128_cfb128 @@ -4710,6 +5195,7 @@ %xdefine EVP_aes_128_gcm BORINGSSL_PREFIX %+ _EVP_aes_128_gcm %xdefine EVP_aes_128_ofb BORINGSSL_PREFIX %+ _EVP_aes_128_ofb %xdefine EVP_aes_192_cbc BORINGSSL_PREFIX %+ _EVP_aes_192_cbc +%xdefine EVP_aes_192_ccm BORINGSSL_PREFIX %+ _EVP_aes_192_ccm %xdefine EVP_aes_192_cfb BORINGSSL_PREFIX %+ _EVP_aes_192_cfb %xdefine EVP_aes_192_cfb1 BORINGSSL_PREFIX %+ _EVP_aes_192_cfb1 %xdefine EVP_aes_192_cfb128 BORINGSSL_PREFIX %+ _EVP_aes_192_cfb128 @@ -4721,6 +5207,7 @@ %xdefine EVP_aes_256_cbc BORINGSSL_PREFIX %+ _EVP_aes_256_cbc %xdefine EVP_aes_256_cbc_hmac_sha1 BORINGSSL_PREFIX %+ _EVP_aes_256_cbc_hmac_sha1 %xdefine EVP_aes_256_cbc_hmac_sha256 BORINGSSL_PREFIX %+ _EVP_aes_256_cbc_hmac_sha256 +%xdefine EVP_aes_256_ccm BORINGSSL_PREFIX %+ _EVP_aes_256_ccm %xdefine EVP_aes_256_cfb BORINGSSL_PREFIX %+ _EVP_aes_256_cfb %xdefine EVP_aes_256_cfb1 BORINGSSL_PREFIX %+ _EVP_aes_256_cfb1 %xdefine EVP_aes_256_cfb128 BORINGSSL_PREFIX %+ _EVP_aes_256_cfb128 @@ -4729,6 +5216,7 @@ %xdefine EVP_aes_256_ecb BORINGSSL_PREFIX %+ _EVP_aes_256_ecb %xdefine EVP_aes_256_gcm BORINGSSL_PREFIX %+ _EVP_aes_256_gcm %xdefine EVP_aes_256_ofb BORINGSSL_PREFIX %+ _EVP_aes_256_ofb +%xdefine EVP_aes_256_wrap BORINGSSL_PREFIX %+ _EVP_aes_256_wrap %xdefine EVP_aes_256_xts BORINGSSL_PREFIX %+ _EVP_aes_256_xts %xdefine EVP_bf_cbc BORINGSSL_PREFIX %+ _EVP_bf_cbc %xdefine EVP_bf_cfb BORINGSSL_PREFIX %+ _EVP_bf_cfb @@ -4736,6 +5224,7 @@ %xdefine EVP_blake2b256 BORINGSSL_PREFIX %+ _EVP_blake2b256 %xdefine EVP_cast5_cbc BORINGSSL_PREFIX %+ _EVP_cast5_cbc %xdefine EVP_cast5_ecb BORINGSSL_PREFIX %+ _EVP_cast5_ecb +%xdefine EVP_chacha20_poly1305 BORINGSSL_PREFIX %+ _EVP_chacha20_poly1305 %xdefine EVP_cleanup BORINGSSL_PREFIX %+ _EVP_cleanup %xdefine EVP_des_cbc BORINGSSL_PREFIX %+ _EVP_des_cbc %xdefine EVP_des_ecb BORINGSSL_PREFIX %+ _EVP_des_ecb @@ -4747,6 +5236,7 @@ %xdefine EVP_enc_null BORINGSSL_PREFIX %+ _EVP_enc_null %xdefine EVP_final_with_secret_suffix_sha1 BORINGSSL_PREFIX %+ _EVP_final_with_secret_suffix_sha1 %xdefine EVP_final_with_secret_suffix_sha256 BORINGSSL_PREFIX %+ _EVP_final_with_secret_suffix_sha256 +%xdefine EVP_final_with_secret_suffix_sha384 BORINGSSL_PREFIX %+ _EVP_final_with_secret_suffix_sha384 %xdefine EVP_get_cipherbyname BORINGSSL_PREFIX %+ _EVP_get_cipherbyname %xdefine EVP_get_cipherbynid BORINGSSL_PREFIX %+ _EVP_get_cipherbynid %xdefine EVP_get_digestbyname BORINGSSL_PREFIX %+ _EVP_get_digestbyname @@ -4782,10 +5272,12 @@ %xdefine EVP_sha3_384 BORINGSSL_PREFIX %+ _EVP_sha3_384 %xdefine EVP_sha3_512 BORINGSSL_PREFIX %+ _EVP_sha3_512 %xdefine EVP_sha512 BORINGSSL_PREFIX %+ _EVP_sha512 +%xdefine EVP_sha512_224 BORINGSSL_PREFIX %+ _EVP_sha512_224 %xdefine EVP_sha512_256 BORINGSSL_PREFIX %+ _EVP_sha512_256 +%xdefine EVP_shake128 BORINGSSL_PREFIX %+ _EVP_shake128 +%xdefine EVP_shake256 BORINGSSL_PREFIX %+ _EVP_shake256 %xdefine EVP_tls_cbc_copy_mac BORINGSSL_PREFIX %+ _EVP_tls_cbc_copy_mac %xdefine EVP_tls_cbc_digest_record BORINGSSL_PREFIX %+ _EVP_tls_cbc_digest_record -%xdefine EVP_tls_cbc_digest_record_sha256 BORINGSSL_PREFIX %+ _EVP_tls_cbc_digest_record_sha256 %xdefine EVP_tls_cbc_record_digest_supported BORINGSSL_PREFIX %+ _EVP_tls_cbc_record_digest_supported %xdefine EVP_tls_cbc_remove_padding BORINGSSL_PREFIX %+ _EVP_tls_cbc_remove_padding %xdefine EXTENDED_KEY_USAGE_free BORINGSSL_PREFIX %+ _EXTENDED_KEY_USAGE_free @@ -4833,9 +5325,14 @@ %xdefine HMAC_Final BORINGSSL_PREFIX %+ _HMAC_Final %xdefine HMAC_Init BORINGSSL_PREFIX %+ _HMAC_Init %xdefine HMAC_Init_ex BORINGSSL_PREFIX %+ _HMAC_Init_ex +%xdefine HMAC_Init_from_precomputed_key BORINGSSL_PREFIX %+ _HMAC_Init_from_precomputed_key +%xdefine HMAC_KEY_new BORINGSSL_PREFIX %+ _HMAC_KEY_new %xdefine HMAC_Update BORINGSSL_PREFIX %+ _HMAC_Update +%xdefine HMAC_get_precomputed_key BORINGSSL_PREFIX %+ _HMAC_get_precomputed_key +%xdefine HMAC_set_precomputed_key_export BORINGSSL_PREFIX %+ _HMAC_set_precomputed_key_export %xdefine HMAC_size BORINGSSL_PREFIX %+ _HMAC_size %xdefine HMAC_verify_service_indicator BORINGSSL_PREFIX %+ _HMAC_verify_service_indicator +%xdefine HMAC_with_precompute BORINGSSL_PREFIX %+ _HMAC_with_precompute %xdefine HRSS_decap BORINGSSL_PREFIX %+ _HRSS_decap %xdefine HRSS_encap BORINGSSL_PREFIX %+ _HRSS_encap %xdefine HRSS_generate_key BORINGSSL_PREFIX %+ _HRSS_generate_key @@ -4846,6 +5343,8 @@ %xdefine ISSUING_DIST_POINT_free BORINGSSL_PREFIX %+ _ISSUING_DIST_POINT_free %xdefine ISSUING_DIST_POINT_it BORINGSSL_PREFIX %+ _ISSUING_DIST_POINT_it %xdefine ISSUING_DIST_POINT_new BORINGSSL_PREFIX %+ _ISSUING_DIST_POINT_new +%xdefine KBKDF_ctr_hmac BORINGSSL_PREFIX %+ _KBKDF_ctr_hmac +%xdefine KBKDF_ctr_hmac_verify_service_indicator BORINGSSL_PREFIX %+ _KBKDF_ctr_hmac_verify_service_indicator %xdefine KEM_KEY_free BORINGSSL_PREFIX %+ _KEM_KEY_free %xdefine KEM_KEY_get0_kem BORINGSSL_PREFIX %+ _KEM_KEY_get0_kem %xdefine KEM_KEY_init BORINGSSL_PREFIX %+ _KEM_KEY_init @@ -4862,10 +5361,10 @@ %xdefine MD5 BORINGSSL_PREFIX %+ _MD5 %xdefine MD5_Final BORINGSSL_PREFIX %+ _MD5_Final %xdefine MD5_Init BORINGSSL_PREFIX %+ _MD5_Init +%xdefine MD5_Init_from_state BORINGSSL_PREFIX %+ _MD5_Init_from_state %xdefine MD5_Transform BORINGSSL_PREFIX %+ _MD5_Transform %xdefine MD5_Update BORINGSSL_PREFIX %+ _MD5_Update -%xdefine METHOD_ref BORINGSSL_PREFIX %+ _METHOD_ref -%xdefine METHOD_unref BORINGSSL_PREFIX %+ _METHOD_unref +%xdefine MD5_get_state BORINGSSL_PREFIX %+ _MD5_get_state %xdefine MGF1 BORINGSSL_PREFIX %+ _MGF1 %xdefine NAME_CONSTRAINTS_check BORINGSSL_PREFIX %+ _NAME_CONSTRAINTS_check %xdefine NAME_CONSTRAINTS_free BORINGSSL_PREFIX %+ _NAME_CONSTRAINTS_free @@ -4886,12 +5385,14 @@ %xdefine NETSCAPE_SPKI_get_pubkey BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_get_pubkey %xdefine NETSCAPE_SPKI_it BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_it %xdefine NETSCAPE_SPKI_new BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_new +%xdefine NETSCAPE_SPKI_print BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_print %xdefine NETSCAPE_SPKI_set_pubkey BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_set_pubkey %xdefine NETSCAPE_SPKI_sign BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_sign %xdefine NETSCAPE_SPKI_verify BORINGSSL_PREFIX %+ _NETSCAPE_SPKI_verify %xdefine NOTICEREF_free BORINGSSL_PREFIX %+ _NOTICEREF_free %xdefine NOTICEREF_it BORINGSSL_PREFIX %+ _NOTICEREF_it %xdefine NOTICEREF_new BORINGSSL_PREFIX %+ _NOTICEREF_new +%xdefine OBJ_NAME_do_all_sorted BORINGSSL_PREFIX %+ _OBJ_NAME_do_all_sorted %xdefine OBJ_cbs2nid BORINGSSL_PREFIX %+ _OBJ_cbs2nid %xdefine OBJ_cleanup BORINGSSL_PREFIX %+ _OBJ_cleanup %xdefine OBJ_cmp BORINGSSL_PREFIX %+ _OBJ_cmp @@ -4900,6 +5401,7 @@ %xdefine OBJ_find_sigid_algs BORINGSSL_PREFIX %+ _OBJ_find_sigid_algs %xdefine OBJ_find_sigid_by_algs BORINGSSL_PREFIX %+ _OBJ_find_sigid_by_algs %xdefine OBJ_get0_data BORINGSSL_PREFIX %+ _OBJ_get0_data +%xdefine OBJ_get_undef BORINGSSL_PREFIX %+ _OBJ_get_undef %xdefine OBJ_length BORINGSSL_PREFIX %+ _OBJ_length %xdefine OBJ_ln2nid BORINGSSL_PREFIX %+ _OBJ_ln2nid %xdefine OBJ_nid2cbb BORINGSSL_PREFIX %+ _OBJ_nid2cbb @@ -4911,48 +5413,106 @@ %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 %xdefine OCSP_BASICRESP_it BORINGSSL_PREFIX %+ _OCSP_BASICRESP_it %xdefine OCSP_BASICRESP_new BORINGSSL_PREFIX %+ _OCSP_BASICRESP_new +%xdefine OCSP_CERTID_dup BORINGSSL_PREFIX %+ _OCSP_CERTID_dup %xdefine OCSP_CERTID_free BORINGSSL_PREFIX %+ _OCSP_CERTID_free %xdefine OCSP_CERTID_it BORINGSSL_PREFIX %+ _OCSP_CERTID_it %xdefine OCSP_CERTID_new BORINGSSL_PREFIX %+ _OCSP_CERTID_new -%xdefine OCSP_CERTSTATUS_free BORINGSSL_PREFIX %+ _OCSP_CERTSTATUS_free %xdefine OCSP_CERTSTATUS_it BORINGSSL_PREFIX %+ _OCSP_CERTSTATUS_it -%xdefine OCSP_CERTSTATUS_new BORINGSSL_PREFIX %+ _OCSP_CERTSTATUS_new +%xdefine OCSP_ONEREQ_free BORINGSSL_PREFIX %+ _OCSP_ONEREQ_free +%xdefine OCSP_ONEREQ_it BORINGSSL_PREFIX %+ _OCSP_ONEREQ_it +%xdefine OCSP_ONEREQ_new BORINGSSL_PREFIX %+ _OCSP_ONEREQ_new +%xdefine OCSP_REQINFO_free BORINGSSL_PREFIX %+ _OCSP_REQINFO_free +%xdefine OCSP_REQINFO_it BORINGSSL_PREFIX %+ _OCSP_REQINFO_it +%xdefine OCSP_REQINFO_new BORINGSSL_PREFIX %+ _OCSP_REQINFO_new +%xdefine OCSP_REQUEST_free BORINGSSL_PREFIX %+ _OCSP_REQUEST_free +%xdefine OCSP_REQUEST_get_ext BORINGSSL_PREFIX %+ _OCSP_REQUEST_get_ext +%xdefine OCSP_REQUEST_get_ext_by_NID BORINGSSL_PREFIX %+ _OCSP_REQUEST_get_ext_by_NID +%xdefine OCSP_REQUEST_it BORINGSSL_PREFIX %+ _OCSP_REQUEST_it +%xdefine OCSP_REQUEST_new BORINGSSL_PREFIX %+ _OCSP_REQUEST_new +%xdefine OCSP_REQUEST_print BORINGSSL_PREFIX %+ _OCSP_REQUEST_print +%xdefine OCSP_REQ_CTX_add1_header BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_add1_header +%xdefine OCSP_REQ_CTX_free BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_free +%xdefine OCSP_REQ_CTX_get0_mem_bio BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_get0_mem_bio +%xdefine OCSP_REQ_CTX_http BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_http +%xdefine OCSP_REQ_CTX_i2d BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_i2d +%xdefine OCSP_REQ_CTX_nbio BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_nbio +%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 -%xdefine OCSP_RESPID_free BORINGSSL_PREFIX %+ _OCSP_RESPID_free %xdefine OCSP_RESPID_it BORINGSSL_PREFIX %+ _OCSP_RESPID_it -%xdefine OCSP_RESPID_new BORINGSSL_PREFIX %+ _OCSP_RESPID_new %xdefine OCSP_RESPONSE_free BORINGSSL_PREFIX %+ _OCSP_RESPONSE_free %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 +%xdefine OCSP_SINGLERESP_add_ext BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_add_ext %xdefine OCSP_SINGLERESP_free BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_free +%xdefine OCSP_SINGLERESP_get0_id BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_get0_id +%xdefine OCSP_SINGLERESP_get_ext BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_get_ext +%xdefine OCSP_SINGLERESP_get_ext_count BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_get_ext_count %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 %xdefine OCSP_id_issuer_cmp BORINGSSL_PREFIX %+ _OCSP_id_issuer_cmp +%xdefine OCSP_onereq_get0_id BORINGSSL_PREFIX %+ _OCSP_onereq_get0_id +%xdefine OCSP_parse_url BORINGSSL_PREFIX %+ _OCSP_parse_url +%xdefine OCSP_request_add0_id BORINGSSL_PREFIX %+ _OCSP_request_add0_id +%xdefine OCSP_request_add1_cert BORINGSSL_PREFIX %+ _OCSP_request_add1_cert +%xdefine OCSP_request_add1_nonce BORINGSSL_PREFIX %+ _OCSP_request_add1_nonce +%xdefine OCSP_request_is_signed BORINGSSL_PREFIX %+ _OCSP_request_is_signed +%xdefine OCSP_request_onereq_count BORINGSSL_PREFIX %+ _OCSP_request_onereq_count +%xdefine OCSP_request_onereq_get0 BORINGSSL_PREFIX %+ _OCSP_request_onereq_get0 +%xdefine OCSP_request_set1_name BORINGSSL_PREFIX %+ _OCSP_request_set1_name +%xdefine OCSP_request_sign BORINGSSL_PREFIX %+ _OCSP_request_sign +%xdefine OCSP_request_verify BORINGSSL_PREFIX %+ _OCSP_request_verify +%xdefine OCSP_resp_count BORINGSSL_PREFIX %+ _OCSP_resp_count %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 +%xdefine OCSP_sendreq_bio BORINGSSL_PREFIX %+ _OCSP_sendreq_bio +%xdefine OCSP_sendreq_nbio BORINGSSL_PREFIX %+ _OCSP_sendreq_nbio +%xdefine OCSP_sendreq_new BORINGSSL_PREFIX %+ _OCSP_sendreq_new +%xdefine OCSP_set_max_response_length BORINGSSL_PREFIX %+ _OCSP_set_max_response_length %xdefine OCSP_single_get0_status BORINGSSL_PREFIX %+ _OCSP_single_get0_status %xdefine OPENSSL_add_all_algorithms_conf BORINGSSL_PREFIX %+ _OPENSSL_add_all_algorithms_conf %xdefine OPENSSL_armcap_P BORINGSSL_PREFIX %+ _OPENSSL_armcap_P %xdefine OPENSSL_asprintf BORINGSSL_PREFIX %+ _OPENSSL_asprintf -%xdefine OPENSSL_built_in_curves BORINGSSL_PREFIX %+ _OPENSSL_built_in_curves +%xdefine OPENSSL_calloc BORINGSSL_PREFIX %+ _OPENSSL_calloc %xdefine OPENSSL_cleanse BORINGSSL_PREFIX %+ _OPENSSL_cleanse %xdefine OPENSSL_cleanup BORINGSSL_PREFIX %+ _OPENSSL_cleanup %xdefine OPENSSL_clear_free BORINGSSL_PREFIX %+ _OPENSSL_clear_free @@ -4960,13 +5520,21 @@ %xdefine OPENSSL_cpucap_initialized BORINGSSL_PREFIX %+ _OPENSSL_cpucap_initialized %xdefine OPENSSL_cpuid_setup BORINGSSL_PREFIX %+ _OPENSSL_cpuid_setup %xdefine OPENSSL_free BORINGSSL_PREFIX %+ _OPENSSL_free +%xdefine OPENSSL_fromxdigit BORINGSSL_PREFIX %+ _OPENSSL_fromxdigit %xdefine OPENSSL_gmtime BORINGSSL_PREFIX %+ _OPENSSL_gmtime %xdefine OPENSSL_gmtime_adj BORINGSSL_PREFIX %+ _OPENSSL_gmtime_adj %xdefine OPENSSL_gmtime_diff BORINGSSL_PREFIX %+ _OPENSSL_gmtime_diff %xdefine OPENSSL_hash32 BORINGSSL_PREFIX %+ _OPENSSL_hash32 +%xdefine OPENSSL_hexstr2buf BORINGSSL_PREFIX %+ _OPENSSL_hexstr2buf %xdefine OPENSSL_ia32cap_P BORINGSSL_PREFIX %+ _OPENSSL_ia32cap_P %xdefine OPENSSL_ia32cap_get BORINGSSL_PREFIX %+ _OPENSSL_ia32cap_get +%xdefine OPENSSL_init BORINGSSL_PREFIX %+ _OPENSSL_init %xdefine OPENSSL_init_crypto BORINGSSL_PREFIX %+ _OPENSSL_init_crypto +%xdefine OPENSSL_isalnum BORINGSSL_PREFIX %+ _OPENSSL_isalnum +%xdefine OPENSSL_isalpha BORINGSSL_PREFIX %+ _OPENSSL_isalpha +%xdefine OPENSSL_isdigit BORINGSSL_PREFIX %+ _OPENSSL_isdigit +%xdefine OPENSSL_isspace BORINGSSL_PREFIX %+ _OPENSSL_isspace +%xdefine OPENSSL_isxdigit BORINGSSL_PREFIX %+ _OPENSSL_isxdigit %xdefine OPENSSL_lh_delete BORINGSSL_PREFIX %+ _OPENSSL_lh_delete %xdefine OPENSSL_lh_doall_arg BORINGSSL_PREFIX %+ _OPENSSL_lh_doall_arg %xdefine OPENSSL_lh_free BORINGSSL_PREFIX %+ _OPENSSL_lh_free @@ -4984,6 +5552,29 @@ %xdefine OPENSSL_realloc BORINGSSL_PREFIX %+ _OPENSSL_realloc %xdefine OPENSSL_secure_clear_free BORINGSSL_PREFIX %+ _OPENSSL_secure_clear_free %xdefine OPENSSL_secure_malloc BORINGSSL_PREFIX %+ _OPENSSL_secure_malloc +%xdefine OPENSSL_secure_zalloc BORINGSSL_PREFIX %+ _OPENSSL_secure_zalloc +%xdefine OPENSSL_sk_deep_copy BORINGSSL_PREFIX %+ _OPENSSL_sk_deep_copy +%xdefine OPENSSL_sk_delete BORINGSSL_PREFIX %+ _OPENSSL_sk_delete +%xdefine OPENSSL_sk_delete_if BORINGSSL_PREFIX %+ _OPENSSL_sk_delete_if +%xdefine OPENSSL_sk_delete_ptr BORINGSSL_PREFIX %+ _OPENSSL_sk_delete_ptr +%xdefine OPENSSL_sk_dup BORINGSSL_PREFIX %+ _OPENSSL_sk_dup +%xdefine OPENSSL_sk_find BORINGSSL_PREFIX %+ _OPENSSL_sk_find +%xdefine OPENSSL_sk_free BORINGSSL_PREFIX %+ _OPENSSL_sk_free +%xdefine OPENSSL_sk_insert BORINGSSL_PREFIX %+ _OPENSSL_sk_insert +%xdefine OPENSSL_sk_is_sorted BORINGSSL_PREFIX %+ _OPENSSL_sk_is_sorted +%xdefine OPENSSL_sk_new BORINGSSL_PREFIX %+ _OPENSSL_sk_new +%xdefine OPENSSL_sk_new_null BORINGSSL_PREFIX %+ _OPENSSL_sk_new_null +%xdefine OPENSSL_sk_num BORINGSSL_PREFIX %+ _OPENSSL_sk_num +%xdefine OPENSSL_sk_pop BORINGSSL_PREFIX %+ _OPENSSL_sk_pop +%xdefine OPENSSL_sk_pop_free_ex BORINGSSL_PREFIX %+ _OPENSSL_sk_pop_free_ex +%xdefine OPENSSL_sk_push BORINGSSL_PREFIX %+ _OPENSSL_sk_push +%xdefine OPENSSL_sk_set BORINGSSL_PREFIX %+ _OPENSSL_sk_set +%xdefine OPENSSL_sk_set_cmp_func BORINGSSL_PREFIX %+ _OPENSSL_sk_set_cmp_func +%xdefine OPENSSL_sk_shift BORINGSSL_PREFIX %+ _OPENSSL_sk_shift +%xdefine OPENSSL_sk_sort BORINGSSL_PREFIX %+ _OPENSSL_sk_sort +%xdefine OPENSSL_sk_unshift BORINGSSL_PREFIX %+ _OPENSSL_sk_unshift +%xdefine OPENSSL_sk_value BORINGSSL_PREFIX %+ _OPENSSL_sk_value +%xdefine OPENSSL_sk_zero BORINGSSL_PREFIX %+ _OPENSSL_sk_zero %xdefine OPENSSL_strcasecmp BORINGSSL_PREFIX %+ _OPENSSL_strcasecmp %xdefine OPENSSL_strdup BORINGSSL_PREFIX %+ _OPENSSL_strdup %xdefine OPENSSL_strhash BORINGSSL_PREFIX %+ _OPENSSL_strhash @@ -4997,7 +5588,7 @@ %xdefine OPENSSL_tolower BORINGSSL_PREFIX %+ _OPENSSL_tolower %xdefine OPENSSL_vasprintf BORINGSSL_PREFIX %+ _OPENSSL_vasprintf %xdefine OPENSSL_vasprintf_internal BORINGSSL_PREFIX %+ _OPENSSL_vasprintf_internal -%xdefine OTHERNAME_cmp BORINGSSL_PREFIX %+ _OTHERNAME_cmp +%xdefine OPENSSL_zalloc BORINGSSL_PREFIX %+ _OPENSSL_zalloc %xdefine OTHERNAME_free BORINGSSL_PREFIX %+ _OTHERNAME_free %xdefine OTHERNAME_it BORINGSSL_PREFIX %+ _OTHERNAME_it %xdefine OTHERNAME_new BORINGSSL_PREFIX %+ _OTHERNAME_new @@ -5015,10 +5606,8 @@ %xdefine PEM_X509_INFO_read_bio BORINGSSL_PREFIX %+ _PEM_X509_INFO_read_bio %xdefine PEM_bytes_read_bio BORINGSSL_PREFIX %+ _PEM_bytes_read_bio %xdefine PEM_def_callback BORINGSSL_PREFIX %+ _PEM_def_callback -%xdefine PEM_dek_info BORINGSSL_PREFIX %+ _PEM_dek_info %xdefine PEM_do_header BORINGSSL_PREFIX %+ _PEM_do_header %xdefine PEM_get_EVP_CIPHER_INFO BORINGSSL_PREFIX %+ _PEM_get_EVP_CIPHER_INFO -%xdefine PEM_proc_type BORINGSSL_PREFIX %+ _PEM_proc_type %xdefine PEM_read BORINGSSL_PREFIX %+ _PEM_read %xdefine PEM_read_DHparams BORINGSSL_PREFIX %+ _PEM_read_DHparams %xdefine PEM_read_DSAPrivateKey BORINGSSL_PREFIX %+ _PEM_read_DSAPrivateKey @@ -5043,12 +5632,14 @@ %xdefine PEM_read_bio_DSAPrivateKey BORINGSSL_PREFIX %+ _PEM_read_bio_DSAPrivateKey %xdefine PEM_read_bio_DSA_PUBKEY BORINGSSL_PREFIX %+ _PEM_read_bio_DSA_PUBKEY %xdefine PEM_read_bio_DSAparams BORINGSSL_PREFIX %+ _PEM_read_bio_DSAparams +%xdefine PEM_read_bio_ECPKParameters BORINGSSL_PREFIX %+ _PEM_read_bio_ECPKParameters %xdefine PEM_read_bio_ECPrivateKey BORINGSSL_PREFIX %+ _PEM_read_bio_ECPrivateKey %xdefine PEM_read_bio_EC_PUBKEY BORINGSSL_PREFIX %+ _PEM_read_bio_EC_PUBKEY %xdefine PEM_read_bio_PKCS7 BORINGSSL_PREFIX %+ _PEM_read_bio_PKCS7 %xdefine PEM_read_bio_PKCS8 BORINGSSL_PREFIX %+ _PEM_read_bio_PKCS8 %xdefine PEM_read_bio_PKCS8_PRIV_KEY_INFO BORINGSSL_PREFIX %+ _PEM_read_bio_PKCS8_PRIV_KEY_INFO %xdefine PEM_read_bio_PUBKEY BORINGSSL_PREFIX %+ _PEM_read_bio_PUBKEY +%xdefine PEM_read_bio_Parameters BORINGSSL_PREFIX %+ _PEM_read_bio_Parameters %xdefine PEM_read_bio_PrivateKey BORINGSSL_PREFIX %+ _PEM_read_bio_PrivateKey %xdefine PEM_read_bio_RSAPrivateKey BORINGSSL_PREFIX %+ _PEM_read_bio_RSAPrivateKey %xdefine PEM_read_bio_RSAPublicKey BORINGSSL_PREFIX %+ _PEM_read_bio_RSAPublicKey @@ -5084,6 +5675,7 @@ %xdefine PEM_write_bio_DSAPrivateKey BORINGSSL_PREFIX %+ _PEM_write_bio_DSAPrivateKey %xdefine PEM_write_bio_DSA_PUBKEY BORINGSSL_PREFIX %+ _PEM_write_bio_DSA_PUBKEY %xdefine PEM_write_bio_DSAparams BORINGSSL_PREFIX %+ _PEM_write_bio_DSAparams +%xdefine PEM_write_bio_ECPKParameters BORINGSSL_PREFIX %+ _PEM_write_bio_ECPKParameters %xdefine PEM_write_bio_ECPrivateKey BORINGSSL_PREFIX %+ _PEM_write_bio_ECPrivateKey %xdefine PEM_write_bio_EC_PUBKEY BORINGSSL_PREFIX %+ _PEM_write_bio_EC_PUBKEY %xdefine PEM_write_bio_PKCS7 BORINGSSL_PREFIX %+ _PEM_write_bio_PKCS7 @@ -5092,7 +5684,9 @@ %xdefine PEM_write_bio_PKCS8PrivateKey_nid BORINGSSL_PREFIX %+ _PEM_write_bio_PKCS8PrivateKey_nid %xdefine PEM_write_bio_PKCS8_PRIV_KEY_INFO BORINGSSL_PREFIX %+ _PEM_write_bio_PKCS8_PRIV_KEY_INFO %xdefine PEM_write_bio_PUBKEY BORINGSSL_PREFIX %+ _PEM_write_bio_PUBKEY +%xdefine PEM_write_bio_Parameters BORINGSSL_PREFIX %+ _PEM_write_bio_Parameters %xdefine PEM_write_bio_PrivateKey BORINGSSL_PREFIX %+ _PEM_write_bio_PrivateKey +%xdefine PEM_write_bio_PrivateKey_traditional BORINGSSL_PREFIX %+ _PEM_write_bio_PrivateKey_traditional %xdefine PEM_write_bio_RSAPrivateKey BORINGSSL_PREFIX %+ _PEM_write_bio_RSAPrivateKey %xdefine PEM_write_bio_RSAPublicKey BORINGSSL_PREFIX %+ _PEM_write_bio_RSAPublicKey %xdefine PEM_write_bio_RSA_PUBKEY BORINGSSL_PREFIX %+ _PEM_write_bio_RSA_PUBKEY @@ -5105,21 +5699,67 @@ %xdefine PKCS12_create BORINGSSL_PREFIX %+ _PKCS12_create %xdefine PKCS12_free BORINGSSL_PREFIX %+ _PKCS12_free %xdefine PKCS12_get_key_and_certs BORINGSSL_PREFIX %+ _PKCS12_get_key_and_certs +%xdefine PKCS12_new BORINGSSL_PREFIX %+ _PKCS12_new %xdefine PKCS12_parse BORINGSSL_PREFIX %+ _PKCS12_parse %xdefine PKCS12_verify_mac BORINGSSL_PREFIX %+ _PKCS12_verify_mac +%xdefine PKCS1_MGF1 BORINGSSL_PREFIX %+ _PKCS1_MGF1 %xdefine PKCS5_PBKDF2_HMAC BORINGSSL_PREFIX %+ _PKCS5_PBKDF2_HMAC %xdefine PKCS5_PBKDF2_HMAC_SHA1 BORINGSSL_PREFIX %+ _PKCS5_PBKDF2_HMAC_SHA1 %xdefine PKCS5_pbe2_decrypt_init BORINGSSL_PREFIX %+ _PKCS5_pbe2_decrypt_init %xdefine PKCS5_pbe2_encrypt_init BORINGSSL_PREFIX %+ _PKCS5_pbe2_encrypt_init +%xdefine PKCS7_DIGEST_free BORINGSSL_PREFIX %+ _PKCS7_DIGEST_free +%xdefine PKCS7_DIGEST_it BORINGSSL_PREFIX %+ _PKCS7_DIGEST_it +%xdefine PKCS7_DIGEST_new BORINGSSL_PREFIX %+ _PKCS7_DIGEST_new +%xdefine PKCS7_ENCRYPT_free BORINGSSL_PREFIX %+ _PKCS7_ENCRYPT_free +%xdefine PKCS7_ENCRYPT_it BORINGSSL_PREFIX %+ _PKCS7_ENCRYPT_it +%xdefine PKCS7_ENCRYPT_new BORINGSSL_PREFIX %+ _PKCS7_ENCRYPT_new +%xdefine PKCS7_ENC_CONTENT_free BORINGSSL_PREFIX %+ _PKCS7_ENC_CONTENT_free +%xdefine PKCS7_ENC_CONTENT_it BORINGSSL_PREFIX %+ _PKCS7_ENC_CONTENT_it +%xdefine PKCS7_ENC_CONTENT_new BORINGSSL_PREFIX %+ _PKCS7_ENC_CONTENT_new +%xdefine PKCS7_ENVELOPE_free BORINGSSL_PREFIX %+ _PKCS7_ENVELOPE_free +%xdefine PKCS7_ENVELOPE_it BORINGSSL_PREFIX %+ _PKCS7_ENVELOPE_it +%xdefine PKCS7_ENVELOPE_new BORINGSSL_PREFIX %+ _PKCS7_ENVELOPE_new +%xdefine PKCS7_ISSUER_AND_SERIAL_free BORINGSSL_PREFIX %+ _PKCS7_ISSUER_AND_SERIAL_free +%xdefine PKCS7_ISSUER_AND_SERIAL_it BORINGSSL_PREFIX %+ _PKCS7_ISSUER_AND_SERIAL_it +%xdefine PKCS7_ISSUER_AND_SERIAL_new BORINGSSL_PREFIX %+ _PKCS7_ISSUER_AND_SERIAL_new +%xdefine PKCS7_RECIP_INFO_free BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_free +%xdefine PKCS7_RECIP_INFO_get0_alg BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_get0_alg +%xdefine PKCS7_RECIP_INFO_it BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_it +%xdefine PKCS7_RECIP_INFO_new BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_new +%xdefine PKCS7_RECIP_INFO_set BORINGSSL_PREFIX %+ _PKCS7_RECIP_INFO_set +%xdefine PKCS7_SIGNED_free BORINGSSL_PREFIX %+ _PKCS7_SIGNED_free +%xdefine PKCS7_SIGNED_it BORINGSSL_PREFIX %+ _PKCS7_SIGNED_it +%xdefine PKCS7_SIGNED_new BORINGSSL_PREFIX %+ _PKCS7_SIGNED_new +%xdefine PKCS7_SIGNER_INFO_free BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_free +%xdefine PKCS7_SIGNER_INFO_get0_algs BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_get0_algs +%xdefine PKCS7_SIGNER_INFO_it BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_it +%xdefine PKCS7_SIGNER_INFO_new BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_new +%xdefine PKCS7_SIGNER_INFO_set BORINGSSL_PREFIX %+ _PKCS7_SIGNER_INFO_set +%xdefine PKCS7_SIGN_ENVELOPE_free BORINGSSL_PREFIX %+ _PKCS7_SIGN_ENVELOPE_free +%xdefine PKCS7_SIGN_ENVELOPE_it BORINGSSL_PREFIX %+ _PKCS7_SIGN_ENVELOPE_it +%xdefine PKCS7_SIGN_ENVELOPE_new BORINGSSL_PREFIX %+ _PKCS7_SIGN_ENVELOPE_new +%xdefine PKCS7_add_certificate BORINGSSL_PREFIX %+ _PKCS7_add_certificate +%xdefine PKCS7_add_crl BORINGSSL_PREFIX %+ _PKCS7_add_crl +%xdefine PKCS7_add_recipient_info BORINGSSL_PREFIX %+ _PKCS7_add_recipient_info +%xdefine PKCS7_add_signer BORINGSSL_PREFIX %+ _PKCS7_add_signer %xdefine PKCS7_bundle_CRLs BORINGSSL_PREFIX %+ _PKCS7_bundle_CRLs %xdefine PKCS7_bundle_certificates BORINGSSL_PREFIX %+ _PKCS7_bundle_certificates %xdefine PKCS7_bundle_raw_certificates BORINGSSL_PREFIX %+ _PKCS7_bundle_raw_certificates +%xdefine PKCS7_content_new BORINGSSL_PREFIX %+ _PKCS7_content_new +%xdefine PKCS7_dup BORINGSSL_PREFIX %+ _PKCS7_dup %xdefine PKCS7_free BORINGSSL_PREFIX %+ _PKCS7_free %xdefine PKCS7_get_CRLs BORINGSSL_PREFIX %+ _PKCS7_get_CRLs %xdefine PKCS7_get_PEM_CRLs BORINGSSL_PREFIX %+ _PKCS7_get_PEM_CRLs %xdefine PKCS7_get_PEM_certificates BORINGSSL_PREFIX %+ _PKCS7_get_PEM_certificates %xdefine PKCS7_get_certificates BORINGSSL_PREFIX %+ _PKCS7_get_certificates %xdefine PKCS7_get_raw_certificates BORINGSSL_PREFIX %+ _PKCS7_get_raw_certificates +%xdefine PKCS7_get_signed_attribute BORINGSSL_PREFIX %+ _PKCS7_get_signed_attribute +%xdefine PKCS7_get_signer_info BORINGSSL_PREFIX %+ _PKCS7_get_signer_info +%xdefine PKCS7_it BORINGSSL_PREFIX %+ _PKCS7_it +%xdefine PKCS7_new BORINGSSL_PREFIX %+ _PKCS7_new +%xdefine PKCS7_set_cipher BORINGSSL_PREFIX %+ _PKCS7_set_cipher +%xdefine PKCS7_set_content BORINGSSL_PREFIX %+ _PKCS7_set_content +%xdefine PKCS7_set_type BORINGSSL_PREFIX %+ _PKCS7_set_type %xdefine PKCS7_sign BORINGSSL_PREFIX %+ _PKCS7_sign %xdefine PKCS7_type_is_data BORINGSSL_PREFIX %+ _PKCS7_type_is_data %xdefine PKCS7_type_is_digest BORINGSSL_PREFIX %+ _PKCS7_type_is_digest @@ -5147,12 +5787,6 @@ %xdefine POLICY_MAPPING_free BORINGSSL_PREFIX %+ _POLICY_MAPPING_free %xdefine POLICY_MAPPING_it BORINGSSL_PREFIX %+ _POLICY_MAPPING_it %xdefine POLICY_MAPPING_new BORINGSSL_PREFIX %+ _POLICY_MAPPING_new -%xdefine PROXY_CERT_INFO_EXTENSION_free BORINGSSL_PREFIX %+ _PROXY_CERT_INFO_EXTENSION_free -%xdefine PROXY_CERT_INFO_EXTENSION_it BORINGSSL_PREFIX %+ _PROXY_CERT_INFO_EXTENSION_it -%xdefine PROXY_CERT_INFO_EXTENSION_new BORINGSSL_PREFIX %+ _PROXY_CERT_INFO_EXTENSION_new -%xdefine PROXY_POLICY_free BORINGSSL_PREFIX %+ _PROXY_POLICY_free -%xdefine PROXY_POLICY_it BORINGSSL_PREFIX %+ _PROXY_POLICY_it -%xdefine PROXY_POLICY_new BORINGSSL_PREFIX %+ _PROXY_POLICY_new %xdefine RAND_OpenSSL BORINGSSL_PREFIX %+ _RAND_OpenSSL %xdefine RAND_SSLeay BORINGSSL_PREFIX %+ _RAND_SSLeay %xdefine RAND_add BORINGSSL_PREFIX %+ _RAND_add @@ -5160,18 +5794,22 @@ %xdefine RAND_bytes_with_additional_data BORINGSSL_PREFIX %+ _RAND_bytes_with_additional_data %xdefine RAND_cleanup BORINGSSL_PREFIX %+ _RAND_cleanup %xdefine RAND_egd BORINGSSL_PREFIX %+ _RAND_egd +%xdefine RAND_egd_bytes BORINGSSL_PREFIX %+ _RAND_egd_bytes %xdefine RAND_enable_fork_unsafe_buffering BORINGSSL_PREFIX %+ _RAND_enable_fork_unsafe_buffering %xdefine RAND_file_name BORINGSSL_PREFIX %+ _RAND_file_name %xdefine RAND_get_rand_method BORINGSSL_PREFIX %+ _RAND_get_rand_method %xdefine RAND_get_system_entropy_for_custom_prng BORINGSSL_PREFIX %+ _RAND_get_system_entropy_for_custom_prng +%xdefine RAND_keep_random_devices_open BORINGSSL_PREFIX %+ _RAND_keep_random_devices_open %xdefine RAND_load_entropy BORINGSSL_PREFIX %+ _RAND_load_entropy %xdefine RAND_load_file BORINGSSL_PREFIX %+ _RAND_load_file %xdefine RAND_module_entropy_depleted BORINGSSL_PREFIX %+ _RAND_module_entropy_depleted %xdefine RAND_poll BORINGSSL_PREFIX %+ _RAND_poll +%xdefine RAND_priv_bytes BORINGSSL_PREFIX %+ _RAND_priv_bytes %xdefine RAND_pseudo_bytes BORINGSSL_PREFIX %+ _RAND_pseudo_bytes %xdefine RAND_seed BORINGSSL_PREFIX %+ _RAND_seed %xdefine RAND_set_rand_method BORINGSSL_PREFIX %+ _RAND_set_rand_method %xdefine RAND_status BORINGSSL_PREFIX %+ _RAND_status +%xdefine RAND_write_file BORINGSSL_PREFIX %+ _RAND_write_file %xdefine RC4 BORINGSSL_PREFIX %+ _RC4 %xdefine RC4_set_key BORINGSSL_PREFIX %+ _RC4_set_key %xdefine RIPEMD160 BORINGSSL_PREFIX %+ _RIPEMD160 @@ -5186,6 +5824,7 @@ %xdefine RSASSA_PSS_PARAMS_new BORINGSSL_PREFIX %+ _RSASSA_PSS_PARAMS_new %xdefine RSASSA_PSS_parse_params BORINGSSL_PREFIX %+ _RSASSA_PSS_parse_params %xdefine RSAZ_1024_mod_exp_avx2 BORINGSSL_PREFIX %+ _RSAZ_1024_mod_exp_avx2 +%xdefine RSAZ_mod_exp_avx512_x2 BORINGSSL_PREFIX %+ _RSAZ_mod_exp_avx512_x2 %xdefine RSA_ALGOR_IDENTIFIER_free BORINGSSL_PREFIX %+ _RSA_ALGOR_IDENTIFIER_free %xdefine RSA_ALGOR_IDENTIFIER_new BORINGSSL_PREFIX %+ _RSA_ALGOR_IDENTIFIER_new %xdefine RSA_INTEGER_free BORINGSSL_PREFIX %+ _RSA_INTEGER_free @@ -5197,11 +5836,11 @@ %xdefine RSA_PSS_PARAMS_new BORINGSSL_PREFIX %+ _RSA_PSS_PARAMS_new %xdefine RSA_add_pkcs1_prefix BORINGSSL_PREFIX %+ _RSA_add_pkcs1_prefix %xdefine RSA_bits BORINGSSL_PREFIX %+ _RSA_bits +%xdefine RSA_blinding_off_temp_for_accp_compatibility BORINGSSL_PREFIX %+ _RSA_blinding_off_temp_for_accp_compatibility %xdefine RSA_blinding_on BORINGSSL_PREFIX %+ _RSA_blinding_on %xdefine RSA_check_fips BORINGSSL_PREFIX %+ _RSA_check_fips %xdefine RSA_check_key BORINGSSL_PREFIX %+ _RSA_check_key %xdefine RSA_decrypt BORINGSSL_PREFIX %+ _RSA_decrypt -%xdefine RSA_default_method BORINGSSL_PREFIX %+ _RSA_default_method %xdefine RSA_encrypt BORINGSSL_PREFIX %+ _RSA_encrypt %xdefine RSA_flags BORINGSSL_PREFIX %+ _RSA_flags %xdefine RSA_free BORINGSSL_PREFIX %+ _RSA_free @@ -5220,31 +5859,49 @@ %xdefine RSA_get0_p BORINGSSL_PREFIX %+ _RSA_get0_p %xdefine RSA_get0_pss_params BORINGSSL_PREFIX %+ _RSA_get0_pss_params %xdefine RSA_get0_q BORINGSSL_PREFIX %+ _RSA_get0_q +%xdefine RSA_get_default_method BORINGSSL_PREFIX %+ _RSA_get_default_method %xdefine RSA_get_ex_data BORINGSSL_PREFIX %+ _RSA_get_ex_data %xdefine RSA_get_ex_new_index BORINGSSL_PREFIX %+ _RSA_get_ex_new_index +%xdefine RSA_get_method BORINGSSL_PREFIX %+ _RSA_get_method %xdefine RSA_is_opaque BORINGSSL_PREFIX %+ _RSA_is_opaque %xdefine RSA_marshal_private_key BORINGSSL_PREFIX %+ _RSA_marshal_private_key %xdefine RSA_marshal_public_key BORINGSSL_PREFIX %+ _RSA_marshal_public_key +%xdefine RSA_meth_free BORINGSSL_PREFIX %+ _RSA_meth_free +%xdefine RSA_meth_new BORINGSSL_PREFIX %+ _RSA_meth_new +%xdefine RSA_meth_set0_app_data BORINGSSL_PREFIX %+ _RSA_meth_set0_app_data +%xdefine RSA_meth_set_finish BORINGSSL_PREFIX %+ _RSA_meth_set_finish +%xdefine RSA_meth_set_init BORINGSSL_PREFIX %+ _RSA_meth_set_init +%xdefine RSA_meth_set_priv_dec BORINGSSL_PREFIX %+ _RSA_meth_set_priv_dec +%xdefine RSA_meth_set_priv_enc BORINGSSL_PREFIX %+ _RSA_meth_set_priv_enc +%xdefine RSA_meth_set_pub_dec BORINGSSL_PREFIX %+ _RSA_meth_set_pub_dec +%xdefine RSA_meth_set_pub_enc BORINGSSL_PREFIX %+ _RSA_meth_set_pub_enc +%xdefine RSA_meth_set_sign BORINGSSL_PREFIX %+ _RSA_meth_set_sign %xdefine RSA_new BORINGSSL_PREFIX %+ _RSA_new %xdefine RSA_new_method BORINGSSL_PREFIX %+ _RSA_new_method +%xdefine RSA_new_method_no_e BORINGSSL_PREFIX %+ _RSA_new_method_no_e +%xdefine RSA_new_private_key BORINGSSL_PREFIX %+ _RSA_new_private_key +%xdefine RSA_new_private_key_large_e BORINGSSL_PREFIX %+ _RSA_new_private_key_large_e +%xdefine RSA_new_private_key_no_crt BORINGSSL_PREFIX %+ _RSA_new_private_key_no_crt +%xdefine RSA_new_private_key_no_e BORINGSSL_PREFIX %+ _RSA_new_private_key_no_e +%xdefine RSA_new_public_key BORINGSSL_PREFIX %+ _RSA_new_public_key +%xdefine RSA_new_public_key_large_e BORINGSSL_PREFIX %+ _RSA_new_public_key_large_e %xdefine RSA_padding_add_PKCS1_OAEP BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_OAEP %xdefine RSA_padding_add_PKCS1_OAEP_mgf1 BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_OAEP_mgf1 %xdefine RSA_padding_add_PKCS1_PSS BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_PSS %xdefine RSA_padding_add_PKCS1_PSS_mgf1 BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_PSS_mgf1 %xdefine RSA_padding_add_PKCS1_type_1 BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_type_1 -%xdefine RSA_padding_add_PKCS1_type_2 BORINGSSL_PREFIX %+ _RSA_padding_add_PKCS1_type_2 %xdefine RSA_padding_add_none BORINGSSL_PREFIX %+ _RSA_padding_add_none %xdefine RSA_padding_check_PKCS1_OAEP_mgf1 BORINGSSL_PREFIX %+ _RSA_padding_check_PKCS1_OAEP_mgf1 %xdefine RSA_padding_check_PKCS1_type_1 BORINGSSL_PREFIX %+ _RSA_padding_check_PKCS1_type_1 -%xdefine RSA_padding_check_PKCS1_type_2 BORINGSSL_PREFIX %+ _RSA_padding_check_PKCS1_type_2 %xdefine RSA_parse_private_key BORINGSSL_PREFIX %+ _RSA_parse_private_key %xdefine RSA_parse_public_key BORINGSSL_PREFIX %+ _RSA_parse_public_key +%xdefine RSA_pkey_ctx_ctrl BORINGSSL_PREFIX %+ _RSA_pkey_ctx_ctrl %xdefine RSA_print BORINGSSL_PREFIX %+ _RSA_print +%xdefine RSA_print_fp BORINGSSL_PREFIX %+ _RSA_print_fp %xdefine RSA_private_decrypt BORINGSSL_PREFIX %+ _RSA_private_decrypt %xdefine RSA_private_encrypt BORINGSSL_PREFIX %+ _RSA_private_encrypt %xdefine RSA_private_key_from_bytes BORINGSSL_PREFIX %+ _RSA_private_key_from_bytes %xdefine RSA_private_key_to_bytes BORINGSSL_PREFIX %+ _RSA_private_key_to_bytes -%xdefine RSA_private_transform BORINGSSL_PREFIX %+ _RSA_private_transform %xdefine RSA_public_decrypt BORINGSSL_PREFIX %+ _RSA_public_decrypt %xdefine RSA_public_encrypt BORINGSSL_PREFIX %+ _RSA_public_encrypt %xdefine RSA_public_key_from_bytes BORINGSSL_PREFIX %+ _RSA_public_key_from_bytes @@ -5253,13 +5910,14 @@ %xdefine RSA_set0_factors BORINGSSL_PREFIX %+ _RSA_set0_factors %xdefine RSA_set0_key BORINGSSL_PREFIX %+ _RSA_set0_key %xdefine RSA_set_ex_data BORINGSSL_PREFIX %+ _RSA_set_ex_data +%xdefine RSA_set_flags BORINGSSL_PREFIX %+ _RSA_set_flags +%xdefine RSA_set_method BORINGSSL_PREFIX %+ _RSA_set_method %xdefine RSA_sign BORINGSSL_PREFIX %+ _RSA_sign %xdefine RSA_sign_pss_mgf1 BORINGSSL_PREFIX %+ _RSA_sign_pss_mgf1 %xdefine RSA_sign_raw BORINGSSL_PREFIX %+ _RSA_sign_raw %xdefine RSA_size BORINGSSL_PREFIX %+ _RSA_size %xdefine RSA_test_flags BORINGSSL_PREFIX %+ _RSA_test_flags %xdefine RSA_up_ref BORINGSSL_PREFIX %+ _RSA_up_ref -%xdefine RSA_validate_key BORINGSSL_PREFIX %+ _RSA_validate_key %xdefine RSA_verify BORINGSSL_PREFIX %+ _RSA_verify %xdefine RSA_verify_PKCS1_PSS BORINGSSL_PREFIX %+ _RSA_verify_PKCS1_PSS %xdefine RSA_verify_PKCS1_PSS_mgf1 BORINGSSL_PREFIX %+ _RSA_verify_PKCS1_PSS_mgf1 @@ -5268,22 +5926,30 @@ %xdefine SHA1 BORINGSSL_PREFIX %+ _SHA1 %xdefine SHA1_Final BORINGSSL_PREFIX %+ _SHA1_Final %xdefine SHA1_Init BORINGSSL_PREFIX %+ _SHA1_Init +%xdefine SHA1_Init_from_state BORINGSSL_PREFIX %+ _SHA1_Init_from_state %xdefine SHA1_Transform BORINGSSL_PREFIX %+ _SHA1_Transform %xdefine SHA1_Update BORINGSSL_PREFIX %+ _SHA1_Update +%xdefine SHA1_get_state BORINGSSL_PREFIX %+ _SHA1_get_state %xdefine SHA224 BORINGSSL_PREFIX %+ _SHA224 %xdefine SHA224_Final BORINGSSL_PREFIX %+ _SHA224_Final %xdefine SHA224_Init BORINGSSL_PREFIX %+ _SHA224_Init +%xdefine SHA224_Init_from_state BORINGSSL_PREFIX %+ _SHA224_Init_from_state %xdefine SHA224_Update BORINGSSL_PREFIX %+ _SHA224_Update +%xdefine SHA224_get_state BORINGSSL_PREFIX %+ _SHA224_get_state %xdefine SHA256 BORINGSSL_PREFIX %+ _SHA256 %xdefine SHA256_Final BORINGSSL_PREFIX %+ _SHA256_Final %xdefine SHA256_Init BORINGSSL_PREFIX %+ _SHA256_Init +%xdefine SHA256_Init_from_state BORINGSSL_PREFIX %+ _SHA256_Init_from_state %xdefine SHA256_Transform BORINGSSL_PREFIX %+ _SHA256_Transform %xdefine SHA256_TransformBlocks BORINGSSL_PREFIX %+ _SHA256_TransformBlocks %xdefine SHA256_Update BORINGSSL_PREFIX %+ _SHA256_Update +%xdefine SHA256_get_state BORINGSSL_PREFIX %+ _SHA256_get_state %xdefine SHA384 BORINGSSL_PREFIX %+ _SHA384 %xdefine SHA384_Final BORINGSSL_PREFIX %+ _SHA384_Final %xdefine SHA384_Init BORINGSSL_PREFIX %+ _SHA384_Init +%xdefine SHA384_Init_from_state BORINGSSL_PREFIX %+ _SHA384_Init_from_state %xdefine SHA384_Update BORINGSSL_PREFIX %+ _SHA384_Update +%xdefine SHA384_get_state BORINGSSL_PREFIX %+ _SHA384_get_state %xdefine SHA3_224 BORINGSSL_PREFIX %+ _SHA3_224 %xdefine SHA3_256 BORINGSSL_PREFIX %+ _SHA3_256 %xdefine SHA3_384 BORINGSSL_PREFIX %+ _SHA3_384 @@ -5299,16 +5965,28 @@ %xdefine SHA3_Squeeze_hw BORINGSSL_PREFIX %+ _SHA3_Squeeze_hw %xdefine SHA3_Update BORINGSSL_PREFIX %+ _SHA3_Update %xdefine SHA512 BORINGSSL_PREFIX %+ _SHA512 +%xdefine SHA512_224 BORINGSSL_PREFIX %+ _SHA512_224 +%xdefine SHA512_224_Final BORINGSSL_PREFIX %+ _SHA512_224_Final +%xdefine SHA512_224_Init BORINGSSL_PREFIX %+ _SHA512_224_Init +%xdefine SHA512_224_Init_from_state BORINGSSL_PREFIX %+ _SHA512_224_Init_from_state +%xdefine SHA512_224_Update BORINGSSL_PREFIX %+ _SHA512_224_Update +%xdefine SHA512_224_get_state BORINGSSL_PREFIX %+ _SHA512_224_get_state %xdefine SHA512_256 BORINGSSL_PREFIX %+ _SHA512_256 %xdefine SHA512_256_Final BORINGSSL_PREFIX %+ _SHA512_256_Final %xdefine SHA512_256_Init BORINGSSL_PREFIX %+ _SHA512_256_Init +%xdefine SHA512_256_Init_from_state BORINGSSL_PREFIX %+ _SHA512_256_Init_from_state %xdefine SHA512_256_Update BORINGSSL_PREFIX %+ _SHA512_256_Update +%xdefine SHA512_256_get_state BORINGSSL_PREFIX %+ _SHA512_256_get_state %xdefine SHA512_Final BORINGSSL_PREFIX %+ _SHA512_Final %xdefine SHA512_Init BORINGSSL_PREFIX %+ _SHA512_Init +%xdefine SHA512_Init_from_state BORINGSSL_PREFIX %+ _SHA512_Init_from_state %xdefine SHA512_Transform BORINGSSL_PREFIX %+ _SHA512_Transform %xdefine SHA512_Update BORINGSSL_PREFIX %+ _SHA512_Update +%xdefine SHA512_get_state BORINGSSL_PREFIX %+ _SHA512_get_state %xdefine SHAKE128 BORINGSSL_PREFIX %+ _SHAKE128 %xdefine SHAKE256 BORINGSSL_PREFIX %+ _SHAKE256 +%xdefine SHAKE_Final BORINGSSL_PREFIX %+ _SHAKE_Final +%xdefine SHAKE_Init BORINGSSL_PREFIX %+ _SHAKE_Init %xdefine SIPHASH_24 BORINGSSL_PREFIX %+ _SIPHASH_24 %xdefine SPAKE2_CTX_free BORINGSSL_PREFIX %+ _SPAKE2_CTX_free %xdefine SPAKE2_CTX_new BORINGSSL_PREFIX %+ _SPAKE2_CTX_new @@ -5316,6 +5994,10 @@ %xdefine SPAKE2_process_msg BORINGSSL_PREFIX %+ _SPAKE2_process_msg %xdefine SSHKDF BORINGSSL_PREFIX %+ _SSHKDF %xdefine SSHKDF_verify_service_indicator BORINGSSL_PREFIX %+ _SSHKDF_verify_service_indicator +%xdefine SSKDF_digest BORINGSSL_PREFIX %+ _SSKDF_digest +%xdefine SSKDF_digest_verify_service_indicator BORINGSSL_PREFIX %+ _SSKDF_digest_verify_service_indicator +%xdefine SSKDF_hmac BORINGSSL_PREFIX %+ _SSKDF_hmac +%xdefine SSKDF_hmac_verify_service_indicator BORINGSSL_PREFIX %+ _SSKDF_hmac_verify_service_indicator %xdefine SSLeay BORINGSSL_PREFIX %+ _SSLeay %xdefine SSLeay_version BORINGSSL_PREFIX %+ _SSLeay_version %xdefine TLSKDF_verify_service_indicator BORINGSSL_PREFIX %+ _TLSKDF_verify_service_indicator @@ -5334,7 +6016,6 @@ %xdefine TRUST_TOKEN_ISSUER_new BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_new %xdefine TRUST_TOKEN_ISSUER_redeem BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_redeem %xdefine TRUST_TOKEN_ISSUER_redeem_over_message BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_redeem_over_message -%xdefine TRUST_TOKEN_ISSUER_redeem_raw BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_redeem_raw %xdefine TRUST_TOKEN_ISSUER_set_metadata_key BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_set_metadata_key %xdefine TRUST_TOKEN_ISSUER_set_srr_key BORINGSSL_PREFIX %+ _TRUST_TOKEN_ISSUER_set_srr_key %xdefine TRUST_TOKEN_PRETOKEN_free BORINGSSL_PREFIX %+ _TRUST_TOKEN_PRETOKEN_free @@ -5346,6 +6027,8 @@ %xdefine TRUST_TOKEN_free BORINGSSL_PREFIX %+ _TRUST_TOKEN_free %xdefine TRUST_TOKEN_generate_key BORINGSSL_PREFIX %+ _TRUST_TOKEN_generate_key %xdefine TRUST_TOKEN_new BORINGSSL_PREFIX %+ _TRUST_TOKEN_new +%xdefine TRUST_TOKEN_pst_v1_pmb BORINGSSL_PREFIX %+ _TRUST_TOKEN_pst_v1_pmb +%xdefine TRUST_TOKEN_pst_v1_voprf BORINGSSL_PREFIX %+ _TRUST_TOKEN_pst_v1_voprf %xdefine USERNOTICE_free BORINGSSL_PREFIX %+ _USERNOTICE_free %xdefine USERNOTICE_it BORINGSSL_PREFIX %+ _USERNOTICE_it %xdefine USERNOTICE_new BORINGSSL_PREFIX %+ _USERNOTICE_new @@ -5358,10 +6041,9 @@ %xdefine X509V3_EXT_REQ_add_nconf BORINGSSL_PREFIX %+ _X509V3_EXT_REQ_add_nconf %xdefine X509V3_EXT_add BORINGSSL_PREFIX %+ _X509V3_EXT_add %xdefine X509V3_EXT_add_alias BORINGSSL_PREFIX %+ _X509V3_EXT_add_alias -%xdefine X509V3_EXT_add_list BORINGSSL_PREFIX %+ _X509V3_EXT_add_list %xdefine X509V3_EXT_add_nconf BORINGSSL_PREFIX %+ _X509V3_EXT_add_nconf %xdefine X509V3_EXT_add_nconf_sk BORINGSSL_PREFIX %+ _X509V3_EXT_add_nconf_sk -%xdefine X509V3_EXT_cleanup BORINGSSL_PREFIX %+ _X509V3_EXT_cleanup +%xdefine X509V3_EXT_conf BORINGSSL_PREFIX %+ _X509V3_EXT_conf %xdefine X509V3_EXT_conf_nid BORINGSSL_PREFIX %+ _X509V3_EXT_conf_nid %xdefine X509V3_EXT_d2i BORINGSSL_PREFIX %+ _X509V3_EXT_d2i %xdefine X509V3_EXT_free BORINGSSL_PREFIX %+ _X509V3_EXT_free @@ -5372,13 +6054,13 @@ %xdefine X509V3_EXT_nconf_nid BORINGSSL_PREFIX %+ _X509V3_EXT_nconf_nid %xdefine X509V3_EXT_print BORINGSSL_PREFIX %+ _X509V3_EXT_print %xdefine X509V3_EXT_print_fp BORINGSSL_PREFIX %+ _X509V3_EXT_print_fp -%xdefine X509V3_EXT_val_prn BORINGSSL_PREFIX %+ _X509V3_EXT_val_prn %xdefine X509V3_NAME_from_section BORINGSSL_PREFIX %+ _X509V3_NAME_from_section %xdefine X509V3_add1_i2d BORINGSSL_PREFIX %+ _X509V3_add1_i2d %xdefine X509V3_add_standard_extensions BORINGSSL_PREFIX %+ _X509V3_add_standard_extensions %xdefine X509V3_add_value BORINGSSL_PREFIX %+ _X509V3_add_value %xdefine X509V3_add_value_bool BORINGSSL_PREFIX %+ _X509V3_add_value_bool %xdefine X509V3_add_value_int BORINGSSL_PREFIX %+ _X509V3_add_value_int +%xdefine X509V3_bool_from_string BORINGSSL_PREFIX %+ _X509V3_bool_from_string %xdefine X509V3_conf_free BORINGSSL_PREFIX %+ _X509V3_conf_free %xdefine X509V3_extensions_print BORINGSSL_PREFIX %+ _X509V3_extensions_print %xdefine X509V3_get_d2i BORINGSSL_PREFIX %+ _X509V3_get_d2i @@ -5425,7 +6107,6 @@ %xdefine X509_CRL_add_ext BORINGSSL_PREFIX %+ _X509_CRL_add_ext %xdefine X509_CRL_cmp BORINGSSL_PREFIX %+ _X509_CRL_cmp %xdefine X509_CRL_delete_ext BORINGSSL_PREFIX %+ _X509_CRL_delete_ext -%xdefine X509_CRL_diff BORINGSSL_PREFIX %+ _X509_CRL_diff %xdefine X509_CRL_digest BORINGSSL_PREFIX %+ _X509_CRL_digest %xdefine X509_CRL_dup BORINGSSL_PREFIX %+ _X509_CRL_dup %xdefine X509_CRL_free BORINGSSL_PREFIX %+ _X509_CRL_free @@ -5447,6 +6128,7 @@ %xdefine X509_CRL_get_nextUpdate BORINGSSL_PREFIX %+ _X509_CRL_get_nextUpdate %xdefine X509_CRL_get_signature_nid BORINGSSL_PREFIX %+ _X509_CRL_get_signature_nid %xdefine X509_CRL_get_version BORINGSSL_PREFIX %+ _X509_CRL_get_version +%xdefine X509_CRL_http_nbio BORINGSSL_PREFIX %+ _X509_CRL_http_nbio %xdefine X509_CRL_it BORINGSSL_PREFIX %+ _X509_CRL_it %xdefine X509_CRL_match BORINGSSL_PREFIX %+ _X509_CRL_match %xdefine X509_CRL_new BORINGSSL_PREFIX %+ _X509_CRL_new @@ -5477,15 +6159,12 @@ %xdefine X509_EXTENSION_set_data BORINGSSL_PREFIX %+ _X509_EXTENSION_set_data %xdefine X509_EXTENSION_set_object BORINGSSL_PREFIX %+ _X509_EXTENSION_set_object %xdefine X509_INFO_free BORINGSSL_PREFIX %+ _X509_INFO_free -%xdefine X509_INFO_new BORINGSSL_PREFIX %+ _X509_INFO_new -%xdefine X509_LOOKUP_by_subject BORINGSSL_PREFIX %+ _X509_LOOKUP_by_subject +%xdefine X509_LOOKUP_add_dir BORINGSSL_PREFIX %+ _X509_LOOKUP_add_dir %xdefine X509_LOOKUP_ctrl BORINGSSL_PREFIX %+ _X509_LOOKUP_ctrl %xdefine X509_LOOKUP_file BORINGSSL_PREFIX %+ _X509_LOOKUP_file %xdefine X509_LOOKUP_free BORINGSSL_PREFIX %+ _X509_LOOKUP_free %xdefine X509_LOOKUP_hash_dir BORINGSSL_PREFIX %+ _X509_LOOKUP_hash_dir -%xdefine X509_LOOKUP_init BORINGSSL_PREFIX %+ _X509_LOOKUP_init -%xdefine X509_LOOKUP_new BORINGSSL_PREFIX %+ _X509_LOOKUP_new -%xdefine X509_LOOKUP_shutdown BORINGSSL_PREFIX %+ _X509_LOOKUP_shutdown +%xdefine X509_LOOKUP_load_file BORINGSSL_PREFIX %+ _X509_LOOKUP_load_file %xdefine X509_NAME_ENTRIES_it BORINGSSL_PREFIX %+ _X509_NAME_ENTRIES_it %xdefine X509_NAME_ENTRY_create_by_NID BORINGSSL_PREFIX %+ _X509_NAME_ENTRY_create_by_NID %xdefine X509_NAME_ENTRY_create_by_OBJ BORINGSSL_PREFIX %+ _X509_NAME_ENTRY_create_by_OBJ @@ -5525,25 +6204,23 @@ %xdefine X509_NAME_print_ex BORINGSSL_PREFIX %+ _X509_NAME_print_ex %xdefine X509_NAME_print_ex_fp BORINGSSL_PREFIX %+ _X509_NAME_print_ex_fp %xdefine X509_NAME_set BORINGSSL_PREFIX %+ _X509_NAME_set +%xdefine X509_OBJECT_free BORINGSSL_PREFIX %+ _X509_OBJECT_free %xdefine X509_OBJECT_free_contents BORINGSSL_PREFIX %+ _X509_OBJECT_free_contents %xdefine X509_OBJECT_get0_X509 BORINGSSL_PREFIX %+ _X509_OBJECT_get0_X509 +%xdefine X509_OBJECT_get0_X509_CRL BORINGSSL_PREFIX %+ _X509_OBJECT_get0_X509_CRL %xdefine X509_OBJECT_get_type BORINGSSL_PREFIX %+ _X509_OBJECT_get_type -%xdefine X509_OBJECT_idx_by_subject BORINGSSL_PREFIX %+ _X509_OBJECT_idx_by_subject -%xdefine X509_OBJECT_retrieve_by_subject BORINGSSL_PREFIX %+ _X509_OBJECT_retrieve_by_subject -%xdefine X509_OBJECT_retrieve_match BORINGSSL_PREFIX %+ _X509_OBJECT_retrieve_match -%xdefine X509_OBJECT_up_ref_count BORINGSSL_PREFIX %+ _X509_OBJECT_up_ref_count -%xdefine X509_PKEY_free BORINGSSL_PREFIX %+ _X509_PKEY_free -%xdefine X509_PKEY_new BORINGSSL_PREFIX %+ _X509_PKEY_new +%xdefine X509_OBJECT_new BORINGSSL_PREFIX %+ _X509_OBJECT_new +%xdefine X509_OBJECT_set1_X509 BORINGSSL_PREFIX %+ _X509_OBJECT_set1_X509 +%xdefine X509_OBJECT_set1_X509_CRL BORINGSSL_PREFIX %+ _X509_OBJECT_set1_X509_CRL %xdefine X509_PUBKEY_free BORINGSSL_PREFIX %+ _X509_PUBKEY_free %xdefine X509_PUBKEY_get BORINGSSL_PREFIX %+ _X509_PUBKEY_get +%xdefine X509_PUBKEY_get0 BORINGSSL_PREFIX %+ _X509_PUBKEY_get0 %xdefine X509_PUBKEY_get0_param BORINGSSL_PREFIX %+ _X509_PUBKEY_get0_param %xdefine X509_PUBKEY_get0_public_key BORINGSSL_PREFIX %+ _X509_PUBKEY_get0_public_key %xdefine X509_PUBKEY_it BORINGSSL_PREFIX %+ _X509_PUBKEY_it %xdefine X509_PUBKEY_new BORINGSSL_PREFIX %+ _X509_PUBKEY_new %xdefine X509_PUBKEY_set BORINGSSL_PREFIX %+ _X509_PUBKEY_set %xdefine X509_PUBKEY_set0_param BORINGSSL_PREFIX %+ _X509_PUBKEY_set0_param -%xdefine X509_PURPOSE_add BORINGSSL_PREFIX %+ _X509_PURPOSE_add -%xdefine X509_PURPOSE_cleanup BORINGSSL_PREFIX %+ _X509_PURPOSE_cleanup %xdefine X509_PURPOSE_get0 BORINGSSL_PREFIX %+ _X509_PURPOSE_get0 %xdefine X509_PURPOSE_get0_name BORINGSSL_PREFIX %+ _X509_PURPOSE_get0_name %xdefine X509_PURPOSE_get0_sname BORINGSSL_PREFIX %+ _X509_PURPOSE_get0_sname @@ -5568,6 +6245,7 @@ %xdefine X509_REQ_dup BORINGSSL_PREFIX %+ _X509_REQ_dup %xdefine X509_REQ_extension_nid BORINGSSL_PREFIX %+ _X509_REQ_extension_nid %xdefine X509_REQ_free BORINGSSL_PREFIX %+ _X509_REQ_free +%xdefine X509_REQ_get0_pubkey BORINGSSL_PREFIX %+ _X509_REQ_get0_pubkey %xdefine X509_REQ_get0_signature BORINGSSL_PREFIX %+ _X509_REQ_get0_signature %xdefine X509_REQ_get1_email BORINGSSL_PREFIX %+ _X509_REQ_get1_email %xdefine X509_REQ_get_attr BORINGSSL_PREFIX %+ _X509_REQ_get_attr @@ -5625,8 +6303,11 @@ %xdefine X509_STORE_CTX_get0_parent_ctx BORINGSSL_PREFIX %+ _X509_STORE_CTX_get0_parent_ctx %xdefine X509_STORE_CTX_get0_store BORINGSSL_PREFIX %+ _X509_STORE_CTX_get0_store %xdefine X509_STORE_CTX_get0_untrusted BORINGSSL_PREFIX %+ _X509_STORE_CTX_get0_untrusted +%xdefine X509_STORE_CTX_get1_certs BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_certs %xdefine X509_STORE_CTX_get1_chain BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_chain +%xdefine X509_STORE_CTX_get1_crls BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_crls %xdefine X509_STORE_CTX_get1_issuer BORINGSSL_PREFIX %+ _X509_STORE_CTX_get1_issuer +%xdefine X509_STORE_CTX_get_by_subject BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_by_subject %xdefine X509_STORE_CTX_get_chain BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_chain %xdefine X509_STORE_CTX_get_current_cert BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_current_cert %xdefine X509_STORE_CTX_get_error BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_error @@ -5635,7 +6316,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 @@ -5652,49 +6332,29 @@ %xdefine X509_STORE_CTX_set_trust BORINGSSL_PREFIX %+ _X509_STORE_CTX_set_trust %xdefine X509_STORE_CTX_set_verify_cb BORINGSSL_PREFIX %+ _X509_STORE_CTX_set_verify_cb %xdefine X509_STORE_CTX_trusted_stack BORINGSSL_PREFIX %+ _X509_STORE_CTX_trusted_stack -%xdefine X509_STORE_CTX_zero BORINGSSL_PREFIX %+ _X509_STORE_CTX_zero %xdefine X509_STORE_add_cert BORINGSSL_PREFIX %+ _X509_STORE_add_cert %xdefine X509_STORE_add_crl BORINGSSL_PREFIX %+ _X509_STORE_add_crl %xdefine X509_STORE_add_lookup BORINGSSL_PREFIX %+ _X509_STORE_add_lookup %xdefine X509_STORE_free BORINGSSL_PREFIX %+ _X509_STORE_free %xdefine X509_STORE_get0_objects BORINGSSL_PREFIX %+ _X509_STORE_get0_objects %xdefine X509_STORE_get0_param BORINGSSL_PREFIX %+ _X509_STORE_get0_param -%xdefine X509_STORE_get1_certs BORINGSSL_PREFIX %+ _X509_STORE_get1_certs -%xdefine X509_STORE_get1_crls BORINGSSL_PREFIX %+ _X509_STORE_get1_crls -%xdefine X509_STORE_get_by_subject BORINGSSL_PREFIX %+ _X509_STORE_get_by_subject -%xdefine X509_STORE_get_cert_crl BORINGSSL_PREFIX %+ _X509_STORE_get_cert_crl -%xdefine X509_STORE_get_check_crl BORINGSSL_PREFIX %+ _X509_STORE_get_check_crl -%xdefine X509_STORE_get_check_issued BORINGSSL_PREFIX %+ _X509_STORE_get_check_issued -%xdefine X509_STORE_get_check_revocation BORINGSSL_PREFIX %+ _X509_STORE_get_check_revocation -%xdefine X509_STORE_get_cleanup BORINGSSL_PREFIX %+ _X509_STORE_get_cleanup -%xdefine X509_STORE_get_get_crl BORINGSSL_PREFIX %+ _X509_STORE_get_get_crl -%xdefine X509_STORE_get_get_issuer BORINGSSL_PREFIX %+ _X509_STORE_get_get_issuer -%xdefine X509_STORE_get_lookup_certs BORINGSSL_PREFIX %+ _X509_STORE_get_lookup_certs -%xdefine X509_STORE_get_lookup_crls BORINGSSL_PREFIX %+ _X509_STORE_get_lookup_crls -%xdefine X509_STORE_get_verify BORINGSSL_PREFIX %+ _X509_STORE_get_verify -%xdefine X509_STORE_get_verify_cb BORINGSSL_PREFIX %+ _X509_STORE_get_verify_cb +%xdefine X509_STORE_get_ex_data BORINGSSL_PREFIX %+ _X509_STORE_get_ex_data +%xdefine X509_STORE_get_ex_new_index BORINGSSL_PREFIX %+ _X509_STORE_get_ex_new_index %xdefine X509_STORE_load_locations BORINGSSL_PREFIX %+ _X509_STORE_load_locations +%xdefine X509_STORE_lock BORINGSSL_PREFIX %+ _X509_STORE_lock %xdefine X509_STORE_new BORINGSSL_PREFIX %+ _X509_STORE_new %xdefine X509_STORE_set1_param BORINGSSL_PREFIX %+ _X509_STORE_set1_param -%xdefine X509_STORE_set_cert_crl BORINGSSL_PREFIX %+ _X509_STORE_set_cert_crl %xdefine X509_STORE_set_check_crl BORINGSSL_PREFIX %+ _X509_STORE_set_check_crl -%xdefine X509_STORE_set_check_issued BORINGSSL_PREFIX %+ _X509_STORE_set_check_issued -%xdefine X509_STORE_set_check_revocation BORINGSSL_PREFIX %+ _X509_STORE_set_check_revocation -%xdefine X509_STORE_set_cleanup BORINGSSL_PREFIX %+ _X509_STORE_set_cleanup %xdefine X509_STORE_set_default_paths BORINGSSL_PREFIX %+ _X509_STORE_set_default_paths %xdefine X509_STORE_set_depth BORINGSSL_PREFIX %+ _X509_STORE_set_depth +%xdefine X509_STORE_set_ex_data BORINGSSL_PREFIX %+ _X509_STORE_set_ex_data %xdefine X509_STORE_set_flags BORINGSSL_PREFIX %+ _X509_STORE_set_flags %xdefine X509_STORE_set_get_crl BORINGSSL_PREFIX %+ _X509_STORE_set_get_crl -%xdefine X509_STORE_set_get_issuer BORINGSSL_PREFIX %+ _X509_STORE_set_get_issuer -%xdefine X509_STORE_set_lookup_certs BORINGSSL_PREFIX %+ _X509_STORE_set_lookup_certs -%xdefine X509_STORE_set_lookup_crls BORINGSSL_PREFIX %+ _X509_STORE_set_lookup_crls %xdefine X509_STORE_set_purpose BORINGSSL_PREFIX %+ _X509_STORE_set_purpose %xdefine X509_STORE_set_trust BORINGSSL_PREFIX %+ _X509_STORE_set_trust -%xdefine X509_STORE_set_verify BORINGSSL_PREFIX %+ _X509_STORE_set_verify %xdefine X509_STORE_set_verify_cb BORINGSSL_PREFIX %+ _X509_STORE_set_verify_cb +%xdefine X509_STORE_unlock BORINGSSL_PREFIX %+ _X509_STORE_unlock %xdefine X509_STORE_up_ref BORINGSSL_PREFIX %+ _X509_STORE_up_ref -%xdefine X509_TRUST_add BORINGSSL_PREFIX %+ _X509_TRUST_add -%xdefine X509_TRUST_cleanup BORINGSSL_PREFIX %+ _X509_TRUST_cleanup %xdefine X509_TRUST_get0 BORINGSSL_PREFIX %+ _X509_TRUST_get0 %xdefine X509_TRUST_get0_name BORINGSSL_PREFIX %+ _X509_TRUST_get0_name %xdefine X509_TRUST_get_by_id BORINGSSL_PREFIX %+ _X509_TRUST_get_by_id @@ -5706,14 +6366,9 @@ %xdefine X509_VAL_it BORINGSSL_PREFIX %+ _X509_VAL_it %xdefine X509_VAL_new BORINGSSL_PREFIX %+ _X509_VAL_new %xdefine X509_VERIFY_PARAM_add0_policy BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_add0_policy -%xdefine X509_VERIFY_PARAM_add0_table BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_add0_table %xdefine X509_VERIFY_PARAM_add1_host BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_add1_host %xdefine X509_VERIFY_PARAM_clear_flags BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_clear_flags %xdefine X509_VERIFY_PARAM_free BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_free -%xdefine X509_VERIFY_PARAM_get0 BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get0 -%xdefine X509_VERIFY_PARAM_get0_name BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get0_name -%xdefine X509_VERIFY_PARAM_get0_peername BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get0_peername -%xdefine X509_VERIFY_PARAM_get_count BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get_count %xdefine X509_VERIFY_PARAM_get_depth BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get_depth %xdefine X509_VERIFY_PARAM_get_flags BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_get_flags %xdefine X509_VERIFY_PARAM_inherit BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_inherit @@ -5724,7 +6379,6 @@ %xdefine X509_VERIFY_PARAM_set1_host BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_host %xdefine X509_VERIFY_PARAM_set1_ip BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_ip %xdefine X509_VERIFY_PARAM_set1_ip_asc BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_ip_asc -%xdefine X509_VERIFY_PARAM_set1_name BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_name %xdefine X509_VERIFY_PARAM_set1_policies BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set1_policies %xdefine X509_VERIFY_PARAM_set_depth BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_depth %xdefine X509_VERIFY_PARAM_set_flags BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_flags @@ -5733,7 +6387,6 @@ %xdefine X509_VERIFY_PARAM_set_time BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_time %xdefine X509_VERIFY_PARAM_set_time_posix BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_time_posix %xdefine X509_VERIFY_PARAM_set_trust BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_set_trust -%xdefine X509_VERIFY_PARAM_table_cleanup BORINGSSL_PREFIX %+ _X509_VERIFY_PARAM_table_cleanup %xdefine X509_add1_ext_i2d BORINGSSL_PREFIX %+ _X509_add1_ext_i2d %xdefine X509_add1_reject_object BORINGSSL_PREFIX %+ _X509_add1_reject_object %xdefine X509_add1_trust_object BORINGSSL_PREFIX %+ _X509_add1_trust_object @@ -5768,6 +6421,7 @@ %xdefine X509_get0_extensions BORINGSSL_PREFIX %+ _X509_get0_extensions %xdefine X509_get0_notAfter BORINGSSL_PREFIX %+ _X509_get0_notAfter %xdefine X509_get0_notBefore BORINGSSL_PREFIX %+ _X509_get0_notBefore +%xdefine X509_get0_pubkey BORINGSSL_PREFIX %+ _X509_get0_pubkey %xdefine X509_get0_pubkey_bitstr BORINGSSL_PREFIX %+ _X509_get0_pubkey_bitstr %xdefine X509_get0_serialNumber BORINGSSL_PREFIX %+ _X509_get0_serialNumber %xdefine X509_get0_signature BORINGSSL_PREFIX %+ _X509_get0_signature @@ -5800,6 +6454,7 @@ %xdefine X509_get_pathlen BORINGSSL_PREFIX %+ _X509_get_pathlen %xdefine X509_get_pubkey BORINGSSL_PREFIX %+ _X509_get_pubkey %xdefine X509_get_serialNumber BORINGSSL_PREFIX %+ _X509_get_serialNumber +%xdefine X509_get_signature_info BORINGSSL_PREFIX %+ _X509_get_signature_info %xdefine X509_get_signature_nid BORINGSSL_PREFIX %+ _X509_get_signature_nid %xdefine X509_get_subject_name BORINGSSL_PREFIX %+ _X509_get_subject_name %xdefine X509_get_version BORINGSSL_PREFIX %+ _X509_get_version @@ -5851,15 +6506,6 @@ %xdefine X509_verify BORINGSSL_PREFIX %+ _X509_verify %xdefine X509_verify_cert BORINGSSL_PREFIX %+ _X509_verify_cert %xdefine X509_verify_cert_error_string BORINGSSL_PREFIX %+ _X509_verify_cert_error_string -%xdefine X509at_add1_attr BORINGSSL_PREFIX %+ _X509at_add1_attr -%xdefine X509at_add1_attr_by_NID BORINGSSL_PREFIX %+ _X509at_add1_attr_by_NID -%xdefine X509at_add1_attr_by_OBJ BORINGSSL_PREFIX %+ _X509at_add1_attr_by_OBJ -%xdefine X509at_add1_attr_by_txt BORINGSSL_PREFIX %+ _X509at_add1_attr_by_txt -%xdefine X509at_delete_attr BORINGSSL_PREFIX %+ _X509at_delete_attr -%xdefine X509at_get_attr BORINGSSL_PREFIX %+ _X509at_get_attr -%xdefine X509at_get_attr_by_NID BORINGSSL_PREFIX %+ _X509at_get_attr_by_NID -%xdefine X509at_get_attr_by_OBJ BORINGSSL_PREFIX %+ _X509at_get_attr_by_OBJ -%xdefine X509at_get_attr_count BORINGSSL_PREFIX %+ _X509at_get_attr_count %xdefine X509v3_add_ext BORINGSSL_PREFIX %+ _X509v3_add_ext %xdefine X509v3_delete_ext BORINGSSL_PREFIX %+ _X509v3_delete_ext %xdefine X509v3_get_ext BORINGSSL_PREFIX %+ _X509v3_get_ext @@ -5867,7 +6513,6 @@ %xdefine X509v3_get_ext_by_OBJ BORINGSSL_PREFIX %+ _X509v3_get_ext_by_OBJ %xdefine X509v3_get_ext_by_critical BORINGSSL_PREFIX %+ _X509v3_get_ext_by_critical %xdefine X509v3_get_ext_count BORINGSSL_PREFIX %+ _X509v3_get_ext_count -%xdefine a2i_GENERAL_NAME BORINGSSL_PREFIX %+ _a2i_GENERAL_NAME %xdefine a2i_IPADDRESS BORINGSSL_PREFIX %+ _a2i_IPADDRESS %xdefine a2i_IPADDRESS_NC BORINGSSL_PREFIX %+ _a2i_IPADDRESS_NC %xdefine abi_test_bad_unwind_temporary BORINGSSL_PREFIX %+ _abi_test_bad_unwind_temporary @@ -6006,7 +6651,9 @@ %xdefine aes_hw_set_encrypt_key BORINGSSL_PREFIX %+ _aes_hw_set_encrypt_key %xdefine aes_hw_xts_cipher BORINGSSL_PREFIX %+ _aes_hw_xts_cipher %xdefine aes_hw_xts_decrypt BORINGSSL_PREFIX %+ _aes_hw_xts_decrypt +%xdefine aes_hw_xts_decrypt_avx512 BORINGSSL_PREFIX %+ _aes_hw_xts_decrypt_avx512 %xdefine aes_hw_xts_encrypt BORINGSSL_PREFIX %+ _aes_hw_xts_encrypt +%xdefine aes_hw_xts_encrypt_avx512 BORINGSSL_PREFIX %+ _aes_hw_xts_encrypt_avx512 %xdefine aes_nohw_cbc_encrypt BORINGSSL_PREFIX %+ _aes_nohw_cbc_encrypt %xdefine aes_nohw_ctr32_encrypt_blocks BORINGSSL_PREFIX %+ _aes_nohw_ctr32_encrypt_blocks %xdefine aes_nohw_decrypt BORINGSSL_PREFIX %+ _aes_nohw_decrypt @@ -6027,6 +6674,11 @@ %xdefine aesv8_gcm_8x_enc_128 BORINGSSL_PREFIX %+ _aesv8_gcm_8x_enc_128 %xdefine aesv8_gcm_8x_enc_192 BORINGSSL_PREFIX %+ _aesv8_gcm_8x_enc_192 %xdefine aesv8_gcm_8x_enc_256 BORINGSSL_PREFIX %+ _aesv8_gcm_8x_enc_256 +%xdefine armv8_disable_dit BORINGSSL_PREFIX %+ _armv8_disable_dit +%xdefine armv8_enable_dit BORINGSSL_PREFIX %+ _armv8_enable_dit +%xdefine armv8_get_dit BORINGSSL_PREFIX %+ _armv8_get_dit +%xdefine armv8_restore_dit BORINGSSL_PREFIX %+ _armv8_restore_dit +%xdefine armv8_set_dit BORINGSSL_PREFIX %+ _armv8_set_dit %xdefine asn1_bit_string_length BORINGSSL_PREFIX %+ _asn1_bit_string_length %xdefine asn1_do_adb BORINGSSL_PREFIX %+ _asn1_do_adb %xdefine asn1_enc_free BORINGSSL_PREFIX %+ _asn1_enc_free @@ -6034,6 +6686,8 @@ %xdefine asn1_enc_restore BORINGSSL_PREFIX %+ _asn1_enc_restore %xdefine asn1_enc_save BORINGSSL_PREFIX %+ _asn1_enc_save %xdefine asn1_encoding_clear BORINGSSL_PREFIX %+ _asn1_encoding_clear +%xdefine asn1_evp_pkey_methods BORINGSSL_PREFIX %+ _asn1_evp_pkey_methods +%xdefine asn1_evp_pkey_methods_size BORINGSSL_PREFIX %+ _asn1_evp_pkey_methods_size %xdefine asn1_generalizedtime_to_tm BORINGSSL_PREFIX %+ _asn1_generalizedtime_to_tm %xdefine asn1_get_choice_selector BORINGSSL_PREFIX %+ _asn1_get_choice_selector %xdefine asn1_get_field_ptr BORINGSSL_PREFIX %+ _asn1_get_field_ptr @@ -6043,18 +6697,23 @@ %xdefine asn1_refcount_dec_and_test_zero BORINGSSL_PREFIX %+ _asn1_refcount_dec_and_test_zero %xdefine asn1_refcount_set_one BORINGSSL_PREFIX %+ _asn1_refcount_set_one %xdefine asn1_set_choice_selector BORINGSSL_PREFIX %+ _asn1_set_choice_selector +%xdefine asn1_type_cleanup BORINGSSL_PREFIX %+ _asn1_type_cleanup +%xdefine asn1_type_set0_string BORINGSSL_PREFIX %+ _asn1_type_set0_string %xdefine asn1_type_value_as_pointer BORINGSSL_PREFIX %+ _asn1_type_value_as_pointer %xdefine asn1_utctime_to_tm BORINGSSL_PREFIX %+ _asn1_utctime_to_tm %xdefine awslc_api_version_num BORINGSSL_PREFIX %+ _awslc_api_version_num %xdefine awslc_version_string BORINGSSL_PREFIX %+ _awslc_version_string %xdefine beeu_mod_inverse_vartime BORINGSSL_PREFIX %+ _beeu_mod_inverse_vartime %xdefine bio_clear_socket_error BORINGSSL_PREFIX %+ _bio_clear_socket_error -%xdefine bio_fd_should_retry BORINGSSL_PREFIX %+ _bio_fd_should_retry +%xdefine bio_errno_should_retry BORINGSSL_PREFIX %+ _bio_errno_should_retry %xdefine bio_ip_and_port_to_socket_and_addr BORINGSSL_PREFIX %+ _bio_ip_and_port_to_socket_and_addr %xdefine bio_sock_error BORINGSSL_PREFIX %+ _bio_sock_error %xdefine bio_socket_nbio BORINGSSL_PREFIX %+ _bio_socket_nbio +%xdefine bio_socket_should_retry BORINGSSL_PREFIX %+ _bio_socket_should_retry %xdefine bn_abs_sub_consttime BORINGSSL_PREFIX %+ _bn_abs_sub_consttime %xdefine bn_add_words BORINGSSL_PREFIX %+ _bn_add_words +%xdefine bn_assert_fits_in_bytes BORINGSSL_PREFIX %+ _bn_assert_fits_in_bytes +%xdefine bn_big_endian_to_words BORINGSSL_PREFIX %+ _bn_big_endian_to_words %xdefine bn_copy_words BORINGSSL_PREFIX %+ _bn_copy_words %xdefine bn_div_consttime BORINGSSL_PREFIX %+ _bn_div_consttime %xdefine bn_expand BORINGSSL_PREFIX %+ _bn_expand @@ -6068,12 +6727,12 @@ %xdefine bn_lcm_consttime BORINGSSL_PREFIX %+ _bn_lcm_consttime %xdefine bn_less_than_montgomery_R BORINGSSL_PREFIX %+ _bn_less_than_montgomery_R %xdefine bn_less_than_words BORINGSSL_PREFIX %+ _bn_less_than_words +%xdefine bn_little_endian_to_words BORINGSSL_PREFIX %+ _bn_little_endian_to_words %xdefine bn_miller_rabin_init BORINGSSL_PREFIX %+ _bn_miller_rabin_init %xdefine bn_miller_rabin_iteration BORINGSSL_PREFIX %+ _bn_miller_rabin_iteration %xdefine bn_minimal_width BORINGSSL_PREFIX %+ _bn_minimal_width %xdefine bn_mod_add_consttime BORINGSSL_PREFIX %+ _bn_mod_add_consttime %xdefine bn_mod_add_words BORINGSSL_PREFIX %+ _bn_mod_add_words -%xdefine bn_mod_exp_base_2_consttime BORINGSSL_PREFIX %+ _bn_mod_exp_base_2_consttime %xdefine bn_mod_exp_mont_small BORINGSSL_PREFIX %+ _bn_mod_exp_mont_small %xdefine bn_mod_inverse0_prime_mont_small BORINGSSL_PREFIX %+ _bn_mod_inverse0_prime_mont_small %xdefine bn_mod_inverse_consttime BORINGSSL_PREFIX %+ _bn_mod_inverse_consttime @@ -6085,15 +6744,21 @@ %xdefine bn_mod_sub_consttime BORINGSSL_PREFIX %+ _bn_mod_sub_consttime %xdefine bn_mod_sub_words BORINGSSL_PREFIX %+ _bn_mod_sub_words %xdefine bn_mod_u16_consttime BORINGSSL_PREFIX %+ _bn_mod_u16_consttime +%xdefine bn_mont_ctx_cleanup BORINGSSL_PREFIX %+ _bn_mont_ctx_cleanup +%xdefine bn_mont_ctx_init BORINGSSL_PREFIX %+ _bn_mont_ctx_init +%xdefine bn_mont_ctx_set_RR_consttime BORINGSSL_PREFIX %+ _bn_mont_ctx_set_RR_consttime %xdefine bn_mont_n0 BORINGSSL_PREFIX %+ _bn_mont_n0 +%xdefine bn_mul4x_mont BORINGSSL_PREFIX %+ _bn_mul4x_mont %xdefine bn_mul_add_words BORINGSSL_PREFIX %+ _bn_mul_add_words %xdefine bn_mul_comba4 BORINGSSL_PREFIX %+ _bn_mul_comba4 %xdefine bn_mul_comba8 BORINGSSL_PREFIX %+ _bn_mul_comba8 %xdefine bn_mul_consttime BORINGSSL_PREFIX %+ _bn_mul_consttime %xdefine bn_mul_mont BORINGSSL_PREFIX %+ _bn_mul_mont %xdefine bn_mul_mont_gather5 BORINGSSL_PREFIX %+ _bn_mul_mont_gather5 +%xdefine bn_mul_mont_nohw BORINGSSL_PREFIX %+ _bn_mul_mont_nohw %xdefine bn_mul_small BORINGSSL_PREFIX %+ _bn_mul_small %xdefine bn_mul_words BORINGSSL_PREFIX %+ _bn_mul_words +%xdefine bn_mulx4x_mont BORINGSSL_PREFIX %+ _bn_mulx4x_mont %xdefine bn_odd_number_is_obviously_composite BORINGSSL_PREFIX %+ _bn_odd_number_is_obviously_composite %xdefine bn_one_to_montgomery BORINGSSL_PREFIX %+ _bn_one_to_montgomery %xdefine bn_power5 BORINGSSL_PREFIX %+ _bn_power5 @@ -6111,6 +6776,7 @@ %xdefine bn_set_static_words BORINGSSL_PREFIX %+ _bn_set_static_words %xdefine bn_set_words BORINGSSL_PREFIX %+ _bn_set_words %xdefine bn_sqr8x_internal BORINGSSL_PREFIX %+ _bn_sqr8x_internal +%xdefine bn_sqr8x_mont BORINGSSL_PREFIX %+ _bn_sqr8x_mont %xdefine bn_sqr_comba4 BORINGSSL_PREFIX %+ _bn_sqr_comba4 %xdefine bn_sqr_comba8 BORINGSSL_PREFIX %+ _bn_sqr_comba8 %xdefine bn_sqr_consttime BORINGSSL_PREFIX %+ _bn_sqr_consttime @@ -6122,8 +6788,12 @@ %xdefine bn_uadd_consttime BORINGSSL_PREFIX %+ _bn_uadd_consttime %xdefine bn_usub_consttime BORINGSSL_PREFIX %+ _bn_usub_consttime %xdefine bn_wexpand BORINGSSL_PREFIX %+ _bn_wexpand +%xdefine bn_words_to_big_endian BORINGSSL_PREFIX %+ _bn_words_to_big_endian +%xdefine bn_words_to_little_endian BORINGSSL_PREFIX %+ _bn_words_to_little_endian %xdefine boringssl_ensure_ecc_self_test BORINGSSL_PREFIX %+ _boringssl_ensure_ecc_self_test +%xdefine boringssl_ensure_eddsa_self_test BORINGSSL_PREFIX %+ _boringssl_ensure_eddsa_self_test %xdefine boringssl_ensure_ffdh_self_test BORINGSSL_PREFIX %+ _boringssl_ensure_ffdh_self_test +%xdefine boringssl_ensure_ml_kem_self_test BORINGSSL_PREFIX %+ _boringssl_ensure_ml_kem_self_test %xdefine boringssl_ensure_rsa_self_test BORINGSSL_PREFIX %+ _boringssl_ensure_rsa_self_test %xdefine boringssl_self_test_hmac_sha256 BORINGSSL_PREFIX %+ _boringssl_self_test_hmac_sha256 %xdefine boringssl_self_test_sha256 BORINGSSL_PREFIX %+ _boringssl_self_test_sha256 @@ -6189,6 +6859,8 @@ %xdefine d2i_DSA_SIG BORINGSSL_PREFIX %+ _d2i_DSA_SIG %xdefine d2i_DSAparams BORINGSSL_PREFIX %+ _d2i_DSAparams %xdefine d2i_ECDSA_SIG BORINGSSL_PREFIX %+ _d2i_ECDSA_SIG +%xdefine d2i_ECPKParameters BORINGSSL_PREFIX %+ _d2i_ECPKParameters +%xdefine d2i_ECPKParameters_bio BORINGSSL_PREFIX %+ _d2i_ECPKParameters_bio %xdefine d2i_ECParameters BORINGSSL_PREFIX %+ _d2i_ECParameters %xdefine d2i_ECPrivateKey BORINGSSL_PREFIX %+ _d2i_ECPrivateKey %xdefine d2i_ECPrivateKey_bio BORINGSSL_PREFIX %+ _d2i_ECPrivateKey_bio @@ -6196,7 +6868,6 @@ %xdefine d2i_EC_PUBKEY BORINGSSL_PREFIX %+ _d2i_EC_PUBKEY %xdefine d2i_EC_PUBKEY_bio BORINGSSL_PREFIX %+ _d2i_EC_PUBKEY_bio %xdefine d2i_EC_PUBKEY_fp BORINGSSL_PREFIX %+ _d2i_EC_PUBKEY_fp -%xdefine d2i_EDIPARTYNAME BORINGSSL_PREFIX %+ _d2i_EDIPARTYNAME %xdefine d2i_EXTENDED_KEY_USAGE BORINGSSL_PREFIX %+ _d2i_EXTENDED_KEY_USAGE %xdefine d2i_GENERAL_NAME BORINGSSL_PREFIX %+ _d2i_GENERAL_NAME %xdefine d2i_GENERAL_NAMES BORINGSSL_PREFIX %+ _d2i_GENERAL_NAMES @@ -6206,18 +6877,30 @@ %xdefine d2i_NOTICEREF BORINGSSL_PREFIX %+ _d2i_NOTICEREF %xdefine d2i_OCSP_BASICRESP BORINGSSL_PREFIX %+ _d2i_OCSP_BASICRESP %xdefine d2i_OCSP_CERTID BORINGSSL_PREFIX %+ _d2i_OCSP_CERTID -%xdefine d2i_OCSP_CERTSTATUS BORINGSSL_PREFIX %+ _d2i_OCSP_CERTSTATUS +%xdefine d2i_OCSP_ONEREQ BORINGSSL_PREFIX %+ _d2i_OCSP_ONEREQ +%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_RESPID BORINGSSL_PREFIX %+ _d2i_OCSP_RESPID %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_OTHERNAME BORINGSSL_PREFIX %+ _d2i_OTHERNAME %xdefine d2i_PKCS12 BORINGSSL_PREFIX %+ _d2i_PKCS12 %xdefine d2i_PKCS12_bio BORINGSSL_PREFIX %+ _d2i_PKCS12_bio %xdefine d2i_PKCS12_fp BORINGSSL_PREFIX %+ _d2i_PKCS12_fp %xdefine d2i_PKCS7 BORINGSSL_PREFIX %+ _d2i_PKCS7 +%xdefine d2i_PKCS7_DIGEST BORINGSSL_PREFIX %+ _d2i_PKCS7_DIGEST +%xdefine d2i_PKCS7_ENCRYPT BORINGSSL_PREFIX %+ _d2i_PKCS7_ENCRYPT +%xdefine d2i_PKCS7_ENC_CONTENT BORINGSSL_PREFIX %+ _d2i_PKCS7_ENC_CONTENT +%xdefine d2i_PKCS7_ENVELOPE BORINGSSL_PREFIX %+ _d2i_PKCS7_ENVELOPE +%xdefine d2i_PKCS7_ISSUER_AND_SERIAL BORINGSSL_PREFIX %+ _d2i_PKCS7_ISSUER_AND_SERIAL +%xdefine d2i_PKCS7_RECIP_INFO BORINGSSL_PREFIX %+ _d2i_PKCS7_RECIP_INFO +%xdefine d2i_PKCS7_SIGNED BORINGSSL_PREFIX %+ _d2i_PKCS7_SIGNED +%xdefine d2i_PKCS7_SIGNER_INFO BORINGSSL_PREFIX %+ _d2i_PKCS7_SIGNER_INFO +%xdefine d2i_PKCS7_SIGN_ENVELOPE BORINGSSL_PREFIX %+ _d2i_PKCS7_SIGN_ENVELOPE %xdefine d2i_PKCS7_bio BORINGSSL_PREFIX %+ _d2i_PKCS7_bio %xdefine d2i_PKCS8PrivateKey_bio BORINGSSL_PREFIX %+ _d2i_PKCS8PrivateKey_bio %xdefine d2i_PKCS8PrivateKey_fp BORINGSSL_PREFIX %+ _d2i_PKCS8PrivateKey_fp @@ -6228,8 +6911,6 @@ %xdefine d2i_PKCS8_fp BORINGSSL_PREFIX %+ _d2i_PKCS8_fp %xdefine d2i_POLICYINFO BORINGSSL_PREFIX %+ _d2i_POLICYINFO %xdefine d2i_POLICYQUALINFO BORINGSSL_PREFIX %+ _d2i_POLICYQUALINFO -%xdefine d2i_PROXY_CERT_INFO_EXTENSION BORINGSSL_PREFIX %+ _d2i_PROXY_CERT_INFO_EXTENSION -%xdefine d2i_PROXY_POLICY BORINGSSL_PREFIX %+ _d2i_PROXY_POLICY %xdefine d2i_PUBKEY BORINGSSL_PREFIX %+ _d2i_PUBKEY %xdefine d2i_PUBKEY_bio BORINGSSL_PREFIX %+ _d2i_PUBKEY_bio %xdefine d2i_PUBKEY_fp BORINGSSL_PREFIX %+ _d2i_PUBKEY_fp @@ -6272,18 +6953,20 @@ %xdefine d2i_X509_VAL BORINGSSL_PREFIX %+ _d2i_X509_VAL %xdefine d2i_X509_bio BORINGSSL_PREFIX %+ _d2i_X509_bio %xdefine d2i_X509_fp BORINGSSL_PREFIX %+ _d2i_X509_fp +%xdefine dh_asn1_meth BORINGSSL_PREFIX %+ _dh_asn1_meth +%xdefine dh_check_params_fast BORINGSSL_PREFIX %+ _dh_check_params_fast %xdefine dh_compute_key_padded_no_self_test BORINGSSL_PREFIX %+ _dh_compute_key_padded_no_self_test +%xdefine dh_pkey_meth BORINGSSL_PREFIX %+ _dh_pkey_meth %xdefine dsa_asn1_meth BORINGSSL_PREFIX %+ _dsa_asn1_meth -%xdefine dsa_check_parameters BORINGSSL_PREFIX %+ _dsa_check_parameters +%xdefine dsa_check_key BORINGSSL_PREFIX %+ _dsa_check_key %xdefine ec_GFp_mont_add BORINGSSL_PREFIX %+ _ec_GFp_mont_add %xdefine ec_GFp_mont_dbl BORINGSSL_PREFIX %+ _ec_GFp_mont_dbl +%xdefine ec_GFp_mont_felem_exp BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_exp %xdefine ec_GFp_mont_felem_from_bytes BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_from_bytes %xdefine ec_GFp_mont_felem_mul BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_mul +%xdefine ec_GFp_mont_felem_reduce BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_reduce %xdefine ec_GFp_mont_felem_sqr BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_sqr %xdefine ec_GFp_mont_felem_to_bytes BORINGSSL_PREFIX %+ _ec_GFp_mont_felem_to_bytes -%xdefine ec_GFp_mont_group_finish BORINGSSL_PREFIX %+ _ec_GFp_mont_group_finish -%xdefine ec_GFp_mont_group_init BORINGSSL_PREFIX %+ _ec_GFp_mont_group_init -%xdefine ec_GFp_mont_group_set_curve BORINGSSL_PREFIX %+ _ec_GFp_mont_group_set_curve %xdefine ec_GFp_mont_init_precomp BORINGSSL_PREFIX %+ _ec_GFp_mont_init_precomp %xdefine ec_GFp_mont_mul BORINGSSL_PREFIX %+ _ec_GFp_mont_mul %xdefine ec_GFp_mont_mul_base BORINGSSL_PREFIX %+ _ec_GFp_mont_mul_base @@ -6294,9 +6977,7 @@ %xdefine ec_GFp_simple_cmp_x_coordinate BORINGSSL_PREFIX %+ _ec_GFp_simple_cmp_x_coordinate %xdefine ec_GFp_simple_felem_from_bytes BORINGSSL_PREFIX %+ _ec_GFp_simple_felem_from_bytes %xdefine ec_GFp_simple_felem_to_bytes BORINGSSL_PREFIX %+ _ec_GFp_simple_felem_to_bytes -%xdefine ec_GFp_simple_group_finish BORINGSSL_PREFIX %+ _ec_GFp_simple_group_finish %xdefine ec_GFp_simple_group_get_curve BORINGSSL_PREFIX %+ _ec_GFp_simple_group_get_curve -%xdefine ec_GFp_simple_group_init BORINGSSL_PREFIX %+ _ec_GFp_simple_group_init %xdefine ec_GFp_simple_group_set_curve BORINGSSL_PREFIX %+ _ec_GFp_simple_group_set_curve %xdefine ec_GFp_simple_invert BORINGSSL_PREFIX %+ _ec_GFp_simple_invert %xdefine ec_GFp_simple_is_at_infinity BORINGSSL_PREFIX %+ _ec_GFp_simple_is_at_infinity @@ -6318,18 +6999,24 @@ %xdefine ec_felem_from_bytes BORINGSSL_PREFIX %+ _ec_felem_from_bytes %xdefine ec_felem_neg BORINGSSL_PREFIX %+ _ec_felem_neg %xdefine ec_felem_non_zero_mask BORINGSSL_PREFIX %+ _ec_felem_non_zero_mask +%xdefine ec_felem_one BORINGSSL_PREFIX %+ _ec_felem_one %xdefine ec_felem_select BORINGSSL_PREFIX %+ _ec_felem_select %xdefine ec_felem_sub BORINGSSL_PREFIX %+ _ec_felem_sub %xdefine ec_felem_to_bignum BORINGSSL_PREFIX %+ _ec_felem_to_bignum %xdefine ec_felem_to_bytes BORINGSSL_PREFIX %+ _ec_felem_to_bytes %xdefine ec_get_x_coordinate_as_bytes BORINGSSL_PREFIX %+ _ec_get_x_coordinate_as_bytes %xdefine ec_get_x_coordinate_as_scalar BORINGSSL_PREFIX %+ _ec_get_x_coordinate_as_scalar -%xdefine ec_group_new BORINGSSL_PREFIX %+ _ec_group_new +%xdefine ec_hash_to_curve_p256_xmd_sha256_sswu BORINGSSL_PREFIX %+ _ec_hash_to_curve_p256_xmd_sha256_sswu +%xdefine ec_hash_to_curve_p384_xmd_sha384_sswu BORINGSSL_PREFIX %+ _ec_hash_to_curve_p384_xmd_sha384_sswu %xdefine ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 BORINGSSL_PREFIX %+ _ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +%xdefine ec_hash_to_scalar_p384_xmd_sha384 BORINGSSL_PREFIX %+ _ec_hash_to_scalar_p384_xmd_sha384 %xdefine ec_hash_to_scalar_p384_xmd_sha512_draft07 BORINGSSL_PREFIX %+ _ec_hash_to_scalar_p384_xmd_sha512_draft07 %xdefine ec_init_precomp BORINGSSL_PREFIX %+ _ec_init_precomp %xdefine ec_jacobian_to_affine BORINGSSL_PREFIX %+ _ec_jacobian_to_affine %xdefine ec_jacobian_to_affine_batch BORINGSSL_PREFIX %+ _ec_jacobian_to_affine_batch +%xdefine ec_nistp_point_add BORINGSSL_PREFIX %+ _ec_nistp_point_add +%xdefine ec_nistp_point_double BORINGSSL_PREFIX %+ _ec_nistp_point_double +%xdefine ec_nistp_scalar_mul BORINGSSL_PREFIX %+ _ec_nistp_scalar_mul %xdefine ec_point_byte_len BORINGSSL_PREFIX %+ _ec_point_byte_len %xdefine ec_point_from_uncompressed BORINGSSL_PREFIX %+ _ec_point_from_uncompressed %xdefine ec_point_mul_no_self_test BORINGSSL_PREFIX %+ _ec_point_mul_no_self_test @@ -6381,7 +7068,19 @@ %xdefine ecp_nistz256_sqr_mont BORINGSSL_PREFIX %+ _ecp_nistz256_sqr_mont %xdefine ecp_nistz256_sub BORINGSSL_PREFIX %+ _ecp_nistz256_sub %xdefine ed25519_asn1_meth BORINGSSL_PREFIX %+ _ed25519_asn1_meth -%xdefine ed25519_pkey_meth BORINGSSL_PREFIX %+ _ed25519_pkey_meth +%xdefine ed25519_check_public_key_nohw BORINGSSL_PREFIX %+ _ed25519_check_public_key_nohw +%xdefine ed25519_check_public_key_s2n_bignum BORINGSSL_PREFIX %+ _ed25519_check_public_key_s2n_bignum +%xdefine ed25519_public_key_from_hashed_seed_nohw BORINGSSL_PREFIX %+ _ed25519_public_key_from_hashed_seed_nohw +%xdefine ed25519_public_key_from_hashed_seed_s2n_bignum BORINGSSL_PREFIX %+ _ed25519_public_key_from_hashed_seed_s2n_bignum +%xdefine ed25519_sha512 BORINGSSL_PREFIX %+ _ed25519_sha512 +%xdefine ed25519_sign_nohw BORINGSSL_PREFIX %+ _ed25519_sign_nohw +%xdefine ed25519_sign_s2n_bignum BORINGSSL_PREFIX %+ _ed25519_sign_s2n_bignum +%xdefine ed25519_verify_nohw BORINGSSL_PREFIX %+ _ed25519_verify_nohw +%xdefine ed25519_verify_s2n_bignum BORINGSSL_PREFIX %+ _ed25519_verify_s2n_bignum +%xdefine evp_pkey_set_method BORINGSSL_PREFIX %+ _evp_pkey_set_method +%xdefine extract_multiplier_2x20_win5 BORINGSSL_PREFIX %+ _extract_multiplier_2x20_win5 +%xdefine extract_multiplier_2x30_win5 BORINGSSL_PREFIX %+ _extract_multiplier_2x30_win5 +%xdefine extract_multiplier_2x40_win5 BORINGSSL_PREFIX %+ _extract_multiplier_2x40_win5 %xdefine gcm_ghash_avx BORINGSSL_PREFIX %+ _gcm_ghash_avx %xdefine gcm_ghash_avx512 BORINGSSL_PREFIX %+ _gcm_ghash_avx512 %xdefine gcm_ghash_clmul BORINGSSL_PREFIX %+ _gcm_ghash_clmul @@ -6404,7 +7103,11 @@ %xdefine gcm_init_ssse3 BORINGSSL_PREFIX %+ _gcm_init_ssse3 %xdefine gcm_init_v8 BORINGSSL_PREFIX %+ _gcm_init_v8 %xdefine gcm_setiv_avx512 BORINGSSL_PREFIX %+ _gcm_setiv_avx512 -%xdefine i2a_ACCESS_DESCRIPTION BORINGSSL_PREFIX %+ _i2a_ACCESS_DESCRIPTION +%xdefine get_legacy_kem_kyber1024_r3 BORINGSSL_PREFIX %+ _get_legacy_kem_kyber1024_r3 +%xdefine get_legacy_kem_kyber512_r3 BORINGSSL_PREFIX %+ _get_legacy_kem_kyber512_r3 +%xdefine get_legacy_kem_kyber768_r3 BORINGSSL_PREFIX %+ _get_legacy_kem_kyber768_r3 +%xdefine handle_cpu_env BORINGSSL_PREFIX %+ _handle_cpu_env +%xdefine hmac_asn1_meth BORINGSSL_PREFIX %+ _hmac_asn1_meth %xdefine i2a_ASN1_ENUMERATED BORINGSSL_PREFIX %+ _i2a_ASN1_ENUMERATED %xdefine i2a_ASN1_INTEGER BORINGSSL_PREFIX %+ _i2a_ASN1_INTEGER %xdefine i2a_ASN1_OBJECT BORINGSSL_PREFIX %+ _i2a_ASN1_OBJECT @@ -6455,6 +7158,8 @@ %xdefine i2d_DSA_SIG BORINGSSL_PREFIX %+ _i2d_DSA_SIG %xdefine i2d_DSAparams BORINGSSL_PREFIX %+ _i2d_DSAparams %xdefine i2d_ECDSA_SIG BORINGSSL_PREFIX %+ _i2d_ECDSA_SIG +%xdefine i2d_ECPKParameters BORINGSSL_PREFIX %+ _i2d_ECPKParameters +%xdefine i2d_ECPKParameters_bio BORINGSSL_PREFIX %+ _i2d_ECPKParameters_bio %xdefine i2d_ECParameters BORINGSSL_PREFIX %+ _i2d_ECParameters %xdefine i2d_ECPrivateKey BORINGSSL_PREFIX %+ _i2d_ECPrivateKey %xdefine i2d_ECPrivateKey_bio BORINGSSL_PREFIX %+ _i2d_ECPrivateKey_bio @@ -6462,7 +7167,6 @@ %xdefine i2d_EC_PUBKEY BORINGSSL_PREFIX %+ _i2d_EC_PUBKEY %xdefine i2d_EC_PUBKEY_bio BORINGSSL_PREFIX %+ _i2d_EC_PUBKEY_bio %xdefine i2d_EC_PUBKEY_fp BORINGSSL_PREFIX %+ _i2d_EC_PUBKEY_fp -%xdefine i2d_EDIPARTYNAME BORINGSSL_PREFIX %+ _i2d_EDIPARTYNAME %xdefine i2d_EXTENDED_KEY_USAGE BORINGSSL_PREFIX %+ _i2d_EXTENDED_KEY_USAGE %xdefine i2d_GENERAL_NAME BORINGSSL_PREFIX %+ _i2d_GENERAL_NAME %xdefine i2d_GENERAL_NAMES BORINGSSL_PREFIX %+ _i2d_GENERAL_NAMES @@ -6472,18 +7176,30 @@ %xdefine i2d_NOTICEREF BORINGSSL_PREFIX %+ _i2d_NOTICEREF %xdefine i2d_OCSP_BASICRESP BORINGSSL_PREFIX %+ _i2d_OCSP_BASICRESP %xdefine i2d_OCSP_CERTID BORINGSSL_PREFIX %+ _i2d_OCSP_CERTID -%xdefine i2d_OCSP_CERTSTATUS BORINGSSL_PREFIX %+ _i2d_OCSP_CERTSTATUS +%xdefine i2d_OCSP_ONEREQ BORINGSSL_PREFIX %+ _i2d_OCSP_ONEREQ +%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_RESPID BORINGSSL_PREFIX %+ _i2d_OCSP_RESPID %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_OTHERNAME BORINGSSL_PREFIX %+ _i2d_OTHERNAME %xdefine i2d_PKCS12 BORINGSSL_PREFIX %+ _i2d_PKCS12 %xdefine i2d_PKCS12_bio BORINGSSL_PREFIX %+ _i2d_PKCS12_bio %xdefine i2d_PKCS12_fp BORINGSSL_PREFIX %+ _i2d_PKCS12_fp %xdefine i2d_PKCS7 BORINGSSL_PREFIX %+ _i2d_PKCS7 +%xdefine i2d_PKCS7_DIGEST BORINGSSL_PREFIX %+ _i2d_PKCS7_DIGEST +%xdefine i2d_PKCS7_ENCRYPT BORINGSSL_PREFIX %+ _i2d_PKCS7_ENCRYPT +%xdefine i2d_PKCS7_ENC_CONTENT BORINGSSL_PREFIX %+ _i2d_PKCS7_ENC_CONTENT +%xdefine i2d_PKCS7_ENVELOPE BORINGSSL_PREFIX %+ _i2d_PKCS7_ENVELOPE +%xdefine i2d_PKCS7_ISSUER_AND_SERIAL BORINGSSL_PREFIX %+ _i2d_PKCS7_ISSUER_AND_SERIAL +%xdefine i2d_PKCS7_RECIP_INFO BORINGSSL_PREFIX %+ _i2d_PKCS7_RECIP_INFO +%xdefine i2d_PKCS7_SIGNED BORINGSSL_PREFIX %+ _i2d_PKCS7_SIGNED +%xdefine i2d_PKCS7_SIGNER_INFO BORINGSSL_PREFIX %+ _i2d_PKCS7_SIGNER_INFO +%xdefine i2d_PKCS7_SIGN_ENVELOPE BORINGSSL_PREFIX %+ _i2d_PKCS7_SIGN_ENVELOPE %xdefine i2d_PKCS7_bio BORINGSSL_PREFIX %+ _i2d_PKCS7_bio %xdefine i2d_PKCS8PrivateKeyInfo_bio BORINGSSL_PREFIX %+ _i2d_PKCS8PrivateKeyInfo_bio %xdefine i2d_PKCS8PrivateKeyInfo_fp BORINGSSL_PREFIX %+ _i2d_PKCS8PrivateKeyInfo_fp @@ -6498,8 +7214,6 @@ %xdefine i2d_PKCS8_fp BORINGSSL_PREFIX %+ _i2d_PKCS8_fp %xdefine i2d_POLICYINFO BORINGSSL_PREFIX %+ _i2d_POLICYINFO %xdefine i2d_POLICYQUALINFO BORINGSSL_PREFIX %+ _i2d_POLICYQUALINFO -%xdefine i2d_PROXY_CERT_INFO_EXTENSION BORINGSSL_PREFIX %+ _i2d_PROXY_CERT_INFO_EXTENSION -%xdefine i2d_PROXY_POLICY BORINGSSL_PREFIX %+ _i2d_PROXY_POLICY %xdefine i2d_PUBKEY BORINGSSL_PREFIX %+ _i2d_PUBKEY %xdefine i2d_PUBKEY_bio BORINGSSL_PREFIX %+ _i2d_PUBKEY_bio %xdefine i2d_PUBKEY_fp BORINGSSL_PREFIX %+ _i2d_PUBKEY_fp @@ -6555,52 +7269,87 @@ %xdefine i2v_GENERAL_NAME BORINGSSL_PREFIX %+ _i2v_GENERAL_NAME %xdefine i2v_GENERAL_NAMES BORINGSSL_PREFIX %+ _i2v_GENERAL_NAMES %xdefine is_fips_build BORINGSSL_PREFIX %+ _is_fips_build -%xdefine jent_apt_init BORINGSSL_PREFIX %+ _jent_apt_init -%xdefine jent_entropy_collector_alloc BORINGSSL_PREFIX %+ _jent_entropy_collector_alloc -%xdefine jent_entropy_collector_free BORINGSSL_PREFIX %+ _jent_entropy_collector_free -%xdefine jent_entropy_init BORINGSSL_PREFIX %+ _jent_entropy_init -%xdefine jent_entropy_init_ex BORINGSSL_PREFIX %+ _jent_entropy_init_ex -%xdefine jent_entropy_switch_notime_impl BORINGSSL_PREFIX %+ _jent_entropy_switch_notime_impl -%xdefine jent_gcd_analyze BORINGSSL_PREFIX %+ _jent_gcd_analyze -%xdefine jent_gcd_fini BORINGSSL_PREFIX %+ _jent_gcd_fini -%xdefine jent_gcd_get BORINGSSL_PREFIX %+ _jent_gcd_get -%xdefine jent_gcd_init BORINGSSL_PREFIX %+ _jent_gcd_init -%xdefine jent_gcd_selftest BORINGSSL_PREFIX %+ _jent_gcd_selftest -%xdefine jent_health_cb_block_switch BORINGSSL_PREFIX %+ _jent_health_cb_block_switch -%xdefine jent_health_failure BORINGSSL_PREFIX %+ _jent_health_failure -%xdefine jent_lag_init BORINGSSL_PREFIX %+ _jent_lag_init -%xdefine jent_measure_jitter BORINGSSL_PREFIX %+ _jent_measure_jitter -%xdefine jent_random_data BORINGSSL_PREFIX %+ _jent_random_data -%xdefine jent_read_entropy BORINGSSL_PREFIX %+ _jent_read_entropy -%xdefine jent_read_entropy_safe BORINGSSL_PREFIX %+ _jent_read_entropy_safe -%xdefine jent_read_random_block BORINGSSL_PREFIX %+ _jent_read_random_block -%xdefine jent_set_fips_failure_callback BORINGSSL_PREFIX %+ _jent_set_fips_failure_callback -%xdefine jent_set_fips_failure_callback_internal BORINGSSL_PREFIX %+ _jent_set_fips_failure_callback_internal -%xdefine jent_stuck BORINGSSL_PREFIX %+ _jent_stuck -%xdefine jent_time_entropy_init BORINGSSL_PREFIX %+ _jent_time_entropy_init -%xdefine jent_version BORINGSSL_PREFIX %+ _jent_version +%xdefine is_public_component_of_rsa_key_good BORINGSSL_PREFIX %+ _is_public_component_of_rsa_key_good %xdefine kBoringSSLRSASqrtTwo BORINGSSL_PREFIX %+ _kBoringSSLRSASqrtTwo %xdefine kBoringSSLRSASqrtTwoLen BORINGSSL_PREFIX %+ _kBoringSSLRSASqrtTwoLen %xdefine kOpenSSLReasonStringData BORINGSSL_PREFIX %+ _kOpenSSLReasonStringData %xdefine kOpenSSLReasonValues BORINGSSL_PREFIX %+ _kOpenSSLReasonValues %xdefine kOpenSSLReasonValuesLen BORINGSSL_PREFIX %+ _kOpenSSLReasonValuesLen %xdefine kem_asn1_meth BORINGSSL_PREFIX %+ _kem_asn1_meth -%xdefine kem_kyber1024r3_method BORINGSSL_PREFIX %+ _kem_kyber1024r3_method -%xdefine kem_kyber512r3_method BORINGSSL_PREFIX %+ _kem_kyber512r3_method -%xdefine kem_kyber768r3_method BORINGSSL_PREFIX %+ _kem_kyber768r3_method -%xdefine kem_pkey_meth BORINGSSL_PREFIX %+ _kem_pkey_meth -%xdefine kyber1024r3_decapsulate BORINGSSL_PREFIX %+ _kyber1024r3_decapsulate -%xdefine kyber1024r3_encapsulate BORINGSSL_PREFIX %+ _kyber1024r3_encapsulate -%xdefine kyber1024r3_keypair BORINGSSL_PREFIX %+ _kyber1024r3_keypair -%xdefine kyber512r3_decapsulate BORINGSSL_PREFIX %+ _kyber512r3_decapsulate -%xdefine kyber512r3_encapsulate BORINGSSL_PREFIX %+ _kyber512r3_encapsulate -%xdefine kyber512r3_keypair BORINGSSL_PREFIX %+ _kyber512r3_keypair -%xdefine kyber768r3_decapsulate BORINGSSL_PREFIX %+ _kyber768r3_decapsulate -%xdefine kyber768r3_encapsulate BORINGSSL_PREFIX %+ _kyber768r3_encapsulate -%xdefine kyber768r3_keypair BORINGSSL_PREFIX %+ _kyber768r3_keypair %xdefine md4_block_data_order BORINGSSL_PREFIX %+ _md4_block_data_order %xdefine md5_block_asm_data_order BORINGSSL_PREFIX %+ _md5_block_asm_data_order +%xdefine ml_kem_1024_decapsulate BORINGSSL_PREFIX %+ _ml_kem_1024_decapsulate +%xdefine ml_kem_1024_encapsulate BORINGSSL_PREFIX %+ _ml_kem_1024_encapsulate +%xdefine ml_kem_1024_encapsulate_deterministic BORINGSSL_PREFIX %+ _ml_kem_1024_encapsulate_deterministic +%xdefine ml_kem_1024_keypair BORINGSSL_PREFIX %+ _ml_kem_1024_keypair +%xdefine ml_kem_1024_keypair_deterministic BORINGSSL_PREFIX %+ _ml_kem_1024_keypair_deterministic +%xdefine ml_kem_1024_params_init BORINGSSL_PREFIX %+ _ml_kem_1024_params_init +%xdefine ml_kem_512_decapsulate BORINGSSL_PREFIX %+ _ml_kem_512_decapsulate +%xdefine ml_kem_512_decapsulate_no_self_test BORINGSSL_PREFIX %+ _ml_kem_512_decapsulate_no_self_test +%xdefine ml_kem_512_encapsulate BORINGSSL_PREFIX %+ _ml_kem_512_encapsulate +%xdefine ml_kem_512_encapsulate_deterministic BORINGSSL_PREFIX %+ _ml_kem_512_encapsulate_deterministic +%xdefine ml_kem_512_encapsulate_deterministic_no_self_test BORINGSSL_PREFIX %+ _ml_kem_512_encapsulate_deterministic_no_self_test +%xdefine ml_kem_512_keypair BORINGSSL_PREFIX %+ _ml_kem_512_keypair +%xdefine ml_kem_512_keypair_deterministic BORINGSSL_PREFIX %+ _ml_kem_512_keypair_deterministic +%xdefine ml_kem_512_keypair_deterministic_no_self_test BORINGSSL_PREFIX %+ _ml_kem_512_keypair_deterministic_no_self_test +%xdefine ml_kem_512_params_init BORINGSSL_PREFIX %+ _ml_kem_512_params_init +%xdefine ml_kem_768_decapsulate BORINGSSL_PREFIX %+ _ml_kem_768_decapsulate +%xdefine ml_kem_768_encapsulate BORINGSSL_PREFIX %+ _ml_kem_768_encapsulate +%xdefine ml_kem_768_encapsulate_deterministic BORINGSSL_PREFIX %+ _ml_kem_768_encapsulate_deterministic +%xdefine ml_kem_768_keypair BORINGSSL_PREFIX %+ _ml_kem_768_keypair +%xdefine ml_kem_768_keypair_deterministic BORINGSSL_PREFIX %+ _ml_kem_768_keypair_deterministic +%xdefine ml_kem_768_params_init BORINGSSL_PREFIX %+ _ml_kem_768_params_init +%xdefine ml_kem_barrett_reduce_ref BORINGSSL_PREFIX %+ _ml_kem_barrett_reduce_ref +%xdefine ml_kem_basemul_ref BORINGSSL_PREFIX %+ _ml_kem_basemul_ref +%xdefine ml_kem_cmov_ref BORINGSSL_PREFIX %+ _ml_kem_cmov_ref +%xdefine ml_kem_dec_ref BORINGSSL_PREFIX %+ _ml_kem_dec_ref +%xdefine ml_kem_enc_derand_ref BORINGSSL_PREFIX %+ _ml_kem_enc_derand_ref +%xdefine ml_kem_enc_ref BORINGSSL_PREFIX %+ _ml_kem_enc_ref +%xdefine ml_kem_gen_matrix_ref BORINGSSL_PREFIX %+ _ml_kem_gen_matrix_ref +%xdefine ml_kem_indcpa_dec_ref BORINGSSL_PREFIX %+ _ml_kem_indcpa_dec_ref +%xdefine ml_kem_indcpa_enc_ref BORINGSSL_PREFIX %+ _ml_kem_indcpa_enc_ref +%xdefine ml_kem_indcpa_keypair_derand_ref BORINGSSL_PREFIX %+ _ml_kem_indcpa_keypair_derand_ref +%xdefine ml_kem_invntt_ref BORINGSSL_PREFIX %+ _ml_kem_invntt_ref +%xdefine ml_kem_keypair_derand_ref BORINGSSL_PREFIX %+ _ml_kem_keypair_derand_ref +%xdefine ml_kem_keypair_ref BORINGSSL_PREFIX %+ _ml_kem_keypair_ref +%xdefine ml_kem_kyber_shake128_absorb_ref BORINGSSL_PREFIX %+ _ml_kem_kyber_shake128_absorb_ref +%xdefine ml_kem_kyber_shake128_squeeze_ref BORINGSSL_PREFIX %+ _ml_kem_kyber_shake128_squeeze_ref +%xdefine ml_kem_kyber_shake256_prf_ref BORINGSSL_PREFIX %+ _ml_kem_kyber_shake256_prf_ref +%xdefine ml_kem_kyber_shake256_rkprf_ref BORINGSSL_PREFIX %+ _ml_kem_kyber_shake256_rkprf_ref +%xdefine ml_kem_montgomery_reduce_ref BORINGSSL_PREFIX %+ _ml_kem_montgomery_reduce_ref +%xdefine ml_kem_ntt_ref BORINGSSL_PREFIX %+ _ml_kem_ntt_ref +%xdefine ml_kem_poly_add_ref BORINGSSL_PREFIX %+ _ml_kem_poly_add_ref +%xdefine ml_kem_poly_basemul_montgomery_ref BORINGSSL_PREFIX %+ _ml_kem_poly_basemul_montgomery_ref +%xdefine ml_kem_poly_cbd_eta1_ref BORINGSSL_PREFIX %+ _ml_kem_poly_cbd_eta1_ref +%xdefine ml_kem_poly_cbd_eta2_ref BORINGSSL_PREFIX %+ _ml_kem_poly_cbd_eta2_ref +%xdefine ml_kem_poly_compress_ref BORINGSSL_PREFIX %+ _ml_kem_poly_compress_ref +%xdefine ml_kem_poly_decompress_ref BORINGSSL_PREFIX %+ _ml_kem_poly_decompress_ref +%xdefine ml_kem_poly_frombytes_ref BORINGSSL_PREFIX %+ _ml_kem_poly_frombytes_ref +%xdefine ml_kem_poly_frommsg_ref BORINGSSL_PREFIX %+ _ml_kem_poly_frommsg_ref +%xdefine ml_kem_poly_getnoise_eta1_ref BORINGSSL_PREFIX %+ _ml_kem_poly_getnoise_eta1_ref +%xdefine ml_kem_poly_getnoise_eta2_ref BORINGSSL_PREFIX %+ _ml_kem_poly_getnoise_eta2_ref +%xdefine ml_kem_poly_invntt_tomont_ref BORINGSSL_PREFIX %+ _ml_kem_poly_invntt_tomont_ref +%xdefine ml_kem_poly_ntt_ref BORINGSSL_PREFIX %+ _ml_kem_poly_ntt_ref +%xdefine ml_kem_poly_reduce_ref BORINGSSL_PREFIX %+ _ml_kem_poly_reduce_ref +%xdefine ml_kem_poly_sub_ref BORINGSSL_PREFIX %+ _ml_kem_poly_sub_ref +%xdefine ml_kem_poly_tobytes_ref BORINGSSL_PREFIX %+ _ml_kem_poly_tobytes_ref +%xdefine ml_kem_poly_tomont_ref BORINGSSL_PREFIX %+ _ml_kem_poly_tomont_ref +%xdefine ml_kem_poly_tomsg_ref BORINGSSL_PREFIX %+ _ml_kem_poly_tomsg_ref +%xdefine ml_kem_polyvec_add_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_add_ref +%xdefine ml_kem_polyvec_basemul_acc_montgomery_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_basemul_acc_montgomery_ref +%xdefine ml_kem_polyvec_compress_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_compress_ref +%xdefine ml_kem_polyvec_decompress_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_decompress_ref +%xdefine ml_kem_polyvec_frombytes_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_frombytes_ref +%xdefine ml_kem_polyvec_invntt_tomont_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_invntt_tomont_ref +%xdefine ml_kem_polyvec_ntt_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_ntt_ref +%xdefine ml_kem_polyvec_reduce_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_reduce_ref +%xdefine ml_kem_polyvec_tobytes_ref BORINGSSL_PREFIX %+ _ml_kem_polyvec_tobytes_ref +%xdefine ml_kem_verify_ref BORINGSSL_PREFIX %+ _ml_kem_verify_ref +%xdefine ml_kem_zetas_ref BORINGSSL_PREFIX %+ _ml_kem_zetas_ref %xdefine o2i_ECPublicKey BORINGSSL_PREFIX %+ _o2i_ECPublicKey +%xdefine p256_methods BORINGSSL_PREFIX %+ _p256_methods +%xdefine p384_methods BORINGSSL_PREFIX %+ _p384_methods +%xdefine p521_methods BORINGSSL_PREFIX %+ _p521_methods %xdefine pkcs12_iterations_acceptable BORINGSSL_PREFIX %+ _pkcs12_iterations_acceptable %xdefine pkcs12_key_gen BORINGSSL_PREFIX %+ _pkcs12_key_gen %xdefine pkcs12_pbe_encrypt_init BORINGSSL_PREFIX %+ _pkcs12_pbe_encrypt_init @@ -6625,6 +7374,15 @@ %xdefine pmbtoken_exp2_read BORINGSSL_PREFIX %+ _pmbtoken_exp2_read %xdefine pmbtoken_exp2_sign BORINGSSL_PREFIX %+ _pmbtoken_exp2_sign %xdefine pmbtoken_exp2_unblind BORINGSSL_PREFIX %+ _pmbtoken_exp2_unblind +%xdefine pmbtoken_pst1_blind BORINGSSL_PREFIX %+ _pmbtoken_pst1_blind +%xdefine pmbtoken_pst1_client_key_from_bytes BORINGSSL_PREFIX %+ _pmbtoken_pst1_client_key_from_bytes +%xdefine pmbtoken_pst1_derive_key_from_secret BORINGSSL_PREFIX %+ _pmbtoken_pst1_derive_key_from_secret +%xdefine pmbtoken_pst1_generate_key BORINGSSL_PREFIX %+ _pmbtoken_pst1_generate_key +%xdefine pmbtoken_pst1_get_h_for_testing BORINGSSL_PREFIX %+ _pmbtoken_pst1_get_h_for_testing +%xdefine pmbtoken_pst1_issuer_key_from_bytes BORINGSSL_PREFIX %+ _pmbtoken_pst1_issuer_key_from_bytes +%xdefine pmbtoken_pst1_read BORINGSSL_PREFIX %+ _pmbtoken_pst1_read +%xdefine pmbtoken_pst1_sign BORINGSSL_PREFIX %+ _pmbtoken_pst1_sign +%xdefine pmbtoken_pst1_unblind BORINGSSL_PREFIX %+ _pmbtoken_pst1_unblind %xdefine poly_Rq_mul BORINGSSL_PREFIX %+ _poly_Rq_mul %xdefine pq_custom_randombytes BORINGSSL_PREFIX %+ _pq_custom_randombytes %xdefine pq_custom_randombytes_init_for_testing BORINGSSL_PREFIX %+ _pq_custom_randombytes_init_for_testing @@ -6634,12 +7392,14 @@ %xdefine pqcrystals_kyber1024_ref_cmov BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_cmov %xdefine pqcrystals_kyber1024_ref_dec BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_dec %xdefine pqcrystals_kyber1024_ref_enc BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_enc +%xdefine pqcrystals_kyber1024_ref_enc_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_enc_derand %xdefine pqcrystals_kyber1024_ref_gen_matrix BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_gen_matrix %xdefine pqcrystals_kyber1024_ref_indcpa_dec BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_dec %xdefine pqcrystals_kyber1024_ref_indcpa_enc BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_enc -%xdefine pqcrystals_kyber1024_ref_indcpa_keypair BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_keypair +%xdefine pqcrystals_kyber1024_ref_indcpa_keypair_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_indcpa_keypair_derand %xdefine pqcrystals_kyber1024_ref_invntt BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_invntt %xdefine pqcrystals_kyber1024_ref_keypair BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_keypair +%xdefine pqcrystals_kyber1024_ref_keypair_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_keypair_derand %xdefine pqcrystals_kyber1024_ref_kyber_shake128_absorb BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_kyber_shake128_absorb %xdefine pqcrystals_kyber1024_ref_kyber_shake256_prf BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_kyber_shake256_prf %xdefine pqcrystals_kyber1024_ref_montgomery_reduce BORINGSSL_PREFIX %+ _pqcrystals_kyber1024_ref_montgomery_reduce @@ -6677,12 +7437,14 @@ %xdefine pqcrystals_kyber512_ref_cmov BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_cmov %xdefine pqcrystals_kyber512_ref_dec BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_dec %xdefine pqcrystals_kyber512_ref_enc BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_enc +%xdefine pqcrystals_kyber512_ref_enc_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_enc_derand %xdefine pqcrystals_kyber512_ref_gen_matrix BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_gen_matrix %xdefine pqcrystals_kyber512_ref_indcpa_dec BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_dec %xdefine pqcrystals_kyber512_ref_indcpa_enc BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_enc -%xdefine pqcrystals_kyber512_ref_indcpa_keypair BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_keypair +%xdefine pqcrystals_kyber512_ref_indcpa_keypair_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_indcpa_keypair_derand %xdefine pqcrystals_kyber512_ref_invntt BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_invntt %xdefine pqcrystals_kyber512_ref_keypair BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_keypair +%xdefine pqcrystals_kyber512_ref_keypair_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_keypair_derand %xdefine pqcrystals_kyber512_ref_kyber_shake128_absorb BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_kyber_shake128_absorb %xdefine pqcrystals_kyber512_ref_kyber_shake256_prf BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_kyber_shake256_prf %xdefine pqcrystals_kyber512_ref_montgomery_reduce BORINGSSL_PREFIX %+ _pqcrystals_kyber512_ref_montgomery_reduce @@ -6720,12 +7482,14 @@ %xdefine pqcrystals_kyber768_ref_cmov BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_cmov %xdefine pqcrystals_kyber768_ref_dec BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_dec %xdefine pqcrystals_kyber768_ref_enc BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_enc +%xdefine pqcrystals_kyber768_ref_enc_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_enc_derand %xdefine pqcrystals_kyber768_ref_gen_matrix BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_gen_matrix %xdefine pqcrystals_kyber768_ref_indcpa_dec BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_dec %xdefine pqcrystals_kyber768_ref_indcpa_enc BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_enc -%xdefine pqcrystals_kyber768_ref_indcpa_keypair BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_keypair +%xdefine pqcrystals_kyber768_ref_indcpa_keypair_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_indcpa_keypair_derand %xdefine pqcrystals_kyber768_ref_invntt BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_invntt %xdefine pqcrystals_kyber768_ref_keypair BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_keypair +%xdefine pqcrystals_kyber768_ref_keypair_derand BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_keypair_derand %xdefine pqcrystals_kyber768_ref_kyber_shake128_absorb BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_kyber_shake128_absorb %xdefine pqcrystals_kyber768_ref_kyber_shake256_prf BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_kyber_shake256_prf %xdefine pqcrystals_kyber768_ref_montgomery_reduce BORINGSSL_PREFIX %+ _pqcrystals_kyber768_ref_montgomery_reduce @@ -6776,13 +7540,14 @@ %xdefine pqcrystals_kyber_fips202_ref_shake256_squeezeblocks BORINGSSL_PREFIX %+ _pqcrystals_kyber_fips202_ref_shake256_squeezeblocks %xdefine rand_fork_unsafe_buffering_enabled BORINGSSL_PREFIX %+ _rand_fork_unsafe_buffering_enabled %xdefine rsa_asn1_meth BORINGSSL_PREFIX %+ _rsa_asn1_meth -%xdefine rsa_check_public_key BORINGSSL_PREFIX %+ _rsa_check_public_key -%xdefine rsa_default_decrypt BORINGSSL_PREFIX %+ _rsa_default_decrypt %xdefine rsa_default_private_transform BORINGSSL_PREFIX %+ _rsa_default_private_transform %xdefine rsa_default_sign_raw BORINGSSL_PREFIX %+ _rsa_default_sign_raw %xdefine rsa_default_size BORINGSSL_PREFIX %+ _rsa_default_size %xdefine rsa_digestsign_no_self_test BORINGSSL_PREFIX %+ _rsa_digestsign_no_self_test %xdefine rsa_digestverify_no_self_test BORINGSSL_PREFIX %+ _rsa_digestverify_no_self_test +%xdefine rsa_invalidate_key BORINGSSL_PREFIX %+ _rsa_invalidate_key +%xdefine rsa_private_transform BORINGSSL_PREFIX %+ _rsa_private_transform +%xdefine rsa_private_transform_no_self_test BORINGSSL_PREFIX %+ _rsa_private_transform_no_self_test %xdefine rsa_pss_asn1_meth BORINGSSL_PREFIX %+ _rsa_pss_asn1_meth %xdefine rsa_sign_no_self_test BORINGSSL_PREFIX %+ _rsa_sign_no_self_test %xdefine rsa_verify_no_self_test BORINGSSL_PREFIX %+ _rsa_verify_no_self_test @@ -6793,44 +7558,35 @@ %xdefine rsaz_1024_red2norm_avx2 BORINGSSL_PREFIX %+ _rsaz_1024_red2norm_avx2 %xdefine rsaz_1024_scatter5_avx2 BORINGSSL_PREFIX %+ _rsaz_1024_scatter5_avx2 %xdefine rsaz_1024_sqr_avx2 BORINGSSL_PREFIX %+ _rsaz_1024_sqr_avx2 +%xdefine rsaz_amm52x20_x1_ifma256 BORINGSSL_PREFIX %+ _rsaz_amm52x20_x1_ifma256 +%xdefine rsaz_amm52x20_x2_ifma256 BORINGSSL_PREFIX %+ _rsaz_amm52x20_x2_ifma256 +%xdefine rsaz_amm52x30_x1_ifma256 BORINGSSL_PREFIX %+ _rsaz_amm52x30_x1_ifma256 +%xdefine rsaz_amm52x30_x2_ifma256 BORINGSSL_PREFIX %+ _rsaz_amm52x30_x2_ifma256 +%xdefine rsaz_amm52x40_x1_ifma256 BORINGSSL_PREFIX %+ _rsaz_amm52x40_x1_ifma256 +%xdefine rsaz_amm52x40_x2_ifma256 BORINGSSL_PREFIX %+ _rsaz_amm52x40_x2_ifma256 %xdefine s2i_ASN1_INTEGER BORINGSSL_PREFIX %+ _s2i_ASN1_INTEGER %xdefine s2i_ASN1_OCTET_STRING BORINGSSL_PREFIX %+ _s2i_ASN1_OCTET_STRING -%xdefine sha1_block_data_order BORINGSSL_PREFIX %+ _sha1_block_data_order +%xdefine sha1_block_data_order_avx BORINGSSL_PREFIX %+ _sha1_block_data_order_avx +%xdefine sha1_block_data_order_avx2 BORINGSSL_PREFIX %+ _sha1_block_data_order_avx2 +%xdefine sha1_block_data_order_hw BORINGSSL_PREFIX %+ _sha1_block_data_order_hw +%xdefine sha1_block_data_order_nohw BORINGSSL_PREFIX %+ _sha1_block_data_order_nohw +%xdefine sha1_block_data_order_ssse3 BORINGSSL_PREFIX %+ _sha1_block_data_order_ssse3 %xdefine sha1_func BORINGSSL_PREFIX %+ _sha1_func %xdefine sha224_func BORINGSSL_PREFIX %+ _sha224_func -%xdefine sha256_block_data_order BORINGSSL_PREFIX %+ _sha256_block_data_order +%xdefine sha256_block_data_order_avx BORINGSSL_PREFIX %+ _sha256_block_data_order_avx +%xdefine sha256_block_data_order_hw BORINGSSL_PREFIX %+ _sha256_block_data_order_hw +%xdefine sha256_block_data_order_nohw BORINGSSL_PREFIX %+ _sha256_block_data_order_nohw +%xdefine sha256_block_data_order_ssse3 BORINGSSL_PREFIX %+ _sha256_block_data_order_ssse3 %xdefine sha256_func BORINGSSL_PREFIX %+ _sha256_func %xdefine sha384_func BORINGSSL_PREFIX %+ _sha384_func -%xdefine sha3_256_init BORINGSSL_PREFIX %+ _sha3_256_init -%xdefine sha3_alloc BORINGSSL_PREFIX %+ _sha3_alloc -%xdefine sha3_dealloc BORINGSSL_PREFIX %+ _sha3_dealloc -%xdefine sha3_final BORINGSSL_PREFIX %+ _sha3_final -%xdefine sha3_tester BORINGSSL_PREFIX %+ _sha3_tester -%xdefine sha3_update BORINGSSL_PREFIX %+ _sha3_update -%xdefine sha512_block_data_order BORINGSSL_PREFIX %+ _sha512_block_data_order +%xdefine sha512_block_data_order_avx BORINGSSL_PREFIX %+ _sha512_block_data_order_avx +%xdefine sha512_block_data_order_hw BORINGSSL_PREFIX %+ _sha512_block_data_order_hw +%xdefine sha512_block_data_order_nohw BORINGSSL_PREFIX %+ _sha512_block_data_order_nohw %xdefine sha512_func BORINGSSL_PREFIX %+ _sha512_func -%xdefine sk_deep_copy BORINGSSL_PREFIX %+ _sk_deep_copy -%xdefine sk_delete BORINGSSL_PREFIX %+ _sk_delete -%xdefine sk_delete_if BORINGSSL_PREFIX %+ _sk_delete_if -%xdefine sk_delete_ptr BORINGSSL_PREFIX %+ _sk_delete_ptr -%xdefine sk_dup BORINGSSL_PREFIX %+ _sk_dup -%xdefine sk_find BORINGSSL_PREFIX %+ _sk_find -%xdefine sk_free BORINGSSL_PREFIX %+ _sk_free -%xdefine sk_insert BORINGSSL_PREFIX %+ _sk_insert -%xdefine sk_is_sorted BORINGSSL_PREFIX %+ _sk_is_sorted -%xdefine sk_new BORINGSSL_PREFIX %+ _sk_new -%xdefine sk_new_null BORINGSSL_PREFIX %+ _sk_new_null -%xdefine sk_num BORINGSSL_PREFIX %+ _sk_num -%xdefine sk_pop BORINGSSL_PREFIX %+ _sk_pop %xdefine sk_pop_free BORINGSSL_PREFIX %+ _sk_pop_free -%xdefine sk_pop_free_ex BORINGSSL_PREFIX %+ _sk_pop_free_ex -%xdefine sk_push BORINGSSL_PREFIX %+ _sk_push -%xdefine sk_set BORINGSSL_PREFIX %+ _sk_set -%xdefine sk_set_cmp_func BORINGSSL_PREFIX %+ _sk_set_cmp_func -%xdefine sk_shift BORINGSSL_PREFIX %+ _sk_shift -%xdefine sk_sort BORINGSSL_PREFIX %+ _sk_sort -%xdefine sk_value BORINGSSL_PREFIX %+ _sk_value -%xdefine sk_zero BORINGSSL_PREFIX %+ _sk_zero +%xdefine sskdf_variant_digest BORINGSSL_PREFIX %+ _sskdf_variant_digest +%xdefine sskdf_variant_hmac BORINGSSL_PREFIX %+ _sskdf_variant_hmac +%xdefine used_for_hmac BORINGSSL_PREFIX %+ _used_for_hmac %xdefine v2i_GENERAL_NAME BORINGSSL_PREFIX %+ _v2i_GENERAL_NAME %xdefine v2i_GENERAL_NAMES BORINGSSL_PREFIX %+ _v2i_GENERAL_NAMES %xdefine v2i_GENERAL_NAME_ex BORINGSSL_PREFIX %+ _v2i_GENERAL_NAME_ex @@ -6854,7 +7610,7 @@ %xdefine v3_nscert BORINGSSL_PREFIX %+ _v3_nscert %xdefine v3_ocsp_accresp BORINGSSL_PREFIX %+ _v3_ocsp_accresp %xdefine v3_ocsp_nocheck BORINGSSL_PREFIX %+ _v3_ocsp_nocheck -%xdefine v3_pci BORINGSSL_PREFIX %+ _v3_pci +%xdefine v3_ocsp_nonce BORINGSSL_PREFIX %+ _v3_ocsp_nonce %xdefine v3_policy_constraints BORINGSSL_PREFIX %+ _v3_policy_constraints %xdefine v3_policy_mappings BORINGSSL_PREFIX %+ _v3_policy_mappings %xdefine v3_sinfo BORINGSSL_PREFIX %+ _v3_sinfo @@ -6867,6 +7623,15 @@ %xdefine voprf_exp2_read BORINGSSL_PREFIX %+ _voprf_exp2_read %xdefine voprf_exp2_sign BORINGSSL_PREFIX %+ _voprf_exp2_sign %xdefine voprf_exp2_unblind BORINGSSL_PREFIX %+ _voprf_exp2_unblind +%xdefine voprf_pst1_blind BORINGSSL_PREFIX %+ _voprf_pst1_blind +%xdefine voprf_pst1_client_key_from_bytes BORINGSSL_PREFIX %+ _voprf_pst1_client_key_from_bytes +%xdefine voprf_pst1_derive_key_from_secret BORINGSSL_PREFIX %+ _voprf_pst1_derive_key_from_secret +%xdefine voprf_pst1_generate_key BORINGSSL_PREFIX %+ _voprf_pst1_generate_key +%xdefine voprf_pst1_issuer_key_from_bytes BORINGSSL_PREFIX %+ _voprf_pst1_issuer_key_from_bytes +%xdefine voprf_pst1_read BORINGSSL_PREFIX %+ _voprf_pst1_read +%xdefine voprf_pst1_sign BORINGSSL_PREFIX %+ _voprf_pst1_sign +%xdefine voprf_pst1_sign_with_proof_scalar_for_testing BORINGSSL_PREFIX %+ _voprf_pst1_sign_with_proof_scalar_for_testing +%xdefine voprf_pst1_unblind BORINGSSL_PREFIX %+ _voprf_pst1_unblind %xdefine vpaes_cbc_encrypt BORINGSSL_PREFIX %+ _vpaes_cbc_encrypt %xdefine vpaes_ctr32_encrypt_blocks BORINGSSL_PREFIX %+ _vpaes_ctr32_encrypt_blocks %xdefine vpaes_decrypt BORINGSSL_PREFIX %+ _vpaes_decrypt @@ -6885,11 +7650,17 @@ %xdefine x25519_ge_sub BORINGSSL_PREFIX %+ _x25519_ge_sub %xdefine x25519_ge_tobytes BORINGSSL_PREFIX %+ _x25519_ge_tobytes %xdefine x25519_pkey_meth BORINGSSL_PREFIX %+ _x25519_pkey_meth +%xdefine x25519_public_from_private_nohw BORINGSSL_PREFIX %+ _x25519_public_from_private_nohw +%xdefine x25519_public_from_private_s2n_bignum BORINGSSL_PREFIX %+ _x25519_public_from_private_s2n_bignum %xdefine x25519_sc_reduce BORINGSSL_PREFIX %+ _x25519_sc_reduce +%xdefine x25519_scalar_mult_generic_nohw BORINGSSL_PREFIX %+ _x25519_scalar_mult_generic_nohw +%xdefine x25519_scalar_mult_generic_s2n_bignum BORINGSSL_PREFIX %+ _x25519_scalar_mult_generic_s2n_bignum %xdefine x509V3_add_value_asn1_string BORINGSSL_PREFIX %+ _x509V3_add_value_asn1_string %xdefine x509_check_cert_time BORINGSSL_PREFIX %+ _x509_check_cert_time +%xdefine x509_check_issued_with_callback BORINGSSL_PREFIX %+ _x509_check_issued_with_callback %xdefine x509_digest_sign_algorithm BORINGSSL_PREFIX %+ _x509_digest_sign_algorithm %xdefine x509_digest_verify_init BORINGSSL_PREFIX %+ _x509_digest_verify_init +%xdefine x509_init_signature_info BORINGSSL_PREFIX %+ _x509_init_signature_info %xdefine x509_print_rsa_pss_params BORINGSSL_PREFIX %+ _x509_print_rsa_pss_params %xdefine x509_rsa_ctx_to_pss BORINGSSL_PREFIX %+ _x509_rsa_ctx_to_pss %xdefine x509_rsa_pss_to_ctx BORINGSSL_PREFIX %+ _x509_rsa_pss_to_ctx @@ -6897,6 +7668,7 @@ %xdefine x509v3_bytes_to_hex BORINGSSL_PREFIX %+ _x509v3_bytes_to_hex %xdefine x509v3_cache_extensions BORINGSSL_PREFIX %+ _x509v3_cache_extensions %xdefine x509v3_conf_name_matches BORINGSSL_PREFIX %+ _x509v3_conf_name_matches +%xdefine x509v3_ext_free_with_method BORINGSSL_PREFIX %+ _x509v3_ext_free_with_method %xdefine x509v3_hex_to_bytes BORINGSSL_PREFIX %+ _x509v3_hex_to_bytes %xdefine x509v3_looks_like_dns_name BORINGSSL_PREFIX %+ _x509v3_looks_like_dns_name %xdefine x86_64_assembly_implementation_FOR_TESTING BORINGSSL_PREFIX %+ _x86_64_assembly_implementation_FOR_TESTING diff --git a/aws-lc-fips-sys/src/aarch64_apple_darwin_crypto.rs b/aws-lc-fips-sys/src/aarch64_apple_darwin_crypto.rs index 001498dea2f..a25497cef3d 100644 --- a/aws-lc-fips-sys/src/aarch64_apple_darwin_crypto.rs +++ b/aws-lc-fips-sys/src/aarch64_apple_darwin_crypto.rs @@ -110,14 +110,130 @@ where 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 = 20; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"2.0.15\0"; +pub const AWSLC_API_VERSION: i32 = 30; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 6] = b"3.0.0\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; pub const AES_BLOCK_SIZE: i32 = 16; +pub const SHA_CBLOCK: i32 = 64; +pub const SHA_DIGEST_LENGTH: i32 = 20; +pub const SHA224_CBLOCK: i32 = 64; +pub const SHA224_DIGEST_LENGTH: i32 = 28; +pub const SHA256_CBLOCK: i32 = 64; +pub const SHA256_DIGEST_LENGTH: i32 = 32; +pub const SHA384_CBLOCK: i32 = 128; +pub const SHA384_DIGEST_LENGTH: i32 = 48; +pub const SHA512_CBLOCK: i32 = 128; +pub const SHA512_DIGEST_LENGTH: i32 = 64; +pub const SHA512_224_DIGEST_LENGTH: i32 = 28; +pub const SHA512_256_DIGEST_LENGTH: i32 = 32; +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; 41] = b"OpenSSL 1.1.1 (compatible; AWS-LC 3.0.0)\0"; +pub const OPENSSL_VERSION: i32 = 0; +pub const OPENSSL_CFLAGS: i32 = 1; +pub const OPENSSL_BUILT_ON: i32 = 2; +pub const OPENSSL_PLATFORM: i32 = 3; +pub const OPENSSL_DIR: i32 = 4; +pub const SSLEAY_VERSION: i32 = 0; +pub const SSLEAY_CFLAGS: i32 = 1; +pub const SSLEAY_BUILT_ON: i32 = 2; +pub const SSLEAY_PLATFORM: i32 = 3; +pub const SSLEAY_DIR: i32 = 4; +pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_ENGINE_ALL_BUILTIN: i32 = 0; pub const ERR_FLAG_STRING: i32 = 1; pub const ERR_FLAG_MALLOCED: i32 = 2; +pub const ERR_LIB_NONE: i32 = 1; +pub const ERR_LIB_SYS: i32 = 2; +pub const ERR_LIB_BN: i32 = 3; +pub const ERR_LIB_RSA: i32 = 4; +pub const ERR_LIB_DH: i32 = 5; +pub const ERR_LIB_EVP: i32 = 6; +pub const ERR_LIB_BUF: i32 = 7; +pub const ERR_LIB_OBJ: i32 = 8; +pub const ERR_LIB_PEM: i32 = 9; +pub const ERR_LIB_DSA: i32 = 10; +pub const ERR_LIB_X509: i32 = 11; +pub const ERR_LIB_ASN1: i32 = 12; +pub const ERR_LIB_CONF: i32 = 13; +pub const ERR_LIB_CRYPTO: i32 = 14; +pub const ERR_LIB_EC: i32 = 15; +pub const ERR_LIB_SSL: i32 = 16; +pub const ERR_LIB_BIO: i32 = 17; +pub const ERR_LIB_PKCS7: i32 = 18; +pub const ERR_LIB_PKCS8: i32 = 19; +pub const ERR_LIB_X509V3: i32 = 20; +pub const ERR_LIB_RAND: i32 = 21; +pub const ERR_LIB_ENGINE: i32 = 22; +pub const ERR_LIB_OCSP: i32 = 23; +pub const ERR_LIB_UI: i32 = 24; +pub const ERR_LIB_COMP: i32 = 25; +pub const ERR_LIB_ECDSA: i32 = 26; +pub const ERR_LIB_ECDH: i32 = 27; +pub const ERR_LIB_HMAC: i32 = 28; +pub const ERR_LIB_DIGEST: i32 = 29; +pub const ERR_LIB_CIPHER: i32 = 30; +pub const ERR_LIB_HKDF: i32 = 31; +pub const ERR_LIB_TRUST_TOKEN: i32 = 32; +pub const ERR_LIB_USER: i32 = 33; +pub const ERR_NUM_LIBS: i32 = 34; +pub const ERR_LIB_PKCS12: i32 = 35; +pub const ERR_LIB_DSO: i32 = 36; +pub const ERR_LIB_OSSL_STORE: i32 = 37; +pub const ERR_LIB_FIPS: i32 = 38; +pub const ERR_LIB_CMS: i32 = 39; +pub const ERR_LIB_TS: i32 = 40; +pub const ERR_LIB_CT: i32 = 41; +pub const ERR_LIB_ASYNC: i32 = 42; +pub const ERR_LIB_KDF: i32 = 43; +pub const ERR_LIB_SM2: i32 = 44; +pub const ERR_R_SYS_LIB: i32 = 2; +pub const ERR_R_BN_LIB: i32 = 3; +pub const ERR_R_RSA_LIB: i32 = 4; +pub const ERR_R_DH_LIB: i32 = 5; +pub const ERR_R_EVP_LIB: i32 = 6; +pub const ERR_R_BUF_LIB: i32 = 7; +pub const ERR_R_OBJ_LIB: i32 = 8; +pub const ERR_R_PEM_LIB: i32 = 9; +pub const ERR_R_DSA_LIB: i32 = 10; +pub const ERR_R_X509_LIB: i32 = 11; +pub const ERR_R_ASN1_LIB: i32 = 12; +pub const ERR_R_CONF_LIB: i32 = 13; +pub const ERR_R_CRYPTO_LIB: i32 = 14; +pub const ERR_R_EC_LIB: i32 = 15; +pub const ERR_R_SSL_LIB: i32 = 16; +pub const ERR_R_BIO_LIB: i32 = 17; +pub const ERR_R_PKCS7_LIB: i32 = 18; +pub const ERR_R_PKCS8_LIB: i32 = 19; +pub const ERR_R_X509V3_LIB: i32 = 20; +pub const ERR_R_RAND_LIB: i32 = 21; +pub const ERR_R_DSO_LIB: i32 = 36; +pub const ERR_R_ENGINE_LIB: i32 = 22; +pub const ERR_R_OCSP_LIB: i32 = 23; +pub const ERR_R_UI_LIB: i32 = 24; +pub const ERR_R_COMP_LIB: i32 = 25; +pub const ERR_R_ECDSA_LIB: i32 = 26; +pub const ERR_R_ECDH_LIB: i32 = 27; +pub const ERR_R_FIPS_LIB: i32 = 38; +pub const ERR_R_CMS_LIB: i32 = 39; +pub const ERR_R_TS_LIB: i32 = 40; +pub const ERR_R_HMAC_LIB: i32 = 28; +pub const ERR_R_USER_LIB: i32 = 33; +pub const ERR_R_DIGEST_LIB: i32 = 29; +pub const ERR_R_CIPHER_LIB: i32 = 30; +pub const ERR_R_HKDF_LIB: i32 = 31; +pub const ERR_R_TRUST_TOKEN_LIB: i32 = 32; pub const ERR_R_FATAL: i32 = 64; pub const ERR_R_MALLOC_FAILURE: i32 = 65; pub const ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED: i32 = 66; @@ -128,10 +244,6 @@ pub const ERR_ERROR_STRING_BUF_LEN: i32 = 120; pub const ERR_TXT_STRING: i32 = 1; pub const ERR_TXT_MALLOCED: i32 = 2; pub const ERR_NUM_ERRORS: i32 = 16; -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 BIO_RR_CONNECT: i32 = 2; pub const BIO_RR_ACCEPT: i32 = 3; pub const BIO_CB_FREE: i32 = 1; @@ -143,6 +255,7 @@ pub const BIO_CB_CTRL: i32 = 6; pub const BIO_CB_RETURN: i32 = 128; pub const BIO_NOCLOSE: i32 = 0; pub const BIO_CLOSE: i32 = 1; +pub const BIO_FP_TEXT: i32 = 16; pub const BIO_CTRL_DGRAM_QUERY_MTU: i32 = 40; pub const BIO_CTRL_DGRAM_SET_MTU: i32 = 42; pub const BIO_CTRL_DGRAM_MTU_EXCEEDED: i32 = 43; @@ -208,7 +321,6 @@ pub const BIO_C_SET_FILE_PTR: i32 = 106; pub const BIO_C_GET_FILE_PTR: i32 = 107; pub const BIO_C_SET_FILENAME: i32 = 108; pub const BIO_C_SET_SSL: i32 = 109; -pub const BIO_C_GET_SSL: i32 = 110; pub const BIO_C_SET_MD: i32 = 111; pub const BIO_C_GET_MD: i32 = 112; pub const BIO_C_GET_CIPHER_STATUS: i32 = 113; @@ -222,9 +334,6 @@ pub const BIO_C_GET_MD_CTX: i32 = 120; pub const BIO_C_GET_PROXY_PARAM: i32 = 121; pub const BIO_C_SET_BUFF_READ_DATA: i32 = 122; pub const BIO_C_GET_ACCEPT: i32 = 124; -pub const BIO_C_SET_SSL_RENEGOTIATE_BYTES: i32 = 125; -pub const BIO_C_GET_SSL_NUM_RENEGOTIATES: i32 = 126; -pub const BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT: i32 = 127; pub const BIO_C_FILE_SEEK: i32 = 128; pub const BIO_C_GET_CIPHER_CTX: i32 = 129; pub const BIO_C_SET_BUF_MEM_EOF_RETURN: i32 = 130; @@ -269,7 +378,6 @@ pub const BIO_R_UNSUPPORTED_METHOD: i32 = 115; pub const BIO_R_WRITE_TO_READ_ONLY_BIO: i32 = 116; pub const BN_BITS2: i32 = 64; pub const BN_DEC_FMT1: &[u8; 5] = b"%llu\0"; -pub const BN_DEC_FMT2: &[u8; 8] = b"%019llu\0"; pub const BN_HEX_FMT1: &[u8; 5] = b"%llx\0"; pub const BN_HEX_FMT2: &[u8; 8] = b"%016llx\0"; pub const BN_RAND_TOP_ANY: i32 = -1; @@ -304,6 +412,7 @@ pub const BN_R_TOO_MANY_TEMPORARY_VARIABLES: i32 = 116; pub const BN_R_BAD_ENCODING: i32 = 117; pub const BN_R_ENCODE_ERROR: i32 = 118; pub const BN_R_INVALID_INPUT: i32 = 119; +pub const BN_F_BN_GENERATE_PRIME_EX: i32 = 0; pub const V_ASN1_UNIVERSAL: i32 = 0; pub const V_ASN1_APPLICATION: i32 = 64; pub const V_ASN1_CONTEXT_SPECIFIC: i32 = 128; @@ -364,6 +473,9 @@ pub const B_ASN1_UTF8STRING: i32 = 8192; pub const B_ASN1_UTCTIME: i32 = 16384; pub const B_ASN1_GENERALIZEDTIME: i32 = 32768; pub const B_ASN1_SEQUENCE: i32 = 65536; +pub const ASN1_BOOLEAN_FALSE: i32 = 0; +pub const ASN1_BOOLEAN_TRUE: i32 = 255; +pub const ASN1_BOOLEAN_NONE: i32 = -1; pub const ASN1_STRING_FLAG_BITS_LEFT: i32 = 8; pub const MBSTRING_FLAG: i32 = 4096; pub const MBSTRING_UTF8: i32 = 4096; @@ -563,7 +675,10 @@ pub const EVP_CIPH_OFB_MODE: i32 = 4; pub const EVP_CIPH_CTR_MODE: i32 = 5; pub const EVP_CIPH_GCM_MODE: i32 = 6; pub const EVP_CIPH_XTS_MODE: i32 = 7; +pub const EVP_CIPH_CCM_MODE: i32 = 8; pub const EVP_CIPH_FLAG_LENGTH_BITS: i32 = 8192; +pub const EVP_CIPH_OCB_MODE: i32 = 9; +pub const EVP_CIPH_WRAP_MODE: i32 = 10; pub const EVP_CIPH_VARIABLE_LENGTH: i32 = 64; pub const EVP_CIPH_ALWAYS_CALL_INIT: i32 = 128; pub const EVP_CIPH_CUSTOM_IV: i32 = 256; @@ -572,9 +687,6 @@ pub const EVP_CIPH_FLAG_CUSTOM_CIPHER: i32 = 1024; pub const EVP_CIPH_FLAG_AEAD_CIPHER: i32 = 2048; pub const EVP_CIPH_CUSTOM_COPY: i32 = 4096; pub const EVP_CIPH_FLAG_NON_FIPS_ALLOW: i32 = 0; -pub const EVP_CIPH_CCM_MODE: i32 = -1; -pub const EVP_CIPH_OCB_MODE: i32 = -2; -pub const EVP_CIPH_WRAP_MODE: i32 = -3; pub const EVP_CIPHER_CTX_FLAG_WRAP_ALLOW: i32 = 0; pub const EVP_CIPH_NO_PADDING: i32 = 2048; pub const EVP_CTRL_INIT: i32 = 0; @@ -591,8 +703,10 @@ pub const EVP_CTRL_AEAD_GET_TAG: i32 = 16; pub const EVP_CTRL_AEAD_SET_TAG: i32 = 17; pub const EVP_CTRL_AEAD_SET_IV_FIXED: i32 = 18; pub const EVP_CTRL_GCM_IV_GEN: i32 = 19; +pub const EVP_CTRL_CCM_SET_L: i32 = 20; pub const EVP_CTRL_AEAD_SET_MAC_KEY: i32 = 23; pub const EVP_CTRL_GCM_SET_IV_INV: i32 = 24; +pub const EVP_CTRL_GET_IVLEN: i32 = 25; pub const EVP_GCM_TLS_FIXED_IV_LEN: i32 = 4; pub const EVP_GCM_TLS_EXPLICIT_IV_LEN: i32 = 8; pub const EVP_GCM_TLS_TAG_LEN: i32 = 16; @@ -636,6 +750,8 @@ pub const CIPHER_R_XTS_DATA_UNIT_IS_TOO_LARGE: i32 = 139; pub const CIPHER_R_CTRL_OPERATION_NOT_PERFORMED: i32 = 140; pub const CIPHER_R_SERIALIZATION_INVALID_EVP_AEAD_CTX: i32 = 141; pub const CIPHER_R_ALIGNMENT_CHANGED: i32 = 142; +pub const CIPHER_R_SERIALIZATION_INVALID_SERDE_VERSION: i32 = 143; +pub const CIPHER_R_SERIALIZATION_INVALID_CIPHER_ID: i32 = 144; pub const CONF_MFLAGS_DEFAULT_SECTION: i32 = 0; pub const CONF_MFLAGS_IGNORE_MISSING_FILE: i32 = 0; pub const CONF_R_LIST_CANNOT_BE_NULL: i32 = 100; @@ -645,36 +761,7 @@ pub const CONF_R_NO_CLOSE_BRACE: i32 = 103; pub const CONF_R_UNABLE_TO_CREATE_NEW_SECTION: i32 = 104; pub const CONF_R_VARIABLE_HAS_NO_VALUE: i32 = 105; pub const CONF_R_VARIABLE_EXPANSION_TOO_LONG: i32 = 106; -pub const SHA_CBLOCK: i32 = 64; -pub const SHA_DIGEST_LENGTH: i32 = 20; -pub const SHA224_CBLOCK: i32 = 64; -pub const SHA224_DIGEST_LENGTH: i32 = 28; -pub const SHA256_CBLOCK: i32 = 64; -pub const SHA256_DIGEST_LENGTH: i32 = 32; -pub const SHA384_CBLOCK: i32 = 128; -pub const SHA384_DIGEST_LENGTH: i32 = 48; -pub const SHA512_CBLOCK: i32 = 128; -pub const SHA512_DIGEST_LENGTH: i32 = 64; -pub const SHA512_256_DIGEST_LENGTH: i32 = 32; -pub const OPENSSL_VERSION_TEXT: &[u8; 35] = b"OpenSSL 1.1.1 (compatible; AWS-LC)\0"; -pub const OPENSSL_VERSION: i32 = 0; -pub const OPENSSL_CFLAGS: i32 = 1; -pub const OPENSSL_BUILT_ON: i32 = 2; -pub const OPENSSL_PLATFORM: i32 = 3; -pub const OPENSSL_DIR: i32 = 4; -pub const SSLEAY_VERSION: i32 = 0; -pub const SSLEAY_CFLAGS: i32 = 1; -pub const SSLEAY_BUILT_ON: i32 = 2; -pub const SSLEAY_PLATFORM: i32 = 3; -pub const SSLEAY_DIR: i32 = 4; -pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; -pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const CONF_R_VARIABLE_EXPANSION_NOT_SUPPORTED: i32 = 107; pub const X25519_PRIVATE_KEY_LEN: i32 = 32; pub const X25519_PUBLIC_VALUE_LEN: i32 = 32; pub const X25519_SHARED_KEY_LEN: i32 = 32; @@ -702,13 +789,18 @@ pub const DH_UNABLE_TO_CHECK_GENERATOR: i32 = 4; pub const DH_CHECK_PUBKEY_TOO_SMALL: i32 = 1; pub const DH_CHECK_PUBKEY_TOO_LARGE: i32 = 2; pub const DH_CHECK_PUBKEY_INVALID: i32 = 4; +pub const DH_FLAG_CACHE_MONT_P: i32 = 0; pub const DH_R_BAD_GENERATOR: i32 = 100; pub const DH_R_INVALID_PUBKEY: i32 = 101; pub const DH_R_MODULUS_TOO_LARGE: i32 = 102; pub const DH_R_NO_PRIVATE_VALUE: i32 = 103; pub const DH_R_DECODE_ERROR: i32 = 104; pub const DH_R_ENCODE_ERROR: i32 = 105; +pub const DH_R_INVALID_NID: i32 = 106; +pub const DH_R_INVALID_PARAMETERS: i32 = 107; +pub const DH_F_DH_BUILTIN_GENPARAMS: i32 = 0; pub const EVP_MAX_MD_SIZE: i32 = 64; +pub const EVP_MAX_MD_CHAINING_LENGTH: i32 = 64; pub const EVP_MAX_MD_BLOCK_SIZE: i32 = 128; pub const EVP_MD_FLAG_DIGALGID_ABSENT: i32 = 2; pub const EVP_MD_FLAG_XOF: i32 = 4; @@ -716,7 +808,6 @@ pub const EVP_MD_CTX_FLAG_NON_FIPS_ALLOW: i32 = 0; pub const DIGEST_R_INPUT_NOT_INITIALIZED: i32 = 100; pub const DIGEST_R_DECODE_ERROR: i32 = 101; pub const DIGEST_R_UNKNOWN_HASH: i32 = 102; -pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const DSA_R_BAD_Q_VALUE: i32 = 100; pub const DSA_R_MISSING_PARAMETERS: i32 = 101; pub const DSA_R_MODULUS_TOO_LARGE: i32 = 102; @@ -725,8 +816,10 @@ pub const DSA_R_BAD_VERSION: i32 = 104; pub const DSA_R_DECODE_ERROR: i32 = 105; pub const DSA_R_ENCODE_ERROR: i32 = 106; pub const DSA_R_INVALID_PARAMETERS: i32 = 107; +pub const DSA_R_TOO_MANY_ITERATIONS: i32 = 108; pub const OPENSSL_EC_EXPLICIT_CURVE: i32 = 0; pub const OPENSSL_EC_NAMED_CURVE: i32 = 1; +pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const EC_PKEY_NO_PARAMETERS: i32 = 1; pub const EC_PKEY_NO_PUBKEY: i32 = 2; pub const ECDSA_FLAG_OPAQUE: i32 = 1; @@ -775,6 +868,7 @@ pub const ECDSA_R_NOT_IMPLEMENTED: i32 = 103; pub const ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED: i32 = 104; pub const ECDSA_R_ENCODE_ERROR: i32 = 105; pub const ECDSA_R_MISMATCHED_SIGNATURE: i32 = 205; +pub const ECDSA_R_TOO_MANY_ITERATIONS: i32 = 106; pub const EVP_R_BUFFER_TOO_SMALL: i32 = 100; pub const EVP_R_COMMAND_NOT_SUPPORTED: i32 = 101; pub const EVP_R_DECODE_ERROR: i32 = 102; @@ -813,6 +907,8 @@ pub const EVP_R_INVALID_PEER_KEY: i32 = 134; pub const EVP_R_NOT_XOF_OR_INVALID_LENGTH: i32 = 135; pub const EVP_R_EMPTY_PSK: i32 = 136; pub const EVP_R_INVALID_BUFFER_SIZE: i32 = 137; +pub const EVP_R_BAD_DECRYPT: i32 = 138; +pub const EVP_R_EXPECTING_A_DH_KEY: i32 = 139; pub const EVP_R_INVALID_PSS_MD: i32 = 500; pub const EVP_R_INVALID_PSS_SALT_LEN: i32 = 501; pub const EVP_R_INVALID_PSS_TRAILER_FIELD: i32 = 502; @@ -3096,8 +3192,6 @@ pub const NID_kx_any: i32 = 957; pub const SN_auth_any: &[u8; 8] = b"AuthANY\0"; pub const LN_auth_any: &[u8; 9] = b"auth-any\0"; pub const NID_auth_any: i32 = 958; -pub const SN_CECPQ2: &[u8; 7] = b"CECPQ2\0"; -pub const NID_CECPQ2: i32 = 959; pub const SN_ED448: &[u8; 6] = b"ED448\0"; pub const NID_ED448: i32 = 960; pub const SN_X448: &[u8; 5] = b"X448\0"; @@ -3137,23 +3231,80 @@ pub const SN_KYBER768_R3: &[u8; 12] = b"KYBER768_R3\0"; pub const NID_KYBER768_R3: i32 = 973; pub const SN_KYBER1024_R3: &[u8; 13] = b"KYBER1024_R3\0"; pub const NID_KYBER1024_R3: i32 = 974; +pub const SN_DILITHIUM3_R3: &[u8; 14] = b"DILITHIUM3_R3\0"; +pub const NID_DILITHIUM3_R3: i32 = 975; +pub const SN_ffdhe2048: &[u8; 10] = b"ffdhe2048\0"; +pub const NID_ffdhe2048: i32 = 976; +pub const SN_ffdhe4096: &[u8; 10] = b"ffdhe4096\0"; +pub const NID_ffdhe4096: i32 = 977; +pub const SN_sha512_224: &[u8; 11] = b"SHA512-224\0"; +pub const LN_sha512_224: &[u8; 11] = b"sha512-224\0"; +pub const NID_sha512_224: i32 = 978; +pub const SN_shake128: &[u8; 9] = b"SHAKE128\0"; +pub const LN_shake128: &[u8; 9] = b"shake128\0"; +pub const NID_shake128: i32 = 979; +pub const SN_shake256: &[u8; 9] = b"SHAKE256\0"; +pub const LN_shake256: &[u8; 9] = b"shake256\0"; +pub const NID_shake256: i32 = 980; +pub const SN_SecP256r1Kyber768Draft00: &[u8; 25] = b"SecP256r1Kyber768Draft00\0"; +pub const NID_SecP256r1Kyber768Draft00: i32 = 981; +pub const SN_X25519Kyber768Draft00: &[u8; 22] = b"X25519Kyber768Draft00\0"; +pub const NID_X25519Kyber768Draft00: i32 = 982; +pub const SN_ffdhe3072: &[u8; 10] = b"ffdhe3072\0"; +pub const NID_ffdhe3072: i32 = 983; +pub const SN_ffdhe8192: &[u8; 10] = b"ffdhe8192\0"; +pub const NID_ffdhe8192: i32 = 984; +pub const SN_MLKEM512IPD: &[u8; 12] = b"MLKEM512IPD\0"; +pub const NID_MLKEM512IPD: i32 = 985; +pub const SN_MLKEM768IPD: &[u8; 12] = b"MLKEM768IPD\0"; +pub const NID_MLKEM768IPD: i32 = 986; +pub const SN_MLKEM1024IPD: &[u8; 13] = b"MLKEM1024IPD\0"; +pub const NID_MLKEM1024IPD: i32 = 987; +pub const SN_MLKEM512: &[u8; 9] = b"MLKEM512\0"; +pub const NID_MLKEM512: i32 = 988; +pub const SN_MLKEM768: &[u8; 9] = b"MLKEM768\0"; +pub const NID_MLKEM768: i32 = 989; +pub const SN_MLKEM1024: &[u8; 10] = b"MLKEM1024\0"; +pub const NID_MLKEM1024: i32 = 990; +pub const SN_X25519MLKEM768: &[u8; 15] = b"X25519MLKEM768\0"; +pub const NID_X25519MLKEM768: i32 = 991; +pub const SN_SecP256r1MLKEM768: &[u8; 18] = b"SecP256r1MLKEM768\0"; +pub const NID_SecP256r1MLKEM768: i32 = 992; +pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; +pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; +pub const OBJ_R_UNKNOWN_NID: i32 = 100; +pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const EVP_PKEY_NONE: i32 = 0; pub const EVP_PKEY_RSA: i32 = 6; pub const EVP_PKEY_RSA_PSS: i32 = 912; -pub const EVP_PKEY_DSA: i32 = 116; pub const EVP_PKEY_EC: i32 = 408; pub const EVP_PKEY_ED25519: i32 = 949; pub const EVP_PKEY_X25519: i32 = 948; -pub const EVP_PKEY_KYBER512: i32 = 971; pub const EVP_PKEY_HKDF: i32 = 969; -pub const EVP_PKEY_KEM: i32 = 970; +pub const EVP_PKEY_HMAC: i32 = 855; pub const EVP_PKEY_DH: i32 = 28; +pub const EVP_PKEY_KEM: i32 = 970; +pub const PKCS5_SALT_LEN: i32 = 8; pub const EVP_PKEY_RSA2: i32 = 19; pub const EVP_PKEY_X448: i32 = 961; pub const EVP_PKEY_ED448: i32 = 960; +pub const EVP_PKEY_DSA: i32 = 116; 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; +pub const HMAC_R_SET_PRECOMPUTED_KEY_EXPORT_NOT_CALLED: i32 = 103; +pub const HMAC_R_NOT_CALLED_JUST_AFTER_INIT: i32 = 104; pub const EVP_HPKE_DHKEM_X25519_HKDF_SHA256: i32 = 32; pub const EVP_HPKE_MAX_PUBLIC_KEY_LENGTH: i32 = 32; pub const EVP_HPKE_MAX_PRIVATE_KEY_LENGTH: i32 = 32; @@ -3173,26 +3324,26 @@ pub const HRSS_POLY3_BYTES: i32 = 140; pub const HRSS_PRIVATE_KEY_BYTES: i32 = 1452; pub const MD4_CBLOCK: i32 = 64; pub const MD4_DIGEST_LENGTH: i32 = 16; -pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; -pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; -pub const OBJ_R_UNKNOWN_NID: i32 = 100; -pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const PKCS7_DETACHED: i32 = 64; +pub const PKCS7_BINARY: i32 = 128; +pub const PKCS7_NOATTR: i32 = 256; +pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_TEXT: i32 = 1; pub const PKCS7_NOCERTS: i32 = 2; +pub const PKCS7_NOSMIMECAP: i32 = 512; +pub const PKCS7_STREAM: i32 = 4096; pub const PKCS7_NOSIGS: i32 = 4; pub const PKCS7_NOCHAIN: i32 = 8; pub const PKCS7_NOINTERN: i32 = 16; pub const PKCS7_NOVERIFY: i32 = 32; -pub const PKCS7_BINARY: i32 = 128; -pub const PKCS7_NOATTR: i32 = 256; -pub const PKCS7_NOSMIMECAP: i32 = 512; -pub const PKCS7_STREAM: i32 = 4096; -pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_R_BAD_PKCS7_VERSION: i32 = 100; pub const PKCS7_R_NOT_PKCS7_SIGNED_DATA: i32 = 101; pub const PKCS7_R_NO_CERTIFICATES_INCLUDED: i32 = 102; pub const PKCS7_R_NO_CRLS_INCLUDED: i32 = 103; +pub const PKCS7_R_UNSUPPORTED_CONTENT_TYPE: i32 = 104; +pub const PKCS7_R_WRONG_CONTENT_TYPE: i32 = 105; +pub const PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER: i32 = 106; +pub const PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE: i32 = 107; pub const RSA_PKCS1_PADDING: i32 = 1; pub const RSA_NO_PADDING: i32 = 3; pub const RSA_PKCS1_OAEP_PADDING: i32 = 4; @@ -3201,6 +3352,8 @@ pub const RSA_PSS_SALTLEN_DIGEST: i32 = -1; pub const RSA_FLAG_OPAQUE: i32 = 1; pub const RSA_FLAG_NO_BLINDING: i32 = 8; pub const RSA_FLAG_EXT_PKEY: i32 = 32; +pub const RSA_FLAG_NO_PUBLIC_EXPONENT: i32 = 64; +pub const RSA_FLAG_LARGE_PUBLIC_EXPONENT: i32 = 128; pub const RSA_3: i32 = 3; pub const RSA_F4: i32 = 65537; pub const RSA_METHOD_FLAG_NO_CHECK: i32 = 1; @@ -3254,15 +3407,86 @@ pub const RSA_R_PUBLIC_KEY_VALIDATION_FAILED: i32 = 146; pub const RSA_R_D_OUT_OF_RANGE: i32 = 147; pub const RSA_R_BLOCK_TYPE_IS_NOT_02: i32 = 148; pub const RSA_R_MISMATCHED_SIGNATURE: i32 = 248; +pub const RSA_F_RSA_OSSL_PRIVATE_ENCRYPT: i32 = 0; +pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; +pub const X509V3_R_BAD_OBJECT: i32 = 101; +pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; +pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; +pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; +pub const X509V3_R_DIRNAME_ERROR: i32 = 105; +pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; +pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; +pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; +pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; +pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; +pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; +pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; +pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; +pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; +pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; +pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; +pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; +pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; +pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; +pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; +pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; +pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; +pub const X509V3_R_INVALID_NAME: i32 = 123; +pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; +pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; +pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; +pub const X509V3_R_INVALID_NUMBER: i32 = 127; +pub const X509V3_R_INVALID_NUMBERS: i32 = 128; +pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; +pub const X509V3_R_INVALID_OPTION: i32 = 130; +pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; +pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; +pub const X509V3_R_INVALID_PURPOSE: i32 = 133; +pub const X509V3_R_INVALID_SECTION: i32 = 134; +pub const X509V3_R_INVALID_SYNTAX: i32 = 135; +pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; +pub const X509V3_R_MISSING_VALUE: i32 = 137; +pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; +pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; +pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; +pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; +pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; +pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; +pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; +pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; +pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; +pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; +pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; +pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; +pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; +pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; +pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; +pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; +pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; +pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; +pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; +pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; +pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; +pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; +pub const X509V3_R_USER_TOO_LONG: i32 = 162; +pub const X509V3_R_INVALID_VALUE: i32 = 163; +pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; pub const X509_VERSION_1: i32 = 0; pub const X509_VERSION_2: i32 = 1; pub const X509_VERSION_3: i32 = 2; -pub const X509_CRL_VERSION_1: i32 = 0; -pub const X509_CRL_VERSION_2: i32 = 1; -pub const X509_REQ_VERSION_1: i32 = 0; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; +pub const EXFLAG_BCONS: i32 = 1; +pub const EXFLAG_KUSAGE: i32 = 2; +pub const EXFLAG_XKUSAGE: i32 = 4; +pub const EXFLAG_NSCERT: i32 = 8; +pub const EXFLAG_CA: i32 = 16; +pub const EXFLAG_SI: i32 = 32; +pub const EXFLAG_V1: i32 = 64; +pub const EXFLAG_INVALID: i32 = 128; +pub const EXFLAG_SET: i32 = 256; +pub const EXFLAG_CRITICAL: i32 = 512; +pub const EXFLAG_SS: i32 = 8192; pub const X509v3_KU_DIGITAL_SIGNATURE: i32 = 128; pub const X509v3_KU_NON_REPUDIATION: i32 = 64; pub const X509v3_KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3272,60 +3496,29 @@ pub const X509v3_KU_KEY_CERT_SIGN: i32 = 4; pub const X509v3_KU_CRL_SIGN: i32 = 2; pub const X509v3_KU_ENCIPHER_ONLY: i32 = 1; pub const X509v3_KU_DECIPHER_ONLY: i32 = 32768; -pub const X509v3_KU_UNDEF: i32 = 65535; -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_OCSP_SIGN: i32 = 6; -pub const X509_TRUST_OCSP_REQUEST: i32 = 7; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_MIN: i32 = 1; -pub const X509_TRUST_MAX: i32 = 8; -pub const X509_TRUST_DYNAMIC: i32 = 1; -pub const X509_TRUST_DYNAMIC_NAME: i32 = 2; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -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 XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_COMPAT: i32 = 0; -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_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 XKU_SSL_SERVER: i32 = 1; +pub const XKU_SSL_CLIENT: i32 = 2; +pub const XKU_SMIME: i32 = 4; +pub const XKU_CODE_SIGN: i32 = 8; +pub const XKU_SGC: i32 = 16; +pub const XKU_OCSP_SIGN: i32 = 32; +pub const XKU_TIMESTAMP: i32 = 64; +pub const XKU_DVCS: i32 = 128; +pub const XKU_ANYEKU: i32 = 256; +pub const X509_SIG_INFO_VALID: i32 = 1; +pub const X509_SIG_INFO_TLS: i32 = 2; +pub const X509_CRL_VERSION_1: i32 = 0; +pub const X509_CRL_VERSION_2: i32 = 1; +pub const X509_REQ_VERSION_1: i32 = 0; +pub const GEN_OTHERNAME: i32 = 0; +pub const GEN_EMAIL: i32 = 1; +pub const GEN_DNS: i32 = 2; +pub const GEN_X400: i32 = 3; +pub const GEN_DIRNAME: i32 = 4; +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_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3387,31 +3580,117 @@ 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_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; -pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; -pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; -pub const X509_V_FLAG_X509_STRICT: i32 = 0; -pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; -pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; -pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; -pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; -pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; -pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; -pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; -pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; -pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; -pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; +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; +pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; +pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; +pub const X509_V_FLAG_X509_STRICT: i32 = 0; +pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; +pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; +pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; +pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; +pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; +pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; +pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; +pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; +pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; +pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; pub const X509_V_FLAG_PARTIAL_CHAIN: i32 = 524288; pub const X509_V_FLAG_NO_ALT_CHAINS: i32 = 1048576; pub const X509_V_FLAG_NO_CHECK_TIME: i32 = 2097152; -pub const X509_VP_FLAG_DEFAULT: i32 = 1; -pub const X509_VP_FLAG_OVERWRITE: i32 = 2; -pub const X509_VP_FLAG_RESET_FLAGS: i32 = 4; -pub const X509_VP_FLAG_LOCKED: i32 = 8; -pub const X509_VP_FLAG_ONCE: i32 = 16; pub const X509_V_FLAG_POLICY_MASK: i32 = 1920; +pub const X509V3_EXT_CTX_DEP: i32 = 2; +pub const X509V3_EXT_MULTILINE: i32 = 4; +pub const CRLDP_ALL_REASONS: i32 = 32895; +pub const NS_SSL_CLIENT: i32 = 128; +pub const NS_SSL_SERVER: i32 = 64; +pub const NS_SMIME: i32 = 32; +pub const NS_OBJSIGN: i32 = 16; +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 X509V3_ADD_OP_MASK: i32 = 15; +pub const X509V3_ADD_DEFAULT: i32 = 0; +pub const X509V3_ADD_APPEND: i32 = 1; +pub const X509V3_ADD_REPLACE: i32 = 2; +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_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -3457,19 +3736,7 @@ pub const X509_R_NO_CERTIFICATE_FOUND: i32 = 141; pub const X509_R_NO_CERTIFICATE_OR_CRL_FOUND: i32 = 142; pub const X509_R_NO_CRL_FOUND: i32 = 143; pub const X509_R_INVALID_POLICY_EXTENSION: i32 = 144; -pub const X509V3_EXT_DYNAMIC: i32 = 1; -pub const X509V3_EXT_CTX_DEP: i32 = 2; -pub const X509V3_EXT_MULTILINE: i32 = 4; -pub const GEN_OTHERNAME: i32 = 0; -pub const GEN_EMAIL: i32 = 1; -pub const GEN_DNS: i32 = 2; -pub const GEN_X400: i32 = 3; -pub const GEN_DIRNAME: i32 = 4; -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 CRLDP_ALL_REASONS: i32 = 32895; +pub const X509_R_UNKNOWN_SIGID_ALGS: i32 = 145; pub const CRL_REASON_NONE: i32 = -1; pub const CRL_REASON_UNSPECIFIED: i32 = 0; pub const CRL_REASON_KEY_COMPROMISE: i32 = 1; @@ -3481,26 +3748,6 @@ pub const CRL_REASON_CERTIFICATE_HOLD: i32 = 6; pub const CRL_REASON_REMOVE_FROM_CRL: i32 = 8; pub const CRL_REASON_PRIVILEGE_WITHDRAWN: i32 = 9; pub const CRL_REASON_AA_COMPROMISE: i32 = 10; -pub const IDP_PRESENT: i32 = 1; -pub const IDP_INVALID: i32 = 2; -pub const IDP_ONLYUSER: i32 = 4; -pub const IDP_ONLYCA: i32 = 8; -pub const IDP_ONLYATTR: i32 = 16; -pub const IDP_INDIRECT: i32 = 32; -pub const IDP_REASONS: i32 = 64; -pub const EXFLAG_BCONS: i32 = 1; -pub const EXFLAG_KUSAGE: i32 = 2; -pub const EXFLAG_XKUSAGE: i32 = 4; -pub const EXFLAG_NSCERT: i32 = 8; -pub const EXFLAG_CA: i32 = 16; -pub const EXFLAG_SI: i32 = 32; -pub const EXFLAG_V1: i32 = 64; -pub const EXFLAG_INVALID: i32 = 128; -pub const EXFLAG_SET: i32 = 256; -pub const EXFLAG_CRITICAL: i32 = 512; -pub const EXFLAG_PROXY: i32 = 1024; -pub const EXFLAG_FRESHEST: i32 = 4096; -pub const EXFLAG_SS: i32 = 8192; pub const KU_DIGITAL_SIGNATURE: i32 = 128; pub const KU_NON_REPUDIATION: i32 = 64; pub const KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3510,124 +3757,24 @@ pub const KU_KEY_CERT_SIGN: i32 = 4; pub const KU_CRL_SIGN: i32 = 2; pub const KU_ENCIPHER_ONLY: i32 = 1; pub const KU_DECIPHER_ONLY: i32 = 32768; -pub const NS_SSL_CLIENT: i32 = 128; -pub const NS_SSL_SERVER: i32 = 64; -pub const NS_SMIME: i32 = 32; -pub const NS_OBJSIGN: i32 = 16; -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 XKU_SSL_SERVER: i32 = 1; -pub const XKU_SSL_CLIENT: i32 = 2; -pub const XKU_SMIME: i32 = 4; -pub const XKU_CODE_SIGN: i32 = 8; -pub const XKU_SGC: i32 = 16; -pub const XKU_OCSP_SIGN: i32 = 32; -pub const XKU_TIMESTAMP: i32 = 64; -pub const XKU_DVCS: i32 = 128; -pub const XKU_ANYEKU: i32 = 256; -pub const X509_PURPOSE_DYNAMIC: i32 = 1; -pub const X509_PURPOSE_DYNAMIC_NAME: i32 = 2; -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_PURPOSE_MIN: i32 = 1; -pub const X509_PURPOSE_MAX: i32 = 9; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509V3_ADD_OP_MASK: i32 = 15; -pub const X509V3_ADD_DEFAULT: i32 = 0; -pub const X509V3_ADD_APPEND: i32 = 1; -pub const X509V3_ADD_REPLACE: i32 = 2; -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 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 X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: 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_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; -pub const X509V3_R_BAD_OBJECT: i32 = 101; -pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; -pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; -pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; -pub const X509V3_R_DIRNAME_ERROR: i32 = 105; -pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; -pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; -pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; -pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; -pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; -pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; -pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; -pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; -pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; -pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; -pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; -pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; -pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; -pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; -pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; -pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; -pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; -pub const X509V3_R_INVALID_NAME: i32 = 123; -pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; -pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; -pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; -pub const X509V3_R_INVALID_NUMBER: i32 = 127; -pub const X509V3_R_INVALID_NUMBERS: i32 = 128; -pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; -pub const X509V3_R_INVALID_OPTION: i32 = 130; -pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; -pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; -pub const X509V3_R_INVALID_PURPOSE: i32 = 133; -pub const X509V3_R_INVALID_SECTION: i32 = 134; -pub const X509V3_R_INVALID_SYNTAX: i32 = 135; -pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; -pub const X509V3_R_MISSING_VALUE: i32 = 137; -pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; -pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; -pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; -pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; -pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; -pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; -pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; -pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; -pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; -pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; -pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; -pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; -pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; -pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; -pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; -pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; -pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; -pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; -pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; -pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; -pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; -pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; -pub const X509V3_R_USER_TOO_LONG: i32 = 162; -pub const X509V3_R_INVALID_VALUE: i32 = 163; -pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; +pub const OCSP_REVOKED_STATUS_UNSPECIFIED: i32 = 0; +pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: i32 = 1; +pub const OCSP_REVOKED_STATUS_CACOMPROMISE: i32 = 2; +pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: i32 = 3; +pub const OCSP_REVOKED_STATUS_SUPERSEDED: i32 = 4; +pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: i32 = 5; +pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: i32 = 6; +pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: i32 = 8; +pub const OCSP_REVOKED_STATUS_PRIVILEGEWITHDRAWN: i32 = 9; +pub const OCSP_REVOKED_STATUS_AACOMPROMISE: i32 = 10; +pub const OCSP_NOCERTS: i32 = 1; pub const OCSP_NOINTERN: i32 = 2; pub const OCSP_NOCHAIN: i32 = 8; +pub const OCSP_NOVERIFY: i32 = 16; pub const OCSP_NOEXPLICIT: i32 = 32; +pub const OCSP_TRUSTOTHER: i32 = 512; +pub const OCSP_RESPID_KEY: i32 = 1024; +pub const OCSP_NOTIME: i32 = 2048; pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: i32 = 0; pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: i32 = 1; pub const OCSP_RESPONSE_STATUS_INTERNALERROR: i32 = 2; @@ -3639,19 +3786,38 @@ pub const V_OCSP_RESPID_KEY: i32 = 1; pub const V_OCSP_CERTSTATUS_GOOD: i32 = 0; pub const V_OCSP_CERTSTATUS_REVOKED: i32 = 1; pub const V_OCSP_CERTSTATUS_UNKNOWN: i32 = 2; +pub const OCSP_NONCE_EQUAL: i32 = 1; +pub const OCSP_NONCE_BOTH_ABSENT: i32 = 2; +pub const OCSP_NONCE_RESPONSE_ONLY: i32 = 3; +pub const OCSP_NONCE_NOT_EQUAL: i32 = 0; +pub const OCSP_NONCE_REQUEST_ONLY: i32 = -1; pub const OCSP_R_CERTIFICATE_VERIFY_ERROR: i32 = 101; pub const OCSP_R_DIGEST_ERR: i32 = 102; pub const OCSP_R_MISSING_OCSPSIGNING_USAGE: i32 = 103; pub const OCSP_R_NOT_BASIC_RESPONSE: i32 = 104; pub const OCSP_R_NO_CERTIFICATES_IN_CHAIN: i32 = 105; pub const OCSP_R_NO_RESPONSE_DATA: i32 = 108; +pub const OCSP_R_NO_REVOKED_TIME: i32 = 109; +pub const OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE: i32 = 110; pub const OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA: i32 = 111; pub const OCSP_R_ROOT_CA_NOT_TRUSTED: i32 = 112; +pub const OCSP_R_SERVER_RESPONSE_PARSE_ERROR: i32 = 115; pub const OCSP_R_SIGNATURE_FAILURE: i32 = 117; pub const OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND: i32 = 118; pub const OCSP_R_UNKNOWN_MESSAGE_DIGEST: i32 = 119; pub const OCSP_R_UNKNOWN_NID: i32 = 120; +pub const OCSP_R_ERROR_PARSING_URL: i32 = 121; +pub const OCSP_R_ERROR_IN_NEXTUPDATE_FIELD: i32 = 122; +pub const OCSP_R_ERROR_IN_THISUPDATE_FIELD: i32 = 123; +pub const OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE: i32 = 124; +pub const OCSP_R_STATUS_EXPIRED: i32 = 125; +pub const OCSP_R_STATUS_NOT_YET_VALID: i32 = 126; +pub const OCSP_R_STATUS_TOO_OLD: i32 = 127; +pub const OCSP_R_REQUEST_NOT_SIGNED: i32 = 128; +pub const OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE: i32 = 129; pub const OCSP_R_NO_SIGNER_KEY: i32 = 130; +pub const OCSP_R_OCSP_REQUEST_DUPLICATE_SIGNATURE: i32 = 131; +pub const OCSP_R_UNKNOWN_FIELD_VALUE: i32 = 132; pub const PEM_BUFSIZE: i32 = 1024; pub const PEM_STRING_X509_OLD: &[u8; 17] = b"X509 CERTIFICATE\0"; pub const PEM_STRING_X509: &[u8; 12] = b"CERTIFICATE\0"; @@ -3675,7 +3841,9 @@ pub const PEM_STRING_DHPARAMS: &[u8; 14] = b"DH PARAMETERS\0"; pub const PEM_STRING_SSL_SESSION: &[u8; 23] = b"SSL SESSION PARAMETERS\0"; pub const PEM_STRING_DSAPARAMS: &[u8; 15] = b"DSA PARAMETERS\0"; pub const PEM_STRING_ECDSA_PUBLIC: &[u8; 17] = b"ECDSA PUBLIC KEY\0"; +pub const PEM_STRING_ECPARAMETERS: &[u8; 14] = b"EC PARAMETERS\0"; pub const PEM_STRING_ECPRIVATEKEY: &[u8; 15] = b"EC PRIVATE KEY\0"; +pub const PEM_STRING_PARAMETERS: &[u8; 11] = b"PARAMETERS\0"; pub const PEM_STRING_CMS: &[u8; 4] = b"CMS\0"; pub const PEM_TYPE_ENCRYPTED: i32 = 10; pub const PEM_TYPE_MIC_ONLY: i32 = 20; @@ -3696,6 +3864,7 @@ pub const PEM_R_READ_KEY: i32 = 111; pub const PEM_R_SHORT_HEADER: i32 = 112; pub const PEM_R_UNSUPPORTED_CIPHER: i32 = 113; pub const PEM_R_UNSUPPORTED_ENCRYPTION: i32 = 114; +pub const PEM_R_PROBLEMS_GETTING_PASSWORD: i32 = 115; pub const PKCS12_DEFAULT_ITER: i32 = 2048; pub const PKCS8_R_BAD_PKCS12_DATA: i32 = 100; pub const PKCS8_R_BAD_PKCS12_VERSION: i32 = 101; @@ -3731,11 +3900,12 @@ pub const PKCS8_R_UNSUPPORTED_PRF: i32 = 130; pub const PKCS8_R_INVALID_CHARACTERS: i32 = 131; pub const PKCS8_R_UNSUPPORTED_OPTIONS: i32 = 132; pub const PKCS8_R_AMBIGUOUS_FRIENDLY_NAME: i32 = 133; +pub const PKCS12_R_MAC_VERIFY_FAILURE: i32 = 108; pub const RIPEMD160_CBLOCK: i32 = 64; pub const RIPEMD160_LBLOCK: i32 = 16; pub const RIPEMD160_DIGEST_LENGTH: i32 = 20; pub const AWSLC_MODE_STRING: &[u8; 8] = b"AWS-LC \0"; -pub const AWSLC_VERSION_STRING: &[u8; 14] = b"AWS-LC 2.0.15\0"; +pub const AWSLC_VERSION_STRING: &[u8; 13] = b"AWS-LC 3.0.0\0"; pub const TRUST_TOKEN_MAX_PRIVATE_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_MAX_PUBLIC_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_R_KEYGEN_FAILURE: i32 = 100; @@ -3855,6 +4025,7 @@ pub type AUTHORITY_KEYID = AUTHORITY_KEYID_st; pub type BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; pub type DIST_POINT = DIST_POINT_st; pub type DSA_SIG = DSA_SIG_st; +pub type GENERAL_NAME = GENERAL_NAME_st; pub type ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; pub type NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; pub type NETSCAPE_SPKAC = Netscape_spkac_st; @@ -3906,6 +4077,12 @@ pub struct X509_req_st { pub type X509_REQ = X509_req_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct x509_sig_info_st { + _unused: [u8; 0], +} +pub type X509_SIG_INFO = x509_sig_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct X509_sig_st { _unused: [u8; 0], } @@ -3968,6 +4145,11 @@ pub struct dh_st { _unused: [u8; 0], } pub type DH = dh_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_st { + _unused: [u8; 0], +} pub type DSA = dsa_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3987,7 +4169,12 @@ pub struct ec_point_st { _unused: [u8; 0], } pub type EC_POINT = ec_point_st; -pub type ECDSA_METHOD = ecdsa_method_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_key_method_st { + _unused: [u8; 0], +} +pub type EC_KEY_METHOD = ec_key_method_st; pub type ECDSA_SIG = ecdsa_sig_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4051,32 +4238,75 @@ pub struct kem_key_st { pub type KEM_KEY = kem_key_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_asn1_method_st { +pub struct evp_pkey_ctx_st { _unused: [u8; 0], } -pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; +pub type EVP_PKEY_CTX = evp_pkey_ctx_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_ctx_st { +pub struct evp_pkey_asn1_method_st { _unused: [u8; 0], } -pub type EVP_PKEY_CTX = evp_pkey_ctx_st; +pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_method_st { +pub struct evp_pkey_st { _unused: [u8; 0], } -pub type EVP_PKEY_METHOD = evp_pkey_method_st; pub type EVP_PKEY = evp_pkey_st; pub type HMAC_CTX = hmac_ctx_st; pub type MD4_CTX = md4_state_st; pub type MD5_CTX = md5_state_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_req_ctx_st { + _unused: [u8; 0], +} +pub type OCSP_REQ_CTX = ocsp_req_ctx_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ossl_init_settings_st { _unused: [u8; 0], } pub type OPENSSL_INIT_SETTINGS = ossl_init_settings_st; +pub type PKCS7 = pkcs7_st; +pub type PKCS7_SIGNED = pkcs7_signed_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_ENVELOPE = pkcs7_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_sign_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGN_ENVELOPE = pkcs7_sign_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_digest_st { + _unused: [u8; 0], +} +pub type PKCS7_DIGEST = pkcs7_digest_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_encrypt_st { + _unused: [u8; 0], +} +pub type PKCS7_ENCRYPT = pkcs7_encrypt_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_recip_info_st { + _unused: [u8; 0], +} +pub type PKCS7_RECIP_INFO = pkcs7_recip_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_signer_info_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGNER_INFO = pkcs7_signer_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pkcs12_st { @@ -4092,6 +4322,11 @@ pub type PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; pub type X509_PKEY = private_key_st; pub type RAND_METHOD = rand_meth_st; pub type RC4_KEY = rc4_key_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_meth_st { + _unused: [u8; 0], +} pub type RSA_METHOD = rsa_meth_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4100,6 +4335,11 @@ pub struct rsassa_pss_params_st { } pub type RSASSA_PSS_PARAMS = rsassa_pss_params_st; pub type RSA_PSS_PARAMS = rsa_pss_params_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_st { + _unused: [u8; 0], +} pub type RSA = rsa_st; pub type SHA256_CTX = sha256_state_st; pub type SHA512_CTX = sha512_state_st; @@ -4202,6 +4442,7 @@ pub struct trust_token_method_st { } pub type TRUST_TOKEN_METHOD = trust_token_method_st; pub type X509V3_CTX = v3_ext_ctx; +pub type X509V3_EXT_METHOD = v3_ext_method; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x509_attributes_st { @@ -4304,7 +4545,7 @@ impl Default for aes_key_st { } pub type AES_KEY = aes_key_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_set_encrypt_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_set_encrypt_key"] pub fn AES_set_encrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4312,7 +4553,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_set_decrypt_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_set_decrypt_key"] pub fn AES_set_decrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4320,15 +4561,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_encrypt"] pub fn AES_encrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_decrypt"] pub fn AES_decrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_ctr128_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_ctr128_encrypt"] pub fn AES_ctr128_encrypt( in_: *const u8, out: *mut u8, @@ -4340,7 +4581,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_ecb_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_ecb_encrypt"] pub fn AES_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -4349,7 +4590,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_cbc_encrypt"] pub fn AES_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -4360,7 +4601,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_ofb128_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_ofb128_encrypt"] pub fn AES_ofb128_encrypt( in_: *const u8, out: *mut u8, @@ -4371,7 +4612,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_cfb128_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_cfb128_encrypt"] pub fn AES_cfb128_encrypt( in_: *const u8, out: *mut u8, @@ -4383,7 +4624,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_wrap_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_wrap_key"] pub fn AES_wrap_key( key: *const AES_KEY, iv: *const u8, @@ -4393,7 +4634,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_unwrap_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_unwrap_key"] pub fn AES_unwrap_key( key: *const AES_KEY, iv: *const u8, @@ -4403,7 +4644,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_wrap_key_padded"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_wrap_key_padded"] pub fn AES_wrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4414,7 +4655,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_unwrap_key_padded"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_unwrap_key_padded"] pub fn AES_unwrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4961,27 +5202,27 @@ impl Default for buf_mem_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_new"] pub fn BUF_MEM_new() -> *mut BUF_MEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_free"] pub fn BUF_MEM_free(buf: *mut BUF_MEM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_reserve"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_reserve"] pub fn BUF_MEM_reserve(buf: *mut BUF_MEM, cap: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_grow"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_grow"] pub fn BUF_MEM_grow(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_grow_clean"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_grow_clean"] pub fn BUF_MEM_grow_clean(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_append"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_append"] pub fn BUF_MEM_append( buf: *mut BUF_MEM, in_: *const ::std::os::raw::c_void, @@ -4989,29 +5230,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strdup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strdup"] pub fn BUF_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strnlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strnlen"] pub fn BUF_strnlen(str_: *const ::std::os::raw::c_char, max_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strndup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strndup"] pub fn BUF_strndup( str_: *const ::std::os::raw::c_char, size: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_memdup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_memdup"] pub fn BUF_memdup( data: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strlcpy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strlcpy"] pub fn BUF_strlcpy( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5019,7 +5260,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strlcat"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strlcat"] pub fn BUF_strlcat( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5027,330 +5268,104 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_BIO_strings"] - pub fn ERR_load_BIO_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_ERR_strings"] - pub fn ERR_load_ERR_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_crypto_strings"] - pub fn ERR_load_crypto_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_RAND_strings"] - pub fn ERR_load_RAND_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_free_strings"] - pub fn ERR_free_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_error"] - pub fn ERR_get_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_error_line"] - pub fn ERR_get_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_error_line_data"] - pub fn ERR_get_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_error"] - pub fn ERR_peek_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_error_line"] - pub fn ERR_peek_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_error_line_data"] - pub fn ERR_peek_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_last_error"] - pub fn ERR_peek_last_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_last_error_line"] - pub fn ERR_peek_last_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_last_error_line_data"] - pub fn ERR_peek_last_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_error_string_n"] - pub fn ERR_error_string_n( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - len: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_lib_error_string"] - pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Init"] + pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_reason_error_string"] - pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -pub type ERR_print_errors_callback_t = ::std::option::Option< - unsafe extern "C" fn( - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Update"] + pub fn SHA1_Update( + sha: *mut SHA_CTX, + data: *const ::std::os::raw::c_void, len: usize, - ctx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_print_errors_cb"] - pub fn ERR_print_errors_cb( - callback: ERR_print_errors_callback_t, - ctx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_print_errors_fp"] - pub fn ERR_print_errors_fp(file: *mut FILE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_clear_error"] - pub fn ERR_clear_error(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_set_mark"] - pub fn ERR_set_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_pop_to_mark"] - pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_next_error_library"] - pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; -} -pub const ERR_LIB_NONE: _bindgen_ty_1 = 1; -pub const ERR_LIB_SYS: _bindgen_ty_1 = 2; -pub const ERR_LIB_BN: _bindgen_ty_1 = 3; -pub const ERR_LIB_RSA: _bindgen_ty_1 = 4; -pub const ERR_LIB_DH: _bindgen_ty_1 = 5; -pub const ERR_LIB_EVP: _bindgen_ty_1 = 6; -pub const ERR_LIB_BUF: _bindgen_ty_1 = 7; -pub const ERR_LIB_OBJ: _bindgen_ty_1 = 8; -pub const ERR_LIB_PEM: _bindgen_ty_1 = 9; -pub const ERR_LIB_DSA: _bindgen_ty_1 = 10; -pub const ERR_LIB_X509: _bindgen_ty_1 = 11; -pub const ERR_LIB_ASN1: _bindgen_ty_1 = 12; -pub const ERR_LIB_CONF: _bindgen_ty_1 = 13; -pub const ERR_LIB_CRYPTO: _bindgen_ty_1 = 14; -pub const ERR_LIB_EC: _bindgen_ty_1 = 15; -pub const ERR_LIB_SSL: _bindgen_ty_1 = 16; -pub const ERR_LIB_BIO: _bindgen_ty_1 = 17; -pub const ERR_LIB_PKCS7: _bindgen_ty_1 = 18; -pub const ERR_LIB_PKCS8: _bindgen_ty_1 = 19; -pub const ERR_LIB_X509V3: _bindgen_ty_1 = 20; -pub const ERR_LIB_RAND: _bindgen_ty_1 = 21; -pub const ERR_LIB_ENGINE: _bindgen_ty_1 = 22; -pub const ERR_LIB_OCSP: _bindgen_ty_1 = 23; -pub const ERR_LIB_UI: _bindgen_ty_1 = 24; -pub const ERR_LIB_COMP: _bindgen_ty_1 = 25; -pub const ERR_LIB_ECDSA: _bindgen_ty_1 = 26; -pub const ERR_LIB_ECDH: _bindgen_ty_1 = 27; -pub const ERR_LIB_HMAC: _bindgen_ty_1 = 28; -pub const ERR_LIB_DIGEST: _bindgen_ty_1 = 29; -pub const ERR_LIB_CIPHER: _bindgen_ty_1 = 30; -pub const ERR_LIB_HKDF: _bindgen_ty_1 = 31; -pub const ERR_LIB_TRUST_TOKEN: _bindgen_ty_1 = 32; -pub const ERR_LIB_USER: _bindgen_ty_1 = 33; -pub const ERR_NUM_LIBS: _bindgen_ty_1 = 34; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_remove_state"] - pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_remove_thread_state"] - pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_func_error_string"] - pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_error_string"] - pub fn ERR_error_string( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_clear_system_error"] - pub fn ERR_clear_system_error(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_put_error"] - pub fn ERR_put_error( - library: ::std::os::raw::c_int, - unused: ::std::os::raw::c_int, - reason: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_uint, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_add_error_data"] - pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Final"] + pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_add_error_dataf"] - pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1"] + pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_set_error_data"] - pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Transform"] + pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); } -pub type OPENSSL_sk_free_func = - ::std::option::Option; -pub type OPENSSL_sk_copy_func = ::std::option::Option< - unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *const ::std::os::raw::c_void, - b: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - obj: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_free_func = ::std::option::Option< - unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), ->; -pub type OPENSSL_sk_call_copy_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_copy_func, - arg2: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_cmp_func, - arg2: *const *const ::std::os::raw::c_void, - arg3: *const *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_delete_if_func, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct stack_st { - pub num: usize, - pub data: *mut *mut ::std::os::raw::c_void, - pub sorted: ::std::os::raw::c_int, - pub num_alloc: usize, - pub comp: OPENSSL_sk_cmp_func, +pub struct sha_state_st { + pub h: [u32; 5usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_stack_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha_state_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!(stack_st)) + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(sha_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stack_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(data) + stringify!(Nl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sorted) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(sorted) + stringify!(Nh) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_alloc) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num_alloc) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 92usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(comp) + stringify!(num) ) ); } -impl Default for stack_st { +impl Default for sha_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5359,354 +5374,278 @@ impl Default for stack_st { } } } -pub type _STACK = stack_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_new"] - pub fn sk_new(comp: OPENSSL_sk_cmp_func) -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224_Init"] + pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_new_null"] - pub fn sk_new_null() -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224_Update"] + pub fn SHA224_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_num"] - pub fn sk_num(sk: *const _STACK) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224_Final"] + pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_zero"] - pub fn sk_zero(sk: *mut _STACK); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224"] + pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_value"] - pub fn sk_value(sk: *const _STACK, i: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Init"] + pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_set"] - pub fn sk_set( - sk: *mut _STACK, - i: usize, - p: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Update"] + pub fn SHA256_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_free"] - pub fn sk_free(sk: *mut _STACK); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Final"] + pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_pop_free_ex"] - pub fn sk_pop_free_ex( - sk: *mut _STACK, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256"] + pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_insert"] - pub fn sk_insert(sk: *mut _STACK, p: *mut ::std::os::raw::c_void, where_: usize) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Transform"] + pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_delete"] - pub fn sk_delete(sk: *mut _STACK, where_: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_TransformBlocks"] + pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_delete_ptr"] - pub fn sk_delete_ptr( - sk: *mut _STACK, - p: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct sha256_state_st { + pub h: [u32; 8usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_delete_if"] - pub fn sk_delete_if( - sk: *mut _STACK, - call_func: OPENSSL_sk_call_delete_if_func, - func: OPENSSL_sk_delete_if_func, - data: *mut ::std::os::raw::c_void, +#[test] +fn bindgen_test_layout_sha256_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 112usize, + concat!("Size of: ", stringify!(sha256_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha256_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(md_len) + ) ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_find"] - pub fn sk_find( - sk: *const _STACK, - out_index: *mut usize, - p: *const ::std::os::raw::c_void, - call_cmp_func: OPENSSL_sk_call_cmp_func, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_shift"] - pub fn sk_shift(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; +impl Default for sha256_state_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_fips_0_12_15_sk_push"] - pub fn sk_push(sk: *mut _STACK, p: *mut ::std::os::raw::c_void) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384_Init"] + pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_pop"] - pub fn sk_pop(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384_Update"] + pub fn SHA384_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_dup"] - pub fn sk_dup(sk: *const _STACK) -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384_Final"] + pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_sort"] - pub fn sk_sort(sk: *mut _STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384"] + pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_is_sorted"] - pub fn sk_is_sorted(sk: *const _STACK) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Init"] + pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_set_cmp_func"] - pub fn sk_set_cmp_func(sk: *mut _STACK, comp: OPENSSL_sk_cmp_func) -> OPENSSL_sk_cmp_func; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Update"] + pub fn SHA512_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_deep_copy"] - pub fn sk_deep_copy( - sk: *const _STACK, - call_copy_func: OPENSSL_sk_call_copy_func, - copy_func: OPENSSL_sk_copy_func, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ) -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Final"] + pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_pop_free"] - pub fn sk_pop_free(sk: *mut _STACK, free_func: OPENSSL_sk_free_func); -} -pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_void { - _unused: [u8; 0], -} -pub type sk_void_free_func = - ::std::option::Option; -pub type sk_void_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type sk_void_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type sk_void_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_OPENSSL_STRING { - _unused: [u8; 0], + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512"] + pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } -pub type sk_OPENSSL_STRING_free_func = - ::std::option::Option; -pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, ->; -pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_char, - arg2: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_DATA = crypto_ex_data_st; -pub type CRYPTO_EX_free = ::std::option::Option< - unsafe extern "C" fn( - parent: *mut ::std::os::raw::c_void, - ptr: *mut ::std::os::raw::c_void, - ad: *mut CRYPTO_EX_DATA, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ), ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_cleanup_all_ex_data"] - pub fn CRYPTO_cleanup_all_ex_data(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Transform"] + pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); } -pub type CRYPTO_EX_dup = ::std::option::Option< - unsafe extern "C" fn( - to: *mut CRYPTO_EX_DATA, - from: *const CRYPTO_EX_DATA, - from_d: *mut *mut ::std::os::raw::c_void, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_unused = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct crypto_ex_data_st { - pub sk: *mut stack_st_void, +pub struct sha512_state_st { + pub h: [u64; 8usize], + pub Nl: u64, + pub Nh: u64, + pub p: [u8; 128usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_crypto_ex_data_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha512_state_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!(crypto_ex_data_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(sha512_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(crypto_ex_data_st)) + concat!("Alignment of ", stringify!(sha512_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(crypto_ex_data_st), + stringify!(sha512_state_st), "::", - stringify!(sk) + stringify!(h) ) ); -} -impl Default for crypto_ex_data_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() - } - } -} -pub type CRYPTO_MUTEX = pthread_rwlock_t; -pub type CRYPTO_refcount_t = u32; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AWSLC_thread_local_clear"] - pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AWSLC_thread_local_shutdown"] - pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_num_locks"] - pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_locking_callback"] - pub fn CRYPTO_set_locking_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_add_lock_callback"] - pub fn CRYPTO_set_add_lock_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - num: *mut ::std::os::raw::c_int, - amount: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_locking_callback"] - pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_lock_name"] - pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_set_callback"] - pub fn CRYPTO_THREADID_set_callback( - threadid_func: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_set_numeric"] - pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_set_pointer"] - pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_current"] - pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_id_callback"] - pub fn CRYPTO_set_id_callback( - func: ::std::option::Option ::std::os::raw::c_ulong>, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nl) + ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct CRYPTO_dynlock { - pub references: ::std::os::raw::c_int, - pub data: *mut CRYPTO_dynlock_value, -} -#[test] -fn bindgen_test_layout_CRYPTO_dynlock() { - 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!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nh) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(p) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 208usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(references) + stringify!(num) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 212usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(data) + stringify!(md_len) ) ); } -impl Default for CRYPTO_dynlock { +impl Default for sha512_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5716,951 +5655,1044 @@ impl Default for CRYPTO_dynlock { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_dynlock_create_callback"] - pub fn CRYPTO_set_dynlock_create_callback( - dyn_create_function: ::std::option::Option< - unsafe extern "C" fn( - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224_Init"] + pub fn SHA512_224_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_dynlock_lock_callback"] - pub fn CRYPTO_set_dynlock_lock_callback( - dyn_lock_function: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224_Update"] + pub fn SHA512_224_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_dynlock_destroy_callback"] - pub fn CRYPTO_set_dynlock_destroy_callback( - dyn_destroy_function: ::std::option::Option< - unsafe extern "C" fn( - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224_Final"] + pub fn SHA512_224_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_dynlock_create_callback"] - pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224"] + pub fn SHA512_224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_dynlock_lock_callback"] - pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut CRYPTO_dynlock_value, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256_Init"] + pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_dynlock_destroy_callback"] - pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_dynlock_value, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256_Update"] + pub fn SHA512_256_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_BIO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256_Final"] + pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } -pub type sk_BIO_free_func = ::std::option::Option; -pub type sk_BIO_copy_func = - ::std::option::Option *mut BIO>; -pub type sk_BIO_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const BIO, arg2: *mut *const BIO) -> ::std::os::raw::c_int, ->; -pub type sk_BIO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new"] - pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256"] + pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_free"] - pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_malloc"] + pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_vfree"] - pub fn BIO_vfree(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_zalloc"] + pub fn OPENSSL_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_up_ref"] - pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_calloc"] + pub fn OPENSSL_calloc(num: usize, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_read"] - pub fn BIO_read( - bio: *mut BIO, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_realloc"] + pub fn OPENSSL_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_gets"] - pub fn BIO_gets( - bio: *mut BIO, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_free"] + pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_write"] - pub fn BIO_write( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_cleanse"] + pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_write_all"] - pub fn BIO_write_all( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_memcmp"] + pub fn CRYPTO_memcmp( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_puts"] - pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_hash32"] + pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_flush"] - pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strhash"] + pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl"] - pub fn BIO_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - parg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strdup"] + pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ptr_ctrl"] - pub fn BIO_ptr_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_int_ctrl"] - pub fn BIO_int_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - iarg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strnlen"] + pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_reset"] - pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isalpha"] + pub fn OPENSSL_isalpha(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_eof"] - pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isdigit"] + pub fn OPENSSL_isdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_flags"] - pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isxdigit"] + pub fn OPENSSL_isxdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_test_flags"] - pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_fromxdigit"] + pub fn OPENSSL_fromxdigit(out: *mut u8, c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_read"] - pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_hexstr2buf"] + pub fn OPENSSL_hexstr2buf(str_: *const ::std::os::raw::c_char, len: *mut usize) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_write"] - pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isalnum"] + pub fn OPENSSL_isalnum(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_retry"] - pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_tolower"] + pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_io_special"] - pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isspace"] + pub fn OPENSSL_isspace(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_retry_reason"] - pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strcasecmp"] + pub fn OPENSSL_strcasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_reason"] - pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strncasecmp"] + pub fn OPENSSL_strncasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + n: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_clear_flags"] - pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_snprintf"] + pub fn BIO_snprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_read"] - pub fn BIO_set_retry_read(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_vsnprintf"] + pub fn BIO_vsnprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + args: va_list, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_write"] - pub fn BIO_set_retry_write(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_vasprintf"] + pub fn OPENSSL_vasprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + args: va_list, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_retry_flags"] - pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_asprintf"] + pub fn OPENSSL_asprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_clear_retry_flags"] - pub fn BIO_clear_retry_flags(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strndup"] + pub fn OPENSSL_strndup( + str_: *const ::std::os::raw::c_char, + size: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_method_type"] - pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_memdup"] + pub fn OPENSSL_memdup( + data: *const ::std::os::raw::c_void, + size: usize, + ) -> *mut ::std::os::raw::c_void; } -pub type bio_info_cb = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - event: ::std::os::raw::c_int, - parg: *const ::std::os::raw::c_char, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - return_value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long, ->; -pub type BIO_callback_fn_ex = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - oper: ::std::os::raw::c_int, - argp: *const ::std::os::raw::c_char, - len: usize, - argi: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - bio_ret: ::std::os::raw::c_int, - processed: *mut usize, - ) -> ::std::os::raw::c_long, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_callback_ctrl"] - pub fn BIO_callback_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - fp: bio_info_cb, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strlcpy"] + pub fn OPENSSL_strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_pending"] - pub fn BIO_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strlcat"] + pub fn OPENSSL_strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl_pending"] - pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_malloc"] + pub fn CRYPTO_malloc( + size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_wpending"] - pub fn BIO_wpending(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_realloc"] + pub fn CRYPTO_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_close"] - pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_free"] + pub fn CRYPTO_free( + ptr: *mut ::std::os::raw::c_void, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_number_read"] - pub fn BIO_number_read(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_clear_free"] + pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_number_written"] - pub fn BIO_number_written(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_mem_functions"] + pub fn CRYPTO_set_mem_functions( + m: ::std::option::Option< + unsafe extern "C" fn( + arg1: usize, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + r: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: usize, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_callback_ex"] - pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_secure_malloc_init"] + pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_callback_arg"] - pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_secure_malloc_initialized"] + pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_callback_arg"] - pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_secure_used"] + pub fn CRYPTO_secure_used() -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_push"] - pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_secure_malloc"] + pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_pop"] - pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_secure_zalloc"] + pub fn OPENSSL_secure_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_next"] - pub fn BIO_next(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_secure_clear_free"] + pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } +pub type CRYPTO_MUTEX = pthread_rwlock_t; +pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_free_all"] - pub fn BIO_free_all(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AWSLC_thread_local_clear"] + pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_find_type"] - pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AWSLC_thread_local_shutdown"] + pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_copy_next_retry"] - pub fn BIO_copy_next_retry(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_num_locks"] + pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_printf"] - pub fn BIO_printf( - bio: *mut BIO, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_locking_callback"] + pub fn CRYPTO_set_locking_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_indent"] - pub fn BIO_indent( - bio: *mut BIO, - indent: ::std::os::raw::c_uint, - max_indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_add_lock_callback"] + pub fn CRYPTO_set_add_lock_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + num: *mut ::std::os::raw::c_int, + amount: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_hexdump"] - pub fn BIO_hexdump( - bio: *mut BIO, - data: *const u8, - len: usize, - indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_locking_callback"] + pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_print_errors"] - pub fn ERR_print_errors(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_lock_name"] + pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_read_asn1"] - pub fn BIO_read_asn1( - bio: *mut BIO, - out: *mut *mut u8, - out_len: *mut usize, - max_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_set_callback"] + pub fn CRYPTO_THREADID_set_callback( + threadid_func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_mem"] - pub fn BIO_s_mem() -> *const BIO_METHOD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_mem_buf"] - pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_mem_contents"] - pub fn BIO_mem_contents( - bio: *const BIO, - out_contents: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_set_numeric"] + pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_mem_ptr"] - pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_set_pointer"] + pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_mem_buf"] - pub fn BIO_set_mem_buf( - bio: *mut BIO, - b: *mut BUF_MEM, - take_ownership: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_current"] + pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_mem_eof_return"] - pub fn BIO_set_mem_eof_return( - bio: *mut BIO, - eof_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_id_callback"] + pub fn CRYPTO_set_id_callback( + func: ::std::option::Option ::std::os::raw::c_ulong>, + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_fd"] - pub fn BIO_s_fd() -> *const BIO_METHOD; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct CRYPTO_dynlock { + pub references: ::std::os::raw::c_int, + pub data: *mut CRYPTO_dynlock_value, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_fd"] - pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; +#[test] +fn bindgen_test_layout_CRYPTO_dynlock() { + 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!(CRYPTO_dynlock)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(data) + ) + ); +} +impl Default for CRYPTO_dynlock { + 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_fips_0_12_15_BIO_set_fd"] - pub fn BIO_set_fd( - bio: *mut BIO, - fd: ::std::os::raw::c_int, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_dynlock_create_callback"] + pub fn CRYPTO_set_dynlock_create_callback( + dyn_create_function: ::std::option::Option< + unsafe extern "C" fn( + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_fd"] - pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_dynlock_lock_callback"] + pub fn CRYPTO_set_dynlock_lock_callback( + dyn_lock_function: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_file"] - pub fn BIO_s_file() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_dynlock_destroy_callback"] + pub fn CRYPTO_set_dynlock_destroy_callback( + dyn_destroy_function: ::std::option::Option< + unsafe extern "C" fn( + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_file"] - pub fn BIO_new_file( - filename: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_dynlock_create_callback"] + pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_fp"] - pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_dynlock_lock_callback"] + pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut CRYPTO_dynlock_value, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_fp"] - pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_dynlock_destroy_callback"] + pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_dynlock_value, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_fp"] - pub fn BIO_set_fp( - bio: *mut BIO, - file: *mut FILE, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_library_init"] + pub fn CRYPTO_library_init(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_read_filename"] - pub fn BIO_read_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_is_confidential_build"] + pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_write_filename"] - pub fn BIO_write_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_has_asm"] + pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_append_filename"] - pub fn BIO_append_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BORINGSSL_self_test"] + pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_rw_filename"] - pub fn BIO_rw_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_tell"] - pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_pre_sandbox_init"] + pub fn CRYPTO_pre_sandbox_init(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_seek"] - pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_armv8_disable_dit"] + pub fn armv8_disable_dit(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_socket"] - pub fn BIO_s_socket() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_armv8_enable_dit"] + pub fn armv8_enable_dit(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_socket"] - pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) - -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_mode"] + pub fn FIPS_mode() -> ::std::os::raw::c_int; } +pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; +pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; +pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; +pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; +pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; +pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_connect"] - pub fn BIO_s_connect() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_read_counter"] + pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_connect"] - pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_version"] + pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_conn_hostname"] - pub fn BIO_set_conn_hostname( - bio: *mut BIO, - host_and_optional_port: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SSLeay_version"] + pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_conn_port"] - pub fn BIO_set_conn_port( - bio: *mut BIO, - port_str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SSLeay"] + pub fn SSLeay() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_conn_int_port"] - pub fn BIO_set_conn_int_port( - bio: *mut BIO, - port: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_version_num"] + pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_nbio"] - pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_awslc_api_version_num"] + pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_do_connect"] - pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_malloc_init"] + pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_bio_pair"] - pub fn BIO_new_bio_pair( - out1: *mut *mut BIO, - writebuf1: usize, - out2: *mut *mut BIO, - writebuf2: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_malloc_init"] + pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl_get_read_request"] - pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_load_builtin_engines"] + pub fn ENGINE_load_builtin_engines(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl_get_write_guarantee"] - pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_register_all_complete"] + pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_shutdown_wr"] - pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_load_builtin_modules"] + pub fn OPENSSL_load_builtin_modules(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_new_index"] - pub fn BIO_get_new_index() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_init_crypto"] + pub fn OPENSSL_init_crypto( + opts: u64, + settings: *const OPENSSL_INIT_SETTINGS, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_new"] - pub fn BIO_meth_new( - type_: ::std::os::raw::c_int, - name: *const ::std::os::raw::c_char, - ) -> *mut BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_init"] + pub fn OPENSSL_init(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_free"] - pub fn BIO_meth_free(method: *mut BIO_METHOD); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_cleanup"] + pub fn OPENSSL_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_create"] - pub fn BIO_meth_set_create( - method: *mut BIO_METHOD, - create: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_mode_set"] + pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_create"] - pub fn BIO_meth_get_create( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_BIO_strings"] + pub fn ERR_load_BIO_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_destroy"] - pub fn BIO_meth_set_destroy( - method: *mut BIO_METHOD, - destroy: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_ERR_strings"] + pub fn ERR_load_ERR_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_destroy"] - pub fn BIO_meth_get_destroy( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_CRYPTO_strings"] + pub fn ERR_load_CRYPTO_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_write"] - pub fn BIO_meth_set_write( - method: *mut BIO_METHOD, - write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_crypto_strings"] + pub fn ERR_load_crypto_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_read"] - pub fn BIO_meth_set_read( - method: *mut BIO_METHOD, - read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_RAND_strings"] + pub fn ERR_load_RAND_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_gets"] - pub fn BIO_meth_set_gets( - method: *mut BIO_METHOD, - gets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_free_strings"] + pub fn ERR_free_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_gets"] - pub fn BIO_meth_get_gets( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_error"] + pub fn ERR_get_error() -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_ctrl"] - pub fn BIO_meth_set_ctrl( - method: *mut BIO_METHOD, - ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_error_line"] + pub fn ERR_get_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_ctrl"] - pub fn BIO_meth_get_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_long, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_error_line_data"] + pub fn ERR_get_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_callback_ctrl"] - pub fn BIO_meth_set_callback_ctrl( - method: *mut BIO_METHOD, - callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_error"] + pub fn ERR_peek_error() -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_callback_ctrl"] - pub fn BIO_meth_get_callback_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: bio_info_cb, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_error_line"] + pub fn ERR_peek_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_data"] - pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_error_line_data"] + pub fn ERR_peek_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_data"] - pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_last_error"] + pub fn ERR_peek_last_error() -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_init"] - pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_last_error_line"] + pub fn ERR_peek_last_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_init"] - pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_last_error_line_data"] + pub fn ERR_peek_last_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_ex_new_index"] - pub fn BIO_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_fips_0_13_0_ERR_error_string_n"] + pub fn ERR_error_string_n( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + len: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_ex_data"] - pub fn BIO_set_ex_data( - bio: *mut BIO, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_lib_error_string"] + pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_ex_data"] - pub fn BIO_get_ex_data( - bio: *const BIO, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_reason_error_string"] + pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } +pub type ERR_print_errors_callback_t = ::std::option::Option< + unsafe extern "C" fn( + str_: *const ::std::os::raw::c_char, + len: usize, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_f_base64"] - pub fn BIO_f_base64() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_print_errors_cb"] + pub fn ERR_print_errors_cb( + callback: ERR_print_errors_callback_t, + ctx: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_special"] - pub fn BIO_set_retry_special(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_print_errors_fp"] + pub fn ERR_print_errors_fp(file: *mut FILE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_write_buffer_size"] - pub fn BIO_set_write_buffer_size( - bio: *mut BIO, - buffer_size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_clear_error"] + pub fn ERR_clear_error(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_shutdown"] - pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_set_mark"] + pub fn ERR_set_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_shutdown"] - pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_pop_to_mark"] + pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_puts"] - pub fn BIO_meth_set_puts( - method: *mut BIO_METHOD, - puts: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_next_error_library"] + pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_puts"] - pub fn BIO_meth_get_puts( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_remove_state"] + pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_method_st { - pub type_: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub bwrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bread: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bputs: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub bgets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - pub create: - ::std::option::Option ::std::os::raw::c_int>, - pub destroy: - ::std::option::Option ::std::os::raw::c_int>, - pub callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_remove_thread_state"] + pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); } -#[test] -fn bindgen_test_layout_bio_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(bio_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bwrite) - ) +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_func_error_string"] + pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_error_string"] + pub fn ERR_error_string( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_clear_system_error"] + pub fn ERR_clear_system_error(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_put_error"] + pub fn ERR_put_error( + library: ::std::os::raw::c_int, + unused: ::std::os::raw::c_int, + reason: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_uint, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bread) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bputs) - ) +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_add_error_data"] + pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_add_error_dataf"] + pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_set_error_data"] + pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); +} +pub type OPENSSL_sk_free_func = + ::std::option::Option; +pub type OPENSSL_sk_copy_func = ::std::option::Option< + unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + a: *const *const ::std::os::raw::c_void, + b: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + obj: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_free_func = ::std::option::Option< + unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), +>; +pub type OPENSSL_sk_call_copy_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_copy_func, + arg2: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_cmp_func, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_delete_if_func, + arg2: *mut ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st { + _unused: [u8; 0], +} +pub type OPENSSL_STACK = stack_st; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_new"] + pub fn OPENSSL_sk_new(comp: OPENSSL_sk_cmp_func) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_new_null"] + pub fn OPENSSL_sk_new_null() -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_num"] + pub fn OPENSSL_sk_num(sk: *const OPENSSL_STACK) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_zero"] + pub fn OPENSSL_sk_zero(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_value"] + pub fn OPENSSL_sk_value(sk: *const OPENSSL_STACK, i: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_set"] + pub fn OPENSSL_sk_set( + sk: *mut OPENSSL_STACK, + i: usize, + p: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_free"] + pub fn OPENSSL_sk_free(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_pop_free_ex"] + pub fn OPENSSL_sk_pop_free_ex( + sk: *mut OPENSSL_STACK, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bgets) - ) +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_insert"] + pub fn OPENSSL_sk_insert( + sk: *mut OPENSSL_STACK, + p: *mut ::std::os::raw::c_void, + where_: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_delete"] + pub fn OPENSSL_sk_delete(sk: *mut OPENSSL_STACK, where_: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_delete_ptr"] + pub fn OPENSSL_sk_delete_ptr( + sk: *mut OPENSSL_STACK, + p: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_delete_if"] + pub fn OPENSSL_sk_delete_if( + sk: *mut OPENSSL_STACK, + call_func: OPENSSL_sk_call_delete_if_func, + func: OPENSSL_sk_delete_if_func, + data: *mut ::std::os::raw::c_void, ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_find"] + pub fn OPENSSL_sk_find( + sk: *const OPENSSL_STACK, + out_index: *mut usize, + p: *const ::std::os::raw::c_void, + call_cmp_func: OPENSSL_sk_call_cmp_func, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_unshift"] + pub fn OPENSSL_sk_unshift( + sk: *mut OPENSSL_STACK, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_shift"] + pub fn OPENSSL_sk_shift(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_push"] + pub fn OPENSSL_sk_push(sk: *mut OPENSSL_STACK, p: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_pop"] + pub fn OPENSSL_sk_pop(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_dup"] + pub fn OPENSSL_sk_dup(sk: *const OPENSSL_STACK) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_sort"] + pub fn OPENSSL_sk_sort(sk: *mut OPENSSL_STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_is_sorted"] + pub fn OPENSSL_sk_is_sorted(sk: *const OPENSSL_STACK) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_set_cmp_func"] + pub fn OPENSSL_sk_set_cmp_func( + sk: *mut OPENSSL_STACK, + comp: OPENSSL_sk_cmp_func, + ) -> OPENSSL_sk_cmp_func; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_deep_copy"] + pub fn OPENSSL_sk_deep_copy( + sk: *const OPENSSL_STACK, + call_copy_func: OPENSSL_sk_call_copy_func, + copy_func: OPENSSL_sk_copy_func, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, + ) -> *mut OPENSSL_STACK; +} +pub type _STACK = OPENSSL_STACK; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_sk_pop_free"] + pub fn sk_pop_free(sk: *mut OPENSSL_STACK, free_func: OPENSSL_sk_free_func); +} +pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_void { + _unused: [u8; 0], +} +pub type sk_void_free_func = + ::std::option::Option; +pub type sk_void_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type sk_void_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_void, + arg2: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type sk_void_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_OPENSSL_STRING { + _unused: [u8; 0], +} +pub type sk_OPENSSL_STRING_free_func = + ::std::option::Option; +pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, +>; +pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_char, + arg2: *const *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_DATA = crypto_ex_data_st; +pub type CRYPTO_EX_free = ::std::option::Option< + unsafe extern "C" fn( + parent: *mut ::std::os::raw::c_void, + ptr: *mut ::std::os::raw::c_void, + ad: *mut CRYPTO_EX_DATA, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_cleanup_all_ex_data"] + pub fn CRYPTO_cleanup_all_ex_data(); +} +pub type CRYPTO_EX_dup = ::std::option::Option< + unsafe extern "C" fn( + to: *mut CRYPTO_EX_DATA, + from: *const CRYPTO_EX_DATA, + from_d: *mut *mut ::std::os::raw::c_void, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_unused = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct crypto_ex_data_st { + pub sk: *mut stack_st_void, +} +#[test] +fn bindgen_test_layout_crypto_ex_data_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(ctrl) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(create) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bio_method_st), + stringify!(crypto_ex_data_st), "::", - stringify!(destroy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(callback_ctrl) + stringify!(sk) ) ); } -impl Default for bio_method_st { +impl Default for crypto_ex_data_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6670,1053 +6702,908 @@ impl Default for bio_method_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_st { - pub method: *const BIO_METHOD, - pub ex_data: CRYPTO_EX_DATA, - pub callback_ex: BIO_callback_fn_ex, - pub cb_arg: *mut ::std::os::raw::c_char, - pub init: ::std::os::raw::c_int, - pub shutdown: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub retry_reason: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_int, - pub references: CRYPTO_refcount_t, - pub ptr: *mut ::std::os::raw::c_void, - pub next_bio: *mut BIO, - pub num_read: usize, - pub num_write: usize, -} -#[test] -fn bindgen_test_layout_bio_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(bio_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(method) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(callback_ex) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(cb_arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(shutdown) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(retry_reason) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(next_bio) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_read) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_write) - ) - ); -} -impl Default for bio_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() - } - } +#[derive(Debug, Copy, Clone)] +pub struct stack_st_BIO { + _unused: [u8; 0], } -pub type BN_ULONG = u64; +pub type sk_BIO_free_func = ::std::option::Option; +pub type sk_BIO_copy_func = + ::std::option::Option *mut BIO>; +pub type sk_BIO_cmp_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const *const BIO, arg2: *const *const BIO) -> ::std::os::raw::c_int, +>; +pub type sk_BIO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_new"] - pub fn BN_new() -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new"] + pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_init"] - pub fn BN_init(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_free"] + pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_free"] - pub fn BN_free(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_vfree"] + pub fn BIO_vfree(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_clear_free"] - pub fn BN_clear_free(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_up_ref"] + pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_dup"] - pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read"] + pub fn BIO_read( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_copy"] - pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read_ex"] + pub fn BIO_read_ex( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + data_len: usize, + read_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_clear"] - pub fn BN_clear(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_gets"] + pub fn BIO_gets( + bio: *mut BIO, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_value_one"] - pub fn BN_value_one() -> *const BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write"] + pub fn BIO_write( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_num_bits"] - pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write_ex"] + pub fn BIO_write_ex( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + data_len: usize, + written_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_num_bytes"] - pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write_all"] + pub fn BIO_write_all( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_zero"] - pub fn BN_zero(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_puts"] + pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_one"] - pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_flush"] + pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_word"] - pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl"] + pub fn BIO_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + parg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_u64"] - pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_negative"] - pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ptr_ctrl"] + pub fn BIO_ptr_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_negative"] - pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_int_ctrl"] + pub fn BIO_int_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + iarg: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bin2bn"] - pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_reset"] + pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2bin"] - pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_eof"] + pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_le2bn"] - pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_flags"] + pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2le_padded"] - pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_test_flags"] + pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2bin_padded"] - pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_read"] + pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2cbb_padded"] - pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_write"] + pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2hex"] - pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_retry"] + pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_hex2bn"] - pub fn BN_hex2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_io_special"] + pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2dec"] - pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_retry_reason"] + pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_dec2bn"] - pub fn BN_dec2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_reason"] + pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_asc2bn"] - pub fn BN_asc2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_clear_flags"] + pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_print"] - pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_read"] + pub fn BIO_set_retry_read(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_print_fp"] - pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_write"] + pub fn BIO_set_retry_write(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_word"] - pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_retry_flags"] + pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_u64"] - pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_clear_retry_flags"] + pub fn BIO_clear_retry_flags(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_parse_asn1_unsigned"] - pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_method_type"] + pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_marshal_asn1"] - pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_method_name"] + pub fn BIO_method_name(b: *const BIO) -> *const ::std::os::raw::c_char; } +pub type bio_info_cb = ::std::option::Option< + unsafe extern "C" fn( + b: *mut BIO, + state: ::std::os::raw::c_int, + res: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long, +>; +pub type BIO_callback_fn_ex = ::std::option::Option< + unsafe extern "C" fn( + bio: *mut BIO, + oper: ::std::os::raw::c_int, + argp: *const ::std::os::raw::c_char, + len: usize, + argi: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + bio_ret: ::std::os::raw::c_int, + processed: *mut usize, + ) -> ::std::os::raw::c_long, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_new"] - pub fn BN_CTX_new() -> *mut BN_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_callback_ctrl"] + pub fn BIO_callback_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + fp: bio_info_cb, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_free"] - pub fn BN_CTX_free(ctx: *mut BN_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_pending"] + pub fn BIO_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_start"] - pub fn BN_CTX_start(ctx: *mut BN_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl_pending"] + pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_get"] - pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_wpending"] + pub fn BIO_wpending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_end"] - pub fn BN_CTX_end(ctx: *mut BN_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_close"] + pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_add"] - pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_number_read"] + pub fn BIO_number_read(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_uadd"] - pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_number_written"] + pub fn BIO_number_written(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_add_word"] - pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_callback_ex"] + pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sub"] - pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_callback_arg"] + pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_usub"] - pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_callback_arg"] + pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sub_word"] - pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_push"] + pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mul"] - pub fn BN_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_pop"] + pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mul_word"] - pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_next"] + pub fn BIO_next(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sqr"] - pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_free_all"] + pub fn BIO_free_all(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_div"] - pub fn BN_div( - quotient: *mut BIGNUM, - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_find_type"] + pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_div_word"] - pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_copy_next_retry"] + pub fn BIO_copy_next_retry(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sqrt"] - pub fn BN_sqrt( - out_sqrt: *mut BIGNUM, - in_: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_printf"] + pub fn BIO_printf( + bio: *mut BIO, + format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_cmp"] - pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_cmp_word"] - pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_ucmp"] - pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_indent"] + pub fn BIO_indent( + bio: *mut BIO, + indent: ::std::os::raw::c_uint, + max_indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_equal_consttime"] - pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_hexdump"] + pub fn BIO_hexdump( + bio: *mut BIO, + data: *const u8, + len: usize, + indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_abs_is_word"] - pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_print_errors"] + pub fn ERR_print_errors(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_zero"] - pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read_asn1"] + pub fn BIO_read_asn1( + bio: *mut BIO, + out: *mut *mut u8, + out_len: *mut usize, + max_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_one"] - pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_mem"] + pub fn BIO_s_mem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_word"] - pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_mem_buf"] + pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_odd"] - pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_mem_contents"] + pub fn BIO_mem_contents( + bio: *const BIO, + out_contents: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_pow2"] - pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_mem_ptr"] + pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_lshift"] - pub fn BN_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_mem_buf"] + pub fn BIO_set_mem_buf( + bio: *mut BIO, + b: *mut BUF_MEM, + take_ownership: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_lshift1"] - pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rshift"] - pub fn BN_rshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_mem_eof_return"] + pub fn BIO_set_mem_eof_return( + bio: *mut BIO, + eof_value: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rshift1"] - pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_fd"] + pub fn BIO_s_fd() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_bit"] - pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_fd"] + pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_clear_bit"] - pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_fd"] + pub fn BIO_set_fd( + bio: *mut BIO, + fd: ::std::os::raw::c_int, + close_flag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_bit_set"] - pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_fd"] + pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mask_bits"] - pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_file"] + pub fn BIO_s_file() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_count_low_zero_bits"] - pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_file"] + pub fn BIO_new_file( + filename: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_word"] - pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_fp"] + pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_pow2"] - pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_fp"] + pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_nnmod_pow2"] - pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_fp"] + pub fn BIO_set_fp( + bio: *mut BIO, + file: *mut FILE, + close_flag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_nnmod"] - pub fn BN_nnmod( - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read_filename"] + pub fn BIO_read_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_add"] - pub fn BN_mod_add( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write_filename"] + pub fn BIO_write_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_add_quick"] - pub fn BN_mod_add_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_append_filename"] + pub fn BIO_append_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sub"] - pub fn BN_mod_sub( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_rw_filename"] + pub fn BIO_rw_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sub_quick"] - pub fn BN_mod_sub_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_tell"] + pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_mul"] - pub fn BN_mod_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_seek"] + pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sqr"] - pub fn BN_mod_sqr( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_socket"] + pub fn BIO_s_socket() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift"] - pub fn BN_mod_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_socket"] + pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) + -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift_quick"] - pub fn BN_mod_lshift_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_connect"] + pub fn BIO_s_connect() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift1"] - pub fn BN_mod_lshift1( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_connect"] + pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift1_quick"] - pub fn BN_mod_lshift1_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_conn_hostname"] + pub fn BIO_set_conn_hostname( + bio: *mut BIO, + host_and_optional_port: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sqrt"] - pub fn BN_mod_sqrt( - in_: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_conn_port"] + pub fn BIO_set_conn_port( + bio: *mut BIO, + port_str: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rand"] - pub fn BN_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_conn_int_port"] + pub fn BIO_set_conn_int_port( + bio: *mut BIO, + port: *const ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_pseudo_rand"] - pub fn BN_pseudo_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_nbio"] + pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rand_range"] - pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_do_connect"] + pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rand_range_ex"] - pub fn BN_rand_range_ex( - r: *mut BIGNUM, - min_inclusive: BN_ULONG, - max_exclusive: *const BIGNUM, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_bio_pair"] + pub fn BIO_new_bio_pair( + out1: *mut *mut BIO, + writebuf1: usize, + out2: *mut *mut BIO, + writebuf2: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_pseudo_rand_range"] - pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_gencb_st { - pub arg: *mut ::std::os::raw::c_void, - pub callback: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut bn_gencb_st, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bn_gencb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(callback) - ) - ); -} -impl Default for bn_gencb_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() - } - } + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl_get_read_request"] + pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_new"] - pub fn BN_GENCB_new() -> *mut BN_GENCB; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl_get_write_guarantee"] + pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_free"] - pub fn BN_GENCB_free(callback: *mut BN_GENCB); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_shutdown_wr"] + pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_set"] - pub fn BN_GENCB_set( - callback: *mut BN_GENCB, - f: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut BN_GENCB, - ) -> ::std::os::raw::c_int, - >, - arg: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_new_index"] + pub fn BIO_get_new_index() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_call"] - pub fn BN_GENCB_call( - callback: *mut BN_GENCB, - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_new"] + pub fn BIO_meth_new( + type_: ::std::os::raw::c_int, + name: *const ::std::os::raw::c_char, + ) -> *mut BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_get_arg"] - pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_free"] + pub fn BIO_meth_free(method: *mut BIO_METHOD); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_generate_prime_ex"] - pub fn BN_generate_prime_ex( - ret: *mut BIGNUM, - bits: ::std::os::raw::c_int, - safe: ::std::os::raw::c_int, - add: *const BIGNUM, - rem: *const BIGNUM, - cb: *mut BN_GENCB, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_create"] + pub fn BIO_meth_set_create( + method: *mut BIO_METHOD, + create: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } -pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; -pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; -pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; -pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_enhanced_miller_rabin_primality_test"] - pub fn BN_enhanced_miller_rabin_primality_test( - out_result: *mut bn_primality_result_t, - w: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_create"] + pub fn BIO_meth_get_create( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_primality_test"] - pub fn BN_primality_test( - is_probably_prime: *mut ::std::os::raw::c_int, - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_destroy"] + pub fn BIO_meth_set_destroy( + method: *mut BIO_METHOD, + destroy: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_prime_fasttest_ex"] - pub fn BN_is_prime_fasttest_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_destroy"] + pub fn BIO_meth_get_destroy( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_prime_ex"] - pub fn BN_is_prime_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_write"] + pub fn BIO_meth_set_write( + method: *mut BIO_METHOD, + write: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_gcd"] - pub fn BN_gcd( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_read"] + pub fn BIO_meth_set_read( + method: *mut BIO_METHOD, + read: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_inverse"] - pub fn BN_mod_inverse( - out: *mut BIGNUM, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_gets"] + pub fn BIO_meth_set_gets( + method: *mut BIO_METHOD, + gets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_inverse_blinded"] - pub fn BN_mod_inverse_blinded( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_gets"] + pub fn BIO_meth_get_gets( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_inverse_odd"] - pub fn BN_mod_inverse_odd( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_ctrl"] + pub fn BIO_meth_set_ctrl( + method: *mut BIO_METHOD, + ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_new_for_modulus"] - pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_ctrl"] + pub fn BIO_meth_get_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_long, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_new_consttime"] - pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_callback_ctrl"] + pub fn BIO_meth_set_callback_ctrl( + method: *mut BIO_METHOD, + callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_free"] - pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_callback_ctrl"] + pub fn BIO_meth_get_callback_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: bio_info_cb, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_copy"] - pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_data"] + pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_to_montgomery"] - pub fn BN_to_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_data"] + pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_from_montgomery"] - pub fn BN_from_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_init"] + pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_mul_montgomery"] - pub fn BN_mod_mul_montgomery( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_init"] + pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_exp"] - pub fn BN_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_ex_new_index"] + pub fn BIO_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_fips_0_12_15_BN_mod_exp"] - pub fn BN_mod_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_ex_data"] + pub fn BIO_set_ex_data( + bio: *mut BIO, + 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_fips_0_12_15_BN_mod_exp_mont"] - pub fn BN_mod_exp_mont( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_ex_data"] + pub fn BIO_get_ex_data( + bio: *const BIO, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_exp_mont_consttime"] - pub fn BN_mod_exp_mont_consttime( - rr: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_f_base64"] + pub fn BIO_f_base64() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2mpi"] - pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_special"] + pub fn BIO_set_retry_special(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mpi2bn"] - pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_shutdown"] + pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_exp_mont_word"] - pub fn BN_mod_exp_mont_word( - r: *mut BIGNUM, - a: BN_ULONG, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_shutdown"] + pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_exp2_mont"] - pub fn BN_mod_exp2_mont( - r: *mut BIGNUM, - a1: *const BIGNUM, - p1: *const BIGNUM, - a2: *const BIGNUM, - p2: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_puts"] + pub fn BIO_meth_set_puts( + method: *mut BIO_METHOD, + puts: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_new"] - pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_puts"] + pub fn BIO_meth_get_puts( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_set"] - pub fn BN_MONT_CTX_set( - mont: *mut BN_MONT_CTX, - mod_: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_secmem"] + pub fn BIO_s_secmem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2binpad"] - pub fn BN_bn2binpad( - in_: *const BIGNUM, - out: *mut u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_write_buffer_size"] + pub fn BIO_set_write_buffer_size( + bio: *mut BIO, + buffer_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_secure_new"] - pub fn BN_secure_new() -> *mut BIGNUM; -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bignum_st { - pub d: *mut BN_ULONG, - pub width: ::std::os::raw::c_int, - pub dmax: ::std::os::raw::c_int, - pub neg: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, +pub struct bio_method_st { + pub type_: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub bwrite: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bread: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bputs: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, + pub bgets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, + pub create: + ::std::option::Option ::std::os::raw::c_int>, + pub destroy: + ::std::option::Option ::std::os::raw::c_int>, + pub callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, } #[test] -fn bindgen_test_layout_bignum_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_method_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!(bignum_st)) + ::std::mem::size_of::(), + 80usize, + concat!("Size of: ", stringify!(bio_method_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bignum_st)) + concat!("Alignment of ", stringify!(bio_method_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(d) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(width) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(dmax) + stringify!(bwrite) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(neg) + stringify!(bread) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(flags) + stringify!(bputs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bgets) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(ctrl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(create) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(destroy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(callback_ctrl) ) ); } -impl Default for bignum_st { +impl Default for bio_method_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7727,57 +7614,178 @@ impl Default for bignum_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_mont_ctx_st { - pub RR: BIGNUM, - pub N: BIGNUM, - pub n0: [BN_ULONG; 2usize], +pub struct bio_st { + pub method: *const BIO_METHOD, + pub ex_data: CRYPTO_EX_DATA, + pub callback_ex: BIO_callback_fn_ex, + pub cb_arg: *mut ::std::os::raw::c_char, + pub init: ::std::os::raw::c_int, + pub shutdown: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub retry_reason: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_int, + pub references: CRYPTO_refcount_t, + pub ptr: *mut ::std::os::raw::c_void, + pub next_bio: *mut BIO, + pub num_read: u64, + pub num_write: u64, } #[test] -fn bindgen_test_layout_bn_mont_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_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!(bn_mont_ctx_st)) + ::std::mem::size_of::(), + 88usize, + concat!("Size of: ", stringify!(bio_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + concat!("Alignment of ", stringify!(bio_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(RR) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ex_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(callback_ex) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(N) + stringify!(cb_arg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(init) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(shutdown) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(retry_reason) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(n0) + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(next_bio) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_read) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_write) ) ); } -impl Default for bn_mont_ctx_st { +impl Default for bio_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7786,1396 +7794,1039 @@ impl Default for bn_mont_ctx_st { } } } +pub type BN_ULONG = u64; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_num_bits_word"] - pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_new"] + pub fn BN_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_tag2bit"] - pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_init"] + pub fn BN_init(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_tag2str"] - pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_free"] + pub fn BN_free(bn: *mut BIGNUM); } -pub type d2i_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type i2d_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ITEM_EXP = ASN1_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_VALUE_st { - _unused: [u8; 0], -} -pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_new"] - pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_clear_free"] + pub fn BN_clear_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_free"] - pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_dup"] + pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_d2i"] - pub fn ASN1_item_d2i( - out: *mut *mut ASN1_VALUE, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - ) -> *mut ASN1_VALUE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_copy"] + pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_i2d"] - pub fn ASN1_item_i2d( - val: *mut ASN1_VALUE, - outp: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_clear"] + pub fn BN_clear(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_dup"] - pub fn ASN1_item_dup( - it: *const ASN1_ITEM, - x: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_value_one"] + pub fn BN_value_one() -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_d2i_fp"] - pub fn ASN1_item_d2i_fp( - it: *const ASN1_ITEM, - in_: *mut FILE, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_num_bits"] + pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_d2i_bio"] - pub fn ASN1_item_d2i_bio( - it: *const ASN1_ITEM, - in_: *mut BIO, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_num_bytes"] + pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_i2d_fp"] - pub fn ASN1_item_i2d_fp( - it: *const ASN1_ITEM, - out: *mut FILE, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_zero"] + pub fn BN_zero(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_i2d_bio"] - pub fn ASN1_item_i2d_bio( - it: *const ASN1_ITEM, - out: *mut BIO, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_one"] + pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_unpack"] - pub fn ASN1_item_unpack( - oct: *const ASN1_STRING, - it: *const ASN1_ITEM, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_word"] + pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_pack"] - pub fn ASN1_item_pack( - obj: *mut ::std::os::raw::c_void, - it: *const ASN1_ITEM, - out: *mut *mut ASN1_STRING, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_u64"] + pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_BOOLEAN"] - pub fn d2i_ASN1_BOOLEAN( - out: *mut ASN1_BOOLEAN, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> ASN1_BOOLEAN; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_negative"] + pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_BOOLEAN"] - pub fn i2d_ASN1_BOOLEAN( - a: ASN1_BOOLEAN, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_negative"] + pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BOOLEAN_it"] - pub static ASN1_BOOLEAN_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bin2bn"] + pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TBOOLEAN_it"] - pub static ASN1_TBOOLEAN_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2bin"] + pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_FBOOLEAN_it"] - pub static ASN1_FBOOLEAN_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct asn1_string_st { - pub length: ::std::os::raw::c_int, - pub type_: ::std::os::raw::c_int, - pub data: *mut ::std::os::raw::c_uchar, - pub flags: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_string_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for asn1_string_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() - } - } + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_le2bn"] + pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_type_new"] - pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2le_padded"] + pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_new"] - pub fn ASN1_STRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2bin_padded"] + pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_free"] - pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2cbb_padded"] + pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_clear_free"] - pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2hex"] + pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_copy"] - pub fn ASN1_STRING_copy( - dst: *mut ASN1_STRING, - str_: *const ASN1_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_hex2bn"] + pub fn BN_hex2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_dup"] - pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2dec"] + pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_type"] - pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_dec2bn"] + pub fn BN_dec2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_get0_data"] - pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_asc2bn"] + pub fn BN_asc2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_data"] - pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_print"] + pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_length"] - pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_print_fp"] + pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_cmp"] - pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_word"] + pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set"] - pub fn ASN1_STRING_set( - str_: *mut ASN1_STRING, - data: *const ::std::os::raw::c_void, - len: ossl_ssize_t, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_u64"] + pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set0"] - pub fn ASN1_STRING_set0( - str_: *mut ASN1_STRING, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_flags"] + pub fn BN_get_flags(bn: *const BIGNUM, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BMPSTRING_new"] - pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_parse_asn1_unsigned"] + pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALSTRING_new"] - pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_marshal_asn1"] + pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_IA5STRING_new"] - pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_new"] + pub fn BN_CTX_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_new"] - pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_free"] + pub fn BN_CTX_free(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_new"] - pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_start"] + pub fn BN_CTX_start(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_T61STRING_new"] - pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_get"] + pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_new"] - pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_end"] + pub fn BN_CTX_end(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTF8STRING_new"] - pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_add"] + pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_new"] - pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_uadd"] + pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BMPSTRING_free"] - pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_add_word"] + pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALSTRING_free"] - pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sub"] + pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_IA5STRING_free"] - pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_usub"] + pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_free"] - pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sub_word"] + pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_free"] - pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mul"] + pub fn BN_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_T61STRING_free"] - pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mul_word"] + pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_free"] - pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sqr"] + pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTF8STRING_free"] - pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_div"] + pub fn BN_div( + quotient: *mut BIGNUM, + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_free"] - pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_div_word"] + pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_BMPSTRING"] - pub fn d2i_ASN1_BMPSTRING( - out: *mut *mut ASN1_BMPSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sqrt"] + pub fn BN_sqrt( + out_sqrt: *mut BIGNUM, + in_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_GENERALSTRING"] - pub fn d2i_ASN1_GENERALSTRING( - out: *mut *mut ASN1_GENERALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_cmp"] + pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_IA5STRING"] - pub fn d2i_ASN1_IA5STRING( - out: *mut *mut ASN1_IA5STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_cmp_word"] + pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_OCTET_STRING"] - pub fn d2i_ASN1_OCTET_STRING( - out: *mut *mut ASN1_OCTET_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_ucmp"] + pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLESTRING"] - pub fn d2i_ASN1_PRINTABLESTRING( - out: *mut *mut ASN1_PRINTABLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_equal_consttime"] + pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_T61STRING"] - pub fn d2i_ASN1_T61STRING( - out: *mut *mut ASN1_T61STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_T61STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_abs_is_word"] + pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_UNIVERSALSTRING"] - pub fn d2i_ASN1_UNIVERSALSTRING( - out: *mut *mut ASN1_UNIVERSALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_zero"] + pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_UTF8STRING"] - pub fn d2i_ASN1_UTF8STRING( - out: *mut *mut ASN1_UTF8STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_one"] + pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_VISIBLESTRING"] - pub fn d2i_ASN1_VISIBLESTRING( - out: *mut *mut ASN1_VISIBLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_word"] + pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_BMPSTRING"] - pub fn i2d_ASN1_BMPSTRING( - in_: *const ASN1_BMPSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_odd"] + pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_GENERALSTRING"] - pub fn i2d_ASN1_GENERALSTRING( - in_: *const ASN1_GENERALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_pow2"] + pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_IA5STRING"] - pub fn i2d_ASN1_IA5STRING( - in_: *const ASN1_IA5STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_lshift"] + pub fn BN_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_OCTET_STRING"] - pub fn i2d_ASN1_OCTET_STRING( - in_: *const ASN1_OCTET_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_lshift1"] + pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLESTRING"] - pub fn i2d_ASN1_PRINTABLESTRING( - in_: *const ASN1_PRINTABLESTRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rshift"] + pub fn BN_rshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_T61STRING"] - pub fn i2d_ASN1_T61STRING( - in_: *const ASN1_T61STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rshift1"] + pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_UNIVERSALSTRING"] - pub fn i2d_ASN1_UNIVERSALSTRING( - in_: *const ASN1_UNIVERSALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_bit"] + pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_UTF8STRING"] - pub fn i2d_ASN1_UTF8STRING( - in_: *const ASN1_UTF8STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_clear_bit"] + pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_VISIBLESTRING"] - pub fn i2d_ASN1_VISIBLESTRING( - in_: *const ASN1_VISIBLESTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_bit_set"] + pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BMPSTRING_it"] - pub static ASN1_BMPSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mask_bits"] + pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALSTRING_it"] - pub static ASN1_GENERALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_count_low_zero_bits"] + pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_IA5STRING_it"] - pub static ASN1_IA5STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_word"] + pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_it"] - pub static ASN1_OCTET_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_pow2"] + pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_it"] - pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_nnmod_pow2"] + pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_T61STRING_it"] - pub static ASN1_T61STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_nnmod"] + pub fn BN_nnmod( + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_it"] - pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_add"] + pub fn BN_mod_add( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTF8STRING_it"] - pub static ASN1_UTF8STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_add_quick"] + pub fn BN_mod_add_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_it"] - pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sub"] + pub fn BN_mod_sub( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_dup"] - pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sub_quick"] + pub fn BN_mod_sub_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_cmp"] - pub fn ASN1_OCTET_STRING_cmp( - a: *const ASN1_OCTET_STRING, - b: *const ASN1_OCTET_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_mul"] + pub fn BN_mod_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_set"] - pub fn ASN1_OCTET_STRING_set( - str_: *mut ASN1_OCTET_STRING, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sqr"] + pub fn BN_mod_sqr( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_to_UTF8"] - pub fn ASN1_STRING_to_UTF8( - out: *mut *mut ::std::os::raw::c_uchar, - in_: *const ASN1_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift"] + pub fn BN_mod_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_mbstring_copy"] - pub fn ASN1_mbstring_copy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift_quick"] + pub fn BN_mod_lshift_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_mbstring_ncopy"] - pub fn ASN1_mbstring_ncopy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift1"] + pub fn BN_mod_lshift1( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set_by_NID"] - pub fn ASN1_STRING_set_by_NID( - out: *mut *mut ASN1_STRING, - in_: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - nid: ::std::os::raw::c_int, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift1_quick"] + pub fn BN_mod_lshift1_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_TABLE_add"] - pub fn ASN1_STRING_TABLE_add( - nid: ::std::os::raw::c_int, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, - mask: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sqrt"] + pub fn BN_mod_sqrt( + in_: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIRECTORYSTRING_new"] - pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rand"] + pub fn BN_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIRECTORYSTRING_free"] - pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_pseudo_rand"] + pub fn BN_pseudo_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DIRECTORYSTRING"] - pub fn d2i_DIRECTORYSTRING( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rand_range"] + pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DIRECTORYSTRING"] - pub fn i2d_DIRECTORYSTRING( - in_: *const ASN1_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rand_range_ex"] + pub fn BN_rand_range_ex( + r: *mut BIGNUM, + min_inclusive: BN_ULONG, + max_exclusive: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIRECTORYSTRING_it"] - pub static DIRECTORYSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_pseudo_rand_range"] + pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DISPLAYTEXT_new"] - pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct bn_gencb_st { + pub type_: u8, + pub arg: *mut ::std::os::raw::c_void, + pub callback: bn_gencb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DISPLAYTEXT_free"] - pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); +#[repr(C)] +#[derive(Copy, Clone)] +pub union bn_gencb_st__bindgen_ty_1 { + pub new_style: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut bn_gencb_st, + ) -> ::std::os::raw::c_int, + >, + pub old_style: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DISPLAYTEXT"] - pub fn d2i_DISPLAYTEXT( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; +#[test] +fn bindgen_test_layout_bn_gencb_st__bindgen_ty_1() { + 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!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).new_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(new_style) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).old_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(old_style) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DISPLAYTEXT"] - pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; +impl Default for bn_gencb_st__bindgen_ty_1 { + 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_fips_0_12_15_DISPLAYTEXT_it"] - pub static DISPLAYTEXT_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(callback) + ) + ); +} +impl Default for bn_gencb_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_fips_0_12_15_ASN1_BIT_STRING_new"] - pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_new"] + pub fn BN_GENCB_new() -> *mut BN_GENCB; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_free"] - pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_free"] + pub fn BN_GENCB_free(callback: *mut BN_GENCB); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_BIT_STRING"] - pub fn d2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_set"] + pub fn BN_GENCB_set( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut BN_GENCB, + ) -> ::std::os::raw::c_int, + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_BIT_STRING"] - pub fn i2d_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_call"] + pub fn BN_GENCB_call( + callback: *mut BN_GENCB, + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_c2i_ASN1_BIT_STRING"] - pub fn c2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_get_arg"] + pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2c_ASN1_BIT_STRING"] - pub fn i2c_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_generate_prime_ex"] + pub fn BN_generate_prime_ex( + ret: *mut BIGNUM, + bits: ::std::os::raw::c_int, + safe: ::std::os::raw::c_int, + add: *const BIGNUM, + rem: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } +pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; +pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; +pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; +pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_it"] - pub static ASN1_BIT_STRING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_num_bytes"] - pub fn ASN1_BIT_STRING_num_bytes( - str_: *const ASN1_BIT_STRING, - out: *mut usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_enhanced_miller_rabin_primality_test"] + pub fn BN_enhanced_miller_rabin_primality_test( + out_result: *mut bn_primality_result_t, + w: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_set"] - pub fn ASN1_BIT_STRING_set( - str_: *mut ASN1_BIT_STRING, - d: *const ::std::os::raw::c_uchar, - length: ossl_ssize_t, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_primality_test"] + pub fn BN_primality_test( + is_probably_prime: *mut ::std::os::raw::c_int, + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_set_bit"] - pub fn ASN1_BIT_STRING_set_bit( - str_: *mut ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - value: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_prime_fasttest_ex"] + pub fn BN_is_prime_fasttest_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_get_bit"] - pub fn ASN1_BIT_STRING_get_bit( - str_: *const ASN1_BIT_STRING, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_prime_ex"] + pub fn BN_is_prime_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_check"] - pub fn ASN1_BIT_STRING_check( - str_: *const ASN1_BIT_STRING, - flags: *const ::std::os::raw::c_uchar, - flags_len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_gcd"] + pub fn BN_gcd( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_INTEGER { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_inverse"] + pub fn BN_mod_inverse( + out: *mut BIGNUM, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } -pub type sk_ASN1_INTEGER_free_func = - ::std::option::Option; -pub type sk_ASN1_INTEGER_copy_func = - ::std::option::Option *mut ASN1_INTEGER>; -pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_INTEGER, - arg2: *mut *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_INTEGER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_new"] - pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_inverse_blinded"] + pub fn BN_mod_inverse_blinded( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_free"] - pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_inverse_odd"] + pub fn BN_mod_inverse_odd( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_dup"] - pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_new_for_modulus"] + pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_INTEGER"] - pub fn d2i_ASN1_INTEGER( - out: *mut *mut ASN1_INTEGER, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_INTEGER"] - pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_c2i_ASN1_INTEGER"] - pub fn c2i_ASN1_INTEGER( - in_: *mut *mut ASN1_INTEGER, - outp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2c_ASN1_INTEGER"] - pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_it"] - pub static ASN1_INTEGER_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_set_uint64"] - pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_set_int64"] - pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_get_uint64"] - pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_get_int64"] - pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_new_consttime"] + pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_to_ASN1_INTEGER"] - pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_free"] + pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_to_BN"] - pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_copy"] + pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_cmp"] - pub fn ASN1_INTEGER_cmp( - x: *const ASN1_INTEGER, - y: *const ASN1_INTEGER, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_to_montgomery"] + pub fn BN_to_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_new"] - pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_free"] - pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_ENUMERATED"] - pub fn d2i_ASN1_ENUMERATED( - out: *mut *mut ASN1_ENUMERATED, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_ENUMERATED"] - pub fn i2d_ASN1_ENUMERATED( - in_: *const ASN1_ENUMERATED, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_from_montgomery"] + pub fn BN_from_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_it"] - pub static ASN1_ENUMERATED_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_uint64"] - pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_int64"] - pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_uint64"] - pub fn ASN1_ENUMERATED_get_uint64( - out: *mut u64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_mul_montgomery"] + pub fn BN_mod_mul_montgomery( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_int64"] - pub fn ASN1_ENUMERATED_get_int64( - out: *mut i64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_exp"] + pub fn BN_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_to_ASN1_ENUMERATED"] - pub fn BN_to_ASN1_ENUMERATED( - bn: *const BIGNUM, - ai: *mut ASN1_ENUMERATED, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_to_BN"] - pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_new"] - pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_free"] - pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_UTCTIME"] - pub fn d2i_ASN1_UTCTIME( - out: *mut *mut ASN1_UTCTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_UTCTIME"] - pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_it"] - pub static ASN1_UTCTIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_check"] - pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_set"] - pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_adj"] - pub fn ASN1_UTCTIME_adj( - s: *mut ASN1_UTCTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_set_string"] - pub fn ASN1_UTCTIME_set_string( - s: *mut ASN1_UTCTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp"] + pub fn BN_mod_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_cmp_time_t"] - pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_new"] - pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_free"] - pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_GENERALIZEDTIME"] - pub fn d2i_ASN1_GENERALIZEDTIME( - out: *mut *mut ASN1_GENERALIZEDTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont"] + pub fn BN_mod_exp_mont( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_GENERALIZEDTIME"] - pub fn i2d_ASN1_GENERALIZEDTIME( - in_: *const ASN1_GENERALIZEDTIME, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime"] + pub fn BN_mod_exp_mont_consttime( + rr: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_it"] - pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_set_old"] + pub fn BN_GENCB_set_old( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_check"] - pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2mpi"] + pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set"] - pub fn ASN1_GENERALIZEDTIME_set( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mpi2bn"] + pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_adj"] - pub fn ASN1_GENERALIZEDTIME_adj( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont_word"] + pub fn BN_mod_exp_mont_word( + r: *mut BIGNUM, + a: BN_ULONG, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set_string"] - pub fn ASN1_GENERALIZEDTIME_set_string( - s: *mut ASN1_GENERALIZEDTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp2_mont"] + pub fn BN_mod_exp2_mont( + r: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_new"] - pub fn ASN1_TIME_new() -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_new"] + pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_free"] - pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_set"] + pub fn BN_MONT_CTX_set( + mont: *mut BN_MONT_CTX, + mod_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_TIME"] - pub fn d2i_ASN1_TIME( - out: *mut *mut ASN1_TIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2binpad"] + pub fn BN_bn2binpad( + in_: *const BIGNUM, + out: *mut u8, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_TIME"] - pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_secure_new"] + pub fn BN_secure_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_it"] - pub static ASN1_TIME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_secure_new"] + pub fn BN_CTX_secure_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_diff"] - pub fn ASN1_TIME_diff( - out_days: *mut ::std::os::raw::c_int, - out_seconds: *mut ::std::os::raw::c_int, - from: *const ASN1_TIME, - to: *const ASN1_TIME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime_x2"] + pub fn BN_mod_exp_mont_consttime_x2( + rr1: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + m1: *const BIGNUM, + in_mont1: *const BN_MONT_CTX, + rr2: *mut BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m2: *const BIGNUM, + in_mont2: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_set_posix"] - pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_set"] - pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_adj"] - pub fn ASN1_TIME_adj( - s: *mut ASN1_TIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_check"] - pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_to_generalizedtime"] - pub fn ASN1_TIME_to_generalizedtime( - t: *const ASN1_TIME, - out: *mut *mut ASN1_GENERALIZEDTIME, - ) -> *mut ASN1_GENERALIZEDTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_set_string"] - pub fn ASN1_TIME_set_string( - s: *mut ASN1_TIME, - str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_to_time_t"] - pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_to_posix"] - pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_NULL_new"] - pub fn ASN1_NULL_new() -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_NULL_free"] - pub fn ASN1_NULL_free(null: *mut ASN1_NULL); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_NULL"] - pub fn d2i_ASN1_NULL( - out: *mut *mut ASN1_NULL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_NULL"] - pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_NULL_it"] - pub static ASN1_NULL_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_OBJECT { - _unused: [u8; 0], -} -pub type sk_ASN1_OBJECT_free_func = - ::std::option::Option; -pub type sk_ASN1_OBJECT_copy_func = - ::std::option::Option *mut ASN1_OBJECT>; -pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_OBJECT, - arg2: *mut *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OBJECT_create"] - pub fn ASN1_OBJECT_create( - nid: ::std::os::raw::c_int, - data: *const u8, - len: ::std::os::raw::c_int, - sn: *const ::std::os::raw::c_char, - ln: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OBJECT_free"] - pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_OBJECT"] - pub fn d2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_OBJECT"] - pub fn i2d_ASN1_OBJECT(a: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_c2i_ASN1_OBJECT"] - pub fn c2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OBJECT_it"] - pub static ASN1_OBJECT_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct asn1_type_st { - pub type_: ::std::os::raw::c_int, - pub value: asn1_type_st__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union asn1_type_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub boolean: ASN1_BOOLEAN, - pub asn1_string: *mut ASN1_STRING, - pub object: *mut ASN1_OBJECT, - pub integer: *mut ASN1_INTEGER, - pub enumerated: *mut ASN1_ENUMERATED, - pub bit_string: *mut ASN1_BIT_STRING, - pub octet_string: *mut ASN1_OCTET_STRING, - pub printablestring: *mut ASN1_PRINTABLESTRING, - pub t61string: *mut ASN1_T61STRING, - pub ia5string: *mut ASN1_IA5STRING, - pub generalstring: *mut ASN1_GENERALSTRING, - pub bmpstring: *mut ASN1_BMPSTRING, - pub universalstring: *mut ASN1_UNIVERSALSTRING, - pub utctime: *mut ASN1_UTCTIME, - pub generalizedtime: *mut ASN1_GENERALIZEDTIME, - pub visiblestring: *mut ASN1_VISIBLESTRING, - pub utf8string: *mut ASN1_UTF8STRING, - pub set: *mut ASN1_STRING, - pub sequence: *mut ASN1_STRING, - pub asn1_value: *mut ASN1_VALUE, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bignum_st { + pub d: *mut BN_ULONG, + pub width: ::std::os::raw::c_int, + pub dmax: ::std::os::raw::c_int, + pub neg: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bignum_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!(asn1_type_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(bignum_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + concat!("Alignment of ", stringify!(bignum_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(ptr) + stringify!(d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(boolean) + stringify!(width) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(asn1_string) + stringify!(dmax) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(object) + stringify!(neg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(integer) + stringify!(flags) ) ); +} +impl Default for bignum_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 bn_mont_ctx_st { + pub RR: BIGNUM, + pub N: BIGNUM, + pub n0: [BN_ULONG; 2usize], +} +#[test] +fn bindgen_test_layout_bn_mont_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(enumerated) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bit_string) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(octet_string) + stringify!(RR) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(printablestring) + stringify!(N) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(t61string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(ia5string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bmpstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(universalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utctime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalizedtime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(visiblestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utf8string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(sequence) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(asn1_value) + stringify!(n0) ) ); } -impl Default for asn1_type_st__bindgen_ty_1 { +impl Default for bn_mont_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9184,563 +8835,1988 @@ impl Default for asn1_type_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_type_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_num_bits_word"] + pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; } -impl Default for asn1_type_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_fips_0_13_0_ASN1_tag2bit"] + pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_TYPE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_tag2str"] + pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -pub type sk_ASN1_TYPE_free_func = ::std::option::Option; -pub type sk_ASN1_TYPE_copy_func = - ::std::option::Option *mut ASN1_TYPE>; -pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< +pub type d2i_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_TYPE, - arg2: *mut *const ASN1_TYPE, - ) -> ::std::os::raw::c_int, + arg1: *mut *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, >; -pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< +pub type i2d_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut ASN1_TYPE, - arg2: *mut ::std::os::raw::c_void, + arg1: *const ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int, >; +pub type ASN1_ITEM_EXP = ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_VALUE_st { + _unused: [u8; 0], +} +pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_new"] - pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_new"] + pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_free"] - pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_free"] + pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_TYPE"] - pub fn d2i_ASN1_TYPE( - out: *mut *mut ASN1_TYPE, - inp: *mut *const u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_d2i"] + pub fn ASN1_item_d2i( + out: *mut *mut ASN1_VALUE, + inp: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ASN1_TYPE; + it: *const ASN1_ITEM, + ) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_TYPE"] - pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_i2d"] + pub fn ASN1_item_i2d( + val: *mut ASN1_VALUE, + outp: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ANY_it"] - pub static ASN1_ANY_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_dup"] + pub fn ASN1_dup( + i2d: i2d_of_void, + d2i: d2i_of_void, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_get"] - pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_dup"] + pub fn ASN1_item_dup( + it: *const ASN1_ITEM, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_set"] - pub fn ASN1_TYPE_set( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_d2i_fp"] + pub fn ASN1_item_d2i_fp( + it: *const ASN1_ITEM, + in_: *mut FILE, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_set1"] - pub fn ASN1_TYPE_set1( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_d2i_bio"] + pub fn ASN1_item_d2i_bio( + it: *const ASN1_ITEM, + in_: *mut BIO, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_cmp"] - pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_i2d_fp"] + pub fn ASN1_item_i2d_fp( + it: *const ASN1_ITEM, + out: *mut FILE, + in_: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_SEQUENCE_ANY"] - pub fn d2i_ASN1_SEQUENCE_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_i2d_bio"] + pub fn ASN1_item_i2d_bio( + it: *const ASN1_ITEM, + out: *mut BIO, + in_: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_SEQUENCE_ANY"] - pub fn i2d_ASN1_SEQUENCE_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_i2d_bio"] + pub fn ASN1_i2d_bio( + i2d: i2d_of_void, + out: *mut BIO, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_SET_ANY"] - pub fn d2i_ASN1_SET_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_unpack"] + pub fn ASN1_item_unpack( + oct: *const ASN1_STRING, + it: *const ASN1_ITEM, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_pack"] + pub fn ASN1_item_pack( + obj: *mut ::std::os::raw::c_void, + it: *const ASN1_ITEM, + out: *mut *mut ASN1_STRING, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_BOOLEAN"] + pub fn d2i_ASN1_BOOLEAN( + out: *mut ASN1_BOOLEAN, + inp: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + ) -> ASN1_BOOLEAN; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_SET_ANY"] - pub fn i2d_ASN1_SET_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_BOOLEAN"] + pub fn i2d_ASN1_BOOLEAN( + a: ASN1_BOOLEAN, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_print"] - pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BOOLEAN_it"] + pub static ASN1_BOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_print"] - pub fn ASN1_GENERALIZEDTIME_print( - out: *mut BIO, - a: *const ASN1_GENERALIZEDTIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TBOOLEAN_it"] + pub static ASN1_TBOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_print"] - pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_FBOOLEAN_it"] + pub static ASN1_FBOOLEAN_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct asn1_string_st { + pub length: ::std::os::raw::c_int, + pub type_: ::std::os::raw::c_int, + pub data: *mut ::std::os::raw::c_uchar, + pub flags: ::std::os::raw::c_long, +} +#[test] +fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_string_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(length) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(flags) + ) + ); +} +impl Default for asn1_string_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_fips_0_12_15_ASN1_STRING_print"] - pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_type_new"] + pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_print_ex"] - pub fn ASN1_STRING_print_ex( - out: *mut BIO, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_new"] + pub fn ASN1_STRING_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_print_ex_fp"] - pub fn ASN1_STRING_print_ex_fp( - fp: *mut FILE, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_free"] + pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_clear_free"] + pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_copy"] + pub fn ASN1_STRING_copy( + dst: *mut ASN1_STRING, str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_INTEGER"] - pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_dup"] + pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_ENUMERATED"] - pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_type"] + pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_OBJECT"] - pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_get0_data"] + pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_STRING"] - pub fn i2a_ASN1_STRING( - bp: *mut BIO, - a: *const ASN1_STRING, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_data"] + pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2t_ASN1_OBJECT"] - pub fn i2t_ASN1_OBJECT( - buf: *mut ::std::os::raw::c_char, - buf_len: ::std::os::raw::c_int, - a: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_length"] + pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_get_object"] - pub fn ASN1_get_object( - inp: *mut *const ::std::os::raw::c_uchar, - out_length: *mut ::std::os::raw::c_long, - out_tag: *mut ::std::os::raw::c_int, - out_class: *mut ::std::os::raw::c_int, - max_len: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_cmp"] + pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set"] + pub fn ASN1_STRING_set( + str_: *mut ASN1_STRING, + data: *const ::std::os::raw::c_void, + len: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_put_object"] - pub fn ASN1_put_object( - outp: *mut *mut ::std::os::raw::c_uchar, - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - xclass: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set0"] + pub fn ASN1_STRING_set0( + str_: *mut ASN1_STRING, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_put_eoc"] - pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BMPSTRING_new"] + pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_object_size"] - pub fn ASN1_object_size( - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALSTRING_new"] + pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask"] - pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_IA5STRING_new"] + pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask_asc"] - pub fn ASN1_STRING_set_default_mask_asc( - p: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_new"] + pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_get_default_mask"] - pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_new"] + pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_TABLE_cleanup"] - pub fn ASN1_STRING_TABLE_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_T61STRING_new"] + pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLE_new"] - pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_new"] + pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLE_free"] - pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTF8STRING_new"] + pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLE"] - pub fn d2i_ASN1_PRINTABLE( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_new"] + pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLE"] - pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BMPSTRING_free"] + pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLE_it"] - pub static ASN1_PRINTABLE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALSTRING_free"] + pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_set"] - pub fn ASN1_INTEGER_set( - a: *mut ASN1_INTEGER, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_IA5STRING_free"] + pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_set"] - pub fn ASN1_ENUMERATED_set( - a: *mut ASN1_ENUMERATED, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_free"] + pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_get"] - pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_free"] + pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_get"] - pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_T61STRING_free"] + pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); } -pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_TLC_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_free"] + pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); } -pub type ASN1_TLC = ASN1_TLC_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_TEMPLATE_st { - pub flags: u32, - pub tag: ::std::os::raw::c_int, - pub offset: ::std::os::raw::c_ulong, - pub field_name: *const ::std::os::raw::c_char, - pub item: *const ASN1_ITEM_st, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTF8STRING_free"] + pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); } -#[test] -fn bindgen_test_layout_ASN1_TEMPLATE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(tag) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(field_name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(item) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_free"] + pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); } -impl Default for ASN1_TEMPLATE_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_fips_0_13_0_d2i_ASN1_BMPSTRING"] + pub fn d2i_ASN1_BMPSTRING( + out: *mut *mut ASN1_BMPSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BMPSTRING; } -pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; -pub type ASN1_ADB = ASN1_ADB_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct asn1_must_be_null_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_GENERALSTRING"] + pub fn d2i_ASN1_GENERALSTRING( + out: *mut *mut ASN1_GENERALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALSTRING; } -pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_st { - pub flags: u32, - pub offset: ::std::os::raw::c_ulong, - pub unused: *mut ASN1_MUST_BE_NULL, - pub tbl: *const ASN1_ADB_TABLE, - pub tblcount: ::std::os::raw::c_long, - pub default_tt: *const ASN1_TEMPLATE, - pub null_tt: *const ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_IA5STRING"] + pub fn d2i_ASN1_IA5STRING( + out: *mut *mut ASN1_IA5STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_IA5STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(unused) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tbl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tblcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(default_tt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(null_tt) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_OCTET_STRING"] + pub fn d2i_ASN1_OCTET_STRING( + out: *mut *mut ASN1_OCTET_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OCTET_STRING; } -impl Default for ASN1_ADB_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_fips_0_13_0_d2i_ASN1_PRINTABLESTRING"] + pub fn d2i_ASN1_PRINTABLESTRING( + out: *mut *mut ASN1_PRINTABLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_PRINTABLESTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_TABLE_st { - pub value: ::std::os::raw::c_int, - pub tt: ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_T61STRING"] + pub fn d2i_ASN1_T61STRING( + out: *mut *mut ASN1_T61STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_T61STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(tt) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_UNIVERSALSTRING"] + pub fn d2i_ASN1_UNIVERSALSTRING( + out: *mut *mut ASN1_UNIVERSALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UNIVERSALSTRING; } -impl Default for ASN1_ADB_TABLE_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_fips_0_13_0_d2i_ASN1_UTF8STRING"] + pub fn d2i_ASN1_UTF8STRING( + out: *mut *mut ASN1_UTF8STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTF8STRING; } -#[repr(C)] +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_VISIBLESTRING"] + pub fn d2i_ASN1_VISIBLESTRING( + out: *mut *mut ASN1_VISIBLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_VISIBLESTRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_BMPSTRING"] + pub fn i2d_ASN1_BMPSTRING( + in_: *const ASN1_BMPSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_GENERALSTRING"] + pub fn i2d_ASN1_GENERALSTRING( + in_: *const ASN1_GENERALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_IA5STRING"] + pub fn i2d_ASN1_IA5STRING( + in_: *const ASN1_IA5STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_OCTET_STRING"] + pub fn i2d_ASN1_OCTET_STRING( + in_: *const ASN1_OCTET_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLESTRING"] + pub fn i2d_ASN1_PRINTABLESTRING( + in_: *const ASN1_PRINTABLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_T61STRING"] + pub fn i2d_ASN1_T61STRING( + in_: *const ASN1_T61STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_UNIVERSALSTRING"] + pub fn i2d_ASN1_UNIVERSALSTRING( + in_: *const ASN1_UNIVERSALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_UTF8STRING"] + pub fn i2d_ASN1_UTF8STRING( + in_: *const ASN1_UTF8STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_VISIBLESTRING"] + pub fn i2d_ASN1_VISIBLESTRING( + in_: *const ASN1_VISIBLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BMPSTRING_it"] + pub static ASN1_BMPSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALSTRING_it"] + pub static ASN1_GENERALSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_IA5STRING_it"] + pub static ASN1_IA5STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_it"] + pub static ASN1_OCTET_STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_it"] + pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_T61STRING_it"] + pub static ASN1_T61STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_it"] + pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTF8STRING_it"] + pub static ASN1_UTF8STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_it"] + pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_dup"] + pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_cmp"] + pub fn ASN1_OCTET_STRING_cmp( + a: *const ASN1_OCTET_STRING, + b: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_set"] + pub fn ASN1_OCTET_STRING_set( + str_: *mut ASN1_OCTET_STRING, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_to_UTF8"] + pub fn ASN1_STRING_to_UTF8( + out: *mut *mut ::std::os::raw::c_uchar, + in_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_mbstring_copy"] + pub fn ASN1_mbstring_copy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_mbstring_ncopy"] + pub fn ASN1_mbstring_ncopy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + minsize: ossl_ssize_t, + maxsize: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set_by_NID"] + pub fn ASN1_STRING_set_by_NID( + out: *mut *mut ASN1_STRING, + in_: *const ::std::os::raw::c_uchar, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_TABLE_add"] + pub fn ASN1_STRING_TABLE_add( + nid: ::std::os::raw::c_int, + minsize: ::std::os::raw::c_long, + maxsize: ::std::os::raw::c_long, + mask: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIRECTORYSTRING_new"] + pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIRECTORYSTRING_free"] + pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DIRECTORYSTRING"] + pub fn d2i_DIRECTORYSTRING( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DIRECTORYSTRING"] + pub fn i2d_DIRECTORYSTRING( + in_: *const ASN1_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIRECTORYSTRING_it"] + pub static DIRECTORYSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DISPLAYTEXT_new"] + pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DISPLAYTEXT_free"] + pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DISPLAYTEXT"] + pub fn d2i_DISPLAYTEXT( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DISPLAYTEXT"] + pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DISPLAYTEXT_it"] + pub static DISPLAYTEXT_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_new"] + pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_free"] + pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_BIT_STRING"] + pub fn d2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_BIT_STRING"] + pub fn i2d_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_c2i_ASN1_BIT_STRING"] + pub fn c2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2c_ASN1_BIT_STRING"] + pub fn i2c_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_it"] + pub static ASN1_BIT_STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_num_bytes"] + pub fn ASN1_BIT_STRING_num_bytes( + str_: *const ASN1_BIT_STRING, + out: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_set"] + pub fn ASN1_BIT_STRING_set( + str_: *mut ASN1_BIT_STRING, + d: *const ::std::os::raw::c_uchar, + length: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_set_bit"] + pub fn ASN1_BIT_STRING_set_bit( + str_: *mut ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_get_bit"] + pub fn ASN1_BIT_STRING_get_bit( + str_: *const ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_check"] + pub fn ASN1_BIT_STRING_check( + str_: *const ASN1_BIT_STRING, + flags: *const ::std::os::raw::c_uchar, + flags_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_INTEGER { + _unused: [u8; 0], +} +pub type sk_ASN1_INTEGER_free_func = + ::std::option::Option; +pub type sk_ASN1_INTEGER_copy_func = + ::std::option::Option *mut ASN1_INTEGER>; +pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_INTEGER, + arg2: *const *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_INTEGER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_new"] + pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_free"] + pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_dup"] + pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_INTEGER"] + pub fn d2i_ASN1_INTEGER( + out: *mut *mut ASN1_INTEGER, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_INTEGER"] + pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_c2i_ASN1_INTEGER"] + pub fn c2i_ASN1_INTEGER( + in_: *mut *mut ASN1_INTEGER, + outp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2c_ASN1_INTEGER"] + pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_it"] + pub static ASN1_INTEGER_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_set_uint64"] + pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_set_int64"] + pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_get_uint64"] + pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_get_int64"] + pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_to_ASN1_INTEGER"] + pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_to_BN"] + pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_cmp"] + pub fn ASN1_INTEGER_cmp( + x: *const ASN1_INTEGER, + y: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_new"] + pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_free"] + pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_ENUMERATED"] + pub fn d2i_ASN1_ENUMERATED( + out: *mut *mut ASN1_ENUMERATED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_ENUMERATED; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_ENUMERATED"] + pub fn i2d_ASN1_ENUMERATED( + in_: *const ASN1_ENUMERATED, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_it"] + pub static ASN1_ENUMERATED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_uint64"] + pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_int64"] + pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_uint64"] + pub fn ASN1_ENUMERATED_get_uint64( + out: *mut u64, + a: *const ASN1_ENUMERATED, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_int64"] + pub fn ASN1_ENUMERATED_get_int64( + out: *mut i64, + a: *const ASN1_ENUMERATED, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_to_ASN1_ENUMERATED"] + pub fn BN_to_ASN1_ENUMERATED( + bn: *const BIGNUM, + ai: *mut ASN1_ENUMERATED, + ) -> *mut ASN1_ENUMERATED; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_to_BN"] + pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_new"] + pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_free"] + pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_UTCTIME"] + pub fn d2i_ASN1_UTCTIME( + out: *mut *mut ASN1_UTCTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_UTCTIME"] + pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_it"] + pub static ASN1_UTCTIME_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_check"] + pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_set"] + pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_adj"] + pub fn ASN1_UTCTIME_adj( + s: *mut ASN1_UTCTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_set_string"] + pub fn ASN1_UTCTIME_set_string( + s: *mut ASN1_UTCTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_cmp_time_t"] + pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_new"] + pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_free"] + pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_GENERALIZEDTIME"] + pub fn d2i_ASN1_GENERALIZEDTIME( + out: *mut *mut ASN1_GENERALIZEDTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_GENERALIZEDTIME"] + pub fn i2d_ASN1_GENERALIZEDTIME( + in_: *const ASN1_GENERALIZEDTIME, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_it"] + pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_check"] + pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set"] + pub fn ASN1_GENERALIZEDTIME_set( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_adj"] + pub fn ASN1_GENERALIZEDTIME_adj( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set_string"] + pub fn ASN1_GENERALIZEDTIME_set_string( + s: *mut ASN1_GENERALIZEDTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_new"] + pub fn ASN1_TIME_new() -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_free"] + pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_TIME"] + pub fn d2i_ASN1_TIME( + out: *mut *mut ASN1_TIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_TIME"] + pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_it"] + pub static ASN1_TIME_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_diff"] + pub fn ASN1_TIME_diff( + out_days: *mut ::std::os::raw::c_int, + out_seconds: *mut ::std::os::raw::c_int, + from: *const ASN1_TIME, + to: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set_posix"] + pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set"] + pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_adj"] + pub fn ASN1_TIME_adj( + s: *mut ASN1_TIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_check"] + pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_generalizedtime"] + pub fn ASN1_TIME_to_generalizedtime( + t: *const ASN1_TIME, + out: *mut *mut ASN1_GENERALIZEDTIME, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set_string"] + pub fn ASN1_TIME_set_string( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_tm"] + pub fn ASN1_TIME_to_tm(t: *const ASN1_TIME, out: *mut tm) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set_string_X509"] + pub fn ASN1_TIME_set_string_X509( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_time_t"] + pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_posix"] + pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_NULL_new"] + pub fn ASN1_NULL_new() -> *mut ASN1_NULL; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_NULL_free"] + pub fn ASN1_NULL_free(null: *mut ASN1_NULL); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_NULL"] + pub fn d2i_ASN1_NULL( + out: *mut *mut ASN1_NULL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_NULL; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_NULL"] + pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_NULL_it"] + pub static ASN1_NULL_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_OBJECT { + _unused: [u8; 0], +} +pub type sk_ASN1_OBJECT_free_func = + ::std::option::Option; +pub type sk_ASN1_OBJECT_copy_func = + ::std::option::Option *mut ASN1_OBJECT>; +pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_OBJECT, + arg2: *const *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OBJECT_create"] + pub fn ASN1_OBJECT_create( + nid: ::std::os::raw::c_int, + data: *const u8, + len: usize, + sn: *const ::std::os::raw::c_char, + ln: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OBJECT_free"] + pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_OBJECT"] + pub fn d2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_OBJECT"] + pub fn i2d_ASN1_OBJECT(in_: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_c2i_ASN1_OBJECT"] + pub fn c2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OBJECT_it"] + pub static ASN1_OBJECT_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct asn1_type_st { + pub type_: ::std::os::raw::c_int, + pub value: asn1_type_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union asn1_type_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub boolean: ASN1_BOOLEAN, + pub asn1_string: *mut ASN1_STRING, + pub object: *mut ASN1_OBJECT, + pub integer: *mut ASN1_INTEGER, + pub enumerated: *mut ASN1_ENUMERATED, + pub bit_string: *mut ASN1_BIT_STRING, + pub octet_string: *mut ASN1_OCTET_STRING, + pub printablestring: *mut ASN1_PRINTABLESTRING, + pub t61string: *mut ASN1_T61STRING, + pub ia5string: *mut ASN1_IA5STRING, + pub generalstring: *mut ASN1_GENERALSTRING, + pub bmpstring: *mut ASN1_BMPSTRING, + pub universalstring: *mut ASN1_UNIVERSALSTRING, + pub utctime: *mut ASN1_UTCTIME, + pub generalizedtime: *mut ASN1_GENERALIZEDTIME, + pub visiblestring: *mut ASN1_VISIBLESTRING, + pub utf8string: *mut ASN1_UTF8STRING, + pub set: *mut ASN1_STRING, + pub sequence: *mut ASN1_STRING, + pub asn1_value: *mut ASN1_VALUE, +} +#[test] +fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { + 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!(asn1_type_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(boolean) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(object) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(integer) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(enumerated) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bit_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(octet_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(printablestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(t61string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ia5string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bmpstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(universalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utctime) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalizedtime) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(visiblestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utf8string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(set) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(sequence) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_value) + ) + ); +} +impl Default for asn1_type_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(value) + ) + ); +} +impl Default for asn1_type_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)] +pub struct stack_st_ASN1_TYPE { + _unused: [u8; 0], +} +pub type sk_ASN1_TYPE_free_func = ::std::option::Option; +pub type sk_ASN1_TYPE_copy_func = + ::std::option::Option *mut ASN1_TYPE>; +pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_TYPE, + arg2: *const *const ASN1_TYPE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_TYPE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_new"] + pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_free"] + pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_TYPE"] + pub fn d2i_ASN1_TYPE( + out: *mut *mut ASN1_TYPE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_TYPE"] + pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ANY_it"] + pub static ASN1_ANY_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_get"] + pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_set"] + pub fn ASN1_TYPE_set( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_set1"] + pub fn ASN1_TYPE_set1( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_cmp"] + pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_SEQUENCE_ANY"] + pub fn d2i_ASN1_SEQUENCE_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_SEQUENCE_ANY"] + pub fn i2d_ASN1_SEQUENCE_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_SET_ANY"] + pub fn d2i_ASN1_SET_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_SET_ANY"] + pub fn i2d_ASN1_SET_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_print"] + pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_print"] + pub fn ASN1_GENERALIZEDTIME_print( + out: *mut BIO, + a: *const ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_print"] + pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_print"] + pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_print_ex"] + pub fn ASN1_STRING_print_ex( + out: *mut BIO, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_print_ex_fp"] + pub fn ASN1_STRING_print_ex_fp( + fp: *mut FILE, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_INTEGER"] + pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_ENUMERATED"] + pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_OBJECT"] + pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_STRING"] + pub fn i2a_ASN1_STRING( + bp: *mut BIO, + a: *const ASN1_STRING, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2t_ASN1_OBJECT"] + pub fn i2t_ASN1_OBJECT( + buf: *mut ::std::os::raw::c_char, + buf_len: ::std::os::raw::c_int, + a: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_get_object"] + pub fn ASN1_get_object( + inp: *mut *const ::std::os::raw::c_uchar, + out_length: *mut ::std::os::raw::c_long, + out_tag: *mut ::std::os::raw::c_int, + out_class: *mut ::std::os::raw::c_int, + max_len: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_put_object"] + pub fn ASN1_put_object( + outp: *mut *mut ::std::os::raw::c_uchar, + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + xclass: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_put_eoc"] + pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_object_size"] + pub fn ASN1_object_size( + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLE_new"] + pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLE_free"] + pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLE"] + pub fn d2i_ASN1_PRINTABLE( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLE"] + pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLE_it"] + pub static ASN1_PRINTABLE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_set"] + pub fn ASN1_INTEGER_set( + a: *mut ASN1_INTEGER, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_set"] + pub fn ASN1_ENUMERATED_set( + a: *mut ASN1_ENUMERATED, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_get"] + pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_get"] + pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask"] + pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask_asc"] + pub fn ASN1_STRING_set_default_mask_asc( + p: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_get_default_mask"] + pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_TABLE_cleanup"] + pub fn ASN1_STRING_TABLE_cleanup(); +} +pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_TLC_st { + _unused: [u8; 0], +} +pub type ASN1_TLC = ASN1_TLC_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_TEMPLATE_st { + pub flags: u32, + pub tag: ::std::os::raw::c_int, + pub offset: ::std::os::raw::c_ulong, + pub field_name: *const ::std::os::raw::c_char, + pub item: *const ASN1_ITEM_st, +} +#[test] +fn bindgen_test_layout_ASN1_TEMPLATE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(tag) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(field_name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(item) + ) + ); +} +impl Default for ASN1_TEMPLATE_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() + } + } +} +pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; +pub type ASN1_ADB = ASN1_ADB_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct asn1_must_be_null_st { + _unused: [u8; 0], +} +pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_st { + pub flags: u32, + pub offset: ::std::os::raw::c_ulong, + pub unused: *mut ASN1_MUST_BE_NULL, + pub tbl: *const ASN1_ADB_TABLE, + pub tblcount: ::std::os::raw::c_long, + pub default_tt: *const ASN1_TEMPLATE, + pub null_tt: *const ASN1_TEMPLATE, +} +#[test] +fn bindgen_test_layout_ASN1_ADB_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(ASN1_ADB_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(unused) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tbl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tblcount) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(default_tt) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(null_tt) + ) + ); +} +impl Default for ASN1_ADB_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 ASN1_ADB_TABLE_st { + pub value: ::std::os::raw::c_int, + pub tt: ASN1_TEMPLATE, +} +#[test] +fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(value) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(tt) + ) + ); +} +impl Default for ASN1_ADB_TABLE_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 ASN1_ITEM_st { pub itype: ::std::os::raw::c_char, @@ -9901,7 +10977,6 @@ pub struct ASN1_EXTERN_FUNCS_st { pub app_data: *mut ::std::os::raw::c_void, pub asn1_ex_new: ASN1_ex_new_func, pub asn1_ex_free: ASN1_ex_free_func, - pub asn1_ex_clear: ASN1_ex_free_func, pub asn1_ex_d2i: ASN1_ex_d2i, pub asn1_ex_i2d: ASN1_ex_i2d, pub asn1_ex_print: ASN1_ex_print_func, @@ -9912,7 +10987,7 @@ fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 56usize, + 48usize, concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) ); assert_eq!( @@ -9950,19 +11025,9 @@ fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { stringify!(asn1_ex_free) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_clear) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_clear) - ) - ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, - 32usize, + 24usize, concat!( "Offset of field: ", stringify!(ASN1_EXTERN_FUNCS_st), @@ -9972,7 +11037,7 @@ fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, - 40usize, + 32usize, concat!( "Offset of field: ", stringify!(ASN1_EXTERN_FUNCS_st), @@ -9982,7 +11047,7 @@ fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, - 48usize, + 40usize, concat!( "Offset of field: ", stringify!(ASN1_EXTERN_FUNCS_st), @@ -10094,7 +11159,7 @@ impl Default for ASN1_AUX_st { } pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_SEQUENCE_it"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_SEQUENCE_it"] pub static ASN1_SEQUENCE_it: ASN1_ITEM; } #[repr(C)] @@ -10108,8 +11173,8 @@ pub type sk_ASN1_VALUE_copy_func = ::std::option::Option *mut ASN1_VALUE>; pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_VALUE, - arg2: *mut *const ASN1_VALUE, + arg1: *const *const ASN1_VALUE, + arg2: *const *const ASN1_VALUE, ) -> ::std::os::raw::c_int, >; pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< @@ -10119,19 +11184,19 @@ pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeBlock"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeBlock"] pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodedLength"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodedLength"] pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodedLength"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodedLength"] pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeBase64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeBase64"] pub fn EVP_DecodeBase64( out: *mut u8, out_len: *mut usize, @@ -10141,29 +11206,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_ENCODE_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_ENCODE_CTX_new"] pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_ENCODE_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_ENCODE_CTX_free"] pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeInit"] pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeUpdate"] pub fn EVP_EncodeUpdate( ctx: *mut EVP_ENCODE_CTX, out: *mut u8, out_len: *mut ::std::os::raw::c_int, in_: *const u8, in_len: usize, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeFinal"] pub fn EVP_EncodeFinal( ctx: *mut EVP_ENCODE_CTX, out: *mut u8, @@ -10171,11 +11236,11 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeInit"] pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeUpdate"] pub fn EVP_DecodeUpdate( ctx: *mut EVP_ENCODE_CTX, out: *mut u8, @@ -10185,7 +11250,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeFinal"] pub fn EVP_DecodeFinal( ctx: *mut EVP_ENCODE_CTX, out: *mut u8, @@ -10193,7 +11258,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeBlock"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeBlock"] pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; } #[repr(C)] @@ -10269,65 +11334,14 @@ impl Default for evp_encode_ctx_st { } } #[repr(C)] -#[derive(Copy, Clone)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct blake2b_state_st { pub h: [u64; 8usize], pub t_low: u64, pub t_high: u64, - pub block: blake2b_state_st__bindgen_ty_1, + pub block: [u8; 128usize], pub block_used: usize, } -#[repr(C)] -#[derive(Copy, Clone)] -pub union blake2b_state_st__bindgen_ty_1 { - pub bytes: [u8; 128usize], - pub words: [u64; 16usize], -} -#[test] -fn bindgen_test_layout_blake2b_state_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).words) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(words) - ) - ); -} -impl Default for blake2b_state_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[test] fn bindgen_test_layout_blake2b_state_st() { const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); @@ -10403,11 +11417,11 @@ impl Default for blake2b_state_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256_Init"] pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256_Update"] pub fn BLAKE2B256_Update( b2b: *mut BLAKE2B_CTX, data: *const ::std::os::raw::c_void, @@ -10415,11 +11429,11 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256_Final"] pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256"] pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); } #[repr(C)] @@ -10474,19 +11488,19 @@ impl Default for bf_key_st { } pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_set_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_set_key"] pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_encrypt"] pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_decrypt"] pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_ecb_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_ecb_encrypt"] pub fn BF_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -10495,7 +11509,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_cbc_encrypt"] pub fn BF_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -10556,23 +11570,23 @@ impl Default for cbs_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_init"] pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_skip"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_skip"] pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_data"] pub fn CBS_data(cbs: *const CBS) -> *const u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_len"] pub fn CBS_len(cbs: *const CBS) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_stow"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_stow"] pub fn CBS_stow( cbs: *const CBS, out_ptr: *mut *mut u8, @@ -10580,82 +11594,86 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_strdup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_strdup"] pub fn CBS_strdup( cbs: *const CBS, out_ptr: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_contains_zero_byte"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_contains_zero_byte"] pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_mem_equal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_mem_equal"] pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u8"] pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u16"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u16"] pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u16le"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u16le"] pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u24"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u24"] pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u32"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u32"] pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u32le"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u32le"] pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u64"] pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u64le"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u64le"] pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_last_u8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_last_u8"] pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_bytes"] pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_copy_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_copy_bytes"] pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u8_length_prefixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u8_length_prefixed"] pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u16_length_prefixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u16_length_prefixed"] pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u24_length_prefixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u24_length_prefixed"] pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_until_first"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_until_first"] pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u64_decimal"] + pub fn CBS_get_u64_decimal(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1"] pub fn CBS_get_asn1( cbs: *mut CBS, out: *mut CBS, @@ -10663,7 +11681,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_element"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_element"] pub fn CBS_get_asn1_element( cbs: *mut CBS, out: *mut CBS, @@ -10671,11 +11689,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_peek_asn1_tag"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_peek_asn1_tag"] pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_any_asn1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_any_asn1"] pub fn CBS_get_any_asn1( cbs: *mut CBS, out: *mut CBS, @@ -10683,7 +11701,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_any_asn1_element"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_any_asn1_element"] pub fn CBS_get_any_asn1_element( cbs: *mut CBS, out: *mut CBS, @@ -10692,7 +11710,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_any_ber_asn1_element"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_any_ber_asn1_element"] pub fn CBS_get_any_ber_asn1_element( cbs: *mut CBS, out: *mut CBS, @@ -10703,22 +11721,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_uint64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_uint64"] pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_int64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_int64"] pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_bool"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_bool"] pub fn CBS_get_asn1_bool( cbs: *mut CBS, out: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1"] pub fn CBS_get_optional_asn1( cbs: *mut CBS, out: *mut CBS, @@ -10727,7 +11745,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_octet_string"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_octet_string"] pub fn CBS_get_optional_asn1_octet_string( cbs: *mut CBS, out: *mut CBS, @@ -10736,7 +11754,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_uint64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_uint64"] pub fn CBS_get_optional_asn1_uint64( cbs: *mut CBS, out: *mut u64, @@ -10745,7 +11763,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_bool"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_bool"] pub fn CBS_get_optional_asn1_bool( cbs: *mut CBS, out: *mut ::std::os::raw::c_int, @@ -10754,33 +11772,37 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_is_valid_asn1_bitstring"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_valid_asn1_bitstring"] pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_asn1_bitstring_has_bit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_asn1_bitstring_has_bit"] pub fn CBS_asn1_bitstring_has_bit( cbs: *const CBS, bit: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_is_valid_asn1_integer"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_valid_asn1_integer"] pub fn CBS_is_valid_asn1_integer( cbs: *const CBS, out_is_negative: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_is_unsigned_asn1_integer"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_unsigned_asn1_integer"] pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_asn1_oid_to_text"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_valid_asn1_oid"] + pub fn CBS_is_valid_asn1_oid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_asn1_oid_to_text"] pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_parse_generalized_time"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_parse_generalized_time"] pub fn CBS_parse_generalized_time( cbs: *const CBS, out_tm: *mut tm, @@ -10788,7 +11810,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_parse_utc_time"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_parse_utc_time"] pub fn CBS_parse_utc_time( cbs: *const CBS, out_tm: *mut tm, @@ -10796,7 +11818,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_int64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_int64"] pub fn CBS_get_optional_asn1_int64( cbs: *mut CBS, out: *mut i64, @@ -11103,23 +12125,23 @@ impl Default for cbb_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_zero"] pub fn CBB_zero(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_init"] pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_init_fixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_init_fixed"] pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_cleanup"] pub fn CBB_cleanup(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_finish"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_finish"] pub fn CBB_finish( cbb: *mut CBB, out_data: *mut *mut u8, @@ -11127,40 +12149,40 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_flush"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_flush"] pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_data"] pub fn CBB_data(cbb: *const CBB) -> *const u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_len"] pub fn CBB_len(cbb: *const CBB) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u8_length_prefixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u8_length_prefixed"] pub fn CBB_add_u8_length_prefixed( cbb: *mut CBB, out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u16_length_prefixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u16_length_prefixed"] pub fn CBB_add_u16_length_prefixed( cbb: *mut CBB, out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u24_length_prefixed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u24_length_prefixed"] pub fn CBB_add_u24_length_prefixed( cbb: *mut CBB, out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1"] pub fn CBB_add_asn1( cbb: *mut CBB, out_contents: *mut CBB, @@ -11168,15 +12190,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_bytes"] pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_zeros"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_zeros"] pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_space"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_space"] pub fn CBB_add_space( cbb: *mut CBB, out_data: *mut *mut u8, @@ -11184,55 +12206,55 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_reserve"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_reserve"] pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_did_write"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_did_write"] pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u8"] pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u16"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u16"] pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u16le"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u16le"] pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u24"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u24"] pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u32"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u32"] pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u32le"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u32le"] pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u64"] pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u64le"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u64le"] pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_discard_child"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_discard_child"] pub fn CBB_discard_child(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_uint64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_uint64"] pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_uint64_with_tag"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_uint64_with_tag"] pub fn CBB_add_asn1_uint64_with_tag( cbb: *mut CBB, value: u64, @@ -11240,11 +12262,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_int64"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_int64"] pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_int64_with_tag"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_int64_with_tag"] pub fn CBB_add_asn1_int64_with_tag( cbb: *mut CBB, value: i64, @@ -11252,7 +12274,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_octet_string"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_octet_string"] pub fn CBB_add_asn1_octet_string( cbb: *mut CBB, data: *const u8, @@ -11260,11 +12282,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_bool"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_bool"] pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_oid_from_text"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_oid_from_text"] pub fn CBB_add_asn1_oid_from_text( cbb: *mut CBB, text: *const ::std::os::raw::c_char, @@ -11272,11 +12294,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_flush_asn1_set_of"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_flush_asn1_set_of"] pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_chacha_20"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_chacha_20"] pub fn CRYPTO_chacha_20( out: *mut u8, in_: *const u8, @@ -11287,114 +12309,122 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_rc4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_rc4"] pub fn EVP_rc4() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_cbc"] pub fn EVP_des_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ecb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ecb"] pub fn EVP_des_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede"] pub fn EVP_des_ede() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede3"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede3"] pub fn EVP_des_ede3() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede_cbc"] pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede3_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede3_cbc"] pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_ecb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ecb"] pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cbc"] pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_ctr"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ctr"] pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_ofb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ofb"] pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_ecb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ecb"] pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cbc"] pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_ctr"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ctr"] pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_ofb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ofb"] pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_xts"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_xts"] pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_enc_null"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_wrap"] + pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_enc_null"] pub fn EVP_enc_null() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_rc2_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_rc2_cbc"] pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_rc2_40_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_rc2_40_cbc"] pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_cipherbynid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_chacha20_poly1305"] + pub fn EVP_chacha20_poly1305() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_cipherbynid"] pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_init"] pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_new"] pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cleanup"] pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_free"] pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_copy"] pub fn EVP_CIPHER_CTX_copy( out: *mut EVP_CIPHER_CTX, in_: *const EVP_CIPHER_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_reset"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_reset"] pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherInit_ex"] pub fn EVP_CipherInit_ex( ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, @@ -11405,7 +12435,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptInit_ex"] pub fn EVP_EncryptInit_ex( ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, @@ -11415,7 +12445,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptInit_ex"] pub fn EVP_DecryptInit_ex( ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, @@ -11425,7 +12455,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptUpdate"] pub fn EVP_EncryptUpdate( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11435,7 +12465,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptFinal_ex"] pub fn EVP_EncryptFinal_ex( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11443,7 +12473,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptUpdate"] pub fn EVP_DecryptUpdate( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11453,7 +12483,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptFinal_ex"] pub fn EVP_DecryptFinal_ex( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11461,7 +12491,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherUpdate"] pub fn EVP_CipherUpdate( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11471,7 +12501,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherFinal_ex"] pub fn EVP_CipherFinal_ex( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11479,47 +12509,47 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cipher"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cipher"] pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_nid"] pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_encrypting"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_encrypting"] pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_block_size"] pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_key_length"] pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_iv_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_iv_length"] pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_get_app_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_get_app_data"] pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_app_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_app_data"] pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_flags"] pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_mode"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_mode"] pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_ctrl"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_ctrl"] pub fn EVP_CIPHER_CTX_ctrl( ctx: *mut EVP_CIPHER_CTX, command: ::std::os::raw::c_int, @@ -11528,1054 +12558,488 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_padding"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_padding"] pub fn EVP_CIPHER_CTX_set_padding( ctx: *mut EVP_CIPHER_CTX, pad: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_key_length"] pub fn EVP_CIPHER_CTX_set_key_length( ctx: *mut EVP_CIPHER_CTX, key_len: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_nid"] pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_name"] + pub fn EVP_CIPHER_name(cipher: *const EVP_CIPHER) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_block_size"] pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_key_length"] pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_iv_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_iv_length"] pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_flags"] pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_mode"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_mode"] pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_BytesToKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_BytesToKey"] pub fn EVP_BytesToKey( type_: *const EVP_CIPHER, md: *const EVP_MD, salt: *const u8, data: *const u8, - data_len: usize, - count: ::std::os::raw::c_uint, - key: *mut u8, - iv: *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha1"] - pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha1"] - pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha256"] - pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha256"] - pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherInit"] - pub fn EVP_CipherInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptInit"] - pub fn EVP_EncryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptInit"] - pub fn EVP_DecryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherFinal"] - pub fn EVP_CipherFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptFinal"] - pub fn EVP_EncryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptFinal"] - pub fn EVP_DecryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_Cipher"] - pub fn EVP_Cipher( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_add_cipher_alias"] - pub fn EVP_add_cipher_alias( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_cipherbyname"] - pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_gcm"] - pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_gcm"] - pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_ecb"] - pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cbc"] - pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_ctr"] - pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_gcm"] - pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_ofb"] - pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede3_ecb"] - pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb128"] - pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb"] - pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb1"] - pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb8"] - pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb128"] - pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb"] - pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb1"] - pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb8"] - pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb128"] - pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb"] - pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb1"] - pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb8"] - pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_bf_ecb"] - pub fn EVP_bf_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_bf_cbc"] - pub fn EVP_bf_cbc() -> *const EVP_CIPHER; + data_len: usize, + count: ::std::os::raw::c_uint, + key: *mut u8, + iv: *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_bf_cfb"] - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha1"] + pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_cast5_ecb"] - pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha1"] + pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_cast5_cbc"] - pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha256"] + pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_flags"] - pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_ctx_st { - pub cipher: *const EVP_CIPHER, - pub app_data: *mut ::std::os::raw::c_void, - pub cipher_data: *mut ::std::os::raw::c_void, - pub key_len: ::std::os::raw::c_uint, - pub encrypt: ::std::os::raw::c_int, - pub flags: u32, - pub oiv: [u8; 16usize], - pub iv: [u8; 16usize], - pub buf: [u8; 32usize], - pub buf_len: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_uint, - pub final_used: ::std::os::raw::c_int, - pub final_: [u8; 32usize], - pub poisoned: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_evp_cipher_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 152usize, - concat!("Size of: ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(key_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(encrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(oiv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(iv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(poisoned) - ) - ); -} -impl Default for evp_cipher_ctx_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 evp_cipher_info_st { - pub cipher: *const EVP_CIPHER, - pub iv: [::std::os::raw::c_uchar; 16usize], -} -#[test] -fn bindgen_test_layout_evp_cipher_info_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!(evp_cipher_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(iv) - ) - ); -} -impl Default for evp_cipher_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() - } - } + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha256"] + pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; } -pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_CMAC"] - pub fn AES_CMAC( - out: *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherInit"] + pub fn EVP_CipherInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, key: *const u8, - key_len: usize, - in_: *const u8, - in_len: usize, + iv: *const u8, + enc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_CTX_new"] - pub fn CMAC_CTX_new() -> *mut CMAC_CTX; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_CTX_free"] - pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_CTX_copy"] - pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptInit"] + pub fn EVP_EncryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Init"] - pub fn CMAC_Init( - ctx: *mut CMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptInit"] + pub fn EVP_DecryptInit( + ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, - engine: *mut ENGINE, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Reset"] - pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherFinal"] + pub fn EVP_CipherFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Update"] - pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptFinal"] + pub fn EVP_EncryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Final"] - pub fn CMAC_Final( - ctx: *mut CMAC_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptFinal"] + pub fn EVP_DecryptFinal( + ctx: *mut EVP_CIPHER_CTX, out: *mut u8, - out_len: *mut usize, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct conf_value_st { - pub section: *mut ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_conf_value_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!(conf_value_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(conf_value_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(value) - ) - ); -} -impl Default for conf_value_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)] -pub struct stack_st_CONF_VALUE { - _unused: [u8; 0], -} -pub type sk_CONF_VALUE_free_func = - ::std::option::Option; -pub type sk_CONF_VALUE_copy_func = - ::std::option::Option *mut CONF_VALUE>; -pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const CONF_VALUE, - arg2: *mut *const CONF_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CONF_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lhash_st_CONF_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_Cipher"] + pub fn EVP_Cipher( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_new"] - pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_cipherbyname"] + pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_free"] - pub fn NCONF_free(conf: *mut CONF); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_gcm"] + pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_load"] - pub fn NCONF_load( - conf: *mut CONF, - filename: *const ::std::os::raw::c_char, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_gcm"] + pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_load_bio"] - pub fn NCONF_load_bio( - conf: *mut CONF, - bio: *mut BIO, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ccm"] + pub fn EVP_aes_128_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_get_section"] - pub fn NCONF_get_section( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - ) -> *const stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ccm"] + pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_get_string"] - pub fn NCONF_get_string( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ccm"] + pub fn EVP_aes_256_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CONF_modules_load_file"] - pub fn CONF_modules_load_file( - filename: *const ::std::os::raw::c_char, - appname: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ecb"] + pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CONF_modules_free"] - pub fn CONF_modules_free(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cbc"] + pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_config"] - pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ctr"] + pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_no_config"] - pub fn OPENSSL_no_config(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_gcm"] + pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Init"] - pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ofb"] + pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Update"] - pub fn SHA1_Update( - sha: *mut SHA_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede3_ecb"] + pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Final"] - pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb128"] + pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1"] - pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb"] + pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Transform"] - pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb1"] + pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha_state_st { - pub h: [u32; 5usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb8"] + pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_sha_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(sha_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(num) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cfb128"] + pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; } -impl Default for sha_state_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_fips_0_13_0_EVP_aes_192_cfb"] + pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224_Init"] - pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cfb1"] + pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224_Update"] - pub fn SHA224_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cfb8"] + pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224_Final"] - pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb128"] + pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224"] - pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb"] + pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Init"] - pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb1"] + pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Update"] - pub fn SHA256_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb8"] + pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Final"] - pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_bf_ecb"] + pub fn EVP_bf_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256"] - pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_bf_cbc"] + pub fn EVP_bf_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Transform"] - pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_bf_cfb"] + pub fn EVP_bf_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_TransformBlocks"] - pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_cast5_ecb"] + pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_cast5_cbc"] + pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_flags"] + pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_add_cipher_alias"] + pub fn EVP_add_cipher_alias( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha256_state_st { - pub h: [u32; 8usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], +pub struct evp_cipher_ctx_st { + pub cipher: *const EVP_CIPHER, + pub app_data: *mut ::std::os::raw::c_void, + pub cipher_data: *mut ::std::os::raw::c_void, + pub key_len: ::std::os::raw::c_uint, + pub encrypt: ::std::os::raw::c_int, + pub flags: u32, + pub oiv: [u8; 16usize], + pub iv: [u8; 16usize], + pub buf: [u8; 32usize], + pub buf_len: ::std::os::raw::c_int, pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, + pub final_used: ::std::os::raw::c_int, + pub final_: [u8; 32usize], + pub poisoned: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_sha256_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_cipher_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 112usize, - concat!("Size of: ", stringify!(sha256_state_st)) + ::std::mem::size_of::(), + 152usize, + concat!("Size of: ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha256_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(app_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(cipher_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(data) + stringify!(key_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(num) + stringify!(encrypt) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(md_len) + stringify!(flags) ) ); -} -impl Default for sha256_state_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_fips_0_12_15_SHA384_Init"] - pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA384_Update"] - pub fn SHA384_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA384_Final"] - pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA384"] - pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Init"] - pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Update"] - pub fn SHA512_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Final"] - pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512"] - pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Transform"] - pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha512_state_st { - pub h: [u64; 8usize], - pub Nl: u64, - pub Nh: u64, - pub p: [u8; 128usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, -} -#[test] -fn bindgen_test_layout_sha512_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(oiv) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(iv) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 68usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(buf) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, + 100usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(buf_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(final_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(final_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(p) + stringify!(poisoned) ) ); +} +impl Default for evp_cipher_ctx_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 evp_cipher_info_st { + pub cipher: *const EVP_CIPHER, + pub iv: [::std::os::raw::c_uchar; 16usize], +} +#[test] +fn bindgen_test_layout_evp_cipher_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 208usize, + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(num) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 212usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(md_len) + stringify!(iv) ) ); } -impl Default for sha512_state_st { +impl Default for evp_cipher_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12584,327 +13048,223 @@ impl Default for sha512_state_st { } } } +pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256_Init"] - pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256_Update"] - pub fn SHA512_256_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256_Final"] - pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256"] - pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_malloc"] - pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_free"] - pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_realloc"] - pub fn OPENSSL_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_cleanse"] - pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_memcmp"] - pub fn CRYPTO_memcmp( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_hash32"] - pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strhash"] - pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strdup"] - pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strnlen"] - pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_tolower"] - pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strcasecmp"] - pub fn OPENSSL_strcasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strncasecmp"] - pub fn OPENSSL_strncasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - n: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_snprintf"] - pub fn BIO_snprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_vsnprintf"] - pub fn BIO_vsnprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - args: va_list, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_vasprintf"] - pub fn OPENSSL_vasprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - args: va_list, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_asprintf"] - pub fn OPENSSL_asprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_CMAC"] + pub fn AES_CMAC( + out: *mut u8, + key: *const u8, + key_len: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strndup"] - pub fn OPENSSL_strndup( - str_: *const ::std::os::raw::c_char, - size: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_memdup"] - pub fn OPENSSL_memdup( - data: *const ::std::os::raw::c_void, - size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strlcpy"] - pub fn OPENSSL_strlcpy( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strlcat"] - pub fn OPENSSL_strlcat( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_malloc"] - pub fn CRYPTO_malloc( - size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_realloc"] - pub fn CRYPTO_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_new"] + pub fn CMAC_CTX_new() -> *mut CMAC_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_free"] - pub fn CRYPTO_free( - ptr: *mut ::std::os::raw::c_void, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_free"] + pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_clear_free"] - pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_copy"] + pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_mem_functions"] - pub fn CRYPTO_set_mem_functions( - m: ::std::option::Option< - unsafe extern "C" fn( - arg1: usize, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - r: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: usize, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - f: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Init"] + pub fn CMAC_Init( + ctx: *mut CMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_secure_malloc_init"] - pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_secure_malloc_initialized"] - pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_secure_used"] - pub fn CRYPTO_secure_used() -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_secure_malloc"] - pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_secure_clear_free"] - pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Reset"] + pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_library_init"] - pub fn CRYPTO_library_init(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Update"] + pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_is_confidential_build"] - pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Final"] + pub fn CMAC_Final( + ctx: *mut CMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_has_asm"] - pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_get0_cipher_ctx"] + pub fn CMAC_CTX_get0_cipher_ctx(ctx: *mut CMAC_CTX) -> *mut EVP_CIPHER_CTX; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BORINGSSL_self_test"] - pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct conf_value_st { + pub section: *mut ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BORINGSSL_integrity_test"] - pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_conf_value_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!(conf_value_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(conf_value_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(section) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(value) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_pre_sandbox_init"] - pub fn CRYPTO_pre_sandbox_init(); +impl Default for conf_value_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_fips_0_12_15_FIPS_mode"] - pub fn FIPS_mode() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CONF_VALUE { + _unused: [u8; 0], } -pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; -pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; -pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; -pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; -pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; -pub type fips_counter_t = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_read_counter"] - pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; +pub type sk_CONF_VALUE_free_func = + ::std::option::Option; +pub type sk_CONF_VALUE_copy_func = + ::std::option::Option *mut CONF_VALUE>; +pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CONF_VALUE, + arg2: *const *const CONF_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CONF_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lhash_st_CONF_VALUE { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_version"] - pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_new"] + pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SSLeay_version"] - pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_free"] + pub fn NCONF_free(conf: *mut CONF); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SSLeay"] - pub fn SSLeay() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_load"] + pub fn NCONF_load( + conf: *mut CONF, + filename: *const ::std::os::raw::c_char, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_version_num"] - pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_load_bio"] + pub fn NCONF_load_bio( + conf: *mut CONF, + bio: *mut BIO, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_awslc_api_version_num"] - pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_get_section"] + pub fn NCONF_get_section( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + ) -> *const stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_malloc_init"] - pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_get_string"] + pub fn NCONF_get_string( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_malloc_init"] - pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_load_file"] + pub fn CONF_modules_load_file( + filename: *const ::std::os::raw::c_char, + appname: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_load_builtin_engines"] - pub fn ENGINE_load_builtin_engines(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_get1_default_config_file"] + pub fn CONF_get1_default_config_file() -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_register_all_complete"] - pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_free"] + pub fn CONF_modules_free(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_load_builtin_modules"] - pub fn OPENSSL_load_builtin_modules(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_unload"] + pub fn CONF_modules_unload(all: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_init_crypto"] - pub fn OPENSSL_init_crypto( - opts: u64, - settings: *const OPENSSL_INIT_SETTINGS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_finish"] + pub fn CONF_modules_finish(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_cleanup"] - pub fn OPENSSL_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_config"] + pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_mode_set"] - pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_no_config"] + pub fn OPENSSL_no_config(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X25519_keypair"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X25519_keypair"] pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X25519"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X25519"] pub fn X25519( out_shared_key: *mut u8, private_key: *const u8, @@ -12912,15 +13272,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X25519_public_from_private"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X25519_public_from_private"] pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_keypair"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_keypair"] pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_sign"] pub fn ED25519_sign( out_sig: *mut u8, message: *const u8, @@ -12929,7 +13289,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_verify"] pub fn ED25519_verify( message: *const u8, message_len: usize, @@ -12938,7 +13298,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_keypair_from_seed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_keypair_from_seed"] pub fn ED25519_keypair_from_seed( out_public_key: *mut u8, out_private_key: *mut u8, @@ -12949,7 +13309,7 @@ pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_CTX_new"] pub fn SPAKE2_CTX_new( my_role: spake2_role_t, my_name: *const u8, @@ -12959,11 +13319,11 @@ extern "C" { ) -> *mut SPAKE2_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_CTX_free"] pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_generate_msg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_generate_msg"] pub fn SPAKE2_generate_msg( ctx: *mut SPAKE2_CTX, out: *mut u8, @@ -12974,7 +13334,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_process_msg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_process_msg"] pub fn SPAKE2_process_msg( ctx: *mut SPAKE2_CTX, out_key: *mut u8, @@ -13047,15 +13407,33 @@ fn bindgen_test_layout_DES_ks() { } pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_set_key"] - pub fn DES_set_key(key: *const DES_cblock, schedule: *mut DES_key_schedule); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_is_weak_key"] + pub fn DES_is_weak_key(key: *const DES_cblock) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_set_key"] + pub fn DES_set_key( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_set_key_unchecked"] + pub fn DES_set_key_unchecked(key: *const DES_cblock, schedule: *mut DES_key_schedule); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_set_odd_parity"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_key_sched"] + pub fn DES_key_sched( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_set_odd_parity"] pub fn DES_set_odd_parity(key: *mut DES_cblock); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ecb_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ecb_encrypt"] pub fn DES_ecb_encrypt( in_: *const DES_cblock, out: *mut DES_cblock, @@ -13064,7 +13442,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ncbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ncbc_encrypt"] pub fn DES_ncbc_encrypt( in_: *const u8, out: *mut u8, @@ -13075,7 +13453,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ecb3_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ecb3_encrypt"] pub fn DES_ecb3_encrypt( input: *const DES_cblock, output: *mut DES_cblock, @@ -13086,7 +13464,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ede3_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ede3_cbc_encrypt"] pub fn DES_ede3_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -13099,7 +13477,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ede2_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ede2_cbc_encrypt"] pub fn DES_ede2_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -13111,61 +13489,47 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_new"] + pub fn DH_new() -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_new"] - pub fn DH_new() -> *mut DH; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_new_by_nid"] + pub fn DH_new_by_nid(nid: ::std::os::raw::c_int) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_free"] pub fn DH_free(dh: *mut DH); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_up_ref"] pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_bits"] pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_pub_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_pub_key"] pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_priv_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_priv_key"] pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_p"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_p"] pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_q"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_q"] pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_g"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_g"] pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_key"] pub fn DH_get0_key( dh: *const DH, out_pub_key: *mut *const BIGNUM, @@ -13173,7 +13537,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_set0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_set0_key"] pub fn DH_set0_key( dh: *mut DH, pub_key: *mut BIGNUM, @@ -13181,7 +13545,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_pqg"] pub fn DH_get0_pqg( dh: *const DH, out_p: *mut *const BIGNUM, @@ -13190,7 +13554,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_set0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_set0_pqg"] pub fn DH_set0_pqg( dh: *mut DH, p: *mut BIGNUM, @@ -13199,40 +13563,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_set_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_set_length"] pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get_rfc7919_2048"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get_rfc7919_2048"] pub fn DH_get_rfc7919_2048() -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_1536"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get_rfc7919_4096"] + pub fn DH_get_rfc7919_4096() -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_1536"] pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_2048"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_2048"] pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_3072"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_3072"] pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_4096"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_4096"] pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_6144"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_6144"] pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_8192"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_8192"] pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_generate_parameters_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_generate_parameters_ex"] pub fn DH_generate_parameters_ex( dh: *mut DH, prime_bits: ::std::os::raw::c_int, @@ -13241,11 +13609,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_generate_key"] pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_compute_key_padded"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_compute_key_padded"] pub fn DH_compute_key_padded( out: *mut u8, peers_key: *const BIGNUM, @@ -13253,7 +13621,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_compute_key_hashed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_compute_key_hashed"] pub fn DH_compute_key_hashed( dh: *mut DH, out: *mut u8, @@ -13264,19 +13632,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_size"] pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_num_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_num_bits"] pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_check"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_check"] pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_check_pub_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_check_pub_key"] pub fn DH_check_pub_key( dh: *const DH, pub_key: *const BIGNUM, @@ -13284,19 +13652,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DHparams_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DHparams_dup"] pub fn DHparams_dup(dh: *const DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_parse_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_parse_parameters"] pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_marshal_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_marshal_parameters"] pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_generate_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_generate_parameters"] pub fn DH_generate_parameters( prime_len: ::std::os::raw::c_int, generator: ::std::os::raw::c_int, @@ -13311,7 +13679,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DHparams"] pub fn d2i_DHparams( ret: *mut *mut DH, inp: *mut *const ::std::os::raw::c_uchar, @@ -13319,14 +13687,14 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DHparams"] pub fn i2d_DHparams( in_: *const DH, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_compute_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_compute_key"] pub fn DH_compute_key( out: *mut u8, peers_key: *const BIGNUM, @@ -13334,114 +13702,130 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get_2048_256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get_2048_256"] pub fn DH_get_2048_256() -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_md4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_clear_flags"] + pub fn DH_clear_flags(dh: *mut DH, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md4"] pub fn EVP_md4() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_md5"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md5"] pub fn EVP_md5() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_ripemd160"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_ripemd160"] pub fn EVP_ripemd160() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha1"] pub fn EVP_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha224"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha224"] pub fn EVP_sha224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha256"] pub fn EVP_sha256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha384"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha384"] pub fn EVP_sha384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha512"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha512"] pub fn EVP_sha512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha512_256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha512_224"] + pub fn EVP_sha512_224() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha512_256"] pub fn EVP_sha512_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_224"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_224"] pub fn EVP_sha3_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_256"] pub fn EVP_sha3_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_384"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_384"] pub fn EVP_sha3_384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_512"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_512"] pub fn EVP_sha3_512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_blake2b256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_shake128"] + pub fn EVP_shake128() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_shake256"] + pub fn EVP_shake256() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_blake2b256"] pub fn EVP_blake2b256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_md5_sha1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md5_sha1"] pub fn EVP_md5_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_digestbynid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_digestbynid"] pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_digestbyobj"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_digestbyobj"] pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_init"] pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_new"] pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_cleanup"] pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_cleanse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_cleanse"] pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_free"] pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_copy_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_copy_ex"] pub fn EVP_MD_CTX_copy_ex( out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_move"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_move"] pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_reset"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_reset"] pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestInit_ex"] pub fn EVP_DigestInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -13449,11 +13833,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestInit"] pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestUpdate"] pub fn EVP_DigestUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -13461,7 +13845,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestFinal_ex"] pub fn EVP_DigestFinal_ex( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13469,7 +13853,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestFinal"] pub fn EVP_DigestFinal( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13477,86 +13861,74 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_Digest"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_Digest"] pub fn EVP_Digest( data: *const ::std::os::raw::c_void, len: usize, md_out: *mut u8, - md_out_size: *mut ::std::os::raw::c_uint, + out_size: *mut ::std::os::raw::c_uint, type_: *const EVP_MD, impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_type"] pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_flags"] pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_size"] pub fn EVP_MD_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_block_size"] pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_md"] pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_size"] pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_block_size"] pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_type"] pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_parse_digest_algorithm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_parse_digest_algorithm"] pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_digest_algorithm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_digest_algorithm"] pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_enable"] - pub fn EVP_MD_unstable_sha3_enable(enable: bool); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_is_enabled"] - pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_copy"] pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_add_digest"] - pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_digestbyname"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_digestbyname"] pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_create"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_create"] pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_destroy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_destroy"] pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestFinalXOF"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestFinalXOF"] pub fn EVP_DigestFinalXOF( ctx: *mut EVP_MD_CTX, out: *mut u8, @@ -13564,19 +13936,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_meth_get_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_meth_get_flags"] pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_set_flags"] - pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_nid"] pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_set_pkey_ctx"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_set_pkey_ctx"] pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); } #[repr(C)] @@ -13589,6 +13957,13 @@ pub struct evp_md_pctx_ops { pub struct env_md_ctx_st { pub digest: *const EVP_MD, pub md_data: *mut ::std::os::raw::c_void, + pub update: ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + count: usize, + ), + >, pub pctx: *mut EVP_PKEY_CTX, pub pctx_ops: *const evp_md_pctx_ops, pub flags: ::std::os::raw::c_ulong, @@ -13599,7 +13974,7 @@ fn bindgen_test_layout_env_md_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 40usize, + 48usize, concat!("Size of: ", stringify!(env_md_ctx_st)) ); assert_eq!( @@ -13628,169 +14003,129 @@ fn bindgen_test_layout_env_md_ctx_st() { ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).update) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx) + stringify!(update) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx_ops) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for env_md_ctx_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_fips_0_12_15_EVP_md_null"] - pub fn EVP_md_null() -> *const EVP_MD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_new"] - pub fn ENGINE_new() -> *mut ENGINE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_free"] - pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_set_RSA_method"] - pub fn ENGINE_set_RSA_method( - engine: *mut ENGINE, - method: *const RSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_get_RSA_method"] - pub fn ENGINE_get_RSA_method(engine: *const ENGINE) -> *mut RSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_set_ECDSA_method"] - pub fn ENGINE_set_ECDSA_method( - engine: *mut ENGINE, - method: *const ECDSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_get_ECDSA_method"] - pub fn ENGINE_get_ECDSA_method(engine: *const ENGINE) -> *mut ECDSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_METHOD_ref"] - pub fn METHOD_ref(method: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_METHOD_unref"] - pub fn METHOD_unref(method: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct openssl_method_common_st { - pub references: ::std::os::raw::c_int, - pub is_static: ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_openssl_method_common_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!(openssl_method_common_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(openssl_method_common_st)) + stringify!(pctx) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(references) + stringify!(pctx_ops) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_static) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(is_static) + stringify!(flags) ) ); } +impl Default for env_md_ctx_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_fips_0_13_0_EVP_MD_unstable_sha3_enable"] + pub fn EVP_MD_unstable_sha3_enable(enable: bool); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_is_enabled"] + pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_set_flags"] + pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_add_digest"] + pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md_null"] + pub fn EVP_md_null() -> *const EVP_MD; +} extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_new"] pub fn DSA_new() -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_free"] pub fn DSA_free(dsa: *mut DSA); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_up_ref"] pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_print"] + pub fn DSA_print( + bio: *mut BIO, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_print_fp"] + pub fn DSA_print_fp( + fp: *mut FILE, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_bits"] pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_pub_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_pub_key"] pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_priv_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_priv_key"] pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_p"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_p"] pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_q"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_q"] pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_g"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_g"] pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_key"] pub fn DSA_get0_key( dsa: *const DSA, out_pub_key: *mut *const BIGNUM, @@ -13798,7 +14133,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_pqg"] pub fn DSA_get0_pqg( dsa: *const DSA, out_p: *mut *const BIGNUM, @@ -13807,7 +14142,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_set0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_set0_key"] pub fn DSA_set0_key( dsa: *mut DSA, pub_key: *mut BIGNUM, @@ -13815,7 +14150,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_set0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_set0_pqg"] pub fn DSA_set0_pqg( dsa: *mut DSA, p: *mut BIGNUM, @@ -13824,7 +14159,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_generate_parameters_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_generate_parameters_ex"] pub fn DSA_generate_parameters_ex( dsa: *mut DSA, bits: ::std::os::raw::c_uint, @@ -13836,11 +14171,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSAparams_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSAparams_dup"] pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_generate_key"] pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; } #[repr(C)] @@ -13894,28 +14229,28 @@ impl Default for DSA_SIG_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_new"] pub fn DSA_SIG_new() -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_free"] pub fn DSA_SIG_free(sig: *mut DSA_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_get0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_get0"] pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_set0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_set0"] pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_do_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_do_sign"] pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_do_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_do_verify"] pub fn DSA_do_verify( digest: *const u8, digest_len: usize, @@ -13924,7 +14259,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_do_check_signature"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_do_check_signature"] pub fn DSA_do_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13934,7 +14269,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_sign"] pub fn DSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13945,7 +14280,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_verify"] pub fn DSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13956,7 +14291,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_check_signature"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_check_signature"] pub fn DSA_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13967,47 +14302,47 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_size"] pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_parse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_parse"] pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_marshal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_marshal"] pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_parse_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_parse_public_key"] pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_marshal_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_marshal_public_key"] pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_parse_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_parse_private_key"] pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_marshal_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_marshal_private_key"] pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_parse_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_parse_parameters"] pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_marshal_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_marshal_parameters"] pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_dup_DH"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_dup_DH"] pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get_ex_new_index"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get_ex_new_index"] pub fn DSA_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -14017,7 +14352,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_set_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_set_ex_data"] pub fn DSA_set_ex_data( dsa: *mut DSA, idx: ::std::os::raw::c_int, @@ -14025,14 +14360,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get_ex_data"] pub fn DSA_get_ex_data( dsa: *const DSA, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSA_SIG"] pub fn d2i_DSA_SIG( out_sig: *mut *mut DSA_SIG, inp: *mut *const u8, @@ -14040,11 +14375,11 @@ extern "C" { ) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSA_SIG"] pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSAPublicKey"] pub fn d2i_DSAPublicKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -14052,11 +14387,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSAPublicKey"] pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSAPrivateKey"] pub fn d2i_DSAPrivateKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -14064,11 +14399,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSAPrivateKey"] pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSAparams"] pub fn d2i_DSAparams( out: *mut *mut DSA, inp: *mut *const u8, @@ -14076,154 +14411,9 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSAparams"] pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct dsa_st { - pub version: ::std::os::raw::c_long, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub g: *mut BIGNUM, - pub pub_key: *mut BIGNUM, - pub priv_key: *mut BIGNUM, - pub flags: ::std::os::raw::c_int, - pub method_mont_lock: CRYPTO_MUTEX, - pub method_mont_p: *mut BN_MONT_CTX, - pub method_mont_q: *mut BN_MONT_CTX, - pub references: CRYPTO_refcount_t, - pub ex_data: CRYPTO_EX_DATA, -} -#[test] -fn bindgen_test_layout_dsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 288usize, - concat!("Size of: ", stringify!(dsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(dsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(g)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pub_key) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(pub_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).priv_key) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(priv_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_lock) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_p) as usize - ptr as usize }, - 256usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_q) as usize - ptr as usize }, - 264usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 272usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 280usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(ex_data) - ) - ); -} -impl Default for dsa_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(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum point_conversion_form_t { @@ -14232,19 +14422,31 @@ pub enum point_conversion_form_t { POINT_CONVERSION_HYBRID = 6, } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_new_by_curve_name"] - pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p224"] + pub fn EC_group_p224() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_free"] - pub fn EC_GROUP_free(group: *mut EC_GROUP); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p256"] + pub fn EC_group_p256() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p384"] + pub fn EC_group_p384() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p521"] + pub fn EC_group_p521() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_secp256k1"] + pub fn EC_group_secp256k1() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_dup"] - pub fn EC_GROUP_dup(a: *const EC_GROUP) -> *mut EC_GROUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_new_by_curve_name"] + pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_cmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_cmp"] pub fn EC_GROUP_cmp( a: *const EC_GROUP, b: *const EC_GROUP, @@ -14252,19 +14454,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get0_generator"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get0_generator"] pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get0_order"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get0_order"] pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_order_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_order_bits"] pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_cofactor"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_cofactor"] pub fn EC_GROUP_get_cofactor( group: *const EC_GROUP, cofactor: *mut BIGNUM, @@ -14272,7 +14474,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_curve_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_curve_GFp"] pub fn EC_GROUP_get_curve_GFp( group: *const EC_GROUP, out_p: *mut BIGNUM, @@ -14282,53 +14484,53 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_curve_name"] pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_degree"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_degree"] pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_curve_nid2nist"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_curve_nid2nist"] pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_curve_nist2nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_curve_nist2nid"] pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_new"] pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_free"] pub fn EC_POINT_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_copy"] pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_dup"] pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_to_infinity"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_to_infinity"] pub fn EC_POINT_set_to_infinity( group: *const EC_GROUP, point: *mut EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_is_at_infinity"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_is_at_infinity"] pub fn EC_POINT_is_at_infinity( group: *const EC_GROUP, point: *const EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_is_on_curve"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_is_on_curve"] pub fn EC_POINT_is_on_curve( group: *const EC_GROUP, point: *const EC_POINT, @@ -14336,7 +14538,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_cmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_cmp"] pub fn EC_POINT_cmp( group: *const EC_GROUP, a: *const EC_POINT, @@ -14345,7 +14547,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates_GFp"] pub fn EC_POINT_get_affine_coordinates_GFp( group: *const EC_GROUP, point: *const EC_POINT, @@ -14355,7 +14557,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates"] pub fn EC_POINT_get_affine_coordinates( group: *const EC_GROUP, point: *const EC_POINT, @@ -14365,7 +14567,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates_GFp"] pub fn EC_POINT_set_affine_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14375,7 +14577,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates"] pub fn EC_POINT_set_affine_coordinates( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14385,7 +14587,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_point2oct"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_point2oct"] pub fn EC_POINT_point2oct( group: *const EC_GROUP, point: *const EC_POINT, @@ -14396,7 +14598,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_point2cbb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_point2cbb"] pub fn EC_POINT_point2cbb( out: *mut CBB, group: *const EC_GROUP, @@ -14406,7 +14608,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_oct2point"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_oct2point"] pub fn EC_POINT_oct2point( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14416,7 +14618,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_compressed_coordinates_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_compressed_coordinates_GFp"] pub fn EC_POINT_set_compressed_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14426,7 +14628,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_add"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_add"] pub fn EC_POINT_add( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14436,7 +14638,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_dbl"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_dbl"] pub fn EC_POINT_dbl( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14445,7 +14647,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_invert"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_invert"] pub fn EC_POINT_invert( group: *const EC_GROUP, a: *mut EC_POINT, @@ -14453,7 +14655,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_mul"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_mul"] pub fn EC_POINT_mul( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14464,7 +14666,37 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_new_curve_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_hash_to_curve_p256_xmd_sha256_sswu"] + pub fn EC_hash_to_curve_p256_xmd_sha256_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_hash_to_curve_p384_xmd_sha384_sswu"] + pub fn EC_hash_to_curve_p384_xmd_sha384_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_free"] + pub fn EC_GROUP_free(group: *mut EC_GROUP); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_dup"] + pub fn EC_GROUP_dup(group: *const EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_new_curve_GFp"] pub fn EC_GROUP_new_curve_GFp( p: *const BIGNUM, a: *const BIGNUM, @@ -14473,7 +14705,7 @@ extern "C" { ) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_set_generator"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_generator"] pub fn EC_GROUP_set_generator( group: *mut EC_GROUP, generator: *const EC_POINT, @@ -14482,38 +14714,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_order"] - pub fn EC_GROUP_get_order( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_point2bn"] + pub fn EC_POINT_point2bn( group: *const EC_GROUP, - order: *mut BIGNUM, + point: *const EC_POINT, + form: point_conversion_form_t, + ret: *mut BIGNUM, ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_set_asn1_flag"] - pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_asn1_flag"] - pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ec_method_st { - _unused: [u8; 0], -} -pub type EC_METHOD = ec_method_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_method_of"] - pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_METHOD_get_field_type"] - pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_bn2point"] + pub fn EC_POINT_bn2point( + group: *const EC_GROUP, + bn: *const BIGNUM, + point: *mut EC_POINT, + ctx: *mut BN_CTX, + ) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_set_point_conversion_form"] - pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_order"] + pub fn EC_GROUP_get_order( + group: *const EC_GROUP, + order: *mut BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -14566,92 +14791,173 @@ impl Default for EC_builtin_curve { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_get_builtin_curves"] - pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) - -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_get_builtin_curves"] + pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) + -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_clear_free"] + pub fn EC_POINT_clear_free(point: *mut EC_POINT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_asn1_flag"] + pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_asn1_flag"] + pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_point_conversion_form"] + pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_seed"] + pub fn EC_GROUP_set_seed( + group: *mut EC_GROUP, + p: *const ::std::os::raw::c_uchar, + len: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get0_seed"] + pub fn EC_GROUP_get0_seed(group: *const EC_GROUP) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_seed_len"] + pub fn EC_GROUP_get_seed_len(group: *const EC_GROUP) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECPKParameters_print"] + pub fn ECPKParameters_print( + bio: *mut BIO, + group: *const EC_GROUP, + offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_method_st { + _unused: [u8; 0], +} +pub type EC_METHOD = ec_method_st; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_method_of"] + pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_METHOD_get_field_type"] + pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_new"] + pub fn ENGINE_new() -> *mut ENGINE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_free"] + pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_set_RSA"] + pub fn ENGINE_set_RSA(engine: *mut ENGINE, method: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_clear_free"] - pub fn EC_POINT_clear_free(point: *mut EC_POINT); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_get_RSA"] + pub fn ENGINE_get_RSA(engine: *const ENGINE) -> *const RSA_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_set_EC"] + pub fn ENGINE_set_EC( + engine: *mut ENGINE, + method: *const EC_KEY_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_get_EC"] + pub fn ENGINE_get_EC(engine: *const ENGINE) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_cleanup"] + pub fn ENGINE_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_new"] pub fn EC_KEY_new() -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_new_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_new_method"] pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_new_by_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_new_by_curve_name"] pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_free"] pub fn EC_KEY_free(key: *mut EC_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_dup"] pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_up_ref"] pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_is_opaque"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_is_opaque"] pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get0_group"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get0_group"] pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_group"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_group"] pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get0_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get0_private_key"] pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_private_key"] pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get0_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get0_public_key"] pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_public_key"] pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_enc_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_enc_flags"] pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_enc_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_enc_flags"] pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_conv_form"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_conv_form"] pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_conv_form"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_conv_form"] pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_check_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_check_key"] pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_check_fips"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_check_fips"] pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_public_key_affine_coordinates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_public_key_affine_coordinates"] pub fn EC_KEY_set_public_key_affine_coordinates( key: *mut EC_KEY, x: *const BIGNUM, @@ -14659,7 +14965,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_key2buf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_key2buf"] pub fn EC_KEY_key2buf( key: *const EC_KEY, form: point_conversion_form_t, @@ -14668,15 +14974,15 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_generate_key"] pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_generate_key_fips"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_generate_key_fips"] pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_derive_from_secret"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_derive_from_secret"] pub fn EC_KEY_derive_from_secret( group: *const EC_GROUP, secret: *const u8, @@ -14684,11 +14990,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_parse_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_parse_private_key"] pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_marshal_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_marshal_private_key"] pub fn EC_KEY_marshal_private_key( cbb: *mut CBB, key: *const EC_KEY, @@ -14696,22 +15002,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_parse_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_parse_curve_name"] pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_marshal_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_marshal_curve_name"] pub fn EC_KEY_marshal_curve_name( cbb: *mut CBB, group: *const EC_GROUP, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_parse_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_parse_parameters"] pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_ex_new_index"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_ex_new_index"] pub fn EC_KEY_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -14721,7 +15027,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_ex_data"] pub fn EC_KEY_set_ex_data( r: *mut EC_KEY, idx: ::std::os::raw::c_int, @@ -14729,133 +15035,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_ex_data"] pub fn EC_KEY_get_ex_data( r: *const EC_KEY, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_method_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: - ::std::option::Option ::std::os::raw::c_int>, - pub finish: - ::std::option::Option ::std::os::raw::c_int>, - pub group_order_size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - eckey: *mut EC_KEY, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_ecdsa_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).group_order_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(group_order_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for ecdsa_method_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_fips_0_12_15_EC_KEY_set_asn1_flag"] - pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); -} extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECPrivateKey"] pub fn d2i_ECPrivateKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14863,11 +15050,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECPrivateKey"] pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECParameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECParameters"] pub fn d2i_ECParameters( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14875,11 +15062,19 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECParameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECParameters"] pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_o2i_ECPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECPKParameters_bio"] + pub fn d2i_ECPKParameters_bio(bio: *mut BIO, out_group: *mut *mut EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECPKParameters_bio"] + pub fn i2d_ECPKParameters_bio(bio: *mut BIO, group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_o2i_ECPublicKey"] pub fn o2i_ECPublicKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14887,14 +15082,86 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2o_ECPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2o_ECPublicKey"] pub fn i2o_ECPublicKey( key: *const EC_KEY, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDH_compute_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_default_method"] + pub fn EC_KEY_get_default_method() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_OpenSSL"] + pub fn EC_KEY_OpenSSL() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_new"] + pub fn EC_KEY_METHOD_new(eckey_meth: *const EC_KEY_METHOD) -> *mut EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_free"] + pub fn EC_KEY_METHOD_free(eckey_meth: *mut EC_KEY_METHOD); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_method"] + pub fn EC_KEY_set_method(ec: *mut EC_KEY, meth: *const EC_KEY_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_method"] + pub fn EC_KEY_get_method(ec: *const EC_KEY) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_set_sign_awslc"] + pub fn EC_KEY_METHOD_set_sign_awslc( + meth: *mut EC_KEY_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: ::std::os::raw::c_int, + sig: *mut u8, + siglen: *mut ::std::os::raw::c_uint, + k_inv: *const BIGNUM, + r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> ::std::os::raw::c_int, + >, + sign_sig: ::std::option::Option< + unsafe extern "C" fn( + digest: *const u8, + digest_len: ::std::os::raw::c_int, + in_kinv: *const BIGNUM, + in_r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> *mut ECDSA_SIG, + >, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_set_init_awslc"] + pub fn EC_KEY_METHOD_set_init_awslc( + meth: *mut EC_KEY_METHOD, + init: ::std::option::Option< + unsafe extern "C" fn(key: *mut EC_KEY) -> ::std::os::raw::c_int, + >, + finish: ::std::option::Option, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_set_flags"] + pub fn EC_KEY_METHOD_set_flags( + meth: *mut EC_KEY_METHOD, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_asn1_flag"] + pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDH_compute_key"] pub fn ECDH_compute_key( out: *mut ::std::os::raw::c_void, outlen: usize, @@ -14911,7 +15178,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDH_compute_key_fips"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDH_compute_key_fips"] pub fn ECDH_compute_key_fips( out: *mut u8, out_len: usize, @@ -14920,7 +15187,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_sign"] pub fn ECDSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14931,7 +15198,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_verify"] pub fn ECDSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14942,7 +15209,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_size"] pub fn ECDSA_size(key: *const EC_KEY) -> usize; } #[repr(C)] @@ -14996,23 +15263,23 @@ impl Default for ecdsa_sig_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_new"] pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_free"] pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_get0_r"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_get0_r"] pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_get0_s"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_get0_s"] pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_get0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_get0"] pub fn ECDSA_SIG_get0( sig: *const ECDSA_SIG, out_r: *mut *const BIGNUM, @@ -15020,7 +15287,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_set0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_set0"] pub fn ECDSA_SIG_set0( sig: *mut ECDSA_SIG, r: *mut BIGNUM, @@ -15028,7 +15295,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_do_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_do_sign"] pub fn ECDSA_do_sign( digest: *const u8, digest_len: usize, @@ -15036,7 +15303,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_do_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_do_verify"] pub fn ECDSA_do_verify( digest: *const u8, digest_len: usize, @@ -15045,19 +15312,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_parse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_parse"] pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_from_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_from_bytes"] pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_marshal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_marshal"] pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_to_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_to_bytes"] pub fn ECDSA_SIG_to_bytes( out_bytes: *mut *mut u8, out_len: *mut usize, @@ -15065,11 +15332,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_max_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_max_len"] pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( digest: *const u8, digest_len: usize, @@ -15079,7 +15346,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECDSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECDSA_SIG"] pub fn d2i_ECDSA_SIG( out: *mut *mut ECDSA_SIG, inp: *mut *const u8, @@ -15087,89 +15354,89 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECDSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECDSA_SIG"] pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm"] pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_192_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_192_gcm"] pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm"] pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_chacha20_poly1305"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_chacha20_poly1305"] pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_xchacha20_poly1305"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_xchacha20_poly1305"] pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ctr_hmac_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ctr_hmac_sha256"] pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_ctr_hmac_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_ctr_hmac_sha256"] pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_siv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_siv"] pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_siv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_siv"] pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_randnonce"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_randnonce"] pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_randnonce"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_randnonce"] pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth"] pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth_8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth_8"] pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_matter"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_matter"] pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_has_aes_hardware"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_has_aes_hardware"] pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_key_length"] pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_nonce_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_nonce_length"] pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_max_overhead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_max_overhead"] pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_max_tag_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_max_tag_len"] pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; } #[repr(C)] #[derive(Copy, Clone)] pub union evp_aead_ctx_st_state { - pub opaque: [u8; 580usize], + pub opaque: [u8; 564usize], pub alignment: u64, pub ptr: *mut ::std::os::raw::c_void, } @@ -15180,7 +15447,7 @@ fn bindgen_test_layout_evp_aead_ctx_st_state() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 584usize, + 568usize, concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( @@ -15242,7 +15509,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 600usize, + 584usize, concat!("Size of: ", stringify!(evp_aead_ctx_st)) ); assert_eq!( @@ -15272,7 +15539,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, - 592usize, + 576usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15282,7 +15549,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, - 593usize, + 577usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15301,11 +15568,11 @@ impl Default for evp_aead_ctx_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_zero"] pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_new"] pub fn EVP_AEAD_CTX_new( aead: *const EVP_AEAD, key: *const u8, @@ -15314,11 +15581,11 @@ extern "C" { ) -> *mut EVP_AEAD_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_free"] pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_init"] pub fn EVP_AEAD_CTX_init( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15329,11 +15596,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_cleanup"] pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal"] pub fn EVP_AEAD_CTX_seal( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15348,7 +15615,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_open"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_open"] pub fn EVP_AEAD_CTX_open( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15363,7 +15630,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal_scatter"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal_scatter"] pub fn EVP_AEAD_CTX_seal_scatter( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15381,7 +15648,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_open_gather"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_open_gather"] pub fn EVP_AEAD_CTX_open_gather( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15396,66 +15663,70 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_aead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_aead"] pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls"] pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls"] pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls"] pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha384_tls"] + pub fn EVP_aead_aes_256_cbc_sha384_tls() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls"] pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_null_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_null_sha1_tls"] pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls12"] pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls12"] pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls13"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls13"] pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls13"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls13"] pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; } pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; pub type evp_aead_direction_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_init_with_direction"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_init_with_direction"] pub fn EVP_AEAD_CTX_init_with_direction( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15465,169 +15736,368 @@ extern "C" { dir: evp_aead_direction_t, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_get_iv"] - pub fn EVP_AEAD_CTX_get_iv( - ctx: *const EVP_AEAD_CTX, - out_iv: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_get_iv"] + pub fn EVP_AEAD_CTX_get_iv( + ctx: *const EVP_AEAD_CTX, + out_iv: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_tag_len"] + pub fn EVP_AEAD_CTX_tag_len( + ctx: *const EVP_AEAD_CTX, + out_tag_len: *mut usize, + in_len: usize, + extra_in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_get_iv_from_ipv4_nanosecs"] + pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( + ipv4_address: u32, + nanosecs: u64, + out_iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_dup"] + pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_cmp"] + pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_get0_data"] + pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_length"] + pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_obj2nid"] + pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_cbs2nid"] + pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_sn2nid"] + pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_ln2nid"] + pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_txt2nid"] + pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2obj"] + pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_get_undef"] + pub fn OBJ_get_undef() -> *const ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2sn"] + pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2ln"] + pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2cbb"] + pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_txt2obj"] + pub fn OBJ_txt2obj( + s: *const ::std::os::raw::c_char, + dont_search_names: ::std::os::raw::c_int, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_obj2txt"] + pub fn OBJ_obj2txt( + out: *mut ::std::os::raw::c_char, + out_len: ::std::os::raw::c_int, + obj: *const ASN1_OBJECT, + always_return_oid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_create"] + pub fn OBJ_create( + oid: *const ::std::os::raw::c_char, + short_name: *const ::std::os::raw::c_char, + long_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_find_sigid_algs"] + pub fn OBJ_find_sigid_algs( + sign_nid: ::std::os::raw::c_int, + out_digest_nid: *mut ::std::os::raw::c_int, + out_pkey_nid: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_find_sigid_by_algs"] + pub fn OBJ_find_sigid_by_algs( + out_sign_nid: *mut ::std::os::raw::c_int, + digest_nid: ::std::os::raw::c_int, + pkey_nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct obj_name_st { + pub type_: ::std::os::raw::c_int, + pub alias: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub data: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_obj_name_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!(obj_name_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(obj_name_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(alias) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(data) + ) + ); +} +impl Default for obj_name_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() + } + } } +pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_tag_len"] - pub fn EVP_AEAD_CTX_tag_len( - ctx: *const EVP_AEAD_CTX, - out_tag_len: *mut usize, - in_len: usize, - extra_in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_NAME_do_all_sorted"] + pub fn OBJ_NAME_do_all_sorted( + type_: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn(arg1: *const OBJ_NAME, arg: *mut ::std::os::raw::c_void), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_get_iv_from_ipv4_nanosecs"] - pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( - ipv4_address: u32, - nanosecs: u64, - out_iv: *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_cleanup"] + pub fn OBJ_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_new"] pub fn EVP_PKEY_new() -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_free"] pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_up_ref"] pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_is_opaque"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_is_opaque"] pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_cmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_cmp"] pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_copy_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_copy_parameters"] pub fn EVP_PKEY_copy_parameters( to: *mut EVP_PKEY, from: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_missing_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_missing_parameters"] pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_size"] pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_bits"] pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_id"] pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_type"] pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_get0_name"] + pub fn EVP_MD_get0_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_name"] + pub fn EVP_MD_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_RSA"] pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_RSA"] pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_RSA"] pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_RSA"] pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_DSA"] pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_DSA"] pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_DSA"] pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_DSA"] pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_EC_KEY"] pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_EC_KEY"] pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_EC_KEY"] pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_EC_KEY"] pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign"] - pub fn EVP_PKEY_assign( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - key: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_DH"] + pub fn EVP_PKEY_set1_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_DH"] + pub fn EVP_PKEY_assign_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_DH"] + pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_DH"] + pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set_type"] pub fn EVP_PKEY_set_type( pkey: *mut EVP_PKEY, type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_cmp_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_cmp_parameters"] pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_parse_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_parse_public_key"] pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_public_key"] pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_parse_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_parse_private_key"] pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_private_key"] pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_private_key_v2"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_private_key_v2"] pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_new_raw_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_new_raw_private_key"] pub fn EVP_PKEY_new_raw_private_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15636,7 +16106,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_new_raw_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_new_raw_public_key"] pub fn EVP_PKEY_new_raw_public_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15645,7 +16115,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get_raw_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get_raw_private_key"] pub fn EVP_PKEY_get_raw_private_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15653,7 +16123,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get_raw_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get_raw_public_key"] pub fn EVP_PKEY_get_raw_public_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15661,7 +16131,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSignInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSignInit"] pub fn EVP_DigestSignInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15671,7 +16141,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSignUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSignUpdate"] pub fn EVP_DigestSignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15679,7 +16149,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSignFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSignFinal"] pub fn EVP_DigestSignFinal( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15687,7 +16157,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSign"] pub fn EVP_DigestSign( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15697,7 +16167,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerifyInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerifyInit"] pub fn EVP_DigestVerifyInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15707,7 +16177,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerifyUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerifyUpdate"] pub fn EVP_DigestVerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15715,7 +16185,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerifyFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerifyFinal"] pub fn EVP_DigestVerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15723,7 +16193,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerify"] pub fn EVP_DigestVerify( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15733,7 +16203,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignInit_ex"] pub fn EVP_SignInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15741,11 +16211,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignInit"] pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignUpdate"] pub fn EVP_SignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15753,7 +16223,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignFinal"] pub fn EVP_SignFinal( ctx: *const EVP_MD_CTX, sig: *mut u8, @@ -15762,7 +16232,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyInit_ex"] pub fn EVP_VerifyInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15770,11 +16240,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyInit"] pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyUpdate"] pub fn EVP_VerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15782,7 +16252,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyFinal"] pub fn EVP_VerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15791,7 +16261,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_print_public"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_print_public"] pub fn EVP_PKEY_print_public( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15800,7 +16270,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_print_private"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_print_private"] pub fn EVP_PKEY_print_private( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15809,7 +16279,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_print_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_print_params"] pub fn EVP_PKEY_print_params( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15818,32 +16288,32 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC"] pub fn PKCS5_PBKDF2_HMAC( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, digest: *const EVP_MD, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC_SHA1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC_SHA1"] pub fn PKCS5_PBKDF2_HMAC_SHA1( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PBE_scrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PBE_scrypt"] pub fn EVP_PBE_scrypt( password: *const ::std::os::raw::c_char, password_len: usize, @@ -15858,31 +16328,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_new"] pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_new_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_new_id"] pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_free"] pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_dup"] pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_pkey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_pkey"] pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_sign_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_sign_init"] pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_sign"] pub fn EVP_PKEY_sign( ctx: *mut EVP_PKEY_CTX, sig: *mut u8, @@ -15892,11 +16362,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify_init"] pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify"] pub fn EVP_PKEY_verify( ctx: *mut EVP_PKEY_CTX, sig: *const u8, @@ -15906,11 +16376,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_encrypt_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_encrypt_init"] pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_encrypt"] pub fn EVP_PKEY_encrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15920,11 +16390,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_decrypt_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_decrypt_init"] pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_decrypt"] pub fn EVP_PKEY_decrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15934,11 +16404,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify_recover_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify_recover_init"] pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify_recover"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify_recover"] pub fn EVP_PKEY_verify_recover( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15948,18 +16418,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_derive_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_derive_init"] pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_derive_set_peer"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_derive_set_peer"] pub fn EVP_PKEY_derive_set_peer( ctx: *mut EVP_PKEY_CTX, peer: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_derive"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_derive"] pub fn EVP_PKEY_derive( ctx: *mut EVP_PKEY_CTX, key: *mut u8, @@ -15967,18 +16437,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_keygen_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_keygen_init"] pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_keygen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_keygen"] pub fn EVP_PKEY_keygen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_encapsulate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_encapsulate"] pub fn EVP_PKEY_encapsulate( ctx: *mut EVP_PKEY_CTX, ciphertext: *mut u8, @@ -15988,112 +16458,112 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_decapsulate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_decapsulate"] pub fn EVP_PKEY_decapsulate( ctx: *mut EVP_PKEY_CTX, shared_secret: *mut u8, shared_secret_len: *mut usize, - ciphertext: *mut u8, + ciphertext: *const u8, ciphertext_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_paramgen_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_paramgen_init"] pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_paramgen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_paramgen"] pub fn EVP_PKEY_paramgen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_signature_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_signature_md"] pub fn EVP_PKEY_CTX_set_signature_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_signature_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_signature_md"] pub fn EVP_PKEY_CTX_get_signature_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_padding"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_padding"] pub fn EVP_PKEY_CTX_set_rsa_padding( ctx: *mut EVP_PKEY_CTX, padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_padding"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_padding"] pub fn EVP_PKEY_CTX_get_rsa_padding( ctx: *mut EVP_PKEY_CTX, out_padding: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_saltlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_pss_saltlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, out_salt_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_bits"] pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( ctx: *mut EVP_PKEY_CTX, bits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( ctx: *mut EVP_PKEY_CTX, e: *mut BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_oaep_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_oaep_md"] pub fn EVP_PKEY_CTX_set_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_oaep_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_oaep_md"] pub fn EVP_PKEY_CTX_get_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_mgf1_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_mgf1_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set0_rsa_oaep_label"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, label: *mut u8, @@ -16101,28 +16571,28 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_rsa_oaep_label"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, out_label: *mut *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_kem_set_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_kem_set_params"] pub fn EVP_PKEY_CTX_kem_set_params( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_public_key"] pub fn EVP_PKEY_kem_new_raw_public_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -16130,7 +16600,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_secret_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_secret_key"] pub fn EVP_PKEY_kem_new_raw_secret_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -16138,7 +16608,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_key"] pub fn EVP_PKEY_kem_new_raw_key( nid: ::std::os::raw::c_int, in_public: *const u8, @@ -16148,31 +16618,60 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0"] - pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_check_key"] + pub fn EVP_PKEY_kem_check_key(key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_add_all_algorithms"] - pub fn OpenSSL_add_all_algorithms(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dh_pad"] + pub fn EVP_PKEY_CTX_set_dh_pad( + ctx: *mut EVP_PKEY_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_add_all_algorithms_conf"] - pub fn OPENSSL_add_all_algorithms_conf(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_get_count"] + pub fn EVP_PKEY_asn1_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_add_all_ciphers"] - pub fn OpenSSL_add_all_ciphers(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0"] + pub fn EVP_PKEY_asn1_get0(idx: ::std::os::raw::c_int) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_add_all_digests"] - pub fn OpenSSL_add_all_digests(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_find"] + pub fn EVP_PKEY_asn1_find( + _pe: *mut *mut ENGINE, + type_: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_cleanup"] - pub fn EVP_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_find_str"] + pub fn EVP_PKEY_asn1_find_str( + _pe: *mut *mut ENGINE, + name: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0_info"] + pub fn EVP_PKEY_asn1_get0_info( + ppkey_id: *mut ::std::os::raw::c_int, + pkey_base_id: *mut ::std::os::raw::c_int, + ppkey_flags: *mut ::std::os::raw::c_int, + pinfo: *mut *const ::std::os::raw::c_char, + ppem_str: *mut *const ::std::os::raw::c_char, + ameth: *const EVP_PKEY_ASN1_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_get_pkey_type"] + pub fn EVP_MD_get_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_do_all_sorted"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_pkey_type"] + pub fn EVP_MD_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_do_all_sorted"] pub fn EVP_CIPHER_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -16186,7 +16685,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_do_all_sorted"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_do_all_sorted"] pub fn EVP_MD_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -16200,15 +16699,29 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_do_all"] + pub fn EVP_MD_do_all( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PrivateKey"] pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PublicKey"] pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PrivateKey"] pub fn d2i_PrivateKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -16217,7 +16730,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_AutoPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_AutoPrivateKey"] pub fn d2i_AutoPrivateKey( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -16225,7 +16738,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PublicKey"] pub fn d2i_PublicKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -16234,22 +16747,14 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_DH"] - pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_DH"] - pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_param_enc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_param_enc"] pub fn EVP_PKEY_CTX_set_ec_param_enc( ctx: *mut EVP_PKEY_CTX, encoding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_tls_encodedpoint"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_tls_encodedpoint"] pub fn EVP_PKEY_set1_tls_encodedpoint( pkey: *mut EVP_PKEY, in_: *const u8, @@ -16257,40 +16762,40 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_tls_encodedpoint"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_tls_encodedpoint"] pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_base_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_base_id"] pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PUBKEY"] pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PUBKEY"] pub fn d2i_PUBKEY( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -16298,11 +16803,11 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_RSA_PUBKEY"] pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_RSA_PUBKEY"] pub fn d2i_RSA_PUBKEY( out: *mut *mut RSA, inp: *mut *const u8, @@ -16310,11 +16815,11 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSA_PUBKEY"] pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSA_PUBKEY"] pub fn d2i_DSA_PUBKEY( out: *mut *mut DSA, inp: *mut *const u8, @@ -16322,11 +16827,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_EC_PUBKEY"] pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_EC_PUBKEY"] pub fn d2i_EC_PUBKEY( out: *mut *mut EC_KEY, inp: *mut *const u8, @@ -16334,188 +16839,91 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( - ctx: *mut EVP_PKEY_CTX, - nbits: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign"] + pub fn EVP_PKEY_assign( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, + key: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( - ctx: *mut EVP_PKEY_CTX, - qbits: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_pkey_st { - pub references: CRYPTO_refcount_t, - pub type_: ::std::os::raw::c_int, - pub pkey: evp_pkey_st__bindgen_ty_1, - pub ameth: *const EVP_PKEY_ASN1_METHOD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union evp_pkey_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_void, - pub rsa: *mut RSA, - pub dsa: *mut DSA, - pub dh: *mut DH, - pub ec: *mut EC_KEY, - pub kem_key: *mut KEM_KEY, -} -#[test] -fn bindgen_test_layout_evp_pkey_st__bindgen_ty_1() { - 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!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(rsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dh) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ec) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem_key) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(kem_key) - ) - ); -} -impl Default for evp_pkey_st__bindgen_ty_1 { - 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_fips_0_13_0_EVP_PKEY_new_mac_key"] + pub fn EVP_PKEY_new_mac_key( + type_: ::std::os::raw::c_int, + engine: *mut ENGINE, + mac_key: *const u8, + mac_key_len: usize, + ) -> *mut EVP_PKEY; } -#[test] -fn bindgen_test_layout_evp_pkey_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!(evp_pkey_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ameth) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(ameth) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0"] + pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; } -impl Default for evp_pkey_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_fips_0_13_0_OpenSSL_add_all_algorithms"] + pub fn OpenSSL_add_all_algorithms(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_add_all_algorithms_conf"] + pub fn OPENSSL_add_all_algorithms_conf(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_add_all_ciphers"] + pub fn OpenSSL_add_all_ciphers(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_add_all_digests"] + pub fn OpenSSL_add_all_digests(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_cleanup"] + pub fn EVP_cleanup(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( + ctx: *mut EVP_PKEY_CTX, + nbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( + ctx: *mut EVP_PKEY_CTX, + qbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_ctrl_str"] + pub fn EVP_PKEY_CTX_ctrl_str( + ctx: *mut EVP_PKEY_CTX, + type_: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +pub type EVP_PKEY_gen_cb = + ::std::option::Option ::std::os::raw::c_int>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_cb"] + pub fn EVP_PKEY_CTX_set_cb(ctx: *mut EVP_PKEY_CTX, cb: EVP_PKEY_gen_cb); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_app_data"] + pub fn EVP_PKEY_CTX_set_app_data(ctx: *mut EVP_PKEY_CTX, data: *mut ::std::os::raw::c_void); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_app_data"] + pub fn EVP_PKEY_CTX_get_app_data(ctx: *mut EVP_PKEY_CTX) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_keygen_info"] + pub fn EVP_PKEY_CTX_get_keygen_info( + ctx: *mut EVP_PKEY_CTX, + idx: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HKDF"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HKDF"] pub fn HKDF( out_key: *mut u8, out_len: usize, @@ -16529,7 +16937,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HKDF_extract"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HKDF_extract"] pub fn HKDF_extract( out_key: *mut u8, out_len: *mut usize, @@ -16541,7 +16949,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HKDF_expand"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HKDF_expand"] pub fn HKDF_expand( out_key: *mut u8, out_len: usize, @@ -16553,11 +16961,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Init"] pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Update"] pub fn MD5_Update( md5: *mut MD5_CTX, data: *const ::std::os::raw::c_void, @@ -16565,15 +16973,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Final"] pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5"] pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Transform"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Transform"] pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); } #[repr(C)] @@ -16660,7 +17068,7 @@ impl Default for md5_state_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC"] pub fn HMAC( evp_md: *const EVP_MD, key: *const ::std::os::raw::c_void, @@ -16672,27 +17080,27 @@ extern "C" { ) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_init"] pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_new"] pub fn HMAC_CTX_new() -> *mut HMAC_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_cleanup"] pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_cleanse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_cleanse"] pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_free"] pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Init_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Init_ex"] pub fn HMAC_Init_ex( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16702,7 +17110,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Update"] pub fn HMAC_Update( ctx: *mut HMAC_CTX, data: *const u8, @@ -16710,7 +17118,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Final"] pub fn HMAC_Final( ctx: *mut HMAC_CTX, out: *mut u8, @@ -16718,23 +17126,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_size"] pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_get_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_get_md"] pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_copy_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_copy_ex"] pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_reset"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_reset"] pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_set_precomputed_key_export"] + pub fn HMAC_set_precomputed_key_export(ctx: *mut HMAC_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_get_precomputed_key"] + pub fn HMAC_get_precomputed_key( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Init_from_precomputed_key"] + pub fn HMAC_Init_from_precomputed_key( + ctx: *mut HMAC_CTX, + precomputed_key: *const u8, + precompute_key_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Init"] pub fn HMAC_Init( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16743,7 +17172,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_copy"] pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } #[repr(C)] @@ -16919,82 +17348,86 @@ impl Default for hmac_ctx_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_x25519_hkdf_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_x25519_hkdf_sha256"] pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_id"] pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_public_key_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_public_key_len"] pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_private_key_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_private_key_len"] pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_enc_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_enc_len"] pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_hkdf_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_hkdf_sha256"] pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KDF_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KDF_id"] pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KDF_hkdf_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KDF_hkdf_md"] pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_aes_128_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_aes_128_gcm"] pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_aes_256_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_aes_256_gcm"] pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_chacha20_poly1305"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_chacha20_poly1305"] pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_AEAD_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_AEAD_id"] pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_AEAD_aead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_AEAD_aead"] pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_zero"] pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_cleanup"] pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_new"] pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_free"] pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_copy"] pub fn EVP_HPKE_KEY_copy( dst: *mut EVP_HPKE_KEY, src: *const EVP_HPKE_KEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_move"] + pub fn EVP_HPKE_KEY_move(out: *mut EVP_HPKE_KEY, in_: *mut EVP_HPKE_KEY); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_init"] pub fn EVP_HPKE_KEY_init( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, @@ -17003,18 +17436,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_generate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_generate"] pub fn EVP_HPKE_KEY_generate( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_kem"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_kem"] pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_public_key"] pub fn EVP_HPKE_KEY_public_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -17023,7 +17456,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_private_key"] pub fn EVP_HPKE_KEY_private_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -17032,23 +17465,23 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_zero"] pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_cleanup"] pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_new"] pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_free"] pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender"] pub fn EVP_HPKE_CTX_setup_sender( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -17064,7 +17497,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -17082,7 +17515,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_recipient"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_recipient"] pub fn EVP_HPKE_CTX_setup_recipient( ctx: *mut EVP_HPKE_CTX, key: *const EVP_HPKE_KEY, @@ -17095,7 +17528,56 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_open"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender"] + pub fn EVP_HPKE_CTX_setup_auth_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_recipient"] + pub fn EVP_HPKE_CTX_setup_auth_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, + peer_public_key: *const u8, + peer_public_key_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_open"] pub fn EVP_HPKE_CTX_open( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -17108,7 +17590,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_seal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_seal"] pub fn EVP_HPKE_CTX_seal( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -17121,7 +17603,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_export"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_export"] pub fn EVP_HPKE_CTX_export( ctx: *const EVP_HPKE_CTX, out: *mut u8, @@ -17131,19 +17613,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_max_overhead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_max_overhead"] pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_kem"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_kem"] pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_aead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_aead"] pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_kdf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_kdf"] pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; } #[repr(C)] @@ -17164,7 +17646,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 728usize, + 712usize, concat!("Size of: ", stringify!(evp_hpke_ctx_st)) ); assert_eq!( @@ -17214,7 +17696,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, - 624usize, + 608usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17224,7 +17706,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, - 648usize, + 632usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17234,7 +17716,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, - 712usize, + 696usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17244,7 +17726,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, - 720usize, + 704usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17402,7 +17884,7 @@ impl Default for HRSS_public_key { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_generate_key"] pub fn HRSS_generate_key( out_pub: *mut HRSS_public_key, out_priv: *mut HRSS_private_key, @@ -17410,7 +17892,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_encap"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_encap"] pub fn HRSS_encap( out_ciphertext: *mut u8, out_shared_key: *mut u8, @@ -17419,7 +17901,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_decap"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_decap"] pub fn HRSS_decap( out_shared_key: *mut u8, in_priv: *const HRSS_private_key, @@ -17428,22 +17910,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_marshal_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_marshal_public_key"] pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_parse_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_parse_public_key"] pub fn HRSS_parse_public_key( out: *mut HRSS_public_key, in_: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Init"] pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Update"] pub fn MD4_Update( md4: *mut MD4_CTX, data: *const ::std::os::raw::c_void, @@ -17451,15 +17933,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Final"] pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4"] pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Transform"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Transform"] pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); } #[repr(C)] @@ -17536,171 +18018,7 @@ fn bindgen_test_layout_md4_state_st() { ) ); } -impl Default for md4_state_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_fips_0_12_15_OBJ_dup"] - pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_cmp"] - pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_get0_data"] - pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_length"] - pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_obj2nid"] - pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_cbs2nid"] - pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_sn2nid"] - pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_ln2nid"] - pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_txt2nid"] - pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2obj"] - pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2sn"] - pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2ln"] - pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2cbb"] - pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_txt2obj"] - pub fn OBJ_txt2obj( - s: *const ::std::os::raw::c_char, - dont_search_names: ::std::os::raw::c_int, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_obj2txt"] - pub fn OBJ_obj2txt( - out: *mut ::std::os::raw::c_char, - out_len: ::std::os::raw::c_int, - obj: *const ASN1_OBJECT, - always_return_oid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_create"] - pub fn OBJ_create( - oid: *const ::std::os::raw::c_char, - short_name: *const ::std::os::raw::c_char, - long_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_find_sigid_algs"] - pub fn OBJ_find_sigid_algs( - sign_nid: ::std::os::raw::c_int, - out_digest_nid: *mut ::std::os::raw::c_int, - out_pkey_nid: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_find_sigid_by_algs"] - pub fn OBJ_find_sigid_by_algs( - out_sign_nid: *mut ::std::os::raw::c_int, - digest_nid: ::std::os::raw::c_int, - pkey_nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct obj_name_st { - pub type_: ::std::os::raw::c_int, - pub alias: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub data: *const ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_obj_name_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!(obj_name_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(obj_name_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(alias) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(data) - ) - ); -} -impl Default for obj_name_st { +impl Default for md4_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17709,11 +18027,6 @@ impl Default for obj_name_st { } } } -pub type OBJ_NAME = obj_name_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_cleanup"] - pub fn OBJ_cleanup(); -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct stack_st_CRYPTO_BUFFER { @@ -17730,7 +18043,7 @@ pub struct stack_st_X509_CRL { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_raw_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_raw_certificates"] pub fn PKCS7_get_raw_certificates( out_certs: *mut stack_st_CRYPTO_BUFFER, cbs: *mut CBS, @@ -17738,167 +18051,61 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_certificates"] pub fn PKCS7_get_certificates( out_certs: *mut stack_st_X509, cbs: *mut CBS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_bundle_raw_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_bundle_raw_certificates"] pub fn PKCS7_bundle_raw_certificates( out: *mut CBB, certs: *const stack_st_CRYPTO_BUFFER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_bundle_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_bundle_certificates"] pub fn PKCS7_bundle_certificates( out: *mut CBB, certs: *const stack_st_X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_CRLs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_CRLs"] pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_bundle_CRLs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_bundle_CRLs"] pub fn PKCS7_bundle_CRLs( out: *mut CBB, crls: *const stack_st_X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_PEM_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_PEM_certificates"] pub fn PKCS7_get_PEM_certificates( out_certs: *mut stack_st_X509, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_PEM_CRLs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_PEM_CRLs"] pub fn PKCS7_get_PEM_CRLs( out_crls: *mut stack_st_X509_CRL, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGNED { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGNED() { - 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!(PKCS7_SIGNED)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGNED)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGNED { - 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 PKCS7_SIGN_ENVELOPE { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGN_ENVELOPE() { - 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!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGN_ENVELOPE { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type PKCS7_ENVELOPE = ::std::os::raw::c_void; -pub type PKCS7_DIGEST = ::std::os::raw::c_void; -pub type PKCS7_ENCRYPT = ::std::os::raw::c_void; -pub type PKCS7_SIGNER_INFO = ::std::os::raw::c_void; -#[repr(C)] #[derive(Copy, Clone)] -pub struct PKCS7 { - pub ber_bytes: *mut u8, - pub ber_len: usize, +pub struct pkcs7_st { pub type_: *mut ASN1_OBJECT, - pub d: PKCS7__bindgen_ty_1, + pub d: pkcs7_st__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] -pub union PKCS7__bindgen_ty_1 { +pub union pkcs7_st__bindgen_ty_1 { pub ptr: *mut ::std::os::raw::c_char, pub data: *mut ASN1_OCTET_STRING, pub sign: *mut PKCS7_SIGNED, @@ -17909,25 +18116,26 @@ pub union PKCS7__bindgen_ty_1 { pub other: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_PKCS7__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Size of: ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Alignment of ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(ptr) ) @@ -17937,7 +18145,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(data) ) @@ -17947,7 +18155,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(sign) ) @@ -17957,7 +18165,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(enveloped) ) @@ -17967,7 +18175,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(signed_and_enveloped) ) @@ -17977,7 +18185,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(digest) ) @@ -17987,7 +18195,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(encrypted) ) @@ -17997,13 +18205,13 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(other) ) ); } -impl Default for PKCS7__bindgen_ty_1 { +impl Default for pkcs7_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18013,110 +18221,381 @@ impl Default for PKCS7__bindgen_ty_1 { } } #[test] -fn bindgen_test_layout_PKCS7() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(PKCS7)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(pkcs7_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7)) + concat!("Alignment of ", stringify!(pkcs7_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_bytes) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), "::", - stringify!(ber_bytes) + stringify!(d) ) ); +} +impl Default for pkcs7_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 pkcs7_signed_st { + pub version: *mut ASN1_INTEGER, + pub md_algs: *mut stack_st_X509_ALGOR, + pub contents: *mut PKCS7, + pub cert: *mut stack_st_X509, + pub crl: *mut stack_st_X509_CRL, + pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO, +} +#[test] +fn bindgen_test_layout_pkcs7_signed_st() { + 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!(pkcs7_signed_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_len) as usize - ptr as usize }, + ::std::mem::align_of::(), 8usize, + concat!("Alignment of ", stringify!(pkcs7_signed_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(ber_len) + stringify!(version) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md_algs) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(md_algs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).contents) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(type_) + stringify!(contents) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, 24usize, - concat!("Offset of field: ", stringify!(PKCS7), "::", stringify!(d)) + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signer_info) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(signer_info) + ) ); } -impl Default for PKCS7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +impl Default for pkcs7_signed_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_fips_0_13_0_PKCS7_new"] + pub fn PKCS7_new() -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_free"] + pub fn PKCS7_free(a: *mut PKCS7); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7"] + pub fn d2i_PKCS7( + a: *mut *mut PKCS7, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7"] + pub fn i2d_PKCS7( + a: *mut PKCS7, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_it"] + pub static PKCS7_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_new"] + pub fn PKCS7_RECIP_INFO_new() -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_free"] + pub fn PKCS7_RECIP_INFO_free(a: *mut PKCS7_RECIP_INFO); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7_RECIP_INFO"] + pub fn d2i_PKCS7_RECIP_INFO( + a: *mut *mut PKCS7_RECIP_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7_RECIP_INFO"] + pub fn i2d_PKCS7_RECIP_INFO( + a: *mut PKCS7_RECIP_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_it"] + pub static PKCS7_RECIP_INFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_new"] + pub fn PKCS7_SIGNER_INFO_new() -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_free"] + pub fn PKCS7_SIGNER_INFO_free(a: *mut PKCS7_SIGNER_INFO); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7_SIGNER_INFO"] + pub fn d2i_PKCS7_SIGNER_INFO( + a: *mut *mut PKCS7_SIGNER_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7_SIGNER_INFO"] + pub fn i2d_PKCS7_SIGNER_INFO( + a: *mut PKCS7_SIGNER_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_it"] + pub static PKCS7_SIGNER_INFO_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_RECIP_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_RECIP_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_RECIP_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_RECIP_INFO) -> *mut PKCS7_RECIP_INFO, +>; +pub type sk_PKCS7_RECIP_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_RECIP_INFO, + arg2: *const *const PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_RECIP_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_RECIP_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_SIGNER_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_SIGNER_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_SIGNER_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_SIGNER_INFO) -> *mut PKCS7_SIGNER_INFO, +>; +pub type sk_PKCS7_SIGNER_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_SIGNER_INFO, + arg2: *const *const PKCS7_SIGNER_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_SIGNER_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_SIGNER_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_dup"] + pub fn PKCS7_dup(p7: *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7_bio"] + pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7_bio"] + pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_signed_attribute"] + pub fn PKCS7_get_signed_attribute( + si: *const PKCS7_SIGNER_INFO, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_signer_info"] + pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_set"] + pub fn PKCS7_RECIP_INFO_set( + p7i: *mut PKCS7_RECIP_INFO, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_set"] + pub fn PKCS7_SIGNER_INFO_set( + p7i: *mut PKCS7_SIGNER_INFO, + x509: *mut X509, + pkey: *mut EVP_PKEY, + dgst: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_certificate"] + pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_crl"] + pub fn PKCS7_add_crl(p7: *mut PKCS7, x509: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS7"] - pub fn d2i_PKCS7(out: *mut *mut PKCS7, inp: *mut *const u8, len: usize) -> *mut PKCS7; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_recipient_info"] + pub fn PKCS7_add_recipient_info( + p7: *mut PKCS7, + ri: *mut PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS7_bio"] - pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_signer"] + pub fn PKCS7_add_signer(p7: *mut PKCS7, p7i: *mut PKCS7_SIGNER_INFO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS7"] - pub fn i2d_PKCS7(p7: *const PKCS7, out: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_content_new"] + pub fn PKCS7_content_new(p7: *mut PKCS7, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS7_bio"] - pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_set_cipher"] + pub fn PKCS7_set_cipher(p7: *mut PKCS7, cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_set_content"] + pub fn PKCS7_set_content(p7: *mut PKCS7, p7_data: *mut PKCS7) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_set_type"] + pub fn PKCS7_set_type(p7: *mut PKCS7, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_free"] - pub fn PKCS7_free(p7: *mut PKCS7); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_get0_alg"] + pub fn PKCS7_RECIP_INFO_get0_alg(ri: *mut PKCS7_RECIP_INFO, penc: *mut *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_get0_algs"] + pub fn PKCS7_SIGNER_INFO_get0_algs( + si: *mut PKCS7_SIGNER_INFO, + pk: *mut *mut EVP_PKEY, + pdig: *mut *mut X509_ALGOR, + psig: *mut *mut X509_ALGOR, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_data"] pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_digest"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_digest"] pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_encrypted"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_encrypted"] pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_enveloped"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_enveloped"] pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_signed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_signed"] pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_signedAndEnveloped"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_signedAndEnveloped"] pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_sign"] pub fn PKCS7_sign( sign_cert: *mut X509, pkey: *mut EVP_PKEY, @@ -18131,8 +18610,8 @@ pub type sk_CRYPTO_BUFFER_copy_func = ::std::option::Option *mut CRYPTO_BUFFER>; pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const CRYPTO_BUFFER, - arg2: *mut *const CRYPTO_BUFFER, + arg1: *const *const CRYPTO_BUFFER, + arg2: *const *const CRYPTO_BUFFER, ) -> ::std::os::raw::c_int, >; pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< @@ -18142,15 +18621,15 @@ pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_new"] pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_free"] pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_new"] pub fn CRYPTO_BUFFER_new( data: *const u8, len: usize, @@ -18158,18 +18637,18 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_alloc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_alloc"] pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_CBS"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_CBS"] pub fn CRYPTO_BUFFER_new_from_CBS( cbs: *const CBS, pool: *mut CRYPTO_BUFFER_POOL, ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_static_data_unsafe"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_static_data_unsafe"] pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( data: *const u8, len: usize, @@ -18177,79 +18656,96 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_free"] pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_up_ref"] pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_data"] pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_len"] pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_init_CBS"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_init_CBS"] pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_public_key"] + pub fn RSA_new_public_key(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key"] + pub fn RSA_new_private_key( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new"] pub fn RSA_new() -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_new_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_method"] pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_free"] pub fn RSA_free(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_up_ref"] pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_bits"] pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_n"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_n"] pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_e"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_e"] pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_d"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_d"] pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_p"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_p"] pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_q"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_q"] pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_dmp1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_dmp1"] pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_dmq1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_dmq1"] pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_iqmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_iqmp"] pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_key"] pub fn RSA_get0_key( rsa: *const RSA, out_n: *mut *const BIGNUM, @@ -18258,11 +18754,11 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_factors"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_factors"] pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_crt_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_crt_params"] pub fn RSA_get0_crt_params( rsa: *const RSA, out_dmp1: *mut *const BIGNUM, @@ -18271,7 +18767,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set0_key"] pub fn RSA_set0_key( rsa: *mut RSA, n: *mut BIGNUM, @@ -18280,12 +18776,12 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set0_factors"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set0_factors"] pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set0_crt_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set0_crt_params"] pub fn RSA_set0_crt_params( rsa: *mut RSA, dmp1: *mut BIGNUM, @@ -18294,2550 +18790,2127 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_generate_key_ex"] - pub fn RSA_generate_key_ex( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - e: *const BIGNUM, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_default_method"] + pub fn RSA_get_default_method() -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_generate_key_fips"] - pub fn RSA_generate_key_fips( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_new"] + pub fn RSA_meth_new( + name: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut RSA_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_encrypt"] - pub fn RSA_encrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set_method"] + pub fn RSA_set_method(rsa: *mut RSA, meth: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_decrypt"] - pub fn RSA_decrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_method"] + pub fn RSA_get_method(rsa: *const RSA) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_encrypt"] - pub fn RSA_public_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_free"] + pub fn RSA_meth_free(meth: *mut RSA_METHOD); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_decrypt"] - pub fn RSA_private_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_init"] + pub fn RSA_meth_set_init( + meth: *mut RSA_METHOD, + init: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_sign"] - pub fn RSA_sign( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - rsa: *mut RSA, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_finish"] + pub fn RSA_meth_set_finish( + meth: *mut RSA_METHOD, + finish: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_sign_pss_mgf1"] - pub fn RSA_sign_pss_mgf1( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_priv_dec"] + pub fn RSA_meth_set_priv_dec( + meth: *mut RSA_METHOD, + priv_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_sign_raw"] - pub fn RSA_sign_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_priv_enc"] + pub fn RSA_meth_set_priv_enc( + meth: *mut RSA_METHOD, + priv_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify"] - pub fn RSA_verify( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - rsa: *mut RSA, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_pub_dec"] + pub fn RSA_meth_set_pub_dec( + meth: *mut RSA_METHOD, + pub_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_pss_mgf1"] - pub fn RSA_verify_pss_mgf1( - rsa: *mut RSA, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_pub_enc"] + pub fn RSA_meth_set_pub_enc( + meth: *mut RSA_METHOD, + pub_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_raw"] - pub fn RSA_verify_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set0_app_data"] + pub fn RSA_meth_set0_app_data( + meth: *mut RSA_METHOD, + app_data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_encrypt"] - pub fn RSA_private_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_sign"] + pub fn RSA_meth_set_sign( + meth: *mut RSA_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + m: *const ::std::os::raw::c_uchar, + m_length: ::std::os::raw::c_uint, + sigret: *mut ::std::os::raw::c_uchar, + siglen: *mut ::std::os::raw::c_uint, + rsa: *const RSA, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_decrypt"] - pub fn RSA_public_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_generate_key_ex"] + pub fn RSA_generate_key_ex( rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_size"] - pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_is_opaque"] - pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSAPublicKey_dup"] - pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSAPrivateKey_dup"] - pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_check_key"] - pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_check_fips"] - pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS_mgf1"] - pub fn RSA_verify_PKCS1_PSS_mgf1( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS_mgf1"] - pub fn RSA_padding_add_PKCS1_PSS_mgf1( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP_mgf1"] - pub fn RSA_padding_add_PKCS1_OAEP_mgf1( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, - md: *const EVP_MD, - mgf1md: *const EVP_MD, + bits: ::std::os::raw::c_int, + e: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_add_pkcs1_prefix"] - pub fn RSA_add_pkcs1_prefix( - out_msg: *mut *mut u8, - out_msg_len: *mut usize, - is_alloced: *mut ::std::os::raw::c_int, - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_generate_key_fips"] + pub fn RSA_generate_key_fips( + rsa: *mut RSA, + bits: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_parse_public_key"] - pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_key_from_bytes"] - pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_marshal_public_key"] - pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_key_to_bytes"] - pub fn RSA_public_key_to_bytes( - out_bytes: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_encrypt"] + pub fn RSA_encrypt( + rsa: *mut RSA, out_len: *mut usize, - rsa: *const RSA, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_parse_private_key"] - pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_key_from_bytes"] - pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_marshal_private_key"] - pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_key_to_bytes"] - pub fn RSA_private_key_to_bytes( - out_bytes: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_decrypt"] + pub fn RSA_decrypt( + rsa: *mut RSA, out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get_ex_new_index"] - pub fn RSA_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, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set_ex_data"] - pub fn RSA_set_ex_data( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_encrypt"] + pub fn RSA_public_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, rsa: *mut RSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get_ex_data"] - pub fn RSA_get_ex_data( - rsa: *const RSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_flags"] - pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_test_flags"] - pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_blinding_on"] - pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_generate_key"] - pub fn RSA_generate_key( - bits: ::std::os::raw::c_int, - e: u64, - callback: *mut ::std::os::raw::c_void, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_decrypt"] + pub fn RSA_private_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPublicKey"] - pub fn d2i_RSAPublicKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_sign"] + pub fn RSA_sign( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSAPublicKey"] - pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_sign_pss_mgf1"] + pub fn RSA_sign_pss_mgf1( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPrivateKey"] - pub fn d2i_RSAPrivateKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_sign_raw"] + pub fn RSA_sign_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSAPrivateKey"] - pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify"] + pub fn RSA_verify( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS"] - pub fn RSA_padding_add_PKCS1_PSS( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_pss_mgf1"] + pub fn RSA_verify_pss_mgf1( + rsa: *mut RSA, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS"] - pub fn RSA_verify_PKCS1_PSS( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_raw"] + pub fn RSA_verify_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP"] - pub fn RSA_padding_add_PKCS1_OAEP( - to: *mut u8, - to_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_encrypt"] + pub fn RSA_private_encrypt( + flen: usize, from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_print"] - pub fn RSA_print( - bio: *mut BIO, - rsa: *const RSA, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_decrypt"] + pub fn RSA_public_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_pss_params"] - pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_size"] + pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_meth_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: ::std::option::Option ::std::os::raw::c_int>, - pub finish: ::std::option::Option ::std::os::raw::c_int>, - pub size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - type_: ::std::os::raw::c_int, - m: *const u8, - m_length: ::std::os::raw::c_uint, - sigret: *mut u8, - siglen: *mut ::std::os::raw::c_uint, - rsa: *const RSA, - ) -> ::std::os::raw::c_int, - >, - pub sign_raw: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub decrypt: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub private_transform: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out: *mut u8, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_is_opaque"] + pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_meth_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(rsa_meth_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_meth_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign_raw) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign_raw) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).decrypt) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(decrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_transform) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(private_transform) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(flags) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSAPublicKey_dup"] + pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; } -impl Default for rsa_meth_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_fips_0_13_0_RSAPrivateKey_dup"] + pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct bn_blinding_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_check_key"] + pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; } -pub type BN_BLINDING = bn_blinding_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_st { - pub meth: *mut RSA_METHOD, - pub n: *mut BIGNUM, - pub e: *mut BIGNUM, - pub d: *mut BIGNUM, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub dmp1: *mut BIGNUM, - pub dmq1: *mut BIGNUM, - pub iqmp: *mut BIGNUM, - pub pss: *mut RSASSA_PSS_PARAMS, - pub ex_data: CRYPTO_EX_DATA, - pub references: CRYPTO_refcount_t, - pub flags: ::std::os::raw::c_int, - pub lock: CRYPTO_MUTEX, - pub mont_n: *mut BN_MONT_CTX, - pub mont_p: *mut BN_MONT_CTX, - pub mont_q: *mut BN_MONT_CTX, - pub d_fixed: *mut BIGNUM, - pub dmp1_fixed: *mut BIGNUM, - pub dmq1_fixed: *mut BIGNUM, - pub inv_small_mod_large_mont: *mut BIGNUM, - pub num_blindings: usize, - pub blindings: *mut *mut BN_BLINDING, - pub blindings_inuse: *mut ::std::os::raw::c_uchar, - pub blinding_fork_generation: u64, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_check_fips"] + pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 392usize, - concat!("Size of: ", stringify!(rsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).meth) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(meth) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(n)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).e) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(e)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(d)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 32usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 40usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iqmp) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(iqmp) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pss) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(pss) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).lock) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_n) as usize - ptr as usize }, - 296usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_n) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_p) as usize - ptr as usize }, - 304usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_q) as usize - ptr as usize }, - 312usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d_fixed) as usize - ptr as usize }, - 320usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(d_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1_fixed) as usize - ptr as usize }, - 328usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1_fixed) as usize - ptr as usize }, - 336usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inv_small_mod_large_mont) as usize - ptr as usize }, - 344usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(inv_small_mod_large_mont) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_blindings) as usize - ptr as usize }, - 352usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(num_blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings) as usize - ptr as usize }, - 360usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings_inuse) as usize - ptr as usize }, - 368usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings_inuse) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blinding_fork_generation) as usize - ptr as usize }, - 376usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blinding_fork_generation) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS_mgf1"] + pub fn RSA_verify_PKCS1_PSS_mgf1( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl Default for rsa_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_fips_0_13_0_RSA_padding_add_PKCS1_PSS_mgf1"] + pub fn RSA_padding_add_PKCS1_PSS_mgf1( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl rsa_st { - #[inline] - pub fn private_key_frozen(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_private_key_frozen(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - private_key_frozen: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let private_key_frozen: u32 = unsafe { ::std::mem::transmute(private_key_frozen) }; - private_key_frozen as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP_mgf1"] + pub fn RSA_padding_add_PKCS1_OAEP_mgf1( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + md: *const EVP_MD, + mgf1md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -pub type sk_X509_free_func = ::std::option::Option; -pub type sk_X509_copy_func = - ::std::option::Option *mut X509>; -pub type sk_X509_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const X509, arg2: *mut *const X509) -> ::std::os::raw::c_int, ->; -pub type sk_X509_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_it"] - pub static X509_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS1_MGF1"] + pub fn PKCS1_MGF1( + out: *mut u8, + len: usize, + seed: *const u8, + seed_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_add_pkcs1_prefix"] + pub fn RSA_add_pkcs1_prefix( + out_msg: *mut *mut u8, + out_msg_len: *mut usize, + is_alloced: *mut ::std::os::raw::c_int, + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_up_ref"] - pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_parse_public_key"] + pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_chain_up_ref"] - pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_key_from_bytes"] + pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_dup"] - pub fn X509_dup(x509: *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_marshal_public_key"] + pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_free"] - pub fn X509_free(x509: *mut X509); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_key_to_bytes"] + pub fn RSA_public_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509"] - pub fn d2i_X509( - out: *mut *mut X509, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_parse_private_key"] + pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_parse_from_buffer"] - pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_key_from_bytes"] + pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509"] - pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_marshal_private_key"] + pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_version"] - pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_key_to_bytes"] + pub fn RSA_private_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_serialNumber"] - pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key_no_crt"] + pub fn RSA_new_private_key_no_crt( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_notBefore"] - pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key_no_e"] + pub fn RSA_new_private_key_no_e(n: *const BIGNUM, d: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_notAfter"] - pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_public_key_large_e"] + pub fn RSA_new_public_key_large_e(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_issuer_name"] - pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key_large_e"] + pub fn RSA_new_private_key_large_e( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_subject_name"] - pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_ex_new_index"] + pub fn RSA_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_fips_0_12_15_X509_get_X509_PUBKEY"] - pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set_ex_data"] + pub fn RSA_set_ex_data( + rsa: *mut RSA, + 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_fips_0_12_15_X509_get_pubkey"] - pub fn X509_get_pubkey(x509: *mut X509) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_ex_data"] + pub fn RSA_get_ex_data( + rsa: *const RSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_pubkey_bitstr"] - pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_flags"] + pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_uids"] - pub fn X509_get0_uids( - x509: *const X509, - out_issuer_uid: *mut *const ASN1_BIT_STRING, - out_subject_uid: *mut *const ASN1_BIT_STRING, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set_flags"] + pub fn RSA_set_flags(rsa: *mut RSA, flags: ::std::os::raw::c_int); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_EXTENSION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_test_flags"] + pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_extensions"] - pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_blinding_on"] + pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_count"] - pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_blinding_off_temp_for_accp_compatibility"] + pub fn RSA_blinding_off_temp_for_accp_compatibility(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_by_NID"] - pub fn X509_get_ext_by_NID( - x: *const X509, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_pkey_ctx_ctrl"] + pub fn RSA_pkey_ctx_ctrl( + ctx: *mut EVP_PKEY_CTX, + optype: ::std::os::raw::c_int, + cmd: ::std::os::raw::c_int, + p1: ::std::os::raw::c_int, + p2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_by_OBJ"] - pub fn X509_get_ext_by_OBJ( - x: *const X509, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_generate_key"] + pub fn RSA_generate_key( + bits: ::std::os::raw::c_int, + e: u64, + callback: *mut ::std::os::raw::c_void, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_by_critical"] - pub fn X509_get_ext_by_critical( - x: *const X509, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_RSAPublicKey"] + pub fn d2i_RSAPublicKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext"] - pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_RSAPublicKey"] + pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_tbs_sigalg"] - pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_RSAPrivateKey"] + pub fn d2i_RSAPrivateKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_signature"] - pub fn X509_get0_signature( - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - x509: *const X509, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_RSAPrivateKey"] + pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_signature_nid"] - pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_PSS"] + pub fn RSA_padding_add_PKCS1_PSS( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_tbs"] - pub fn i2d_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS"] + pub fn RSA_verify_PKCS1_PSS( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_new"] - pub fn X509_new() -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP"] + pub fn RSA_padding_add_PKCS1_OAEP( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_version"] - pub fn X509_set_version( - x509: *mut X509, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_print"] + pub fn RSA_print( + bio: *mut BIO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_serialNumber"] - pub fn X509_set_serialNumber( - x509: *mut X509, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_print_fp"] + pub fn RSA_print_fp( + fp: *mut FILE, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_notBefore"] - pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_pss_params"] + pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_notAfter"] - pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_method_no_e"] + pub fn RSA_new_method_no_e(engine: *const ENGINE, n: *const BIGNUM) -> *mut RSA; } +pub type sk_X509_free_func = ::std::option::Option; +pub type sk_X509_copy_func = + ::std::option::Option *mut X509>; +pub type sk_X509_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509, + arg2: *const *const X509, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_getm_notBefore"] - pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_it"] + pub static X509_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_getm_notAfter"] - pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_up_ref"] + pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_issuer_name"] - pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_chain_up_ref"] + pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_subject_name"] - pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_dup"] + pub fn X509_dup(x509: *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_pubkey"] - pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_free"] + pub fn X509_free(x509: *mut X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_delete_ext"] - pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509"] + pub fn d2i_X509( + out: *mut *mut X509, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_add_ext"] - pub fn X509_add_ext( - x: *mut X509, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_parse_from_buffer"] + pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_sign"] - pub fn X509_sign( - x509: *mut X509, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509"] + pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_sign_ctx"] - pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_version"] + pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_re_X509_tbs"] - pub fn i2d_re_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_serialNumber"] + pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_signature_algo"] - pub fn X509_set1_signature_algo( - x509: *mut X509, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_notBefore"] + pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_signature_value"] - pub fn X509_set1_signature_value( - x509: *mut X509, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_notAfter"] + pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_AUX"] - pub fn i2d_X509_AUX( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_issuer_name"] + pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_AUX"] - pub fn d2i_X509_AUX( - x509: *mut *mut X509, - inp: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_subject_name"] + pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_alias_set1"] - pub fn X509_alias_set1( - x509: *mut X509, - name: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_X509_PUBKEY"] + pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_keyid_set1"] - pub fn X509_keyid_set1( - x509: *mut X509, - id: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_pubkey"] + pub fn X509_get0_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_alias_get0"] - pub fn X509_alias_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_pubkey"] + pub fn X509_get_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_keyid_get0"] - pub fn X509_keyid_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_pubkey_bitstr"] + pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; } -pub type sk_X509_CRL_free_func = ::std::option::Option; -pub type sk_X509_CRL_copy_func = - ::std::option::Option *mut X509_CRL>; -pub type sk_X509_CRL_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_CRL, - arg2: *mut *const X509_CRL, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_CRL_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_CRL, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_it"] - pub static X509_CRL_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_check_private_key"] + pub fn X509_check_private_key( + x509: *const X509, + pkey: *const EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_up_ref"] - pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_uids"] + pub fn X509_get0_uids( + x509: *const X509, + out_issuer_uid: *mut *const ASN1_BIT_STRING, + out_subject_uid: *mut *const ASN1_BIT_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_dup"] - pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_extension_flags"] + pub fn X509_get_extension_flags(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_free"] - pub fn X509_CRL_free(crl: *mut X509_CRL); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_pathlen"] + pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_CRL"] - pub fn d2i_X509_CRL( - out: *mut *mut X509_CRL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_key_usage"] + pub fn X509_get_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_CRL"] - pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_extended_key_usage"] + pub fn X509_get_extended_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_version"] - pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_subject_key_id"] + pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_lastUpdate"] - pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_authority_key_id"] + pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_NAME { + _unused: [u8; 0], } +pub type sk_GENERAL_NAME_free_func = + ::std::option::Option; +pub type sk_GENERAL_NAME_copy_func = + ::std::option::Option *mut GENERAL_NAME>; +pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_NAME, + arg2: *const *const GENERAL_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type GENERAL_NAMES = stack_st_GENERAL_NAME; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_nextUpdate"] - pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_authority_issuer"] + pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_issuer"] - pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_authority_serial"] + pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_REVOKED { +pub struct stack_st_X509_EXTENSION { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_REVOKED"] - pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_extensions"] - pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_extensions"] + pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_count"] - pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_count"] + pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_by_NID"] - pub fn X509_CRL_get_ext_by_NID( - x: *const X509_CRL, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_by_NID"] + pub fn X509_get_ext_by_NID( + x: *const X509, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_by_OBJ"] - pub fn X509_CRL_get_ext_by_OBJ( - x: *const X509_CRL, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_by_OBJ"] + pub fn X509_get_ext_by_OBJ( + x: *const X509, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_by_critical"] - pub fn X509_CRL_get_ext_by_critical( - x: *const X509_CRL, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_by_critical"] + pub fn X509_get_ext_by_critical( + x: *const X509, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext"] - pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext"] + pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_signature"] - pub fn X509_CRL_get0_signature( - crl: *const X509_CRL, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_d2i"] + pub fn X509_get_ext_d2i( + x509: *const X509, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_signature_nid"] - pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_tbs_sigalg"] + pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_CRL_tbs"] - pub fn i2d_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_signature_info"] + pub fn X509_get_signature_info( + x509: *mut X509, + digest_nid: *mut ::std::os::raw::c_int, + pubkey_nid: *mut ::std::os::raw::c_int, + sec_bits: *mut ::std::os::raw::c_int, + flags: *mut u32, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_new"] - pub fn X509_CRL_new() -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_signature"] + pub fn X509_get0_signature( + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + x509: *const X509, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set_version"] - pub fn X509_CRL_set_version( - crl: *mut X509_CRL, - version: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_signature_nid"] + pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set_issuer_name"] - pub fn X509_CRL_set_issuer_name( - crl: *mut X509_CRL, - name: *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_tbs"] + pub fn i2d_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_lastUpdate"] - pub fn X509_CRL_set1_lastUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_verify"] + pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_nextUpdate"] - pub fn X509_CRL_set1_nextUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get1_email"] + pub fn X509_get1_email(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_delete_ext"] - pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) - -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get1_ocsp"] + pub fn X509_get1_ocsp(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_add_ext"] - pub fn X509_CRL_add_ext( - x: *mut X509_CRL, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_email_free"] + pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_sign"] - pub fn X509_CRL_sign( - crl: *mut X509_CRL, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_new"] + pub fn X509_new() -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_sign_ctx"] - pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_version"] + pub fn X509_set_version( + x509: *mut X509, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_re_X509_CRL_tbs"] - pub fn i2d_re_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_serialNumber"] + pub fn X509_set_serialNumber( + x509: *mut X509, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_signature_algo"] - pub fn X509_CRL_set1_signature_algo( - crl: *mut X509_CRL, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_notBefore"] + pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_signature_value"] - pub fn X509_CRL_set1_signature_value( - crl: *mut X509_CRL, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_notAfter"] + pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_it"] - pub static X509_REQ_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_getm_notBefore"] + pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_dup"] - pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_getm_notAfter"] + pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_free"] - pub fn X509_REQ_free(req: *mut X509_REQ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_issuer_name"] + pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_REQ"] - pub fn d2i_X509_REQ( - out: *mut *mut X509_REQ, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_subject_name"] + pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_REQ"] - pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_pubkey"] + pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_version"] - pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_delete_ext"] + pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_subject_name"] - pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add_ext"] + pub fn X509_add_ext( + x: *mut X509, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_pubkey"] - pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add1_ext_i2d"] + pub fn X509_add1_ext_i2d( + x: *mut X509, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get0_signature"] - pub fn X509_REQ_get0_signature( - req: *const X509_REQ, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_sign"] + pub fn X509_sign( + x509: *mut X509, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_signature_nid"] - pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_sign_ctx"] + pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_new"] - pub fn X509_REQ_new() -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_re_X509_tbs"] + pub fn i2d_re_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set_version"] - pub fn X509_REQ_set_version( - req: *mut X509_REQ, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_signature_algo"] + pub fn X509_set1_signature_algo( + x509: *mut X509, + algo: *const X509_ALGOR, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set_subject_name"] - pub fn X509_REQ_set_subject_name( - req: *mut X509_REQ, - name: *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_signature_value"] + pub fn X509_set1_signature_value( + x509: *mut X509, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set_pubkey"] - pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_AUX"] + pub fn i2d_X509_AUX(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_sign"] - pub fn X509_REQ_sign( - req: *mut X509_REQ, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_AUX"] + pub fn d2i_X509_AUX( + x509: *mut *mut X509, + inp: *mut *const u8, + length: ::std::os::raw::c_long, + ) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_alias_set1"] + pub fn X509_alias_set1( + x509: *mut X509, + name: *const u8, + len: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_sign_ctx"] - pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_keyid_set1"] + pub fn X509_keyid_set1( + x509: *mut X509, + id: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_re_X509_REQ_tbs"] - pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_alias_get0"] + pub fn X509_alias_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set1_signature_algo"] - pub fn X509_REQ_set1_signature_algo( - req: *mut X509_REQ, - algo: *const X509_ALGOR, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_keyid_get0"] + pub fn X509_keyid_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add1_trust_object"] + pub fn X509_add1_trust_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set1_signature_value"] - pub fn X509_REQ_set1_signature_value( - req: *mut X509_REQ, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add1_reject_object"] + pub fn X509_add1_reject_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME_ENTRY { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_trust_clear"] + pub fn X509_trust_clear(x509: *mut X509); } -pub type sk_X509_NAME_ENTRY_free_func = - ::std::option::Option; -pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, ->; -pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_reject_clear"] + pub fn X509_reject_clear(x509: *mut X509); +} +pub type sk_X509_CRL_free_func = ::std::option::Option; +pub type sk_X509_CRL_copy_func = + ::std::option::Option *mut X509_CRL>; +pub type sk_X509_CRL_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME_ENTRY, - arg2: *mut *const X509_NAME_ENTRY, + arg1: *const *const X509_CRL, + arg2: *const *const X509_CRL, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< +pub type sk_X509_CRL_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME_ENTRY, + arg1: *mut X509_CRL, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME { +pub struct stack_st_X509_REVOKED { _unused: [u8; 0], } -pub type sk_X509_NAME_free_func = ::std::option::Option; -pub type sk_X509_NAME_copy_func = - ::std::option::Option *mut X509_NAME>; -pub type sk_X509_NAME_cmp_func = ::std::option::Option< +pub type sk_X509_REVOKED_free_func = + ::std::option::Option; +pub type sk_X509_REVOKED_copy_func = + ::std::option::Option *mut X509_REVOKED>; +pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME, - arg2: *mut *const X509_NAME, + arg1: *const *const X509_REVOKED, + arg2: *const *const X509_REVOKED, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_delete_if_func = ::std::option::Option< +pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME, + arg1: *mut X509_REVOKED, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_it"] - pub static X509_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_it"] + pub static X509_CRL_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_new"] - pub fn X509_NAME_new() -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_up_ref"] + pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_free"] - pub fn X509_NAME_free(name: *mut X509_NAME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_dup"] + pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_NAME"] - pub fn d2i_X509_NAME( - out: *mut *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_free"] + pub fn X509_CRL_free(crl: *mut X509_CRL); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_CRL"] + pub fn d2i_X509_CRL( + out: *mut *mut X509_CRL, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_NAME; + ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_NAME"] - pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_CRL"] + pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_dup"] - pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_version"] + pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get0_der"] - pub fn X509_NAME_get0_der( - name: *mut X509_NAME, - out_der: *mut *const u8, - out_der_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_lastUpdate"] + pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_set"] - pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_nextUpdate"] + pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_entry_count"] - pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_issuer"] + pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_index_by_NID"] - pub fn X509_NAME_get_index_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_by_serial"] + pub fn X509_CRL_get0_by_serial( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_index_by_OBJ"] - pub fn X509_NAME_get_index_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_by_cert"] + pub fn X509_CRL_get0_by_cert( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + x509: *mut X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_entry"] - pub fn X509_NAME_get_entry( - name: *const X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_REVOKED"] + pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_delete_entry"] - pub fn X509_NAME_delete_entry( - name: *mut X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_extensions"] + pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry"] - pub fn X509_NAME_add_entry( - name: *mut X509_NAME, - entry: *const X509_NAME_ENTRY, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_count"] + pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry_by_OBJ"] - pub fn X509_NAME_add_entry_by_OBJ( - name: *mut X509_NAME, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_by_NID"] + pub fn X509_CRL_get_ext_by_NID( + x: *const X509_CRL, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry_by_NID"] - pub fn X509_NAME_add_entry_by_NID( - name: *mut X509_NAME, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_by_OBJ"] + pub fn X509_CRL_get_ext_by_OBJ( + x: *const X509_CRL, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry_by_txt"] - pub fn X509_NAME_add_entry_by_txt( - name: *mut X509_NAME, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_by_critical"] + pub fn X509_CRL_get_ext_by_critical( + x: *const X509_CRL, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_it"] - pub static X509_NAME_ENTRY_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext"] + pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_new"] - pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_d2i"] + pub fn X509_CRL_get_ext_d2i( + crl: *const X509_CRL, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_free"] - pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_signature"] + pub fn X509_CRL_get0_signature( + crl: *const X509_CRL, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_NAME_ENTRY"] - pub fn d2i_X509_NAME_ENTRY( - out: *mut *mut X509_NAME_ENTRY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_signature_nid"] + pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_NAME_ENTRY"] - pub fn i2d_X509_NAME_ENTRY( - in_: *const X509_NAME_ENTRY, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_CRL_tbs"] + pub fn i2d_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_dup"] - pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_verify"] + pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_object"] - pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_new"] + pub fn X509_CRL_new() -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_object"] - pub fn X509_NAME_ENTRY_set_object( - entry: *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set_version"] + pub fn X509_CRL_set_version( + crl: *mut X509_CRL, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_data"] - pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set_issuer_name"] + pub fn X509_CRL_set_issuer_name( + crl: *mut X509_CRL, + name: *mut X509_NAME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_data"] - pub fn X509_NAME_ENTRY_set_data( - entry: *mut X509_NAME_ENTRY, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_lastUpdate"] + pub fn X509_CRL_set1_lastUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_set"] - pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_nextUpdate"] + pub fn X509_CRL_set1_nextUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_OBJ"] - pub fn X509_NAME_ENTRY_create_by_OBJ( - out: *mut *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_add0_revoked"] + pub fn X509_CRL_add0_revoked( + crl: *mut X509_CRL, + rev: *mut X509_REVOKED, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_NID"] - pub fn X509_NAME_ENTRY_create_by_NID( - out: *mut *mut X509_NAME_ENTRY, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_sort"] + pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_txt"] - pub fn X509_NAME_ENTRY_create_by_txt( - out: *mut *mut X509_NAME_ENTRY, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_delete_ext"] + pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) + -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_it"] - pub static X509_EXTENSION_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_add_ext"] + pub fn X509_CRL_add_ext( + x: *mut X509_CRL, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_new"] - pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_add1_ext_i2d"] + pub fn X509_CRL_add1_ext_i2d( + x: *mut X509_CRL, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_free"] - pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_sign"] + pub fn X509_CRL_sign( + crl: *mut X509_CRL, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_EXTENSION"] - pub fn d2i_X509_EXTENSION( - out: *mut *mut X509_EXTENSION, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_sign_ctx"] + pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_EXTENSION"] - pub fn i2d_X509_EXTENSION( - alg: *const X509_EXTENSION, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_re_X509_CRL_tbs"] + pub fn i2d_re_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_dup"] - pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_signature_algo"] + pub fn X509_CRL_set1_signature_algo( + crl: *mut X509_CRL, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_create_by_NID"] - pub fn X509_EXTENSION_create_by_NID( - ex: *mut *mut X509_EXTENSION, - nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_signature_value"] + pub fn X509_CRL_set1_signature_value( + crl: *mut X509_CRL, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_create_by_OBJ"] - pub fn X509_EXTENSION_create_by_OBJ( - ex: *mut *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_http_nbio"] + pub fn X509_CRL_http_nbio( + rctx: *mut OCSP_REQ_CTX, + pcrl: *mut *mut X509_CRL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_it"] + pub static X509_REVOKED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_new"] + pub fn X509_REVOKED_new() -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_get_object"] - pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_free"] + pub fn X509_REVOKED_free(rev: *mut X509_REVOKED); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_get_data"] - pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_REVOKED"] + pub fn d2i_X509_REVOKED( + out: *mut *mut X509_REVOKED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_get_critical"] - pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_REVOKED"] + pub fn i2d_X509_REVOKED(alg: *const X509_REVOKED, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_set_object"] - pub fn X509_EXTENSION_set_object( - ex: *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_dup"] + pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_set_critical"] - pub fn X509_EXTENSION_set_critical( - ex: *mut X509_EXTENSION, - crit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get0_serialNumber"] + pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_set_data"] - pub fn X509_EXTENSION_set_data( - ex: *mut X509_EXTENSION, - data: *const ASN1_OCTET_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_set_serialNumber"] + pub fn X509_REVOKED_set_serialNumber( + revoked: *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } -pub type sk_X509_EXTENSION_free_func = - ::std::option::Option; -pub type sk_X509_EXTENSION_copy_func = - ::std::option::Option *mut X509_EXTENSION>; -pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_EXTENSION, - arg2: *mut *const X509_EXTENSION, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_EXTENSION, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSIONS_it"] - pub static X509_EXTENSIONS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get0_revocationDate"] + pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_EXTENSIONS"] - pub fn d2i_X509_EXTENSIONS( - out: *mut *mut X509_EXTENSIONS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSIONS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_set_revocationDate"] + pub fn X509_REVOKED_set_revocationDate( + revoked: *mut X509_REVOKED, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_EXTENSIONS"] - pub fn i2d_X509_EXTENSIONS( - alg: *const X509_EXTENSIONS, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get0_extensions"] + pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_count"] - pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_count"] + pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_by_NID"] - pub fn X509v3_get_ext_by_NID( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_NID"] + pub fn X509_REVOKED_get_ext_by_NID( + x: *const X509_REVOKED, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_by_OBJ"] - pub fn X509v3_get_ext_by_OBJ( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_OBJ"] + pub fn X509_REVOKED_get_ext_by_OBJ( + x: *const X509_REVOKED, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_by_critical"] - pub fn X509v3_get_ext_by_critical( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_critical"] + pub fn X509_REVOKED_get_ext_by_critical( + x: *const X509_REVOKED, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext"] - pub fn X509v3_get_ext( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext"] + pub fn X509_REVOKED_get_ext( + x: *const X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_delete_ext"] - pub fn X509v3_delete_ext( - x: *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_delete_ext"] + pub fn X509_REVOKED_delete_ext( + x: *mut X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_add_ext"] - pub fn X509v3_add_ext( - x: *mut *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_add_ext"] + pub fn X509_REVOKED_add_ext( + x: *mut X509_REVOKED, ex: *const X509_EXTENSION, loc: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_EXTENSION; + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ALGOR { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_d2i"] + pub fn X509_REVOKED_get_ext_d2i( + revoked: *const X509_REVOKED, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -pub type sk_X509_ALGOR_free_func = - ::std::option::Option; -pub type sk_X509_ALGOR_copy_func = - ::std::option::Option *mut X509_ALGOR>; -pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ALGOR, - arg2: *mut *const X509_ALGOR, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ALGOR, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_it"] - pub static X509_ALGOR_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_add1_ext_i2d"] + pub fn X509_REVOKED_add1_ext_i2d( + x: *mut X509_REVOKED, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_new"] - pub fn X509_ALGOR_new() -> *mut X509_ALGOR; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_it"] + pub static X509_REQ_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_dup"] - pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_dup"] + pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_free"] - pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_free"] + pub fn X509_REQ_free(req: *mut X509_REQ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_ALGOR"] - pub fn d2i_X509_ALGOR( - out: *mut *mut X509_ALGOR, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_REQ"] + pub fn d2i_X509_REQ( + out: *mut *mut X509_REQ, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_ALGOR; + ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_ALGOR"] - pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_REQ"] + pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_set0"] - pub fn X509_ALGOR_set0( - alg: *mut X509_ALGOR, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_version"] + pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_get0"] - pub fn X509_ALGOR_get0( - out_obj: *mut *const ASN1_OBJECT, - out_param_type: *mut ::std::os::raw::c_int, - out_param_value: *mut *const ::std::os::raw::c_void, - alg: *const X509_ALGOR, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_subject_name"] + pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_set_md"] - pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get0_pubkey"] + pub fn X509_REQ_get0_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_cmp"] - pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_pubkey"] + pub fn X509_REQ_get_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_check_private_key"] + pub fn X509_REQ_check_private_key( + req: *const X509_REQ, + pkey: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_attr_count"] + pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_attr"] + pub fn X509_REQ_get_attr( + req: *const X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_attr_by_NID"] + pub fn X509_REQ_get_attr_by_NID( + req: *const X509_REQ, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_attr_by_OBJ"] + pub fn X509_REQ_get_attr_by_OBJ( + req: *const X509_REQ, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_extension_nid"] + pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_extensions"] + pub fn X509_REQ_get_extensions(req: *const X509_REQ) -> *mut stack_st_X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get0_signature"] + pub fn X509_REQ_get0_signature( + req: *const X509_REQ, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_signature_nid"] + pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_verify"] + pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get1_email"] + pub fn X509_REQ_get1_email(req: *const X509_REQ) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_new"] + pub fn X509_REQ_new() -> *mut X509_REQ; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set_version"] + pub fn X509_REQ_set_version( + req: *mut X509_REQ, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set_subject_name"] + pub fn X509_REQ_set_subject_name( + req: *mut X509_REQ, + name: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set_pubkey"] + pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_delete_attr"] + pub fn X509_REQ_delete_attr( + req: *mut X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr"] + pub fn X509_REQ_add1_attr( + req: *mut X509_REQ, + attr: *const X509_ATTRIBUTE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_OBJ"] + pub fn X509_REQ_add1_attr_by_OBJ( + req: *mut X509_REQ, + obj: *const ASN1_OBJECT, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_NID"] + pub fn X509_REQ_add1_attr_by_NID( + req: *mut X509_REQ, + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_txt"] + pub fn X509_REQ_add1_attr_by_txt( + req: *mut X509_REQ, + attrname: *const ::std::os::raw::c_char, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_add_extensions_nid"] + pub fn X509_REQ_add_extensions_nid( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add_extensions"] + pub fn X509_REQ_add_extensions( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_sign"] + pub fn X509_REQ_sign( + req: *mut X509_REQ, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_sign_ctx"] + pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_re_X509_REQ_tbs"] + pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set1_signature_algo"] + pub fn X509_REQ_set1_signature_algo( + req: *mut X509_REQ, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_set1_signature_value"] + pub fn X509_REQ_set1_signature_value( + req: *mut X509_REQ, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME_ENTRY { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; +pub type sk_X509_NAME_ENTRY_free_func = + ::std::option::Option; +pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +>; +pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME_ENTRY, + arg2: *const *const X509_NAME_ENTRY, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME_ENTRY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME { + _unused: [u8; 0], } +pub type sk_X509_NAME_free_func = ::std::option::Option; +pub type sk_X509_NAME_copy_func = + ::std::option::Option *mut X509_NAME>; +pub type sk_X509_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME, + arg2: *const *const X509_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_it"] + pub static X509_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_new"] + pub fn X509_NAME_new() -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_free"] + pub fn X509_NAME_free(name: *mut X509_NAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_NAME"] + pub fn d2i_X509_NAME( + out: *mut *mut X509_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_NAME"] + pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_dup"] + pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_cmp"] + pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get0_der"] + pub fn X509_NAME_get0_der( + name: *mut X509_NAME, + out_der: *mut *const u8, + out_der_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_set"] + pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_entry_count"] + pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get_index_by_NID"] + pub fn X509_NAME_get_index_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_get_index_by_OBJ"] + pub fn X509_NAME_get_index_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_get_entry"] + pub fn X509_NAME_get_entry( + name: *const X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_delete_entry"] + pub fn X509_NAME_delete_entry( + name: *mut X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_add_entry"] + pub fn X509_NAME_add_entry( + name: *mut X509_NAME, + entry: *const X509_NAME_ENTRY, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_add_entry_by_OBJ"] + pub fn X509_NAME_add_entry_by_OBJ( + name: *mut X509_NAME, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_NID"] + pub fn X509_NAME_add_entry_by_NID( + name: *mut X509_NAME, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_txt"] + pub fn X509_NAME_add_entry_by_txt( + name: *mut X509_NAME, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_it"] + pub static X509_NAME_ENTRY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_new"] + pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_free"] + pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_NAME_ENTRY"] + pub fn d2i_X509_NAME_ENTRY( + out: *mut *mut X509_NAME_ENTRY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_NAME_ENTRY"] + pub fn i2d_X509_NAME_ENTRY( + in_: *const X509_NAME_ENTRY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_dup"] + pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_object"] + pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set_object"] + pub fn X509_NAME_ENTRY_set_object( + entry: *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_get_data"] + pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_data"] + pub fn X509_NAME_ENTRY_set_data( + entry: *mut X509_NAME_ENTRY, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set"] + pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_OBJ"] + pub fn X509_NAME_ENTRY_create_by_OBJ( + out: *mut *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_NID"] + pub fn X509_NAME_ENTRY_create_by_NID( + out: *mut *mut X509_NAME_ENTRY, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_txt"] + pub fn X509_NAME_ENTRY_create_by_txt( + out: *mut *mut X509_NAME_ENTRY, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_it"] + pub static X509_PUBKEY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_new"] + pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_free"] + pub fn X509_PUBKEY_free(key: *mut X509_PUBKEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_PUBKEY"] + pub fn d2i_X509_PUBKEY( + out: *mut *mut X509_PUBKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_PUBKEY"] + pub fn i2d_X509_PUBKEY(key: *const X509_PUBKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set"] + pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0"] + pub fn X509_PUBKEY_get0(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get"] + pub fn X509_PUBKEY_get(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set0_param"] + pub fn X509_PUBKEY_set0_param( + pub_: *mut X509_PUBKEY, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + key: *mut u8, + key_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_param"] + pub fn X509_PUBKEY_get0_param( + out_obj: *mut *mut ASN1_OBJECT, + out_key: *mut *const u8, + out_key_len: *mut ::std::os::raw::c_int, + out_alg: *mut *mut X509_ALGOR, + pub_: *mut X509_PUBKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_public_key"] + pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_it"] + pub static X509_EXTENSION_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_new"] + pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_free"] + pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSION"] + pub fn d2i_X509_EXTENSION( + out: *mut *mut X509_EXTENSION, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_EXTENSION"] + pub fn i2d_X509_EXTENSION( + ex: *const X509_EXTENSION, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_dup"] + pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_NID"] + pub fn X509_EXTENSION_create_by_NID( + ex: *mut *mut X509_EXTENSION, + nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_OBJ"] + pub fn X509_EXTENSION_create_by_OBJ( + ex: *mut *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_object"] + pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_data"] + pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_critical"] + pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_set_object"] + pub fn X509_EXTENSION_set_object( + ex: *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_set_critical"] + pub fn X509_EXTENSION_set_critical( + ex: *mut X509_EXTENSION, + crit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_set_data"] + pub fn X509_EXTENSION_set_data( + ex: *mut X509_EXTENSION, + data: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } +pub type sk_X509_EXTENSION_free_func = + ::std::option::Option; +pub type sk_X509_EXTENSION_copy_func = + ::std::option::Option *mut X509_EXTENSION>; +pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_EXTENSION, + arg2: *const *const X509_EXTENSION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_EXTENSION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSIONS_it"] + pub static X509_EXTENSIONS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSIONS"] + pub fn d2i_X509_EXTENSIONS( + out: *mut *mut X509_EXTENSIONS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSIONS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_EXTENSIONS"] + pub fn i2d_X509_EXTENSIONS( + alg: *const X509_EXTENSIONS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_count"] + pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_by_NID"] + pub fn X509v3_get_ext_by_NID( + x: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_by_OBJ"] + pub fn X509v3_get_ext_by_OBJ( + x: *const stack_st_X509_EXTENSION, obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_by_critical"] + pub fn X509v3_get_ext_by_critical( + x: *const stack_st_X509_EXTENSION, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::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, -} -#[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) - ) - ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ATTRIBUTE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext"] + pub fn X509v3_get_ext( + x: *const stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -pub type sk_X509_ATTRIBUTE_free_func = - ::std::option::Option; -pub type sk_X509_ATTRIBUTE_copy_func = - ::std::option::Option *mut X509_ATTRIBUTE>; -pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ATTRIBUTE, - arg2: *mut *const X509_ATTRIBUTE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ATTRIBUTE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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_fips_0_13_0_X509v3_delete_ext"] + pub fn X509v3_delete_ext( + x: *mut stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAME { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_add_ext"] + pub fn X509v3_add_ext( + x: *mut *mut stack_st_X509_EXTENSION, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut stack_st_X509_EXTENSION; } #[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: *mut x509_trust_st, - 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, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct otherName_st { + pub type_id: *mut ASN1_OBJECT, + pub value: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_otherName_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)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(otherName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) + concat!("Alignment of ", stringify!(otherName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_id) 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!(otherName_st), "::", - stringify!(flags) + stringify!(type_id) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) 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!(otherName_st), "::", - stringify!(arg2) + stringify!(value) ) ); } -impl Default for x509_trust_st { +impl Default for otherName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20846,156 +20919,49 @@ impl Default for x509_trust_st { } } } -#[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: *mut *const X509_TRUST, - arg2: *mut *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, ->; -pub type sk_X509_REVOKED_free_func = - ::std::option::Option; -pub type sk_X509_REVOKED_copy_func = - ::std::option::Option *mut X509_REVOKED>; -pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_REVOKED, - arg2: *mut *const X509_REVOKED, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_REVOKED, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAMES { - _unused: [u8; 0], -} +pub type OTHERNAME = otherName_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub version: ::std::os::raw::c_int, - pub enc_algor: *mut X509_ALGOR, - pub enc_pkey: *mut ASN1_OCTET_STRING, - pub dec_pkey: *mut EVP_PKEY, - pub key_length: ::std::os::raw::c_int, - pub key_data: *mut ::std::os::raw::c_char, - pub key_free: ::std::os::raw::c_int, - pub cipher: EVP_CIPHER_INFO, +pub struct EDIPartyName_st { + pub nameAssigner: *mut ASN1_STRING, + pub partyName: *mut ASN1_STRING, } #[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_EDIPartyName_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(private_key_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(EDIPartyName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(private_key_st)) + concat!("Alignment of ", stringify!(EDIPartyName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(version) + stringify!(nameAssigner) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_algor) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_length) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_data) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_free) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(cipher) + stringify!(partyName) ) ); } -impl Default for private_key_st { +impl Default for EDIPartyName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21004,1307 +20970,1066 @@ impl Default for private_key_st { } } } +pub type EDIPARTYNAME = EDIPartyName_st; #[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, +#[derive(Copy, Clone)] +pub struct GENERAL_NAME_st { + pub type_: ::std::os::raw::c_int, + pub d: GENERAL_NAME_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union GENERAL_NAME_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub otherName: *mut OTHERNAME, + pub rfc822Name: *mut ASN1_IA5STRING, + pub dNSName: *mut ASN1_IA5STRING, + pub x400Address: *mut ASN1_STRING, + pub directoryName: *mut X509_NAME, + pub ediPartyName: *mut EDIPARTYNAME, + pub uniformResourceIdentifier: *mut ASN1_IA5STRING, + pub iPAddress: *mut ASN1_OCTET_STRING, + pub registeredID: *mut ASN1_OBJECT, + pub ip: *mut ASN1_OCTET_STRING, + pub dirn: *mut X509_NAME, + pub ia5: *mut ASN1_IA5STRING, + pub rid: *mut ASN1_OBJECT, } #[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_GENERAL_NAME_st__bindgen_ty_1() { + 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)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) + concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x509) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(crl) + stringify!(otherName) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x_pkey) + stringify!(rfc822Name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_cipher) + stringify!(dNSName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_len) + stringify!(x400Address) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_data) + stringify!(directoryName) ) ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], -} -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: *mut *const X509_INFO, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).ediPartyName) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(pubkey) + stringify!(ediPartyName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(challenge) + stringify!(uniformResourceIdentifier) ) ); -} -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() - } - } -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(spkac) + stringify!(iPAddress) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(sig_algor) + stringify!(registeredID) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(signature) + stringify!(ip) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dirn) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ia5) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rid) ) ); } -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_fips_0_12_15_X509_get_pathlen"] - pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_verify"] - pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_verify"] - pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_verify"] - pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *mut NETSCAPE_SPKI) -> *mut EVP_PKEY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_ATTRIBUTE_dup"] - pub fn X509_ATTRIBUTE_dup(xa: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_dup"] - pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_st__bindgen_ty_1 { + 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_fips_0_12_15_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_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_fips_0_12_15_X509_PUBKEY_new"] - pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_new"] + pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_free"] - pub fn X509_PUBKEY_free(a: *mut X509_PUBKEY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_free"] + pub fn GENERAL_NAME_free(gen: *mut GENERAL_NAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_PUBKEY"] - pub fn d2i_X509_PUBKEY( - a: *mut *mut X509_PUBKEY, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_GENERAL_NAME"] + pub fn d2i_GENERAL_NAME( + out: *mut *mut GENERAL_NAME, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_PUBKEY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_PUBKEY"] - pub fn i2d_X509_PUBKEY( - a: *const X509_PUBKEY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_it"] - pub static X509_PUBKEY_it: ASN1_ITEM; + ) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_set"] - pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_GENERAL_NAME"] + pub fn i2d_GENERAL_NAME(in_: *mut GENERAL_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_get"] - pub fn X509_PUBKEY_get(key: *mut X509_PUBKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_dup"] + pub fn GENERAL_NAME_dup(gen: *mut GENERAL_NAME) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAMES_new"] + pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_SIG_free"] - pub fn X509_SIG_free(a: *mut X509_SIG); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAMES_free"] + pub fn GENERAL_NAMES_free(gens: *mut GENERAL_NAMES); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - a: *mut *mut X509_SIG, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_GENERAL_NAMES"] + pub fn d2i_GENERAL_NAMES( + out: *mut *mut GENERAL_NAMES, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_SIG"] - pub fn i2d_X509_SIG( - a: *const X509_SIG, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + ) -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_new"] - pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_GENERAL_NAMES"] + pub fn i2d_GENERAL_NAMES(in_: *mut GENERAL_NAMES, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_free"] - pub fn X509_ATTRIBUTE_free(a: *mut X509_ATTRIBUTE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OTHERNAME_new"] + pub fn OTHERNAME_new() -> *mut OTHERNAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_ATTRIBUTE"] - pub fn d2i_X509_ATTRIBUTE( - a: *mut *mut X509_ATTRIBUTE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OTHERNAME_free"] + pub fn OTHERNAME_free(name: *mut OTHERNAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_ATTRIBUTE"] - pub fn i2d_X509_ATTRIBUTE( - a: *const X509_ATTRIBUTE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EDIPARTYNAME_new"] + pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_it"] - pub static X509_ATTRIBUTE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EDIPARTYNAME_free"] + pub fn EDIPARTYNAME_free(name: *mut EDIPARTYNAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_create"] - pub fn X509_ATTRIBUTE_create( - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_set0_value"] + pub fn GENERAL_NAME_set0_value( + gen: *mut GENERAL_NAME, + type_: ::std::os::raw::c_int, value: *mut ::std::os::raw::c_void, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_add1_trust_object"] - pub fn X509_add1_trust_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_add1_reject_object"] - pub fn X509_add1_reject_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_trust_clear"] - pub fn X509_trust_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_reject_clear"] - pub fn X509_reject_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_X509_REVOKED_new"] - pub fn X509_REVOKED_new() -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_free"] - pub fn X509_REVOKED_free(a: *mut X509_REVOKED); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_REVOKED"] - pub fn d2i_X509_REVOKED( - a: *mut *mut X509_REVOKED, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_REVOKED"] - pub fn i2d_X509_REVOKED( - a: *const X509_REVOKED, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_it"] - pub static X509_REVOKED_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_get0_value"] + pub fn GENERAL_NAME_get0_value( + gen: *const GENERAL_NAME, + out_type: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_add0_revoked"] - pub fn X509_CRL_add0_revoked( - crl: *mut X509_CRL, - rev: *mut X509_REVOKED, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_set0_othername"] + pub fn GENERAL_NAME_set0_othername( + gen: *mut GENERAL_NAME, + oid: *mut ASN1_OBJECT, + value: *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_by_serial"] - pub fn X509_CRL_get0_by_serial( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - serial: *mut ASN1_INTEGER, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_get0_otherName"] + pub fn GENERAL_NAME_get0_otherName( + gen: *const GENERAL_NAME, + out_oid: *mut *mut ASN1_OBJECT, + out_value: *mut *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_by_cert"] - pub fn X509_CRL_get0_by_cert( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - x: *mut X509, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ALGOR { + _unused: [u8; 0], } +pub type sk_X509_ALGOR_free_func = + ::std::option::Option; +pub type sk_X509_ALGOR_copy_func = + ::std::option::Option *mut X509_ALGOR>; +pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ALGOR, + arg2: *const *const X509_ALGOR, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ALGOR, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PKEY_new"] - pub fn X509_PKEY_new() -> *mut X509_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_it"] + pub static X509_ALGOR_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PKEY_free"] - pub fn X509_PKEY_free(a: *mut X509_PKEY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_new"] + pub fn X509_ALGOR_new() -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_dup"] + pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(a: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_free"] + pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - a: *mut *mut NETSCAPE_SPKI, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_ALGOR"] + pub fn d2i_X509_ALGOR( + out: *mut *mut X509_ALGOR, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - a: *const NETSCAPE_SPKI, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(a: *mut NETSCAPE_SPKAC); + ) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - a: *mut *mut NETSCAPE_SPKAC, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_ALGOR"] + pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - a: *const NETSCAPE_SPKAC, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_set0"] + pub fn X509_ALGOR_set0( + alg: *mut X509_ALGOR, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_INFO_new"] - pub fn X509_INFO_new() -> *mut X509_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_INFO_free"] - pub fn X509_INFO_free(a: *mut X509_INFO); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - a: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_get0"] + pub fn X509_ALGOR_get0( + out_obj: *mut *const ASN1_OBJECT, + out_param_type: *mut ::std::os::raw::c_int, + out_param_value: *mut *const ::std::os::raw::c_void, + alg: *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_set_md"] + pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_cmp"] + pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ATTRIBUTE { + _unused: [u8; 0], } +pub type sk_X509_ATTRIBUTE_free_func = + ::std::option::Option; +pub type sk_X509_ATTRIBUTE_copy_func = + ::std::option::Option *mut X509_ATTRIBUTE>; +pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ATTRIBUTE, + arg2: *const *const X509_ATTRIBUTE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ATTRIBUTE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_it"] + pub static X509_ATTRIBUTE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_new"] + pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_extension_nid"] - pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_dup"] + pub fn X509_ATTRIBUTE_dup(attr: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_extensions"] - pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_free"] + pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add_extensions_nid"] - pub fn X509_REQ_add_extensions_nid( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_ATTRIBUTE"] + pub fn d2i_X509_ATTRIBUTE( + out: *mut *mut X509_ATTRIBUTE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add_extensions"] - pub fn X509_REQ_add_extensions( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_ATTRIBUTE"] + pub fn i2d_X509_ATTRIBUTE( + alg: *const X509_ATTRIBUTE, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr_count"] - pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create"] + pub fn X509_ATTRIBUTE_create( + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr_by_NID"] - pub fn X509_REQ_get_attr_by_NID( - req: *const X509_REQ, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_NID"] + pub fn X509_ATTRIBUTE_create_by_NID( + attr: *mut *mut X509_ATTRIBUTE, nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr_by_OBJ"] - pub fn X509_REQ_get_attr_by_OBJ( - req: *const X509_REQ, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_OBJ"] + pub fn X509_ATTRIBUTE_create_by_OBJ( + attr: *mut *mut X509_ATTRIBUTE, obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr"] - pub fn X509_REQ_get_attr( - req: *const X509_REQ, - loc: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_delete_attr"] - pub fn X509_REQ_delete_attr( - req: *mut X509_REQ, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_txt"] + pub fn X509_ATTRIBUTE_create_by_txt( + attr: *mut *mut X509_ATTRIBUTE, + attrname: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr"] - pub fn X509_REQ_add1_attr( - req: *mut X509_REQ, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_object"] + pub fn X509_ATTRIBUTE_set1_object( attr: *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_OBJ"] - pub fn X509_REQ_add1_attr_by_OBJ( - req: *mut X509_REQ, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_data"] + pub fn X509_ATTRIBUTE_set1_data( + attr: *mut X509_ATTRIBUTE, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, + data: *const ::std::os::raw::c_void, len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_NID"] - pub fn X509_REQ_add1_attr_by_NID( - req: *mut X509_REQ, - nid: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_data"] + pub fn X509_ATTRIBUTE_get0_data( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + unused: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_txt"] - pub fn X509_REQ_add1_attr_by_txt( - req: *mut X509_REQ, - attrname: *const ::std::os::raw::c_char, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_count"] + pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_sort"] - pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_object"] + pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get0_serialNumber"] - pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_type"] + pub fn X509_ATTRIBUTE_get0_type( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_set_serialNumber"] - pub fn X509_REVOKED_set_serialNumber( - revoked: *mut X509_REVOKED, - serial: *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get0_revocationDate"] - pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_set_revocationDate"] - pub fn X509_REVOKED_set_revocationDate( - revoked: *mut X509_REVOKED, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get0_extensions"] - pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_diff"] - pub fn X509_CRL_diff( - base: *mut X509_CRL, - newer: *mut X509_CRL, - skey: *mut EVP_PKEY, - md: *const EVP_MD, - flags: ::std::os::raw::c_uint, - ) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_check_private_key"] - pub fn X509_REQ_check_private_key( - x509: *mut X509_REQ, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_check_private_key"] - pub fn X509_check_private_key(x509: *mut X509, pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_cmp"] - pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_hash"] - pub fn X509_NAME_hash(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - bp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_print_fp"] - pub fn X509_print_fp(bp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(bp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(bp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_get_ext_d2i"] - pub fn X509_get_ext_d2i( - x509: *const X509, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_add1_ext_i2d"] - pub fn X509_add1_ext_i2d( - x: *mut X509, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_get_ext_d2i"] - pub fn X509_CRL_get_ext_d2i( - crl: *const X509_CRL, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_add1_ext_i2d"] - pub fn X509_CRL_add1_ext_i2d( - x: *mut X509_CRL, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get_ext_count"] - pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_NID"] - pub fn X509_REVOKED_get_ext_by_NID( - x: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_OBJ"] - pub fn X509_REVOKED_get_ext_by_OBJ( - x: *const X509_REVOKED, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_critical"] - pub fn X509_REVOKED_get_ext_by_critical( - x: *const X509_REVOKED, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext"] - pub fn X509_REVOKED_get_ext( - x: *const X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_delete_ext"] - pub fn X509_REVOKED_delete_ext( - x: *mut X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_add_ext"] - pub fn X509_REVOKED_add_ext( - x: *mut X509_REVOKED, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_d2i"] - pub fn X509_REVOKED_get_ext_d2i( - revoked: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_add1_ext_i2d"] - pub fn X509_REVOKED_add1_ext_i2d( - x: *mut X509_REVOKED, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_count"] - pub fn X509at_get_attr_count(x: *const stack_st_X509_ATTRIBUTE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509at_get_attr_by_NID"] - pub fn X509at_get_attr_by_NID( - x: *const stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_by_OBJ"] - pub fn X509at_get_attr_by_OBJ( - sk: *const stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr"] - pub fn X509at_get_attr( - x: *const stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_delete_attr"] - pub fn X509at_delete_attr( - x: *mut stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr"] - pub fn X509at_add1_attr( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attr: *mut X509_ATTRIBUTE, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_OBJ"] - pub fn X509at_add1_attr_by_OBJ( - x: *mut *mut stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_NID"] - pub fn X509at_add1_attr_by_NID( - x: *mut *mut stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_txt"] - pub fn X509at_add1_attr_by_txt( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_NID"] - pub fn X509_ATTRIBUTE_create_by_NID( - attr: *mut *mut X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_OBJ"] - pub fn X509_ATTRIBUTE_create_by_OBJ( - attr: *mut *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_txt"] - pub fn X509_ATTRIBUTE_create_by_txt( - attr: *mut *mut X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_object"] - pub fn X509_ATTRIBUTE_set1_object( - attr: *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_data"] - pub fn X509_ATTRIBUTE_set1_data( - attr: *mut X509_ATTRIBUTE, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_data"] - pub fn X509_ATTRIBUTE_get0_data( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - unused: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_count"] - pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_object"] - pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_type"] - pub fn X509_ATTRIBUTE_get0_type( - attr: *mut X509_ATTRIBUTE, - 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) + ) + ); +} +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_fips_0_12_15_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(a: *mut PKCS8_PRIV_KEY_INFO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - a: *mut *mut PKCS8_PRIV_KEY_INFO, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_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 PKCS8_PRIV_KEY_INFO; + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - a: *const PKCS8_PRIV_KEY_INFO, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_set0_param"] - pub fn X509_PUBKEY_set0_param( - pub_: *mut X509_PUBKEY, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - key: *mut u8, - key_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_param"] - pub fn X509_PUBKEY_get0_param( - out_obj: *mut *mut ASN1_OBJECT, - out_key: *mut *const u8, - out_key_len: *mut ::std::os::raw::c_int, - out_alg: *mut *mut X509_ALGOR, - pub_: *mut X509_PUBKEY, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_public_key"] - pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::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_fips_0_12_15_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *mut X509_TRUST; +#[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) + ) + ); +} +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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_TRUST_add"] - pub fn X509_TRUST_add( - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_TRUST_cleanup"] - pub fn X509_TRUST_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -22366,1435 +22091,967 @@ fn bindgen_test_layout_rsa_pss_params_st() { "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) - ) - ); -} -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_fips_0_12_15_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(a: *mut RSA_PSS_PARAMS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - a: *mut *mut RSA_PSS_PARAMS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - a: *const RSA_PSS_PARAMS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_LOOKUP { - _unused: [u8; 0], -} -pub type sk_X509_LOOKUP_free_func = - ::std::option::Option; -pub type sk_X509_LOOKUP_copy_func = - ::std::option::Option *mut X509_LOOKUP>; -pub type sk_X509_LOOKUP_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_LOOKUP, - arg2: *mut *const X509_LOOKUP, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_LOOKUP_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_LOOKUP, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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: *mut *const X509_OBJECT, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_VERIFY_PARAM { - _unused: [u8; 0], -} -pub type sk_X509_VERIFY_PARAM_free_func = - ::std::option::Option; -pub type sk_X509_VERIFY_PARAM_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_VERIFY_PARAM) -> *mut X509_VERIFY_PARAM, ->; -pub type sk_X509_VERIFY_PARAM_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_VERIFY_PARAM, - arg2: *mut *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_VERIFY_PARAM_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_VERIFY_PARAM, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -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, ->; -pub type X509_STORE_CTX_verify_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_get_issuer_fn = ::std::option::Option< - unsafe extern "C" fn( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_issued_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - x: *mut X509, - issuer: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_revocation_fn = - ::std::option::Option ::std::os::raw::c_int>; -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, ->; -pub type X509_STORE_CTX_cert_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_policy_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_lookup_certs_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509, ->; -pub type X509_STORE_CTX_lookup_crls_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509_CRL, ->; -pub type X509_STORE_CTX_cleanup_fn = - ::std::option::Option ::std::os::raw::c_int>; + 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) + ) + ); +} +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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_OBJECT_idx_by_subject"] - pub fn X509_OBJECT_idx_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_OBJECT_retrieve_by_subject"] - pub fn X509_OBJECT_retrieve_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_OBJECT_retrieve_match"] - pub fn X509_OBJECT_retrieve_match( - h: *mut stack_st_X509_OBJECT, - x: *mut X509_OBJECT, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_up_ref_count"] - pub fn X509_OBJECT_up_ref_count(a: *mut X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_free_contents"] - pub fn X509_OBJECT_free_contents(a: *mut X509_OBJECT); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(a: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(a: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_free"] - pub fn X509_STORE_free(v: *mut X509_STORE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_get1_certs"] - pub fn X509_STORE_get1_certs(st: *mut X509_STORE_CTX, nm: *mut X509_NAME) - -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get1_crls"] - pub fn X509_STORE_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - ctx: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - ctx: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - ctx: *mut X509_STORE, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - ctx: *mut X509_STORE, - pm: *mut X509_VERIFY_PARAM, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(ctx: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify"] - pub fn X509_STORE_set_verify(ctx: *mut X509_STORE, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - pub fn X509_STORE_CTX_set_verify(ctx: *mut X509_STORE_CTX, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify"] - pub fn X509_STORE_get_verify(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(ctx: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify_cb"] - pub fn X509_STORE_get_verify_cb(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_cb; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_issuer"] - pub fn X509_STORE_set_get_issuer( - ctx: *mut X509_STORE, - get_issuer: X509_STORE_CTX_get_issuer_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_issuer"] - pub fn X509_STORE_get_get_issuer(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_issuer_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_issued"] - pub fn X509_STORE_set_check_issued( - ctx: *mut X509_STORE, - check_issued: X509_STORE_CTX_check_issued_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_issued"] - pub fn X509_STORE_get_check_issued(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_issued_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_revocation"] - pub fn X509_STORE_set_check_revocation( - ctx: *mut X509_STORE, - check_revocation: X509_STORE_CTX_check_revocation_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_get_check_revocation"] - pub fn X509_STORE_get_check_revocation( - ctx: *mut X509_STORE, - ) -> X509_STORE_CTX_check_revocation_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(ctx: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_crl"] - pub fn X509_STORE_get_get_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_crl_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(ctx: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_crl"] - pub fn X509_STORE_get_check_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_crl_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cert_crl"] - pub fn X509_STORE_set_cert_crl(ctx: *mut X509_STORE, cert_crl: X509_STORE_CTX_cert_crl_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cert_crl"] - pub fn X509_STORE_get_cert_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_cert_crl_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_certs"] - pub fn X509_STORE_set_lookup_certs( - ctx: *mut X509_STORE, - lookup_certs: X509_STORE_CTX_lookup_certs_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_certs"] - pub fn X509_STORE_get_lookup_certs(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_certs_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_crls"] - pub fn X509_STORE_set_lookup_crls( - ctx: *mut X509_STORE, - lookup_crls: X509_STORE_CTX_lookup_crls_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_crls"] - pub fn X509_STORE_get_lookup_crls(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_crls_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cleanup"] - pub fn X509_STORE_set_cleanup(ctx: *mut X509_STORE, cleanup: X509_STORE_CTX_cleanup_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cleanup"] - pub fn X509_STORE_get_cleanup(ctx: *mut X509_STORE) -> X509_STORE_CTX_cleanup_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_zero"] - pub fn X509_STORE_CTX_zero(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *mut X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_get_by_subject"] - pub fn X509_STORE_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_new"] - pub fn X509_LOOKUP_new(method: *mut X509_LOOKUP_METHOD) -> *mut X509_LOOKUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_init"] - pub fn X509_LOOKUP_init(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_by_subject"] - pub fn X509_LOOKUP_by_subject( - ctx: *mut X509_LOOKUP, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_shutdown"] - pub fn X509_LOOKUP_shutdown(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_name"] - pub fn X509_VERIFY_PARAM_set1_name( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_peername"] - pub fn X509_VERIFY_PARAM_get0_peername( - arg1: *mut X509_VERIFY_PARAM, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_13_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_name"] - pub fn X509_VERIFY_PARAM_get0_name( - param: *const X509_VERIFY_PARAM, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add0_table"] - pub fn X509_VERIFY_PARAM_add0_table(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get_count"] - pub fn X509_VERIFY_PARAM_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0"] - pub fn X509_VERIFY_PARAM_get0(id: ::std::os::raw::c_int) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_lookup"] - pub fn X509_VERIFY_PARAM_lookup( - name: *const ::std::os::raw::c_char, - ) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_table_cleanup"] - pub fn X509_VERIFY_PARAM_table_cleanup(); -} -pub type X509V3_EXT_METHOD = v3_ext_method; -pub type X509V3_EXT_NEW = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type X509V3_EXT_FREE = - ::std::option::Option; -pub type X509V3_EXT_D2I = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2D = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_I2V = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE, ->; -pub type X509V3_EXT_V2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - values: *const stack_st_CONF_VALUE, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2S = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; -pub type X509V3_EXT_S2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2R = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - out: *mut BIO, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_R2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_method { - pub ext_nid: ::std::os::raw::c_int, - pub ext_flags: ::std::os::raw::c_int, - pub it: *const ASN1_ITEM_st, - pub ext_new: X509V3_EXT_NEW, - pub ext_free: X509V3_EXT_FREE, - pub d2i: X509V3_EXT_D2I, - pub i2d: X509V3_EXT_I2D, - pub i2s: X509V3_EXT_I2S, - pub s2i: X509V3_EXT_S2I, - pub i2v: X509V3_EXT_I2V, - pub v2i: X509V3_EXT_V2I, - pub i2r: X509V3_EXT_I2R, - pub r2i: X509V3_EXT_R2I, - pub usr_data: *mut ::std::os::raw::c_void, -} -#[test] -fn bindgen_test_layout_v3_ext_method() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 104usize, - concat!("Size of: ", stringify!(v3_ext_method)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_method)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_nid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(it) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2s) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(s2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2v) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(v2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(r2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(usr_data) - ) - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -impl Default for v3_ext_method { - 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_fips_0_13_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; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509V3_EXT_METHOD { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -pub type sk_X509V3_EXT_METHOD_free_func = - ::std::option::Option; -pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, ->; -pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509V3_EXT_METHOD, - arg2: *mut *const X509V3_EXT_METHOD, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509V3_EXT_METHOD, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct BASIC_CONSTRAINTS_st { - pub ca: ::std::os::raw::c_int, - pub pathlen: *mut ASN1_INTEGER, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_BASIC_CONSTRAINTS_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!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(ca) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(pathlen) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } -impl Default for BASIC_CONSTRAINTS_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_fips_0_13_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct otherName_st { - pub type_id: *mut ASN1_OBJECT, - pub value: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_otherName_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!(otherName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(otherName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(type_id) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; } -impl Default for otherName_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_fips_0_13_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; } -pub type OTHERNAME = otherName_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EDIPartyName_st { - pub nameAssigner: *mut ASN1_STRING, - pub partyName: *mut ASN1_STRING, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_EDIPartyName_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!(EDIPartyName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EDIPartyName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(nameAssigner) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(partyName) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -impl Default for EDIPartyName_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_fips_0_13_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; } -pub type EDIPARTYNAME = EDIPartyName_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct GENERAL_NAME_st { - pub type_: ::std::os::raw::c_int, - pub d: GENERAL_NAME_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union GENERAL_NAME_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub otherName: *mut OTHERNAME, - pub rfc822Name: *mut ASN1_IA5STRING, - pub dNSName: *mut ASN1_IA5STRING, - pub x400Address: *mut ASN1_STRING, - pub directoryName: *mut X509_NAME, - pub ediPartyName: *mut EDIPARTYNAME, - pub uniformResourceIdentifier: *mut ASN1_IA5STRING, - pub iPAddress: *mut ASN1_OCTET_STRING, - pub registeredID: *mut ASN1_OBJECT, - pub ip: *mut ASN1_OCTET_STRING, - pub dirn: *mut X509_NAME, - pub ia5: *mut ASN1_IA5STRING, - pub rid: *mut ASN1_OBJECT, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_GENERAL_NAME_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + concat!("Size of: ", stringify!(private_key_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(otherName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(rfc822Name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(dNSName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(x400Address) - ) + concat!("Alignment of ", stringify!(private_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(private_key_st), "::", - stringify!(directoryName) + 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).ediPartyName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ediPartyName) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(uniformResourceIdentifier) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(iPAddress) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(registeredID) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ip) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(dirn) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ia5) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(rid) + stringify!(enc_data) ) ); } -impl Default for GENERAL_NAME_st__bindgen_ty_1 { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23803,127 +23060,116 @@ impl Default for GENERAL_NAME_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(d) - ) - ); -} -impl Default for GENERAL_NAME_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)] +pub struct stack_st_X509_INFO { + _unused: [u8; 0], } -pub type GENERAL_NAME = GENERAL_NAME_st; -pub type sk_GENERAL_NAME_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAME_copy_func = - ::std::option::Option *mut GENERAL_NAME>; -pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const GENERAL_NAME, - arg2: *mut *const GENERAL_NAME, - ) -> ::std::os::raw::c_int, ->; -pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut GENERAL_NAME, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type GENERAL_NAMES = stack_st_GENERAL_NAME; -pub type sk_GENERAL_NAMES_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAMES_copy_func = - ::std::option::Option *mut GENERAL_NAMES>; -pub type sk_GENERAL_NAMES_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: *mut *const GENERAL_NAMES, - arg2: *mut *const GENERAL_NAMES, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_NAMES_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_NAMES, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ACCESS_DESCRIPTION_st { - pub method: *mut ASN1_OBJECT, - pub location: *mut GENERAL_NAME, +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_ACCESS_DESCRIPTION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), - 16usize, - concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) + concat!("Alignment of ", stringify!(v3_ext_ctx)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(method) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(location) + 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 ACCESS_DESCRIPTION_st { +impl Default for v3_ext_ctx { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23932,138 +23178,317 @@ impl Default for ACCESS_DESCRIPTION_st { } } } -pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ACCESS_DESCRIPTION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -pub type sk_ACCESS_DESCRIPTION_free_func = - ::std::option::Option; -pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, ->; -pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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: *mut *const ACCESS_DESCRIPTION, - arg2: *mut *const ACCESS_DESCRIPTION, + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, ) -> ::std::os::raw::c_int, >; -pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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, + >, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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( - arg1: *mut ACCESS_DESCRIPTION, - arg2: *mut ::std::os::raw::c_void, + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, ) -> ::std::os::raw::c_int, >; -pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; -pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DIST_POINT_NAME_st { - pub type_: ::std::os::raw::c_int, - pub name: DIST_POINT_NAME_st__bindgen_ty_1, - pub dpname: *mut X509_NAME, +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_fips_0_13_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); } -#[repr(C)] -#[derive(Copy, Clone)] -pub union DIST_POINT_NAME_st__bindgen_ty_1 { - pub fullname: *mut GENERAL_NAMES, - pub relativename: *mut stack_st_X509_NAME_ENTRY, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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); } -#[test] -fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { - 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!(DIST_POINT_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!( - "Alignment of ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(fullname) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(relativename) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { - 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_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_DIST_POINT_NAME_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 24usize, - concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) + concat!("Alignment of ", stringify!(X509_algor_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(type_) + stringify!(algorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(dpname) + stringify!(parameter) ) ); } -impl Default for DIST_POINT_NAME_st { +impl Default for X509_algor_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24072,199 +23497,103 @@ impl Default for DIST_POINT_NAME_st { } } } -pub type DIST_POINT_NAME = DIST_POINT_NAME_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DIST_POINT_st { - pub distpoint: *mut DIST_POINT_NAME, - pub reasons: *mut ASN1_BIT_STRING, - pub CRLissuer: *mut GENERAL_NAMES, - pub dp_reasons: ::std::os::raw::c_int, +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, } #[test] -fn bindgen_test_layout_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 32usize, - concat!("Size of: ", stringify!(DIST_POINT_st)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_st)) + concat!("Alignment of ", stringify!(x509_trust_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(distpoint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(reasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(CRLissuer) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dp_reasons) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), + stringify!(x509_trust_st), "::", - stringify!(dp_reasons) + stringify!(trust) ) ); -} -impl Default for DIST_POINT_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() - } - } -} -pub type CRL_DIST_POINTS = stack_st_DIST_POINT; -pub type sk_DIST_POINT_free_func = - ::std::option::Option; -pub type sk_DIST_POINT_copy_func = - ::std::option::Option *mut DIST_POINT>; -pub type sk_DIST_POINT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const DIST_POINT, - arg2: *mut *const DIST_POINT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut DIST_POINT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct AUTHORITY_KEYID_st { - pub keyid: *mut ASN1_OCTET_STRING, - pub issuer: *mut GENERAL_NAMES, - pub serial: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_AUTHORITY_KEYID_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!(AUTHORITY_KEYID_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(keyid) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(issuer) + stringify!(check_trust) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(serial) + stringify!(name) ) ); -} -impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { - pub organization: *mut ASN1_STRING, - pub noticenos: *mut stack_st_ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_NOTICEREF_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!(NOTICEREF_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NOTICEREF_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(organization) + stringify!(arg1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(noticenos) + stringify!(arg2) ) ); } -impl Default for NOTICEREF_st { +impl Default for x509_trust_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24273,391 +23602,495 @@ impl Default for NOTICEREF_st { } } } -pub type NOTICEREF = NOTICEREF_st; +#[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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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>; +pub type X509V3_EXT_FREE = + ::std::option::Option; +pub type X509V3_EXT_D2I = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2D = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_I2V = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE, +>; +pub type X509V3_EXT_V2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + values: *const stack_st_CONF_VALUE, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2S = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; +pub type X509V3_EXT_S2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2R = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + out: *mut BIO, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_R2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct USERNOTICE_st { - pub noticeref: *mut NOTICEREF, - pub exptext: *mut ASN1_STRING, +pub struct v3_ext_method { + pub ext_nid: ::std::os::raw::c_int, + pub ext_flags: ::std::os::raw::c_int, + pub it: *const ASN1_ITEM_st, + pub ext_new: X509V3_EXT_NEW, + pub ext_free: X509V3_EXT_FREE, + pub d2i: X509V3_EXT_D2I, + pub i2d: X509V3_EXT_I2D, + pub i2s: X509V3_EXT_I2S, + pub s2i: X509V3_EXT_S2I, + pub i2v: X509V3_EXT_I2V, + pub v2i: X509V3_EXT_V2I, + pub i2r: X509V3_EXT_I2R, + pub r2i: X509V3_EXT_R2I, + pub usr_data: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_USERNOTICE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_v3_ext_method() { + 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!(USERNOTICE_st)) + ::std::mem::size_of::(), + 104usize, + concat!("Size of: ", stringify!(v3_ext_method)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(USERNOTICE_st)) + concat!("Alignment of ", stringify!(v3_ext_method)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(noticeref) + stringify!(ext_nid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(exptext) + stringify!(ext_flags) ) ); -} -impl Default for USERNOTICE_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() - } - } -} -pub type USERNOTICE = USERNOTICE_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct POLICYQUALINFO_st { - pub pqualid: *mut ASN1_OBJECT, - pub d: POLICYQUALINFO_st__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union POLICYQUALINFO_st__bindgen_ty_1 { - pub cpsuri: *mut ASN1_IA5STRING, - pub usernotice: *mut USERNOTICE, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { - 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!(POLICYQUALINFO_st__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(cpsuri) + stringify!(it) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(usernotice) + stringify!(ext_new) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(other) + stringify!(ext_free) ) ); -} -impl Default for POLICYQUALINFO_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(pqualid) + stringify!(d2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(d) + stringify!(i2d) ) ); -} -impl Default for POLICYQUALINFO_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() - } - } -} -pub type POLICYQUALINFO = POLICYQUALINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYQUALINFO { - _unused: [u8; 0], -} -pub type sk_POLICYQUALINFO_free_func = - ::std::option::Option; -pub type sk_POLICYQUALINFO_copy_func = - ::std::option::Option *mut POLICYQUALINFO>; -pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYQUALINFO, - arg2: *mut *const POLICYQUALINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYQUALINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICYINFO_st { - pub policyid: *mut ASN1_OBJECT, - pub qualifiers: *mut stack_st_POLICYQUALINFO, -} -#[test] -fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYINFO_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, - 0usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(policyid) + stringify!(i2s) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(qualifiers) + stringify!(s2i) ) ); -} -impl Default for POLICYINFO_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() - } - } -} -pub type POLICYINFO = POLICYINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYINFO { - _unused: [u8; 0], -} -pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; -pub type sk_POLICYINFO_free_func = - ::std::option::Option; -pub type sk_POLICYINFO_copy_func = - ::std::option::Option *mut POLICYINFO>; -pub type sk_POLICYINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYINFO, - arg2: *mut *const POLICYINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_MAPPING_st { - pub issuerDomainPolicy: *mut ASN1_OBJECT, - pub subjectDomainPolicy: *mut ASN1_OBJECT, -} -#[test] -fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(issuerDomainPolicy) + stringify!(i2v) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(subjectDomainPolicy) + stringify!(v2i) ) ); -} -impl Default for POLICY_MAPPING_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() - } - } -} -pub type POLICY_MAPPING = POLICY_MAPPING_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICY_MAPPING { - _unused: [u8; 0], -} -pub type sk_POLICY_MAPPING_free_func = - ::std::option::Option; -pub type sk_POLICY_MAPPING_copy_func = - ::std::option::Option *mut POLICY_MAPPING>; -pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICY_MAPPING, - arg2: *mut *const POLICY_MAPPING, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICY_MAPPING, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct GENERAL_SUBTREE_st { - pub base: *mut GENERAL_NAME, - pub minimum: *mut ASN1_INTEGER, - pub maximum: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(base) + stringify!(i2r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(minimum) + stringify!(r2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(maximum) + stringify!(usr_data) ) ); } -impl Default for GENERAL_SUBTREE_st { +impl Default for v3_ext_method { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24666,71 +24099,70 @@ impl Default for GENERAL_SUBTREE_st { } } } -pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_SUBTREE { +pub struct stack_st_X509V3_EXT_METHOD { _unused: [u8; 0], } -pub type sk_GENERAL_SUBTREE_free_func = - ::std::option::Option; -pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +pub type sk_X509V3_EXT_METHOD_free_func = + ::std::option::Option; +pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, >; -pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const GENERAL_SUBTREE, - arg2: *mut *const GENERAL_SUBTREE, + arg1: *const *const X509V3_EXT_METHOD, + arg2: *const *const X509V3_EXT_METHOD, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_SUBTREE, + arg1: *mut X509V3_EXT_METHOD, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct NAME_CONSTRAINTS_st { - pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, - pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, +pub struct BASIC_CONSTRAINTS_st { + pub ca: ::std::os::raw::c_int, + pub pathlen: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_NAME_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_BASIC_CONSTRAINTS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(permittedSubtrees) + stringify!(ca) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(excludedSubtrees) + stringify!(pathlen) ) ); } -impl Default for NAME_CONSTRAINTS_st { +impl Default for BASIC_CONSTRAINTS_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24741,47 +24173,47 @@ impl Default for NAME_CONSTRAINTS_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_CONSTRAINTS_st { - pub requireExplicitPolicy: *mut ASN1_INTEGER, - pub inhibitPolicyMapping: *mut ASN1_INTEGER, +pub struct ACCESS_DESCRIPTION_st { + pub method: *mut ASN1_OBJECT, + pub location: *mut GENERAL_NAME, } #[test] -fn bindgen_test_layout_POLICY_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = +fn bindgen_test_layout_ACCESS_DESCRIPTION_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(requireExplicitPolicy) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(inhibitPolicyMapping) + stringify!(location) ) ); } -impl Default for POLICY_CONSTRAINTS_st { +impl Default for ACCESS_DESCRIPTION_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24790,49 +24222,84 @@ impl Default for POLICY_CONSTRAINTS_st { } } } -pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ACCESS_DESCRIPTION { + _unused: [u8; 0], +} +pub type sk_ACCESS_DESCRIPTION_free_func = + ::std::option::Option; +pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, +>; +pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ACCESS_DESCRIPTION, + arg2: *const *const ACCESS_DESCRIPTION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ACCESS_DESCRIPTION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; +pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DIST_POINT_NAME_st { + pub type_: ::std::os::raw::c_int, + pub name: DIST_POINT_NAME_st__bindgen_ty_1, + pub dpname: *mut X509_NAME, +} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_POLICY_st { - pub policyLanguage: *mut ASN1_OBJECT, - pub policy: *mut ASN1_OCTET_STRING, +#[derive(Copy, Clone)] +pub union DIST_POINT_NAME_st__bindgen_ty_1 { + pub fullname: *mut GENERAL_NAMES, + pub relativename: *mut stack_st_X509_NAME_ENTRY, } #[test] -fn bindgen_test_layout_PROXY_POLICY_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { + 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!(PROXY_POLICY_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_POLICY_st)) + concat!( + "Alignment of ", + stringify!(DIST_POINT_NAME_st__bindgen_ty_1) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyLanguage) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policyLanguage) + stringify!(fullname) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policy) + stringify!(relativename) ) ); } -impl Default for PROXY_POLICY_st { +impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24841,50 +24308,52 @@ impl Default for PROXY_POLICY_st { } } } -pub type PROXY_POLICY = PROXY_POLICY_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_CERT_INFO_EXTENSION_st { - pub pcPathLengthConstraint: *mut ASN1_INTEGER, - pub proxyPolicy: *mut PROXY_POLICY, -} #[test] -fn bindgen_test_layout_PROXY_CERT_INFO_EXTENSION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_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!(PROXY_CERT_INFO_EXTENSION_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_CERT_INFO_EXTENSION_st)) + concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pcPathLengthConstraint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), "::", - stringify!(pcPathLengthConstraint) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).proxyPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(DIST_POINT_NAME_st), "::", - stringify!(proxyPolicy) + stringify!(dpname) ) ); } -impl Default for PROXY_CERT_INFO_EXTENSION_st { +impl Default for DIST_POINT_NAME_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24893,148 +24362,60 @@ impl Default for PROXY_CERT_INFO_EXTENSION_st { } } } -pub type PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_POLICY_new"] - pub fn PROXY_POLICY_new() -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_POLICY_free"] - pub fn PROXY_POLICY_free(a: *mut PROXY_POLICY); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PROXY_POLICY"] - pub fn d2i_PROXY_POLICY( - a: *mut *mut PROXY_POLICY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PROXY_POLICY"] - pub fn i2d_PROXY_POLICY( - a: *const PROXY_POLICY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_POLICY_it"] - pub static PROXY_POLICY_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_new"] - pub fn PROXY_CERT_INFO_EXTENSION_new() -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_free"] - pub fn PROXY_CERT_INFO_EXTENSION_free(a: *mut PROXY_CERT_INFO_EXTENSION); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PROXY_CERT_INFO_EXTENSION"] - pub fn d2i_PROXY_CERT_INFO_EXTENSION( - a: *mut *mut PROXY_CERT_INFO_EXTENSION, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PROXY_CERT_INFO_EXTENSION"] - pub fn i2d_PROXY_CERT_INFO_EXTENSION( - a: *const PROXY_CERT_INFO_EXTENSION, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_it"] - pub static PROXY_CERT_INFO_EXTENSION_it: ASN1_ITEM; -} +pub type DIST_POINT_NAME = DIST_POINT_NAME_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ISSUING_DIST_POINT_st { +pub struct DIST_POINT_st { pub distpoint: *mut DIST_POINT_NAME, - pub onlyuser: ::std::os::raw::c_int, - pub onlyCA: ::std::os::raw::c_int, - pub onlysomereasons: *mut ASN1_BIT_STRING, - pub indirectCRL: ::std::os::raw::c_int, - pub onlyattr: ::std::os::raw::c_int, + pub reasons: *mut ASN1_BIT_STRING, + pub CRLissuer: *mut GENERAL_NAMES, } #[test] -fn bindgen_test_layout_ISSUING_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + concat!("Alignment of ", stringify!(DIST_POINT_st)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", stringify!(distpoint) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlyuser) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyCA) + stringify!(reasons) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlysomereasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(indirectCRL) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyattr) + stringify!(CRLissuer) ) ); } -impl Default for ISSUING_DIST_POINT_st { +impl Default for DIST_POINT_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25043,109 +24424,126 @@ impl Default for ISSUING_DIST_POINT_st { } } } +pub type CRL_DIST_POINTS = stack_st_DIST_POINT; +pub type sk_DIST_POINT_free_func = + ::std::option::Option; +pub type sk_DIST_POINT_copy_func = + ::std::option::Option *mut DIST_POINT>; +pub type sk_DIST_POINT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const DIST_POINT, + arg2: *const *const DIST_POINT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut DIST_POINT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_purpose_st { - pub purpose: ::std::os::raw::c_int, - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_purpose: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const x509_purpose_st, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub sname: *mut ::std::os::raw::c_char, - pub usr_data: *mut ::std::os::raw::c_void, +pub struct AUTHORITY_KEYID_st { + pub keyid: *mut ASN1_OCTET_STRING, + pub issuer: *mut GENERAL_NAMES, + pub serial: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_x509_purpose_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_AUTHORITY_KEYID_st() { + 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!(x509_purpose_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_purpose_st)) + concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(purpose) + stringify!(keyid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(trust) + stringify!(issuer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(flags) + stringify!(serial) ) ); +} +impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { + pub organization: *mut ASN1_STRING, + pub noticenos: *mut stack_st_ASN1_INTEGER, +} +#[test] +fn bindgen_test_layout_NOTICEREF_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(check_purpose) - ) + concat!("Size of: ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(name) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(sname) + stringify!(organization) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(usr_data) + stringify!(noticenos) ) ); } -impl Default for x509_purpose_st { +impl Default for NOTICEREF_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25154,1182 +24552,1291 @@ impl Default for x509_purpose_st { } } } -pub type X509_PURPOSE = x509_purpose_st; +pub type NOTICEREF = NOTICEREF_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_PURPOSE { - _unused: [u8; 0], -} -pub type sk_X509_PURPOSE_free_func = - ::std::option::Option; -pub type sk_X509_PURPOSE_copy_func = - ::std::option::Option *mut X509_PURPOSE>; -pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_PURPOSE, - arg2: *mut *const X509_PURPOSE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_PURPOSE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_new"] - pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_free"] - pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_BASIC_CONSTRAINTS"] - pub fn d2i_BASIC_CONSTRAINTS( - a: *mut *mut BASIC_CONSTRAINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_BASIC_CONSTRAINTS"] - pub fn i2d_BASIC_CONSTRAINTS( - a: *const BASIC_CONSTRAINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_it"] - pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_KEYID_new"] - pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_KEYID_free"] - pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_AUTHORITY_KEYID"] - pub fn d2i_AUTHORITY_KEYID( - a: *mut *mut AUTHORITY_KEYID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_AUTHORITY_KEYID"] - pub fn i2d_AUTHORITY_KEYID( - a: *mut AUTHORITY_KEYID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_KEYID_it"] - pub static AUTHORITY_KEYID_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_new"] - pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_free"] - pub fn GENERAL_NAME_free(a: *mut GENERAL_NAME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_GENERAL_NAME"] - pub fn d2i_GENERAL_NAME( - a: *mut *mut GENERAL_NAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_GENERAL_NAME"] - pub fn i2d_GENERAL_NAME( - a: *mut GENERAL_NAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_it"] - pub static GENERAL_NAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_dup"] - pub fn GENERAL_NAME_dup(a: *mut GENERAL_NAME) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_cmp"] - pub fn GENERAL_NAME_cmp( - a: *const GENERAL_NAME, - b: *const GENERAL_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *mut GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAMES_new"] - pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAMES_free"] - pub fn GENERAL_NAMES_free(a: *mut GENERAL_NAMES); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_GENERAL_NAMES"] - pub fn d2i_GENERAL_NAMES( - a: *mut *mut GENERAL_NAMES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_GENERAL_NAMES"] - pub fn i2d_GENERAL_NAMES( - a: *mut GENERAL_NAMES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAMES_it"] - pub static GENERAL_NAMES_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_v2i_GENERAL_NAMES"] - pub fn v2i_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - nval: *const stack_st_CONF_VALUE, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_new"] - pub fn OTHERNAME_new() -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_free"] - pub fn OTHERNAME_free(a: *mut OTHERNAME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OTHERNAME"] - pub fn d2i_OTHERNAME( - a: *mut *mut OTHERNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OTHERNAME"] - pub fn i2d_OTHERNAME( - a: *const OTHERNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_it"] - pub static OTHERNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EDIPARTYNAME_new"] - pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EDIPARTYNAME_free"] - pub fn EDIPARTYNAME_free(a: *mut EDIPARTYNAME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_EDIPARTYNAME"] - pub fn d2i_EDIPARTYNAME( - a: *mut *mut EDIPARTYNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EDIPARTYNAME"] - pub fn i2d_EDIPARTYNAME( - a: *const EDIPARTYNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EDIPARTYNAME_it"] - pub static EDIPARTYNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_cmp"] - pub fn OTHERNAME_cmp(a: *mut OTHERNAME, b: *mut OTHERNAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_set0_value"] - pub fn GENERAL_NAME_set0_value( - a: *mut GENERAL_NAME, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_get0_value"] - pub fn GENERAL_NAME_get0_value( - a: *const GENERAL_NAME, - ptype: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_set0_othername"] - pub fn GENERAL_NAME_set0_othername( - gen: *mut GENERAL_NAME, - oid: *mut ASN1_OBJECT, - value: *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_get0_otherName"] - pub fn GENERAL_NAME_get0_otherName( - gen: *const GENERAL_NAME, - poid: *mut *mut ASN1_OBJECT, - pvalue: *mut *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ia5: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_EXTENDED_KEY_USAGE_new"] - pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_free"] - pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_EXTENDED_KEY_USAGE"] - pub fn d2i_EXTENDED_KEY_USAGE( - a: *mut *mut EXTENDED_KEY_USAGE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EXTENDED_KEY_USAGE"] - pub fn i2d_EXTENDED_KEY_USAGE( - a: *const EXTENDED_KEY_USAGE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_it"] - pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ACCESS_DESCRIPTION"] - pub fn i2a_ACCESS_DESCRIPTION( - bp: *mut BIO, - a: *const ACCESS_DESCRIPTION, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_new"] - pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct USERNOTICE_st { + pub noticeref: *mut NOTICEREF, + pub exptext: *mut ASN1_STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_free"] - pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); +#[test] +fn bindgen_test_layout_USERNOTICE_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!(USERNOTICE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(USERNOTICE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(noticeref) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(exptext) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_CERTIFICATEPOLICIES"] - pub fn d2i_CERTIFICATEPOLICIES( - a: *mut *mut CERTIFICATEPOLICIES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CERTIFICATEPOLICIES; +impl Default for USERNOTICE_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_fips_0_12_15_i2d_CERTIFICATEPOLICIES"] - pub fn i2d_CERTIFICATEPOLICIES( - a: *const CERTIFICATEPOLICIES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type USERNOTICE = USERNOTICE_st; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct POLICYQUALINFO_st { + pub pqualid: *mut ASN1_OBJECT, + pub d: POLICYQUALINFO_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_it"] - pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; +#[repr(C)] +#[derive(Copy, Clone)] +pub union POLICYQUALINFO_st__bindgen_ty_1 { + pub cpsuri: *mut ASN1_IA5STRING, + pub usernotice: *mut USERNOTICE, + pub other: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYINFO_new"] - pub fn POLICYINFO_new() -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { + 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!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(cpsuri) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(usernotice) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYINFO_free"] - pub fn POLICYINFO_free(a: *mut POLICYINFO); +impl Default for POLICYQUALINFO_st__bindgen_ty_1 { + 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_fips_0_12_15_d2i_POLICYINFO"] - pub fn d2i_POLICYINFO( - a: *mut *mut POLICYINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(pqualid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_POLICYINFO"] - pub fn i2d_POLICYINFO( - a: *const POLICYINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for POLICYQUALINFO_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_fips_0_12_15_POLICYINFO_it"] - pub static POLICYINFO_it: ASN1_ITEM; +pub type POLICYQUALINFO = POLICYQUALINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYQUALINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYQUALINFO_new"] - pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; +pub type sk_POLICYQUALINFO_free_func = + ::std::option::Option; +pub type sk_POLICYQUALINFO_copy_func = + ::std::option::Option *mut POLICYQUALINFO>; +pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYQUALINFO, + arg2: *const *const POLICYQUALINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYQUALINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICYINFO_st { + pub policyid: *mut ASN1_OBJECT, + pub qualifiers: *mut stack_st_POLICYQUALINFO, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYQUALINFO_free"] - pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); +#[test] +fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(policyid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(qualifiers) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_POLICYQUALINFO"] - pub fn d2i_POLICYQUALINFO( - a: *mut *mut POLICYQUALINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYQUALINFO; +impl Default for POLICYINFO_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_fips_0_12_15_i2d_POLICYQUALINFO"] - pub fn i2d_POLICYQUALINFO( - a: *const POLICYQUALINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICYINFO = POLICYINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYQUALINFO_it"] - pub static POLICYQUALINFO_it: ASN1_ITEM; +pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; +pub type sk_POLICYINFO_free_func = + ::std::option::Option; +pub type sk_POLICYINFO_copy_func = + ::std::option::Option *mut POLICYINFO>; +pub type sk_POLICYINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYINFO, + arg2: *const *const POLICYINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_MAPPING_st { + pub issuerDomainPolicy: *mut ASN1_OBJECT, + pub subjectDomainPolicy: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_USERNOTICE_new"] - pub fn USERNOTICE_new() -> *mut USERNOTICE; +#[test] +fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(issuerDomainPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(subjectDomainPolicy) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_USERNOTICE_free"] - pub fn USERNOTICE_free(a: *mut USERNOTICE); +impl Default for POLICY_MAPPING_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_fips_0_12_15_d2i_USERNOTICE"] - pub fn d2i_USERNOTICE( - a: *mut *mut USERNOTICE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut USERNOTICE; +pub type POLICY_MAPPING = POLICY_MAPPING_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICY_MAPPING { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_USERNOTICE"] - pub fn i2d_USERNOTICE( - a: *const USERNOTICE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type sk_POLICY_MAPPING_free_func = + ::std::option::Option; +pub type sk_POLICY_MAPPING_copy_func = + ::std::option::Option *mut POLICY_MAPPING>; +pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICY_MAPPING, + arg2: *const *const POLICY_MAPPING, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICY_MAPPING, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct GENERAL_SUBTREE_st { + pub base: *mut GENERAL_NAME, + pub minimum: *mut ASN1_INTEGER, + pub maximum: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_USERNOTICE_it"] - pub static USERNOTICE_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(minimum) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(maximum) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NOTICEREF_new"] - pub fn NOTICEREF_new() -> *mut NOTICEREF; +impl Default for GENERAL_SUBTREE_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_fips_0_12_15_NOTICEREF_free"] - pub fn NOTICEREF_free(a: *mut NOTICEREF); +pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_SUBTREE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_NOTICEREF"] - pub fn d2i_NOTICEREF( - a: *mut *mut NOTICEREF, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NOTICEREF; +pub type sk_GENERAL_SUBTREE_free_func = + ::std::option::Option; +pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +>; +pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_SUBTREE, + arg2: *const *const GENERAL_SUBTREE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_SUBTREE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct NAME_CONSTRAINTS_st { + pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, + pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_NOTICEREF"] - pub fn i2d_NOTICEREF( - a: *const NOTICEREF, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_NAME_CONSTRAINTS_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!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(permittedSubtrees) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(excludedSubtrees) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NOTICEREF_it"] - pub static NOTICEREF_it: ASN1_ITEM; +impl Default for NAME_CONSTRAINTS_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_fips_0_12_15_CRL_DIST_POINTS_new"] - pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_CONSTRAINTS_st { + pub requireExplicitPolicy: *mut ASN1_INTEGER, + pub inhibitPolicyMapping: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRL_DIST_POINTS_free"] - pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); +#[test] +fn bindgen_test_layout_POLICY_CONSTRAINTS_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!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(requireExplicitPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(inhibitPolicyMapping) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_CRL_DIST_POINTS"] - pub fn d2i_CRL_DIST_POINTS( - a: *mut *mut CRL_DIST_POINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CRL_DIST_POINTS; +impl Default for POLICY_CONSTRAINTS_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_fips_0_12_15_i2d_CRL_DIST_POINTS"] - pub fn i2d_CRL_DIST_POINTS( - a: *mut CRL_DIST_POINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ISSUING_DIST_POINT_st { + pub distpoint: *mut DIST_POINT_NAME, + pub onlyuser: ASN1_BOOLEAN, + pub onlyCA: ASN1_BOOLEAN, + pub onlysomereasons: *mut ASN1_BIT_STRING, + pub indirectCRL: ASN1_BOOLEAN, + pub onlyattr: ASN1_BOOLEAN, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRL_DIST_POINTS_it"] - pub static CRL_DIST_POINTS_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_ISSUING_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(distpoint) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyuser) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyCA) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlysomereasons) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(indirectCRL) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyattr) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_new"] - pub fn DIST_POINT_new() -> *mut DIST_POINT; +impl Default for ISSUING_DIST_POINT_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_fips_0_12_15_DIST_POINT_free"] - pub fn DIST_POINT_free(a: *mut DIST_POINT); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_purpose_st { + pub purpose: ::std::os::raw::c_int, + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_purpose: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const x509_purpose_st, + arg2: *const X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub sname: *mut ::std::os::raw::c_char, + pub usr_data: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DIST_POINT"] - pub fn d2i_DIST_POINT( - a: *mut *mut DIST_POINT, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT; +#[test] +fn bindgen_test_layout_x509_purpose_st() { + 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!(x509_purpose_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_purpose_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(check_purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(sname) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(usr_data) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DIST_POINT"] - pub fn i2d_DIST_POINT( - a: *mut DIST_POINT, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for x509_purpose_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_fips_0_12_15_DIST_POINT_it"] - pub static DIST_POINT_it: ASN1_ITEM; +pub type X509_PURPOSE = x509_purpose_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_PURPOSE { + _unused: [u8; 0], } +pub type sk_X509_PURPOSE_free_func = + ::std::option::Option; +pub type sk_X509_PURPOSE_copy_func = + ::std::option::Option *mut X509_PURPOSE>; +pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_PURPOSE, + arg2: *const *const X509_PURPOSE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_PURPOSE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_NAME_new"] - pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_new"] + pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_NAME_free"] - pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_free"] + pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DIST_POINT_NAME"] - pub fn d2i_DIST_POINT_NAME( - a: *mut *mut DIST_POINT_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_BASIC_CONSTRAINTS"] + pub fn d2i_BASIC_CONSTRAINTS( + a: *mut *mut BASIC_CONSTRAINTS, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT_NAME; + ) -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DIST_POINT_NAME"] - pub fn i2d_DIST_POINT_NAME( - a: *mut DIST_POINT_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_BASIC_CONSTRAINTS"] + pub fn i2d_BASIC_CONSTRAINTS( + a: *const BASIC_CONSTRAINTS, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_NAME_it"] - pub static DIST_POINT_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_it"] + pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ISSUING_DIST_POINT_new"] - pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_KEYID_new"] + pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ISSUING_DIST_POINT_free"] - pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_KEYID_free"] + pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ISSUING_DIST_POINT"] - pub fn d2i_ISSUING_DIST_POINT( - a: *mut *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_AUTHORITY_KEYID"] + pub fn d2i_AUTHORITY_KEYID( + a: *mut *mut AUTHORITY_KEYID, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ISSUING_DIST_POINT; + ) -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ISSUING_DIST_POINT"] - pub fn i2d_ISSUING_DIST_POINT( - a: *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_AUTHORITY_KEYID"] + pub fn i2d_AUTHORITY_KEYID( + a: *mut AUTHORITY_KEYID, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ISSUING_DIST_POINT_it"] - pub static ISSUING_DIST_POINT_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_set_dpname"] - pub fn DIST_POINT_set_dpname( - dpn: *mut DIST_POINT_NAME, - iname: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check(x: *mut X509, nc: *mut NAME_CONSTRAINTS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_KEYID_it"] + pub static AUTHORITY_KEYID_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_new"] - pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_new"] + pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_free"] - pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_free"] + pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ACCESS_DESCRIPTION"] - pub fn d2i_ACCESS_DESCRIPTION( - a: *mut *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_EXTENDED_KEY_USAGE"] + pub fn d2i_EXTENDED_KEY_USAGE( + a: *mut *mut EXTENDED_KEY_USAGE, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ACCESS_DESCRIPTION; + ) -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ACCESS_DESCRIPTION"] - pub fn i2d_ACCESS_DESCRIPTION( - a: *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_EXTENDED_KEY_USAGE"] + pub fn i2d_EXTENDED_KEY_USAGE( + a: *const EXTENDED_KEY_USAGE, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_it"] - pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_it"] + pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_new"] - pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_new"] + pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_free"] - pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_free"] + pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_AUTHORITY_INFO_ACCESS"] - pub fn d2i_AUTHORITY_INFO_ACCESS( - a: *mut *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_CERTIFICATEPOLICIES"] + pub fn d2i_CERTIFICATEPOLICIES( + a: *mut *mut CERTIFICATEPOLICIES, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_INFO_ACCESS; + ) -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_AUTHORITY_INFO_ACCESS"] - pub fn i2d_AUTHORITY_INFO_ACCESS( - a: *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_CERTIFICATEPOLICIES"] + pub fn i2d_CERTIFICATEPOLICIES( + a: *const CERTIFICATEPOLICIES, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_it"] - pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPING_it"] - pub static POLICY_MAPPING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPING_new"] - pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPING_free"] - pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPINGS_it"] - pub static POLICY_MAPPINGS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_SUBTREE_it"] - pub static GENERAL_SUBTREE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_SUBTREE_new"] - pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_SUBTREE_free"] - pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_it"] - pub static NAME_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_new"] - pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_free"] - pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_new"] - pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_free"] - pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_it"] - pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_a2i_GENERAL_NAME"] - pub fn a2i_GENERAL_NAME( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - gen_type: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_v2i_GENERAL_NAME"] - pub fn v2i_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_v2i_GENERAL_NAME_ex"] - pub fn v2i_GENERAL_NAME_ex( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_it"] + pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); -} -#[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) - ) - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICYINFO_new"] + pub fn POLICYINFO_new() -> *mut POLICYINFO; } -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_fips_0_13_0_POLICYINFO_free"] + pub fn POLICYINFO_free(a: *mut POLICYINFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYINFO"] + pub fn d2i_POLICYINFO( + a: *mut *mut POLICYINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYINFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_POLICYINFO"] + pub fn i2d_POLICYINFO( + a: *const POLICYINFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYINFO_it"] + pub static POLICYINFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_new"] + pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_free"] + pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYQUALINFO"] + pub fn d2i_POLICYQUALINFO( + a: *mut *mut POLICYQUALINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_POLICYQUALINFO"] + pub fn i2d_POLICYQUALINFO( + a: *const POLICYQUALINFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICYQUALINFO_it"] + pub static POLICYQUALINFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_USERNOTICE_new"] + pub fn USERNOTICE_new() -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_USERNOTICE_free"] + pub fn USERNOTICE_free(a: *mut USERNOTICE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_USERNOTICE"] + pub fn d2i_USERNOTICE( + a: *mut *mut USERNOTICE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_USERNOTICE"] + pub fn i2d_USERNOTICE( + a: *const USERNOTICE, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_USERNOTICE_it"] + pub static USERNOTICE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NOTICEREF_new"] + pub fn NOTICEREF_new() -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NOTICEREF_free"] + pub fn NOTICEREF_free(a: *mut NOTICEREF); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_NOTICEREF"] + pub fn d2i_NOTICEREF( + a: *mut *mut NOTICEREF, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_NOTICEREF"] + pub fn i2d_NOTICEREF( + a: *const NOTICEREF, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NOTICEREF_it"] + pub static NOTICEREF_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRL_DIST_POINTS_new"] + pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRL_DIST_POINTS_free"] + pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_add"] - pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_CRL_DIST_POINTS"] + pub fn d2i_CRL_DIST_POINTS( + a: *mut *mut CRL_DIST_POINTS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_add_list"] - pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_CRL_DIST_POINTS"] + pub fn i2d_CRL_DIST_POINTS( + a: *mut CRL_DIST_POINTS, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_add_alias"] - pub fn X509V3_EXT_add_alias( - nid_to: ::std::os::raw::c_int, - nid_from: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRL_DIST_POINTS_it"] + pub static CRL_DIST_POINTS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_new"] + pub fn DIST_POINT_new() -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_free"] + pub fn DIST_POINT_free(a: *mut DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DIST_POINT"] + pub fn d2i_DIST_POINT( + a: *mut *mut DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DIST_POINT"] + pub fn i2d_DIST_POINT( + a: *mut DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_cleanup"] - pub fn X509V3_EXT_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_it"] + pub static DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_get"] - pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_NAME_new"] + pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_get_nid"] - pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_NAME_free"] + pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DIST_POINT_NAME"] + pub fn d2i_DIST_POINT_NAME( + a: *mut *mut DIST_POINT_NAME, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_DIST_POINT_NAME"] + pub fn i2d_DIST_POINT_NAME( + a: *mut DIST_POINT_NAME, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_d2i"] - pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_NAME_it"] + pub static DIST_POINT_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_get_d2i"] - pub fn X509V3_get_d2i( - extensions: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ISSUING_DIST_POINT_new"] + pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_free"] - pub fn X509V3_EXT_free( - nid: ::std::os::raw::c_int, - ext_data: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ISSUING_DIST_POINT_free"] + pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ISSUING_DIST_POINT"] + pub fn d2i_ISSUING_DIST_POINT( + a: *mut *mut ISSUING_DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ISSUING_DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ISSUING_DIST_POINT"] + pub fn i2d_ISSUING_DIST_POINT( + a: *mut ISSUING_DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_i2d"] - pub fn X509V3_EXT_i2d( - ext_nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - ext_struc: *mut ::std::os::raw::c_void, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ISSUING_DIST_POINT_it"] + pub static ISSUING_DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_add1_i2d"] - pub fn X509V3_add1_i2d( - x: *mut *mut stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_set_dpname"] + pub fn DIST_POINT_set_dpname( + dpn: *mut DIST_POINT_NAME, + iname: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_val_prn"] - pub fn X509V3_EXT_val_prn( - out: *mut BIO, - val: *const stack_st_CONF_VALUE, - indent: ::std::os::raw::c_int, - ml: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ACCESS_DESCRIPTION_new"] + pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_free"] + pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ACCESS_DESCRIPTION"] + pub fn d2i_ACCESS_DESCRIPTION( + a: *mut *mut ACCESS_DESCRIPTION, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ACCESS_DESCRIPTION; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ACCESS_DESCRIPTION"] + pub fn i2d_ACCESS_DESCRIPTION( + a: *mut ACCESS_DESCRIPTION, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_it"] + pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_new"] + pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_free"] + pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_AUTHORITY_INFO_ACCESS"] + pub fn d2i_AUTHORITY_INFO_ACCESS( + a: *mut *mut AUTHORITY_INFO_ACCESS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_AUTHORITY_INFO_ACCESS"] + pub fn i2d_AUTHORITY_INFO_ACCESS( + a: *mut AUTHORITY_INFO_ACCESS, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_it"] + pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_ca"] - pub fn X509_check_ca(x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPING_it"] + pub static POLICY_MAPPING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPING_new"] + pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPING_free"] + pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_set"] - pub fn X509_PURPOSE_set( - p: *mut ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPINGS_it"] + pub static POLICY_MAPPINGS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_SUBTREE_it"] + pub static GENERAL_SUBTREE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_akid"] - pub fn X509_check_akid(issuer: *mut X509, akid: *mut AUTHORITY_KEYID) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_SUBTREE_new"] + pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_extension_flags"] - pub fn X509_get_extension_flags(x: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_SUBTREE_free"] + pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_key_usage"] - pub fn X509_get_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_it"] + pub static NAME_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_extended_key_usage"] - pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_new"] + pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_subject_key_id"] - pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_free"] + pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_authority_key_id"] - pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_new"] + pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_authority_issuer"] - pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_free"] + pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_authority_serial"] - pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_it"] + pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_count"] - pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_add"] + pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get0"] - pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *mut X509_PURPOSE; + pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_by_sname"] - pub fn X509_PURPOSE_get_by_sname(sname: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_add_alias"] + pub fn X509V3_EXT_add_alias( + nid_to: ::std::os::raw::c_int, + nid_from: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_by_id"] - pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn X509V3_EXT_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_add"] - pub fn X509_PURPOSE_add( - id: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_PURPOSE, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - sname: *mut ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_get"] + pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get0_name"] - pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_get_nid"] + pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get0_sname"] - pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_d2i"] + pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_trust"] - pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_get_d2i"] + pub fn X509V3_get_d2i( + extensions: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_cleanup"] - pub fn X509_PURPOSE_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_free"] + pub fn X509V3_EXT_free( + nid: ::std::os::raw::c_int, + ext_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_id"] - pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_i2d"] + pub fn X509V3_EXT_i2d( + ext_nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + ext_struc: *mut ::std::os::raw::c_void, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get1_email"] - pub fn X509_get1_email(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_add1_i2d"] + pub fn X509V3_add1_i2d( + x: *mut *mut stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get1_email"] - pub fn X509_REQ_get1_email(x: *mut X509_REQ) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_set"] + pub fn X509_PURPOSE_set( + p: *mut ::std::os::raw::c_int, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_email_free"] - pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_count"] + pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get1_ocsp"] - pub fn X509_get1_ocsp(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get0"] + pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *const X509_PURPOSE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_host"] - pub fn X509_check_host( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_by_sname"] + pub fn X509_PURPOSE_get_by_sname(sname: *const ::std::os::raw::c_char) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_email"] - pub fn X509_check_email( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_by_id"] + pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_ip"] - pub fn X509_check_ip( - x: *mut X509, - chk: *const ::std::os::raw::c_uchar, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get0_name"] + pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x: *mut 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_fips_0_13_0_X509_PURPOSE_get0_sname"] + pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_trust"] + pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PURPOSE_get_id"] + pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -26339,10 +25846,16 @@ pub struct ocsp_cert_id_st { pub type OCSP_CERTID = ocsp_cert_id_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ocsp_responder_id_st { +pub struct ocsp_one_request_st { _unused: [u8; 0], } -pub type OCSP_RESPID = ocsp_responder_id_st; +pub type OCSP_ONEREQ = ocsp_one_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ocsp_req_info_st { + _unused: [u8; 0], +} +pub type OCSP_REQINFO = ocsp_req_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ocsp_signature_st { @@ -26351,6 +25864,12 @@ pub struct ocsp_signature_st { pub type OCSP_SIGNATURE = ocsp_signature_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_request_st { + _unused: [u8; 0], +} +pub type OCSP_REQUEST = ocsp_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_resp_bytes_st { _unused: [u8; 0], } @@ -26387,6 +25906,12 @@ pub struct ocsp_response_st { pub type OCSP_RESPONSE = ocsp_response_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_responder_id_st { + _unused: [u8; 0], +} +pub type OCSP_RESPID = ocsp_responder_id_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_basic_response_st { _unused: [u8; 0], } @@ -26402,8 +25927,8 @@ pub type sk_OCSP_CERTID_copy_func = ::std::option::Option *mut OCSP_CERTID>; pub type sk_OCSP_CERTID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_CERTID, - arg2: *mut *const OCSP_CERTID, + arg1: *const *const OCSP_CERTID, + arg2: *const *const OCSP_CERTID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< @@ -26414,6 +25939,27 @@ pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct stack_st_OCSP_ONEREQ { + _unused: [u8; 0], +} +pub type sk_OCSP_ONEREQ_free_func = + ::std::option::Option; +pub type sk_OCSP_ONEREQ_copy_func = + ::std::option::Option *mut OCSP_ONEREQ>; +pub type sk_OCSP_ONEREQ_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const OCSP_ONEREQ, + arg2: *const *const OCSP_ONEREQ, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OCSP_ONEREQ_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut OCSP_ONEREQ, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct stack_st_OCSP_RESPID { _unused: [u8; 0], } @@ -26423,8 +25969,8 @@ pub type sk_OCSP_RESPID_copy_func = ::std::option::Option *mut OCSP_RESPID>; pub type sk_OCSP_RESPID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_RESPID, - arg2: *mut *const OCSP_RESPID, + arg1: *const *const OCSP_RESPID, + arg2: *const *const OCSP_RESPID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_RESPID_delete_if_func = ::std::option::Option< @@ -26445,8 +25991,8 @@ pub type sk_OCSP_SINGLERESP_copy_func = ::std::option::Option< >; pub type sk_OCSP_SINGLERESP_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_SINGLERESP, - arg2: *mut *const OCSP_SINGLERESP, + arg1: *const *const OCSP_SINGLERESP, + arg2: *const *const OCSP_SINGLERESP, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< @@ -26456,15 +26002,123 @@ pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_SINGLERESP_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_new"] + pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_free"] + pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_BASICRESP"] + pub fn d2i_OCSP_BASICRESP( + a: *mut *mut OCSP_BASICRESP, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_BASICRESP"] + pub fn i2d_OCSP_BASICRESP( + a: *mut OCSP_BASICRESP, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_it"] + pub static OCSP_BASICRESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_new"] + pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_free"] + pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE"] + pub fn d2i_OCSP_RESPONSE( + a: *mut *mut OCSP_RESPONSE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE"] + pub fn i2d_OCSP_RESPONSE( + a: *mut OCSP_RESPONSE, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_it"] + pub static OCSP_RESPONSE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_new"] + pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_free"] + pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_CERTID"] + pub fn d2i_OCSP_CERTID( + a: *mut *mut OCSP_CERTID, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_CERTID"] + pub fn i2d_OCSP_CERTID( + a: *mut OCSP_CERTID, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_it"] + pub static OCSP_CERTID_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_new"] + pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_free"] + pub fn OCSP_REQUEST_free(a: *mut OCSP_REQUEST); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_REQUEST"] + pub fn d2i_OCSP_REQUEST( + a: *mut *mut OCSP_REQUEST, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_REQUEST"] + pub fn i2d_OCSP_REQUEST( + a: *mut OCSP_REQUEST, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_it"] + pub static OCSP_REQUEST_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_new"] pub fn OCSP_SINGLERESP_new() -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_SINGLERESP_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_free"] pub fn OCSP_SINGLERESP_free(a: *mut OCSP_SINGLERESP); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_SINGLERESP"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_SINGLERESP"] pub fn d2i_OCSP_SINGLERESP( a: *mut *mut OCSP_SINGLERESP, in_: *mut *const ::std::os::raw::c_uchar, @@ -26472,290 +26126,418 @@ extern "C" { ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_SINGLERESP"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_SINGLERESP"] pub fn i2d_OCSP_SINGLERESP( a: *mut OCSP_SINGLERESP, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_SINGLERESP_it"] - pub static OCSP_SINGLERESP_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_it"] + pub static OCSP_SINGLERESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_REQUEST_bio"] + pub fn d2i_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut *mut OCSP_REQUEST) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE_bio"] + pub fn d2i_OCSP_RESPONSE_bio( + bp: *mut BIO, + presp: *mut *mut OCSP_RESPONSE, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE_bio"] + pub fn i2d_OCSP_RESPONSE_bio(bp: *mut BIO, presp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_REQUEST_bio"] + pub fn i2d_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_dup"] + pub fn OCSP_CERTID_dup(id: *mut OCSP_CERTID) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_sendreq_bio"] + pub fn OCSP_sendreq_bio( + b: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_sendreq_new"] + pub fn OCSP_sendreq_new( + io: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + maxline: ::std::os::raw::c_int, + ) -> *mut OCSP_REQ_CTX; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_sendreq_nbio"] + pub fn OCSP_sendreq_nbio( + presp: *mut *mut OCSP_RESPONSE, + rctx: *mut OCSP_REQ_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTSTATUS_new"] - pub fn OCSP_CERTSTATUS_new() -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_new"] + pub fn OCSP_REQ_CTX_new(io: *mut BIO, maxline: ::std::os::raw::c_int) -> *mut OCSP_REQ_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTSTATUS_free"] - pub fn OCSP_CERTSTATUS_free(a: *mut OCSP_CERTSTATUS); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_free"] + pub fn OCSP_REQ_CTX_free(rctx: *mut OCSP_REQ_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_CERTSTATUS"] - pub fn d2i_OCSP_CERTSTATUS( - a: *mut *mut OCSP_CERTSTATUS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_set_max_response_length"] + pub fn OCSP_set_max_response_length(rctx: *mut OCSP_REQ_CTX, len: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_CERTSTATUS"] - pub fn i2d_OCSP_CERTSTATUS( - a: *mut OCSP_CERTSTATUS, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_http"] + pub fn OCSP_REQ_CTX_http( + rctx: *mut OCSP_REQ_CTX, + op: *const ::std::os::raw::c_char, + path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTSTATUS_it"] - pub static OCSP_CERTSTATUS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_set1_req"] + pub fn OCSP_REQ_CTX_set1_req( + rctx: *mut OCSP_REQ_CTX, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_new"] - pub fn OCSP_REVOKEDINFO_new() -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_add1_header"] + pub fn OCSP_REQ_CTX_add1_header( + rctx: *mut OCSP_REQ_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_free"] - pub fn OCSP_REVOKEDINFO_free(a: *mut OCSP_REVOKEDINFO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_i2d"] + pub fn OCSP_REQ_CTX_i2d( + rctx: *mut OCSP_REQ_CTX, + it: *const ASN1_ITEM, + val: *mut ASN1_VALUE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_REVOKEDINFO"] - pub fn d2i_OCSP_REVOKEDINFO( - a: *mut *mut OCSP_REVOKEDINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_add0_id"] + pub fn OCSP_request_add0_id(req: *mut OCSP_REQUEST, cid: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_REVOKEDINFO"] - pub fn i2d_OCSP_REVOKEDINFO( - a: *mut OCSP_REVOKEDINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_onereq_get0_id"] + pub fn OCSP_onereq_get0_id(one: *mut OCSP_ONEREQ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_it"] - pub static OCSP_REVOKEDINFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_add1_nonce"] + pub fn OCSP_request_add1_nonce( + req: *mut OCSP_REQUEST, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_BASICRESP_new"] - pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_add1_nonce"] + pub fn OCSP_basic_add1_nonce( + resp: *mut OCSP_BASICRESP, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_BASICRESP_free"] - pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_check_nonce"] + pub fn OCSP_check_nonce( + req: *mut OCSP_REQUEST, + bs: *mut OCSP_BASICRESP, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_BASICRESP"] - pub fn d2i_OCSP_BASICRESP( - a: *mut *mut OCSP_BASICRESP, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_copy_nonce"] + pub fn OCSP_copy_nonce( + resp: *mut OCSP_BASICRESP, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_BASICRESP"] - pub fn i2d_OCSP_BASICRESP( - a: *mut OCSP_BASICRESP, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_set1_name"] + pub fn OCSP_request_set1_name( + req: *mut OCSP_REQUEST, + nm: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_BASICRESP_it"] - pub static OCSP_BASICRESP_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_add1_cert"] + pub fn OCSP_request_add1_cert(req: *mut OCSP_REQUEST, cert: *mut X509) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPDATA_new"] - pub fn OCSP_RESPDATA_new() -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_is_signed"] + pub fn OCSP_request_is_signed(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPDATA_free"] - pub fn OCSP_RESPDATA_free(a: *mut OCSP_RESPDATA); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_onereq_count"] + pub fn OCSP_request_onereq_count(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPDATA"] - pub fn d2i_OCSP_RESPDATA( - a: *mut *mut OCSP_RESPDATA, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_onereq_get0"] + pub fn OCSP_request_onereq_get0( + req: *mut OCSP_REQUEST, + i: ::std::os::raw::c_int, + ) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPDATA"] - pub fn i2d_OCSP_RESPDATA( - a: *mut OCSP_RESPDATA, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_sign"] + pub fn OCSP_request_sign( + req: *mut OCSP_REQUEST, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPDATA_it"] - pub static OCSP_RESPDATA_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_status"] + pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPID_new"] - pub fn OCSP_RESPID_new() -> *mut OCSP_RESPID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_get1_basic"] + pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPID_free"] - pub fn OCSP_RESPID_free(a: *mut OCSP_RESPID); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_count"] + pub fn OCSP_resp_count(bs: *mut OCSP_BASICRESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPID"] - pub fn d2i_OCSP_RESPID( - a: *mut *mut OCSP_RESPID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_get0"] + pub fn OCSP_resp_get0(bs: *mut OCSP_BASICRESP, idx: usize) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPID"] - pub fn i2d_OCSP_RESPID( - a: *mut OCSP_RESPID, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_single_get0_status"] + pub fn OCSP_single_get0_status( + single: *mut OCSP_SINGLERESP, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPID_it"] - pub static OCSP_RESPID_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_find"] + pub fn OCSP_resp_find( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + last: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPONSE_new"] - pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_find_status"] + pub fn OCSP_resp_find_status( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + status: *mut ::std::os::raw::c_int, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPONSE_free"] - pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_check_validity"] + pub fn OCSP_check_validity( + thisUpdate: *mut ASN1_GENERALIZEDTIME, + nextUpdate: *mut ASN1_GENERALIZEDTIME, + drift_num_seconds: ::std::os::raw::c_long, + max_age_seconds: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPONSE"] - pub fn d2i_OCSP_RESPONSE( - a: *mut *mut OCSP_RESPONSE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_verify"] + pub fn OCSP_basic_verify( + bs: *mut OCSP_BASICRESP, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPONSE"] - pub fn i2d_OCSP_RESPONSE( - a: *mut OCSP_RESPONSE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_verify"] + pub fn OCSP_request_verify( + req: *mut OCSP_REQUEST, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPONSE_it"] - pub static OCSP_RESPONSE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_cert_id_new"] + pub fn OCSP_cert_id_new( + dgst: *const EVP_MD, + issuerName: *const X509_NAME, + issuerKey: *const ASN1_BIT_STRING, + serialNumber: *const ASN1_INTEGER, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPBYTES_new"] - pub fn OCSP_RESPBYTES_new() -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_cert_to_id"] + pub fn OCSP_cert_to_id( + dgst: *const EVP_MD, + subject: *const X509, + issuer: *const X509, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPBYTES_free"] - pub fn OCSP_RESPBYTES_free(a: *mut OCSP_RESPBYTES); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_parse_url"] + pub fn OCSP_parse_url( + url: *const ::std::os::raw::c_char, + phost: *mut *mut ::std::os::raw::c_char, + pport: *mut *mut ::std::os::raw::c_char, + ppath: *mut *mut ::std::os::raw::c_char, + pssl: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPBYTES"] - pub fn d2i_OCSP_RESPBYTES( - a: *mut *mut OCSP_RESPBYTES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_id_issuer_cmp"] + pub fn OCSP_id_issuer_cmp( + a: *const OCSP_CERTID, + b: *const OCSP_CERTID, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPBYTES"] - pub fn i2d_OCSP_RESPBYTES( - a: *mut OCSP_RESPBYTES, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_id_cmp"] + pub fn OCSP_id_cmp(a: *const OCSP_CERTID, b: *const OCSP_CERTID) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_id_get0_info"] + pub fn OCSP_id_get0_info( + nameHash: *mut *mut ASN1_OCTET_STRING, + algor: *mut *mut ASN1_OBJECT, + keyHash: *mut *mut ASN1_OCTET_STRING, + serial: *mut *mut ASN1_INTEGER, + cid: *mut OCSP_CERTID, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPBYTES_it"] - pub static OCSP_RESPBYTES_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_add1_cert"] + pub fn OCSP_basic_add1_cert( + resp: *mut OCSP_BASICRESP, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTID_new"] - pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_add1_status"] + pub fn OCSP_basic_add1_status( + resp: *mut OCSP_BASICRESP, + cid: *mut OCSP_CERTID, + status: ::std::os::raw::c_int, + revoked_reason: ::std::os::raw::c_int, + revoked_time: *mut ASN1_TIME, + this_update: *mut ASN1_TIME, + next_update: *mut ASN1_TIME, + ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTID_free"] - pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_sign"] + pub fn OCSP_basic_sign( + resp: *mut OCSP_BASICRESP, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_CERTID"] - pub fn d2i_OCSP_CERTID( - a: *mut *mut OCSP_CERTID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_create"] + pub fn OCSP_response_create( + status: ::std::os::raw::c_int, + bs: *mut OCSP_BASICRESP, + ) -> *mut OCSP_RESPONSE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_CERTID"] - pub fn i2d_OCSP_CERTID( - a: *mut OCSP_CERTID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_get0_id"] + pub fn OCSP_SINGLERESP_get0_id(x: *const OCSP_SINGLERESP) -> *const OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTID_it"] - pub static OCSP_CERTID_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_status_str"] + pub fn OCSP_response_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_new() -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_cert_status_str"] + pub fn OCSP_cert_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_free(a: *mut OCSP_SIGNATURE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_crl_reason_str"] + pub fn OCSP_crl_reason_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn d2i_OCSP_SIGNATURE( - a: *mut *mut OCSP_SIGNATURE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_print"] + pub fn OCSP_REQUEST_print( + bp: *mut BIO, + req: *mut OCSP_REQUEST, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn i2d_OCSP_SIGNATURE( - a: *mut OCSP_SIGNATURE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_print"] + pub fn OCSP_RESPONSE_print( + bp: *mut BIO, + resp: *mut OCSP_RESPONSE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub static OCSP_SIGNATURE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext_by_NID"] + pub fn OCSP_BASICRESP_get_ext_by_NID( + bs: *mut OCSP_BASICRESP, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_response_status"] - pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext"] + pub fn OCSP_BASICRESP_get_ext( + bs: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_response_get1_basic"] - pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_delete_ext"] + pub fn OCSP_BASICRESP_delete_ext( + x: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_resp_find_status"] - pub fn OCSP_resp_find_status( - bs: *mut OCSP_BASICRESP, - id: *mut OCSP_CERTID, - status: *mut ::std::os::raw::c_int, - reason: *mut ::std::os::raw::c_int, - revtime: *mut *mut ASN1_GENERALIZEDTIME, - thisupd: *mut *mut ASN1_GENERALIZEDTIME, - nextupd: *mut *mut ASN1_GENERALIZEDTIME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_add_ext"] + pub fn OCSP_SINGLERESP_add_ext( + sresp: *mut OCSP_SINGLERESP, + ex: *mut X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_basic_verify"] - pub fn OCSP_basic_verify( - bs: *mut OCSP_BASICRESP, - certs: *mut stack_st_X509, - st: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext_count"] + pub fn OCSP_SINGLERESP_get_ext_count(sresp: *mut OCSP_SINGLERESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_cert_to_id"] - pub fn OCSP_cert_to_id( - dgst: *const EVP_MD, - subject: *const X509, - issuer: *const X509, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext"] + pub fn OCSP_SINGLERESP_get_ext( + sresp: *mut OCSP_SINGLERESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } pub type pem_password_cb = ::std::option::Option< unsafe extern "C" fn( @@ -26766,14 +26548,14 @@ pub type pem_password_cb = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_get_EVP_CIPHER_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_get_EVP_CIPHER_INFO"] pub fn PEM_get_EVP_CIPHER_INFO( header: *mut ::std::os::raw::c_char, cipher: *mut EVP_CIPHER_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_do_header"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_do_header"] pub fn PEM_do_header( cipher: *mut EVP_CIPHER_INFO, data: *mut ::std::os::raw::c_uchar, @@ -26783,7 +26565,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio"] pub fn PEM_read_bio( bp: *mut BIO, name: *mut *mut ::std::os::raw::c_char, @@ -26793,7 +26575,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio"] pub fn PEM_write_bio( bp: *mut BIO, name: *const ::std::os::raw::c_char, @@ -26803,7 +26585,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_bytes_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_bytes_read_bio"] pub fn PEM_bytes_read_bio( pdata: *mut *mut ::std::os::raw::c_uchar, plen: *mut ::std::os::raw::c_long, @@ -26815,7 +26597,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_read_bio"] pub fn PEM_ASN1_read_bio( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26826,7 +26608,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_write_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_write_bio"] pub fn PEM_ASN1_write_bio( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26840,7 +26622,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_X509_INFO_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_X509_INFO_read_bio"] pub fn PEM_X509_INFO_read_bio( bp: *mut BIO, sk: *mut stack_st_X509_INFO, @@ -26849,7 +26631,16 @@ extern "C" { ) -> *mut stack_st_X509_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_X509_INFO_read"] + pub fn PEM_X509_INFO_read( + fp: *mut FILE, + sk: *mut stack_st_X509_INFO, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut stack_st_X509_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read"] pub fn PEM_read( fp: *mut FILE, name: *mut *mut ::std::os::raw::c_char, @@ -26859,7 +26650,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write"] pub fn PEM_write( fp: *mut FILE, name: *const ::std::os::raw::c_char, @@ -26869,7 +26660,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_read"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_read"] pub fn PEM_ASN1_read( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26880,7 +26671,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_write"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_write"] pub fn PEM_ASN1_write( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26894,16 +26685,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_X509_INFO_read"] - pub fn PEM_X509_INFO_read( - fp: *mut FILE, - sk: *mut stack_st_X509_INFO, - cb: pem_password_cb, - u: *mut ::std::os::raw::c_void, - ) -> *mut stack_st_X509_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_def_callback"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_def_callback"] pub fn PEM_def_callback( buf: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, @@ -26912,20 +26694,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_proc_type"] - pub fn PEM_proc_type(buf: *mut ::std::os::raw::c_char, type_: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_dek_info"] - pub fn PEM_dek_info( - buf: *mut ::std::os::raw::c_char, - type_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - str_: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509"] pub fn PEM_read_bio_X509( bp: *mut BIO, x: *mut *mut X509, @@ -26934,7 +26703,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509"] pub fn PEM_read_X509( fp: *mut FILE, x: *mut *mut X509, @@ -26943,15 +26712,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509"] pub fn PEM_write_bio_X509(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509"] pub fn PEM_write_X509(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509_AUX"] pub fn PEM_read_bio_X509_AUX( bp: *mut BIO, x: *mut *mut X509, @@ -26960,7 +26729,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509_AUX"] pub fn PEM_read_X509_AUX( fp: *mut FILE, x: *mut *mut X509, @@ -26969,15 +26738,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_AUX"] pub fn PEM_write_bio_X509_AUX(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_AUX"] pub fn PEM_write_X509_AUX(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509_REQ"] pub fn PEM_read_bio_X509_REQ( bp: *mut BIO, x: *mut *mut X509_REQ, @@ -26986,7 +26755,7 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509_REQ"] pub fn PEM_read_X509_REQ( fp: *mut FILE, x: *mut *mut X509_REQ, @@ -26995,23 +26764,23 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ"] pub fn PEM_write_bio_X509_REQ(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_REQ"] pub fn PEM_write_X509_REQ(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ_NEW"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ_NEW"] pub fn PEM_write_bio_X509_REQ_NEW(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_REQ_NEW"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_REQ_NEW"] pub fn PEM_write_X509_REQ_NEW(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509_CRL"] pub fn PEM_read_bio_X509_CRL( bp: *mut BIO, x: *mut *mut X509_CRL, @@ -27020,7 +26789,7 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509_CRL"] pub fn PEM_read_X509_CRL( fp: *mut FILE, x: *mut *mut X509_CRL, @@ -27029,15 +26798,15 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_CRL"] pub fn PEM_write_bio_X509_CRL(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_CRL"] pub fn PEM_write_X509_CRL(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PKCS7"] pub fn PEM_read_bio_PKCS7( bp: *mut BIO, x: *mut *mut PKCS7, @@ -27046,7 +26815,7 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PKCS7"] pub fn PEM_read_PKCS7( fp: *mut FILE, x: *mut *mut PKCS7, @@ -27055,15 +26824,15 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS7"] pub fn PEM_write_bio_PKCS7(bp: *mut BIO, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS7"] pub fn PEM_write_PKCS7(fp: *mut FILE, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PKCS8"] pub fn PEM_read_bio_PKCS8( bp: *mut BIO, x: *mut *mut X509_SIG, @@ -27072,7 +26841,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PKCS8"] pub fn PEM_read_PKCS8( fp: *mut FILE, x: *mut *mut X509_SIG, @@ -27081,15 +26850,15 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8"] pub fn PEM_write_bio_PKCS8(bp: *mut BIO, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8"] pub fn PEM_write_PKCS8(fp: *mut FILE, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27098,7 +26867,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27107,21 +26876,21 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_RSAPrivateKey"] pub fn PEM_read_bio_RSAPrivateKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27130,7 +26899,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_RSAPrivateKey"] pub fn PEM_read_RSAPrivateKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27139,7 +26908,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_RSAPrivateKey"] pub fn PEM_write_bio_RSAPrivateKey( bp: *mut BIO, x: *mut RSA, @@ -27151,7 +26920,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_RSAPrivateKey"] pub fn PEM_write_RSAPrivateKey( fp: *mut FILE, x: *mut RSA, @@ -27163,7 +26932,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_RSAPublicKey"] pub fn PEM_read_bio_RSAPublicKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27172,7 +26941,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_RSAPublicKey"] pub fn PEM_read_RSAPublicKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27181,15 +26950,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_RSAPublicKey"] pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_RSAPublicKey"] pub fn PEM_write_RSAPublicKey(fp: *mut FILE, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_RSA_PUBKEY"] pub fn PEM_read_bio_RSA_PUBKEY( bp: *mut BIO, x: *mut *mut RSA, @@ -27198,7 +26967,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_RSA_PUBKEY"] pub fn PEM_read_RSA_PUBKEY( fp: *mut FILE, x: *mut *mut RSA, @@ -27207,15 +26976,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_RSA_PUBKEY"] pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_RSA_PUBKEY"] pub fn PEM_write_RSA_PUBKEY(fp: *mut FILE, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DSAPrivateKey"] pub fn PEM_read_bio_DSAPrivateKey( bp: *mut BIO, x: *mut *mut DSA, @@ -27224,7 +26993,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DSAPrivateKey"] pub fn PEM_read_DSAPrivateKey( fp: *mut FILE, x: *mut *mut DSA, @@ -27233,7 +27002,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DSAPrivateKey"] pub fn PEM_write_bio_DSAPrivateKey( bp: *mut BIO, x: *mut DSA, @@ -27245,7 +27014,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DSAPrivateKey"] pub fn PEM_write_DSAPrivateKey( fp: *mut FILE, x: *mut DSA, @@ -27257,7 +27026,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DSA_PUBKEY"] pub fn PEM_read_bio_DSA_PUBKEY( bp: *mut BIO, x: *mut *mut DSA, @@ -27266,7 +27035,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DSA_PUBKEY"] pub fn PEM_read_DSA_PUBKEY( fp: *mut FILE, x: *mut *mut DSA, @@ -27275,15 +27044,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DSA_PUBKEY"] pub fn PEM_write_bio_DSA_PUBKEY(bp: *mut BIO, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DSA_PUBKEY"] pub fn PEM_write_DSA_PUBKEY(fp: *mut FILE, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DSAparams"] pub fn PEM_read_bio_DSAparams( bp: *mut BIO, x: *mut *mut DSA, @@ -27292,7 +27061,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DSAparams"] pub fn PEM_read_DSAparams( fp: *mut FILE, x: *mut *mut DSA, @@ -27301,15 +27070,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DSAparams"] pub fn PEM_write_bio_DSAparams(bp: *mut BIO, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DSAparams"] pub fn PEM_write_DSAparams(fp: *mut FILE, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_ECPrivateKey"] pub fn PEM_read_bio_ECPrivateKey( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27318,7 +27087,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_ECPrivateKey"] pub fn PEM_read_ECPrivateKey( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27327,7 +27096,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_ECPrivateKey"] pub fn PEM_write_bio_ECPrivateKey( bp: *mut BIO, x: *mut EC_KEY, @@ -27339,7 +27108,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_ECPrivateKey"] pub fn PEM_write_ECPrivateKey( fp: *mut FILE, x: *mut EC_KEY, @@ -27351,7 +27120,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_EC_PUBKEY"] pub fn PEM_read_bio_EC_PUBKEY( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27360,7 +27129,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_EC_PUBKEY"] pub fn PEM_read_EC_PUBKEY( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27369,15 +27138,15 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_EC_PUBKEY"] pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_EC_PUBKEY"] pub fn PEM_write_EC_PUBKEY(fp: *mut FILE, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DHparams"] pub fn PEM_read_bio_DHparams( bp: *mut BIO, x: *mut *mut DH, @@ -27386,7 +27155,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DHparams"] pub fn PEM_read_DHparams( fp: *mut FILE, x: *mut *mut DH, @@ -27395,15 +27164,15 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DHparams"] pub fn PEM_write_bio_DHparams(bp: *mut BIO, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DHparams"] pub fn PEM_write_DHparams(fp: *mut FILE, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PrivateKey"] pub fn PEM_read_bio_PrivateKey( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27412,7 +27181,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PrivateKey"] pub fn PEM_read_PrivateKey( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27421,7 +27190,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey"] pub fn PEM_write_bio_PrivateKey( bp: *mut BIO, x: *mut EVP_PKEY, @@ -27433,7 +27202,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PrivateKey"] pub fn PEM_write_PrivateKey( fp: *mut FILE, x: *mut EVP_PKEY, @@ -27445,7 +27214,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PUBKEY"] pub fn PEM_read_bio_PUBKEY( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27454,7 +27223,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PUBKEY"] pub fn PEM_read_PUBKEY( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27463,18 +27232,18 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PUBKEY"] pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PUBKEY"] pub fn PEM_write_PUBKEY(fp: *mut FILE, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey_nid"] pub fn PEM_write_bio_PKCS8PrivateKey_nid( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27483,10 +27252,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey"] pub fn PEM_write_bio_PKCS8PrivateKey( arg1: *mut BIO, - arg2: *mut EVP_PKEY, + arg2: *const EVP_PKEY, arg3: *const EVP_CIPHER, arg4: *mut ::std::os::raw::c_char, arg5: ::std::os::raw::c_int, @@ -27495,10 +27264,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_bio"] pub fn i2d_PKCS8PrivateKey_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27507,10 +27276,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_bio"] pub fn i2d_PKCS8PrivateKey_nid_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27519,7 +27288,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_bio"] pub fn d2i_PKCS8PrivateKey_bio( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27528,10 +27297,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_fp"] pub fn i2d_PKCS8PrivateKey_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27540,10 +27309,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_fp"] pub fn i2d_PKCS8PrivateKey_nid_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27552,10 +27321,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey_nid"] pub fn PEM_write_PKCS8PrivateKey_nid( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27564,7 +27333,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_fp"] pub fn d2i_PKCS8PrivateKey_fp( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27573,10 +27342,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey"] pub fn PEM_write_PKCS8PrivateKey( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27585,7 +27354,43 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_Parameters"] + pub fn PEM_read_bio_Parameters(bio: *mut BIO, pkey: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_Parameters"] + pub fn PEM_write_bio_Parameters(bio: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_ECPKParameters"] + pub fn PEM_read_bio_ECPKParameters( + bio: *mut BIO, + out_group: *mut *mut EC_GROUP, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_ECPKParameters"] + pub fn PEM_write_bio_ECPKParameters( + out: *mut BIO, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey_traditional"] + pub fn PEM_write_bio_PrivateKey_traditional( + bp: *mut BIO, + x: *mut EVP_PKEY, + enc: *const EVP_CIPHER, + kstr: *mut ::std::os::raw::c_uchar, + klen: ::std::os::raw::c_int, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_encrypt"] pub fn PKCS8_encrypt( pbe_nid: ::std::os::raw::c_int, cipher: *const EVP_CIPHER, @@ -27598,7 +27403,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_marshal_encrypted_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_marshal_encrypted_private_key"] pub fn PKCS8_marshal_encrypted_private_key( out: *mut CBB, pbe_nid: ::std::os::raw::c_int, @@ -27612,7 +27417,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_decrypt"] pub fn PKCS8_decrypt( pkcs8: *mut X509_SIG, pass: *const ::std::os::raw::c_char, @@ -27620,7 +27425,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_parse_encrypted_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_parse_encrypted_private_key"] pub fn PKCS8_parse_encrypted_private_key( cbs: *mut CBS, pass: *const ::std::os::raw::c_char, @@ -27628,7 +27433,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_get_key_and_certs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_get_key_and_certs"] pub fn PKCS12_get_key_and_certs( out_key: *mut *mut EVP_PKEY, out_certs: *mut stack_st_X509, @@ -27637,11 +27442,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_PBE_add"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_PBE_add"] pub fn PKCS12_PBE_add(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS12"] pub fn d2i_PKCS12( out_p12: *mut *mut PKCS12, ber_bytes: *mut *const u8, @@ -27649,27 +27454,27 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS12_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS12_bio"] pub fn d2i_PKCS12_bio(bio: *mut BIO, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS12_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS12_fp"] pub fn d2i_PKCS12_fp(fp: *mut FILE, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS12"] pub fn i2d_PKCS12(p12: *const PKCS12, out: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS12_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS12_bio"] pub fn i2d_PKCS12_bio(bio: *mut BIO, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS12_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS12_fp"] pub fn i2d_PKCS12_fp(fp: *mut FILE, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_parse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_parse"] pub fn PKCS12_parse( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27679,7 +27484,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_verify_mac"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_verify_mac"] pub fn PKCS12_verify_mac( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27687,7 +27492,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_create"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_create"] pub fn PKCS12_create( password: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, @@ -27702,76 +27507,95 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_new"] + pub fn PKCS12_new() -> *mut PKCS12; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_free"] pub fn PKCS12_free(p12: *mut PKCS12); } pub type poly1305_state = [u8; 512usize]; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_poly1305_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_poly1305_init"] pub fn CRYPTO_poly1305_init(state: *mut poly1305_state, key: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_poly1305_update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_poly1305_update"] pub fn CRYPTO_poly1305_update(state: *mut poly1305_state, in_: *const u8, in_len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_poly1305_finish"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_poly1305_finish"] pub fn CRYPTO_poly1305_finish(state: *mut poly1305_state, mac: *mut u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_bytes"] pub fn RAND_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_get_system_entropy_for_custom_prng"] - pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_priv_bytes"] + pub fn RAND_priv_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_cleanup"] - pub fn RAND_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_enable_fork_unsafe_buffering"] + pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_enable_fork_unsafe_buffering"] - pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_get_system_entropy_for_custom_prng"] + pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_pseudo_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_pseudo_bytes"] pub fn RAND_pseudo_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_seed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_seed"] pub fn RAND_seed(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_load_file"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_load_file"] pub fn RAND_load_file( path: *const ::std::os::raw::c_char, num: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_file_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_write_file"] + pub fn RAND_write_file(file: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_file_name"] pub fn RAND_file_name( buf: *mut ::std::os::raw::c_char, num: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_add"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_add"] pub fn RAND_add(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int, entropy: f64); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_egd"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_egd"] pub fn RAND_egd(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_poll"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_egd_bytes"] + pub fn RAND_egd_bytes( + arg1: *const ::std::os::raw::c_char, + bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_poll"] pub fn RAND_poll() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_status"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_status"] pub fn RAND_status() -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_cleanup"] + pub fn RAND_cleanup(); +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] pub struct rand_meth_st { @@ -27870,21 +27694,25 @@ fn bindgen_test_layout_rand_meth_st() { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_SSLeay"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_SSLeay"] pub fn RAND_SSLeay() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_OpenSSL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_OpenSSL"] pub fn RAND_OpenSSL() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_get_rand_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_get_rand_method"] pub fn RAND_get_rand_method() -> *const RAND_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_set_rand_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_set_rand_method"] pub fn RAND_set_rand_method(arg1: *const RAND_METHOD) -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_keep_random_devices_open"] + pub fn RAND_keep_random_devices_open(a: ::std::os::raw::c_int); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct rc4_key_st { @@ -27947,11 +27775,11 @@ impl Default for rc4_key_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RC4_set_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RC4_set_key"] pub fn RC4_set_key(rc4key: *mut RC4_KEY, len: ::std::os::raw::c_uint, key: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RC4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RC4"] pub fn RC4(key: *mut RC4_KEY, len: usize, in_: *const u8, out: *mut u8); } #[repr(C)] @@ -28038,11 +27866,11 @@ impl Default for RIPEMD160state_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160_Init"] pub fn RIPEMD160_Init(ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160_Update"] pub fn RIPEMD160_Update( ctx: *mut RIPEMD160_CTX, data: *const ::std::os::raw::c_void, @@ -28050,44 +27878,52 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160_Final"] pub fn RIPEMD160_Final(out: *mut u8, ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160"] pub fn RIPEMD160(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_service_indicator_before_call"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_service_indicator_before_call"] pub fn FIPS_service_indicator_before_call() -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_service_indicator_after_call"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_service_indicator_after_call"] pub fn FIPS_service_indicator_after_call() -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_awslc_version_string"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_awslc_version_string"] pub fn awslc_version_string() -> *const ::std::os::raw::c_char; } pub const FIPSStatus_AWSLC_NOT_APPROVED: FIPSStatus = 0; pub const FIPSStatus_AWSLC_APPROVED: FIPSStatus = 1; pub type FIPSStatus = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SIPHASH_24"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SIPHASH_24"] pub fn SIPHASH_24(key: *const u64, input: *const u8, input_len: usize) -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v1"] pub fn TRUST_TOKEN_experiment_v1() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_voprf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_voprf"] pub fn TRUST_TOKEN_experiment_v2_voprf() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_pmb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_pmb"] pub fn TRUST_TOKEN_experiment_v2_pmb() -> *const TRUST_TOKEN_METHOD; } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_voprf"] + pub fn TRUST_TOKEN_pst_v1_voprf() -> *const TRUST_TOKEN_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_pmb"] + pub fn TRUST_TOKEN_pst_v1_pmb() -> *const TRUST_TOKEN_METHOD; +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct trust_token_st { @@ -28149,8 +27985,8 @@ pub type sk_TRUST_TOKEN_copy_func = ::std::option::Option *mut TRUST_TOKEN>; pub type sk_TRUST_TOKEN_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const TRUST_TOKEN, - arg2: *mut *const TRUST_TOKEN, + arg1: *const *const TRUST_TOKEN, + arg2: *const *const TRUST_TOKEN, ) -> ::std::os::raw::c_int, >; pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< @@ -28160,15 +27996,15 @@ pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_new"] pub fn TRUST_TOKEN_new(data: *const u8, len: usize) -> *mut TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_free"] pub fn TRUST_TOKEN_free(token: *mut TRUST_TOKEN); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_generate_key"] pub fn TRUST_TOKEN_generate_key( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28181,7 +28017,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_derive_key_from_secret"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_derive_key_from_secret"] pub fn TRUST_TOKEN_derive_key_from_secret( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28196,18 +28032,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_new"] pub fn TRUST_TOKEN_CLIENT_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_CLIENT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_free"] pub fn TRUST_TOKEN_CLIENT_free(ctx: *mut TRUST_TOKEN_CLIENT); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_add_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_add_key"] pub fn TRUST_TOKEN_CLIENT_add_key( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28216,14 +28052,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_set_srr_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_set_srr_key"] pub fn TRUST_TOKEN_CLIENT_set_srr_key( ctx: *mut TRUST_TOKEN_CLIENT, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance"] pub fn TRUST_TOKEN_CLIENT_begin_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28232,7 +28068,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] pub fn TRUST_TOKEN_CLIENT_begin_issuance_over_message( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28243,7 +28079,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_issuance"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_issuance"] pub fn TRUST_TOKEN_CLIENT_finish_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28252,7 +28088,7 @@ extern "C" { ) -> *mut stack_st_TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_redemption"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_redemption"] pub fn TRUST_TOKEN_CLIENT_begin_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28264,7 +28100,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_redemption"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_redemption"] pub fn TRUST_TOKEN_CLIENT_finish_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out_rr: *mut *mut u8, @@ -28276,18 +28112,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_new"] pub fn TRUST_TOKEN_ISSUER_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_ISSUER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_free"] pub fn TRUST_TOKEN_ISSUER_free(ctx: *mut TRUST_TOKEN_ISSUER); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_add_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_add_key"] pub fn TRUST_TOKEN_ISSUER_add_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28295,14 +28131,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_srr_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_srr_key"] pub fn TRUST_TOKEN_ISSUER_set_srr_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_metadata_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_metadata_key"] pub fn TRUST_TOKEN_ISSUER_set_metadata_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28310,7 +28146,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_issue"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_issue"] pub fn TRUST_TOKEN_ISSUER_issue( ctx: *const TRUST_TOKEN_ISSUER, out: *mut *mut u8, @@ -28324,23 +28160,8 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem"] pub fn TRUST_TOKEN_ISSUER_redeem( - ctx: *const TRUST_TOKEN_ISSUER, - out: *mut *mut u8, - out_len: *mut usize, - out_token: *mut *mut TRUST_TOKEN, - out_client_data: *mut *mut u8, - out_client_data_len: *mut usize, - out_redemption_time: *mut u64, - request: *const u8, - request_len: usize, - lifetime: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_raw"] - pub fn TRUST_TOKEN_ISSUER_redeem_raw( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, out_private: *mut u8, @@ -28352,7 +28173,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_over_message"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem_over_message"] pub fn TRUST_TOKEN_ISSUER_redeem_over_message( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, @@ -28367,7 +28188,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_decode_private_metadata"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_decode_private_metadata"] pub fn TRUST_TOKEN_decode_private_metadata( method: *const TRUST_TOKEN_METHOD, out_value: *mut u8, @@ -28379,7 +28200,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_tls1_prf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_tls1_prf"] pub fn CRYPTO_tls1_prf( digest: *const EVP_MD, out: *mut u8, @@ -28395,15 +28216,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_GET_LIB_RUST"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_GET_LIB_RUST"] pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_GET_REASON_RUST"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_GET_REASON_RUST"] pub fn ERR_GET_REASON_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_GET_FUNC_RUST"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_GET_FUNC_RUST"] pub fn ERR_GET_FUNC_RUST(packed_error: u32) -> ::std::os::raw::c_int; } pub type __builtin_va_list = *mut ::std::os::raw::c_char; diff --git a/aws-lc-fips-sys/src/aarch64_unknown_linux_gnu_crypto.rs b/aws-lc-fips-sys/src/aarch64_unknown_linux_gnu_crypto.rs index 546e44f6782..d8264dd87f7 100644 --- a/aws-lc-fips-sys/src/aarch64_unknown_linux_gnu_crypto.rs +++ b/aws-lc-fips-sys/src/aarch64_unknown_linux_gnu_crypto.rs @@ -110,14 +110,130 @@ where 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 = 20; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"2.0.15\0"; +pub const AWSLC_API_VERSION: i32 = 30; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 6] = b"3.0.0\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; pub const AES_BLOCK_SIZE: i32 = 16; +pub const SHA_CBLOCK: i32 = 64; +pub const SHA_DIGEST_LENGTH: i32 = 20; +pub const SHA224_CBLOCK: i32 = 64; +pub const SHA224_DIGEST_LENGTH: i32 = 28; +pub const SHA256_CBLOCK: i32 = 64; +pub const SHA256_DIGEST_LENGTH: i32 = 32; +pub const SHA384_CBLOCK: i32 = 128; +pub const SHA384_DIGEST_LENGTH: i32 = 48; +pub const SHA512_CBLOCK: i32 = 128; +pub const SHA512_DIGEST_LENGTH: i32 = 64; +pub const SHA512_224_DIGEST_LENGTH: i32 = 28; +pub const SHA512_256_DIGEST_LENGTH: i32 = 32; +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; 41] = b"OpenSSL 1.1.1 (compatible; AWS-LC 3.0.0)\0"; +pub const OPENSSL_VERSION: i32 = 0; +pub const OPENSSL_CFLAGS: i32 = 1; +pub const OPENSSL_BUILT_ON: i32 = 2; +pub const OPENSSL_PLATFORM: i32 = 3; +pub const OPENSSL_DIR: i32 = 4; +pub const SSLEAY_VERSION: i32 = 0; +pub const SSLEAY_CFLAGS: i32 = 1; +pub const SSLEAY_BUILT_ON: i32 = 2; +pub const SSLEAY_PLATFORM: i32 = 3; +pub const SSLEAY_DIR: i32 = 4; +pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_ENGINE_ALL_BUILTIN: i32 = 0; pub const ERR_FLAG_STRING: i32 = 1; pub const ERR_FLAG_MALLOCED: i32 = 2; +pub const ERR_LIB_NONE: i32 = 1; +pub const ERR_LIB_SYS: i32 = 2; +pub const ERR_LIB_BN: i32 = 3; +pub const ERR_LIB_RSA: i32 = 4; +pub const ERR_LIB_DH: i32 = 5; +pub const ERR_LIB_EVP: i32 = 6; +pub const ERR_LIB_BUF: i32 = 7; +pub const ERR_LIB_OBJ: i32 = 8; +pub const ERR_LIB_PEM: i32 = 9; +pub const ERR_LIB_DSA: i32 = 10; +pub const ERR_LIB_X509: i32 = 11; +pub const ERR_LIB_ASN1: i32 = 12; +pub const ERR_LIB_CONF: i32 = 13; +pub const ERR_LIB_CRYPTO: i32 = 14; +pub const ERR_LIB_EC: i32 = 15; +pub const ERR_LIB_SSL: i32 = 16; +pub const ERR_LIB_BIO: i32 = 17; +pub const ERR_LIB_PKCS7: i32 = 18; +pub const ERR_LIB_PKCS8: i32 = 19; +pub const ERR_LIB_X509V3: i32 = 20; +pub const ERR_LIB_RAND: i32 = 21; +pub const ERR_LIB_ENGINE: i32 = 22; +pub const ERR_LIB_OCSP: i32 = 23; +pub const ERR_LIB_UI: i32 = 24; +pub const ERR_LIB_COMP: i32 = 25; +pub const ERR_LIB_ECDSA: i32 = 26; +pub const ERR_LIB_ECDH: i32 = 27; +pub const ERR_LIB_HMAC: i32 = 28; +pub const ERR_LIB_DIGEST: i32 = 29; +pub const ERR_LIB_CIPHER: i32 = 30; +pub const ERR_LIB_HKDF: i32 = 31; +pub const ERR_LIB_TRUST_TOKEN: i32 = 32; +pub const ERR_LIB_USER: i32 = 33; +pub const ERR_NUM_LIBS: i32 = 34; +pub const ERR_LIB_PKCS12: i32 = 35; +pub const ERR_LIB_DSO: i32 = 36; +pub const ERR_LIB_OSSL_STORE: i32 = 37; +pub const ERR_LIB_FIPS: i32 = 38; +pub const ERR_LIB_CMS: i32 = 39; +pub const ERR_LIB_TS: i32 = 40; +pub const ERR_LIB_CT: i32 = 41; +pub const ERR_LIB_ASYNC: i32 = 42; +pub const ERR_LIB_KDF: i32 = 43; +pub const ERR_LIB_SM2: i32 = 44; +pub const ERR_R_SYS_LIB: i32 = 2; +pub const ERR_R_BN_LIB: i32 = 3; +pub const ERR_R_RSA_LIB: i32 = 4; +pub const ERR_R_DH_LIB: i32 = 5; +pub const ERR_R_EVP_LIB: i32 = 6; +pub const ERR_R_BUF_LIB: i32 = 7; +pub const ERR_R_OBJ_LIB: i32 = 8; +pub const ERR_R_PEM_LIB: i32 = 9; +pub const ERR_R_DSA_LIB: i32 = 10; +pub const ERR_R_X509_LIB: i32 = 11; +pub const ERR_R_ASN1_LIB: i32 = 12; +pub const ERR_R_CONF_LIB: i32 = 13; +pub const ERR_R_CRYPTO_LIB: i32 = 14; +pub const ERR_R_EC_LIB: i32 = 15; +pub const ERR_R_SSL_LIB: i32 = 16; +pub const ERR_R_BIO_LIB: i32 = 17; +pub const ERR_R_PKCS7_LIB: i32 = 18; +pub const ERR_R_PKCS8_LIB: i32 = 19; +pub const ERR_R_X509V3_LIB: i32 = 20; +pub const ERR_R_RAND_LIB: i32 = 21; +pub const ERR_R_DSO_LIB: i32 = 36; +pub const ERR_R_ENGINE_LIB: i32 = 22; +pub const ERR_R_OCSP_LIB: i32 = 23; +pub const ERR_R_UI_LIB: i32 = 24; +pub const ERR_R_COMP_LIB: i32 = 25; +pub const ERR_R_ECDSA_LIB: i32 = 26; +pub const ERR_R_ECDH_LIB: i32 = 27; +pub const ERR_R_FIPS_LIB: i32 = 38; +pub const ERR_R_CMS_LIB: i32 = 39; +pub const ERR_R_TS_LIB: i32 = 40; +pub const ERR_R_HMAC_LIB: i32 = 28; +pub const ERR_R_USER_LIB: i32 = 33; +pub const ERR_R_DIGEST_LIB: i32 = 29; +pub const ERR_R_CIPHER_LIB: i32 = 30; +pub const ERR_R_HKDF_LIB: i32 = 31; +pub const ERR_R_TRUST_TOKEN_LIB: i32 = 32; pub const ERR_R_FATAL: i32 = 64; pub const ERR_R_MALLOC_FAILURE: i32 = 65; pub const ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED: i32 = 66; @@ -128,10 +244,6 @@ pub const ERR_ERROR_STRING_BUF_LEN: i32 = 120; pub const ERR_TXT_STRING: i32 = 1; pub const ERR_TXT_MALLOCED: i32 = 2; pub const ERR_NUM_ERRORS: i32 = 16; -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 BIO_RR_CONNECT: i32 = 2; pub const BIO_RR_ACCEPT: i32 = 3; pub const BIO_CB_FREE: i32 = 1; @@ -143,6 +255,7 @@ pub const BIO_CB_CTRL: i32 = 6; pub const BIO_CB_RETURN: i32 = 128; pub const BIO_NOCLOSE: i32 = 0; pub const BIO_CLOSE: i32 = 1; +pub const BIO_FP_TEXT: i32 = 16; pub const BIO_CTRL_DGRAM_QUERY_MTU: i32 = 40; pub const BIO_CTRL_DGRAM_SET_MTU: i32 = 42; pub const BIO_CTRL_DGRAM_MTU_EXCEEDED: i32 = 43; @@ -208,7 +321,6 @@ pub const BIO_C_SET_FILE_PTR: i32 = 106; pub const BIO_C_GET_FILE_PTR: i32 = 107; pub const BIO_C_SET_FILENAME: i32 = 108; pub const BIO_C_SET_SSL: i32 = 109; -pub const BIO_C_GET_SSL: i32 = 110; pub const BIO_C_SET_MD: i32 = 111; pub const BIO_C_GET_MD: i32 = 112; pub const BIO_C_GET_CIPHER_STATUS: i32 = 113; @@ -222,9 +334,6 @@ pub const BIO_C_GET_MD_CTX: i32 = 120; pub const BIO_C_GET_PROXY_PARAM: i32 = 121; pub const BIO_C_SET_BUFF_READ_DATA: i32 = 122; pub const BIO_C_GET_ACCEPT: i32 = 124; -pub const BIO_C_SET_SSL_RENEGOTIATE_BYTES: i32 = 125; -pub const BIO_C_GET_SSL_NUM_RENEGOTIATES: i32 = 126; -pub const BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT: i32 = 127; pub const BIO_C_FILE_SEEK: i32 = 128; pub const BIO_C_GET_CIPHER_CTX: i32 = 129; pub const BIO_C_SET_BUF_MEM_EOF_RETURN: i32 = 130; @@ -269,7 +378,6 @@ pub const BIO_R_UNSUPPORTED_METHOD: i32 = 115; pub const BIO_R_WRITE_TO_READ_ONLY_BIO: i32 = 116; pub const BN_BITS2: i32 = 64; pub const BN_DEC_FMT1: &[u8; 4] = b"%lu\0"; -pub const BN_DEC_FMT2: &[u8; 7] = b"%019lu\0"; pub const BN_HEX_FMT1: &[u8; 4] = b"%lx\0"; pub const BN_HEX_FMT2: &[u8; 7] = b"%016lx\0"; pub const BN_RAND_TOP_ANY: i32 = -1; @@ -304,6 +412,7 @@ pub const BN_R_TOO_MANY_TEMPORARY_VARIABLES: i32 = 116; pub const BN_R_BAD_ENCODING: i32 = 117; pub const BN_R_ENCODE_ERROR: i32 = 118; pub const BN_R_INVALID_INPUT: i32 = 119; +pub const BN_F_BN_GENERATE_PRIME_EX: i32 = 0; pub const V_ASN1_UNIVERSAL: i32 = 0; pub const V_ASN1_APPLICATION: i32 = 64; pub const V_ASN1_CONTEXT_SPECIFIC: i32 = 128; @@ -364,6 +473,9 @@ pub const B_ASN1_UTF8STRING: i32 = 8192; pub const B_ASN1_UTCTIME: i32 = 16384; pub const B_ASN1_GENERALIZEDTIME: i32 = 32768; pub const B_ASN1_SEQUENCE: i32 = 65536; +pub const ASN1_BOOLEAN_FALSE: i32 = 0; +pub const ASN1_BOOLEAN_TRUE: i32 = 255; +pub const ASN1_BOOLEAN_NONE: i32 = -1; pub const ASN1_STRING_FLAG_BITS_LEFT: i32 = 8; pub const MBSTRING_FLAG: i32 = 4096; pub const MBSTRING_UTF8: i32 = 4096; @@ -563,7 +675,10 @@ pub const EVP_CIPH_OFB_MODE: i32 = 4; pub const EVP_CIPH_CTR_MODE: i32 = 5; pub const EVP_CIPH_GCM_MODE: i32 = 6; pub const EVP_CIPH_XTS_MODE: i32 = 7; +pub const EVP_CIPH_CCM_MODE: i32 = 8; pub const EVP_CIPH_FLAG_LENGTH_BITS: i32 = 8192; +pub const EVP_CIPH_OCB_MODE: i32 = 9; +pub const EVP_CIPH_WRAP_MODE: i32 = 10; pub const EVP_CIPH_VARIABLE_LENGTH: i32 = 64; pub const EVP_CIPH_ALWAYS_CALL_INIT: i32 = 128; pub const EVP_CIPH_CUSTOM_IV: i32 = 256; @@ -572,9 +687,6 @@ pub const EVP_CIPH_FLAG_CUSTOM_CIPHER: i32 = 1024; pub const EVP_CIPH_FLAG_AEAD_CIPHER: i32 = 2048; pub const EVP_CIPH_CUSTOM_COPY: i32 = 4096; pub const EVP_CIPH_FLAG_NON_FIPS_ALLOW: i32 = 0; -pub const EVP_CIPH_CCM_MODE: i32 = -1; -pub const EVP_CIPH_OCB_MODE: i32 = -2; -pub const EVP_CIPH_WRAP_MODE: i32 = -3; pub const EVP_CIPHER_CTX_FLAG_WRAP_ALLOW: i32 = 0; pub const EVP_CIPH_NO_PADDING: i32 = 2048; pub const EVP_CTRL_INIT: i32 = 0; @@ -591,8 +703,10 @@ pub const EVP_CTRL_AEAD_GET_TAG: i32 = 16; pub const EVP_CTRL_AEAD_SET_TAG: i32 = 17; pub const EVP_CTRL_AEAD_SET_IV_FIXED: i32 = 18; pub const EVP_CTRL_GCM_IV_GEN: i32 = 19; +pub const EVP_CTRL_CCM_SET_L: i32 = 20; pub const EVP_CTRL_AEAD_SET_MAC_KEY: i32 = 23; pub const EVP_CTRL_GCM_SET_IV_INV: i32 = 24; +pub const EVP_CTRL_GET_IVLEN: i32 = 25; pub const EVP_GCM_TLS_FIXED_IV_LEN: i32 = 4; pub const EVP_GCM_TLS_EXPLICIT_IV_LEN: i32 = 8; pub const EVP_GCM_TLS_TAG_LEN: i32 = 16; @@ -636,6 +750,8 @@ pub const CIPHER_R_XTS_DATA_UNIT_IS_TOO_LARGE: i32 = 139; pub const CIPHER_R_CTRL_OPERATION_NOT_PERFORMED: i32 = 140; pub const CIPHER_R_SERIALIZATION_INVALID_EVP_AEAD_CTX: i32 = 141; pub const CIPHER_R_ALIGNMENT_CHANGED: i32 = 142; +pub const CIPHER_R_SERIALIZATION_INVALID_SERDE_VERSION: i32 = 143; +pub const CIPHER_R_SERIALIZATION_INVALID_CIPHER_ID: i32 = 144; pub const CONF_MFLAGS_DEFAULT_SECTION: i32 = 0; pub const CONF_MFLAGS_IGNORE_MISSING_FILE: i32 = 0; pub const CONF_R_LIST_CANNOT_BE_NULL: i32 = 100; @@ -645,36 +761,7 @@ pub const CONF_R_NO_CLOSE_BRACE: i32 = 103; pub const CONF_R_UNABLE_TO_CREATE_NEW_SECTION: i32 = 104; pub const CONF_R_VARIABLE_HAS_NO_VALUE: i32 = 105; pub const CONF_R_VARIABLE_EXPANSION_TOO_LONG: i32 = 106; -pub const SHA_CBLOCK: i32 = 64; -pub const SHA_DIGEST_LENGTH: i32 = 20; -pub const SHA224_CBLOCK: i32 = 64; -pub const SHA224_DIGEST_LENGTH: i32 = 28; -pub const SHA256_CBLOCK: i32 = 64; -pub const SHA256_DIGEST_LENGTH: i32 = 32; -pub const SHA384_CBLOCK: i32 = 128; -pub const SHA384_DIGEST_LENGTH: i32 = 48; -pub const SHA512_CBLOCK: i32 = 128; -pub const SHA512_DIGEST_LENGTH: i32 = 64; -pub const SHA512_256_DIGEST_LENGTH: i32 = 32; -pub const OPENSSL_VERSION_TEXT: &[u8; 35] = b"OpenSSL 1.1.1 (compatible; AWS-LC)\0"; -pub const OPENSSL_VERSION: i32 = 0; -pub const OPENSSL_CFLAGS: i32 = 1; -pub const OPENSSL_BUILT_ON: i32 = 2; -pub const OPENSSL_PLATFORM: i32 = 3; -pub const OPENSSL_DIR: i32 = 4; -pub const SSLEAY_VERSION: i32 = 0; -pub const SSLEAY_CFLAGS: i32 = 1; -pub const SSLEAY_BUILT_ON: i32 = 2; -pub const SSLEAY_PLATFORM: i32 = 3; -pub const SSLEAY_DIR: i32 = 4; -pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; -pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const CONF_R_VARIABLE_EXPANSION_NOT_SUPPORTED: i32 = 107; pub const X25519_PRIVATE_KEY_LEN: i32 = 32; pub const X25519_PUBLIC_VALUE_LEN: i32 = 32; pub const X25519_SHARED_KEY_LEN: i32 = 32; @@ -702,13 +789,18 @@ pub const DH_UNABLE_TO_CHECK_GENERATOR: i32 = 4; pub const DH_CHECK_PUBKEY_TOO_SMALL: i32 = 1; pub const DH_CHECK_PUBKEY_TOO_LARGE: i32 = 2; pub const DH_CHECK_PUBKEY_INVALID: i32 = 4; +pub const DH_FLAG_CACHE_MONT_P: i32 = 0; pub const DH_R_BAD_GENERATOR: i32 = 100; pub const DH_R_INVALID_PUBKEY: i32 = 101; pub const DH_R_MODULUS_TOO_LARGE: i32 = 102; pub const DH_R_NO_PRIVATE_VALUE: i32 = 103; pub const DH_R_DECODE_ERROR: i32 = 104; pub const DH_R_ENCODE_ERROR: i32 = 105; +pub const DH_R_INVALID_NID: i32 = 106; +pub const DH_R_INVALID_PARAMETERS: i32 = 107; +pub const DH_F_DH_BUILTIN_GENPARAMS: i32 = 0; pub const EVP_MAX_MD_SIZE: i32 = 64; +pub const EVP_MAX_MD_CHAINING_LENGTH: i32 = 64; pub const EVP_MAX_MD_BLOCK_SIZE: i32 = 128; pub const EVP_MD_FLAG_DIGALGID_ABSENT: i32 = 2; pub const EVP_MD_FLAG_XOF: i32 = 4; @@ -716,7 +808,6 @@ pub const EVP_MD_CTX_FLAG_NON_FIPS_ALLOW: i32 = 0; pub const DIGEST_R_INPUT_NOT_INITIALIZED: i32 = 100; pub const DIGEST_R_DECODE_ERROR: i32 = 101; pub const DIGEST_R_UNKNOWN_HASH: i32 = 102; -pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const DSA_R_BAD_Q_VALUE: i32 = 100; pub const DSA_R_MISSING_PARAMETERS: i32 = 101; pub const DSA_R_MODULUS_TOO_LARGE: i32 = 102; @@ -725,8 +816,10 @@ pub const DSA_R_BAD_VERSION: i32 = 104; pub const DSA_R_DECODE_ERROR: i32 = 105; pub const DSA_R_ENCODE_ERROR: i32 = 106; pub const DSA_R_INVALID_PARAMETERS: i32 = 107; +pub const DSA_R_TOO_MANY_ITERATIONS: i32 = 108; pub const OPENSSL_EC_EXPLICIT_CURVE: i32 = 0; pub const OPENSSL_EC_NAMED_CURVE: i32 = 1; +pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const EC_PKEY_NO_PARAMETERS: i32 = 1; pub const EC_PKEY_NO_PUBKEY: i32 = 2; pub const ECDSA_FLAG_OPAQUE: i32 = 1; @@ -775,6 +868,7 @@ pub const ECDSA_R_NOT_IMPLEMENTED: i32 = 103; pub const ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED: i32 = 104; pub const ECDSA_R_ENCODE_ERROR: i32 = 105; pub const ECDSA_R_MISMATCHED_SIGNATURE: i32 = 205; +pub const ECDSA_R_TOO_MANY_ITERATIONS: i32 = 106; pub const EVP_R_BUFFER_TOO_SMALL: i32 = 100; pub const EVP_R_COMMAND_NOT_SUPPORTED: i32 = 101; pub const EVP_R_DECODE_ERROR: i32 = 102; @@ -813,6 +907,8 @@ pub const EVP_R_INVALID_PEER_KEY: i32 = 134; pub const EVP_R_NOT_XOF_OR_INVALID_LENGTH: i32 = 135; pub const EVP_R_EMPTY_PSK: i32 = 136; pub const EVP_R_INVALID_BUFFER_SIZE: i32 = 137; +pub const EVP_R_BAD_DECRYPT: i32 = 138; +pub const EVP_R_EXPECTING_A_DH_KEY: i32 = 139; pub const EVP_R_INVALID_PSS_MD: i32 = 500; pub const EVP_R_INVALID_PSS_SALT_LEN: i32 = 501; pub const EVP_R_INVALID_PSS_TRAILER_FIELD: i32 = 502; @@ -3096,8 +3192,6 @@ pub const NID_kx_any: i32 = 957; pub const SN_auth_any: &[u8; 8] = b"AuthANY\0"; pub const LN_auth_any: &[u8; 9] = b"auth-any\0"; pub const NID_auth_any: i32 = 958; -pub const SN_CECPQ2: &[u8; 7] = b"CECPQ2\0"; -pub const NID_CECPQ2: i32 = 959; pub const SN_ED448: &[u8; 6] = b"ED448\0"; pub const NID_ED448: i32 = 960; pub const SN_X448: &[u8; 5] = b"X448\0"; @@ -3137,23 +3231,80 @@ pub const SN_KYBER768_R3: &[u8; 12] = b"KYBER768_R3\0"; pub const NID_KYBER768_R3: i32 = 973; pub const SN_KYBER1024_R3: &[u8; 13] = b"KYBER1024_R3\0"; pub const NID_KYBER1024_R3: i32 = 974; +pub const SN_DILITHIUM3_R3: &[u8; 14] = b"DILITHIUM3_R3\0"; +pub const NID_DILITHIUM3_R3: i32 = 975; +pub const SN_ffdhe2048: &[u8; 10] = b"ffdhe2048\0"; +pub const NID_ffdhe2048: i32 = 976; +pub const SN_ffdhe4096: &[u8; 10] = b"ffdhe4096\0"; +pub const NID_ffdhe4096: i32 = 977; +pub const SN_sha512_224: &[u8; 11] = b"SHA512-224\0"; +pub const LN_sha512_224: &[u8; 11] = b"sha512-224\0"; +pub const NID_sha512_224: i32 = 978; +pub const SN_shake128: &[u8; 9] = b"SHAKE128\0"; +pub const LN_shake128: &[u8; 9] = b"shake128\0"; +pub const NID_shake128: i32 = 979; +pub const SN_shake256: &[u8; 9] = b"SHAKE256\0"; +pub const LN_shake256: &[u8; 9] = b"shake256\0"; +pub const NID_shake256: i32 = 980; +pub const SN_SecP256r1Kyber768Draft00: &[u8; 25] = b"SecP256r1Kyber768Draft00\0"; +pub const NID_SecP256r1Kyber768Draft00: i32 = 981; +pub const SN_X25519Kyber768Draft00: &[u8; 22] = b"X25519Kyber768Draft00\0"; +pub const NID_X25519Kyber768Draft00: i32 = 982; +pub const SN_ffdhe3072: &[u8; 10] = b"ffdhe3072\0"; +pub const NID_ffdhe3072: i32 = 983; +pub const SN_ffdhe8192: &[u8; 10] = b"ffdhe8192\0"; +pub const NID_ffdhe8192: i32 = 984; +pub const SN_MLKEM512IPD: &[u8; 12] = b"MLKEM512IPD\0"; +pub const NID_MLKEM512IPD: i32 = 985; +pub const SN_MLKEM768IPD: &[u8; 12] = b"MLKEM768IPD\0"; +pub const NID_MLKEM768IPD: i32 = 986; +pub const SN_MLKEM1024IPD: &[u8; 13] = b"MLKEM1024IPD\0"; +pub const NID_MLKEM1024IPD: i32 = 987; +pub const SN_MLKEM512: &[u8; 9] = b"MLKEM512\0"; +pub const NID_MLKEM512: i32 = 988; +pub const SN_MLKEM768: &[u8; 9] = b"MLKEM768\0"; +pub const NID_MLKEM768: i32 = 989; +pub const SN_MLKEM1024: &[u8; 10] = b"MLKEM1024\0"; +pub const NID_MLKEM1024: i32 = 990; +pub const SN_X25519MLKEM768: &[u8; 15] = b"X25519MLKEM768\0"; +pub const NID_X25519MLKEM768: i32 = 991; +pub const SN_SecP256r1MLKEM768: &[u8; 18] = b"SecP256r1MLKEM768\0"; +pub const NID_SecP256r1MLKEM768: i32 = 992; +pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; +pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; +pub const OBJ_R_UNKNOWN_NID: i32 = 100; +pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const EVP_PKEY_NONE: i32 = 0; pub const EVP_PKEY_RSA: i32 = 6; pub const EVP_PKEY_RSA_PSS: i32 = 912; -pub const EVP_PKEY_DSA: i32 = 116; pub const EVP_PKEY_EC: i32 = 408; pub const EVP_PKEY_ED25519: i32 = 949; pub const EVP_PKEY_X25519: i32 = 948; -pub const EVP_PKEY_KYBER512: i32 = 971; pub const EVP_PKEY_HKDF: i32 = 969; -pub const EVP_PKEY_KEM: i32 = 970; +pub const EVP_PKEY_HMAC: i32 = 855; pub const EVP_PKEY_DH: i32 = 28; +pub const EVP_PKEY_KEM: i32 = 970; +pub const PKCS5_SALT_LEN: i32 = 8; pub const EVP_PKEY_RSA2: i32 = 19; pub const EVP_PKEY_X448: i32 = 961; pub const EVP_PKEY_ED448: i32 = 960; +pub const EVP_PKEY_DSA: i32 = 116; 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; +pub const HMAC_R_SET_PRECOMPUTED_KEY_EXPORT_NOT_CALLED: i32 = 103; +pub const HMAC_R_NOT_CALLED_JUST_AFTER_INIT: i32 = 104; pub const EVP_HPKE_DHKEM_X25519_HKDF_SHA256: i32 = 32; pub const EVP_HPKE_MAX_PUBLIC_KEY_LENGTH: i32 = 32; pub const EVP_HPKE_MAX_PRIVATE_KEY_LENGTH: i32 = 32; @@ -3173,26 +3324,26 @@ pub const HRSS_POLY3_BYTES: i32 = 140; pub const HRSS_PRIVATE_KEY_BYTES: i32 = 1452; pub const MD4_CBLOCK: i32 = 64; pub const MD4_DIGEST_LENGTH: i32 = 16; -pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; -pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; -pub const OBJ_R_UNKNOWN_NID: i32 = 100; -pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const PKCS7_DETACHED: i32 = 64; +pub const PKCS7_BINARY: i32 = 128; +pub const PKCS7_NOATTR: i32 = 256; +pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_TEXT: i32 = 1; pub const PKCS7_NOCERTS: i32 = 2; +pub const PKCS7_NOSMIMECAP: i32 = 512; +pub const PKCS7_STREAM: i32 = 4096; pub const PKCS7_NOSIGS: i32 = 4; pub const PKCS7_NOCHAIN: i32 = 8; pub const PKCS7_NOINTERN: i32 = 16; pub const PKCS7_NOVERIFY: i32 = 32; -pub const PKCS7_BINARY: i32 = 128; -pub const PKCS7_NOATTR: i32 = 256; -pub const PKCS7_NOSMIMECAP: i32 = 512; -pub const PKCS7_STREAM: i32 = 4096; -pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_R_BAD_PKCS7_VERSION: i32 = 100; pub const PKCS7_R_NOT_PKCS7_SIGNED_DATA: i32 = 101; pub const PKCS7_R_NO_CERTIFICATES_INCLUDED: i32 = 102; pub const PKCS7_R_NO_CRLS_INCLUDED: i32 = 103; +pub const PKCS7_R_UNSUPPORTED_CONTENT_TYPE: i32 = 104; +pub const PKCS7_R_WRONG_CONTENT_TYPE: i32 = 105; +pub const PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER: i32 = 106; +pub const PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE: i32 = 107; pub const RSA_PKCS1_PADDING: i32 = 1; pub const RSA_NO_PADDING: i32 = 3; pub const RSA_PKCS1_OAEP_PADDING: i32 = 4; @@ -3201,6 +3352,8 @@ pub const RSA_PSS_SALTLEN_DIGEST: i32 = -1; pub const RSA_FLAG_OPAQUE: i32 = 1; pub const RSA_FLAG_NO_BLINDING: i32 = 8; pub const RSA_FLAG_EXT_PKEY: i32 = 32; +pub const RSA_FLAG_NO_PUBLIC_EXPONENT: i32 = 64; +pub const RSA_FLAG_LARGE_PUBLIC_EXPONENT: i32 = 128; pub const RSA_3: i32 = 3; pub const RSA_F4: i32 = 65537; pub const RSA_METHOD_FLAG_NO_CHECK: i32 = 1; @@ -3254,15 +3407,86 @@ pub const RSA_R_PUBLIC_KEY_VALIDATION_FAILED: i32 = 146; pub const RSA_R_D_OUT_OF_RANGE: i32 = 147; pub const RSA_R_BLOCK_TYPE_IS_NOT_02: i32 = 148; pub const RSA_R_MISMATCHED_SIGNATURE: i32 = 248; +pub const RSA_F_RSA_OSSL_PRIVATE_ENCRYPT: i32 = 0; +pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; +pub const X509V3_R_BAD_OBJECT: i32 = 101; +pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; +pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; +pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; +pub const X509V3_R_DIRNAME_ERROR: i32 = 105; +pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; +pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; +pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; +pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; +pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; +pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; +pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; +pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; +pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; +pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; +pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; +pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; +pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; +pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; +pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; +pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; +pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; +pub const X509V3_R_INVALID_NAME: i32 = 123; +pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; +pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; +pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; +pub const X509V3_R_INVALID_NUMBER: i32 = 127; +pub const X509V3_R_INVALID_NUMBERS: i32 = 128; +pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; +pub const X509V3_R_INVALID_OPTION: i32 = 130; +pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; +pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; +pub const X509V3_R_INVALID_PURPOSE: i32 = 133; +pub const X509V3_R_INVALID_SECTION: i32 = 134; +pub const X509V3_R_INVALID_SYNTAX: i32 = 135; +pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; +pub const X509V3_R_MISSING_VALUE: i32 = 137; +pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; +pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; +pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; +pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; +pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; +pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; +pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; +pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; +pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; +pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; +pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; +pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; +pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; +pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; +pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; +pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; +pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; +pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; +pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; +pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; +pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; +pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; +pub const X509V3_R_USER_TOO_LONG: i32 = 162; +pub const X509V3_R_INVALID_VALUE: i32 = 163; +pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; pub const X509_VERSION_1: i32 = 0; pub const X509_VERSION_2: i32 = 1; pub const X509_VERSION_3: i32 = 2; -pub const X509_CRL_VERSION_1: i32 = 0; -pub const X509_CRL_VERSION_2: i32 = 1; -pub const X509_REQ_VERSION_1: i32 = 0; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; +pub const EXFLAG_BCONS: i32 = 1; +pub const EXFLAG_KUSAGE: i32 = 2; +pub const EXFLAG_XKUSAGE: i32 = 4; +pub const EXFLAG_NSCERT: i32 = 8; +pub const EXFLAG_CA: i32 = 16; +pub const EXFLAG_SI: i32 = 32; +pub const EXFLAG_V1: i32 = 64; +pub const EXFLAG_INVALID: i32 = 128; +pub const EXFLAG_SET: i32 = 256; +pub const EXFLAG_CRITICAL: i32 = 512; +pub const EXFLAG_SS: i32 = 8192; pub const X509v3_KU_DIGITAL_SIGNATURE: i32 = 128; pub const X509v3_KU_NON_REPUDIATION: i32 = 64; pub const X509v3_KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3272,60 +3496,29 @@ pub const X509v3_KU_KEY_CERT_SIGN: i32 = 4; pub const X509v3_KU_CRL_SIGN: i32 = 2; pub const X509v3_KU_ENCIPHER_ONLY: i32 = 1; pub const X509v3_KU_DECIPHER_ONLY: i32 = 32768; -pub const X509v3_KU_UNDEF: i32 = 65535; -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_OCSP_SIGN: i32 = 6; -pub const X509_TRUST_OCSP_REQUEST: i32 = 7; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_MIN: i32 = 1; -pub const X509_TRUST_MAX: i32 = 8; -pub const X509_TRUST_DYNAMIC: i32 = 1; -pub const X509_TRUST_DYNAMIC_NAME: i32 = 2; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -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 XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_COMPAT: i32 = 0; -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_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 XKU_SSL_SERVER: i32 = 1; +pub const XKU_SSL_CLIENT: i32 = 2; +pub const XKU_SMIME: i32 = 4; +pub const XKU_CODE_SIGN: i32 = 8; +pub const XKU_SGC: i32 = 16; +pub const XKU_OCSP_SIGN: i32 = 32; +pub const XKU_TIMESTAMP: i32 = 64; +pub const XKU_DVCS: i32 = 128; +pub const XKU_ANYEKU: i32 = 256; +pub const X509_SIG_INFO_VALID: i32 = 1; +pub const X509_SIG_INFO_TLS: i32 = 2; +pub const X509_CRL_VERSION_1: i32 = 0; +pub const X509_CRL_VERSION_2: i32 = 1; +pub const X509_REQ_VERSION_1: i32 = 0; +pub const GEN_OTHERNAME: i32 = 0; +pub const GEN_EMAIL: i32 = 1; +pub const GEN_DNS: i32 = 2; +pub const GEN_X400: i32 = 3; +pub const GEN_DIRNAME: i32 = 4; +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_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3387,31 +3580,117 @@ 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_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; -pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; -pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; -pub const X509_V_FLAG_X509_STRICT: i32 = 0; -pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; -pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; -pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; -pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; -pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; -pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; -pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; -pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; -pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; -pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; +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; +pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; +pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; +pub const X509_V_FLAG_X509_STRICT: i32 = 0; +pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; +pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; +pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; +pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; +pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; +pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; +pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; +pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; +pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; +pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; pub const X509_V_FLAG_PARTIAL_CHAIN: i32 = 524288; pub const X509_V_FLAG_NO_ALT_CHAINS: i32 = 1048576; pub const X509_V_FLAG_NO_CHECK_TIME: i32 = 2097152; -pub const X509_VP_FLAG_DEFAULT: i32 = 1; -pub const X509_VP_FLAG_OVERWRITE: i32 = 2; -pub const X509_VP_FLAG_RESET_FLAGS: i32 = 4; -pub const X509_VP_FLAG_LOCKED: i32 = 8; -pub const X509_VP_FLAG_ONCE: i32 = 16; pub const X509_V_FLAG_POLICY_MASK: i32 = 1920; +pub const X509V3_EXT_CTX_DEP: i32 = 2; +pub const X509V3_EXT_MULTILINE: i32 = 4; +pub const CRLDP_ALL_REASONS: i32 = 32895; +pub const NS_SSL_CLIENT: i32 = 128; +pub const NS_SSL_SERVER: i32 = 64; +pub const NS_SMIME: i32 = 32; +pub const NS_OBJSIGN: i32 = 16; +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 X509V3_ADD_OP_MASK: i32 = 15; +pub const X509V3_ADD_DEFAULT: i32 = 0; +pub const X509V3_ADD_APPEND: i32 = 1; +pub const X509V3_ADD_REPLACE: i32 = 2; +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_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -3457,19 +3736,7 @@ pub const X509_R_NO_CERTIFICATE_FOUND: i32 = 141; pub const X509_R_NO_CERTIFICATE_OR_CRL_FOUND: i32 = 142; pub const X509_R_NO_CRL_FOUND: i32 = 143; pub const X509_R_INVALID_POLICY_EXTENSION: i32 = 144; -pub const X509V3_EXT_DYNAMIC: i32 = 1; -pub const X509V3_EXT_CTX_DEP: i32 = 2; -pub const X509V3_EXT_MULTILINE: i32 = 4; -pub const GEN_OTHERNAME: i32 = 0; -pub const GEN_EMAIL: i32 = 1; -pub const GEN_DNS: i32 = 2; -pub const GEN_X400: i32 = 3; -pub const GEN_DIRNAME: i32 = 4; -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 CRLDP_ALL_REASONS: i32 = 32895; +pub const X509_R_UNKNOWN_SIGID_ALGS: i32 = 145; pub const CRL_REASON_NONE: i32 = -1; pub const CRL_REASON_UNSPECIFIED: i32 = 0; pub const CRL_REASON_KEY_COMPROMISE: i32 = 1; @@ -3481,26 +3748,6 @@ pub const CRL_REASON_CERTIFICATE_HOLD: i32 = 6; pub const CRL_REASON_REMOVE_FROM_CRL: i32 = 8; pub const CRL_REASON_PRIVILEGE_WITHDRAWN: i32 = 9; pub const CRL_REASON_AA_COMPROMISE: i32 = 10; -pub const IDP_PRESENT: i32 = 1; -pub const IDP_INVALID: i32 = 2; -pub const IDP_ONLYUSER: i32 = 4; -pub const IDP_ONLYCA: i32 = 8; -pub const IDP_ONLYATTR: i32 = 16; -pub const IDP_INDIRECT: i32 = 32; -pub const IDP_REASONS: i32 = 64; -pub const EXFLAG_BCONS: i32 = 1; -pub const EXFLAG_KUSAGE: i32 = 2; -pub const EXFLAG_XKUSAGE: i32 = 4; -pub const EXFLAG_NSCERT: i32 = 8; -pub const EXFLAG_CA: i32 = 16; -pub const EXFLAG_SI: i32 = 32; -pub const EXFLAG_V1: i32 = 64; -pub const EXFLAG_INVALID: i32 = 128; -pub const EXFLAG_SET: i32 = 256; -pub const EXFLAG_CRITICAL: i32 = 512; -pub const EXFLAG_PROXY: i32 = 1024; -pub const EXFLAG_FRESHEST: i32 = 4096; -pub const EXFLAG_SS: i32 = 8192; pub const KU_DIGITAL_SIGNATURE: i32 = 128; pub const KU_NON_REPUDIATION: i32 = 64; pub const KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3510,124 +3757,24 @@ pub const KU_KEY_CERT_SIGN: i32 = 4; pub const KU_CRL_SIGN: i32 = 2; pub const KU_ENCIPHER_ONLY: i32 = 1; pub const KU_DECIPHER_ONLY: i32 = 32768; -pub const NS_SSL_CLIENT: i32 = 128; -pub const NS_SSL_SERVER: i32 = 64; -pub const NS_SMIME: i32 = 32; -pub const NS_OBJSIGN: i32 = 16; -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 XKU_SSL_SERVER: i32 = 1; -pub const XKU_SSL_CLIENT: i32 = 2; -pub const XKU_SMIME: i32 = 4; -pub const XKU_CODE_SIGN: i32 = 8; -pub const XKU_SGC: i32 = 16; -pub const XKU_OCSP_SIGN: i32 = 32; -pub const XKU_TIMESTAMP: i32 = 64; -pub const XKU_DVCS: i32 = 128; -pub const XKU_ANYEKU: i32 = 256; -pub const X509_PURPOSE_DYNAMIC: i32 = 1; -pub const X509_PURPOSE_DYNAMIC_NAME: i32 = 2; -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_PURPOSE_MIN: i32 = 1; -pub const X509_PURPOSE_MAX: i32 = 9; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509V3_ADD_OP_MASK: i32 = 15; -pub const X509V3_ADD_DEFAULT: i32 = 0; -pub const X509V3_ADD_APPEND: i32 = 1; -pub const X509V3_ADD_REPLACE: i32 = 2; -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 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 X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: 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_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; -pub const X509V3_R_BAD_OBJECT: i32 = 101; -pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; -pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; -pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; -pub const X509V3_R_DIRNAME_ERROR: i32 = 105; -pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; -pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; -pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; -pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; -pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; -pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; -pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; -pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; -pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; -pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; -pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; -pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; -pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; -pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; -pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; -pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; -pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; -pub const X509V3_R_INVALID_NAME: i32 = 123; -pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; -pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; -pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; -pub const X509V3_R_INVALID_NUMBER: i32 = 127; -pub const X509V3_R_INVALID_NUMBERS: i32 = 128; -pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; -pub const X509V3_R_INVALID_OPTION: i32 = 130; -pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; -pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; -pub const X509V3_R_INVALID_PURPOSE: i32 = 133; -pub const X509V3_R_INVALID_SECTION: i32 = 134; -pub const X509V3_R_INVALID_SYNTAX: i32 = 135; -pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; -pub const X509V3_R_MISSING_VALUE: i32 = 137; -pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; -pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; -pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; -pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; -pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; -pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; -pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; -pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; -pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; -pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; -pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; -pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; -pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; -pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; -pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; -pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; -pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; -pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; -pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; -pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; -pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; -pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; -pub const X509V3_R_USER_TOO_LONG: i32 = 162; -pub const X509V3_R_INVALID_VALUE: i32 = 163; -pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; +pub const OCSP_REVOKED_STATUS_UNSPECIFIED: i32 = 0; +pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: i32 = 1; +pub const OCSP_REVOKED_STATUS_CACOMPROMISE: i32 = 2; +pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: i32 = 3; +pub const OCSP_REVOKED_STATUS_SUPERSEDED: i32 = 4; +pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: i32 = 5; +pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: i32 = 6; +pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: i32 = 8; +pub const OCSP_REVOKED_STATUS_PRIVILEGEWITHDRAWN: i32 = 9; +pub const OCSP_REVOKED_STATUS_AACOMPROMISE: i32 = 10; +pub const OCSP_NOCERTS: i32 = 1; pub const OCSP_NOINTERN: i32 = 2; pub const OCSP_NOCHAIN: i32 = 8; +pub const OCSP_NOVERIFY: i32 = 16; pub const OCSP_NOEXPLICIT: i32 = 32; +pub const OCSP_TRUSTOTHER: i32 = 512; +pub const OCSP_RESPID_KEY: i32 = 1024; +pub const OCSP_NOTIME: i32 = 2048; pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: i32 = 0; pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: i32 = 1; pub const OCSP_RESPONSE_STATUS_INTERNALERROR: i32 = 2; @@ -3639,19 +3786,38 @@ pub const V_OCSP_RESPID_KEY: i32 = 1; pub const V_OCSP_CERTSTATUS_GOOD: i32 = 0; pub const V_OCSP_CERTSTATUS_REVOKED: i32 = 1; pub const V_OCSP_CERTSTATUS_UNKNOWN: i32 = 2; +pub const OCSP_NONCE_EQUAL: i32 = 1; +pub const OCSP_NONCE_BOTH_ABSENT: i32 = 2; +pub const OCSP_NONCE_RESPONSE_ONLY: i32 = 3; +pub const OCSP_NONCE_NOT_EQUAL: i32 = 0; +pub const OCSP_NONCE_REQUEST_ONLY: i32 = -1; pub const OCSP_R_CERTIFICATE_VERIFY_ERROR: i32 = 101; pub const OCSP_R_DIGEST_ERR: i32 = 102; pub const OCSP_R_MISSING_OCSPSIGNING_USAGE: i32 = 103; pub const OCSP_R_NOT_BASIC_RESPONSE: i32 = 104; pub const OCSP_R_NO_CERTIFICATES_IN_CHAIN: i32 = 105; pub const OCSP_R_NO_RESPONSE_DATA: i32 = 108; +pub const OCSP_R_NO_REVOKED_TIME: i32 = 109; +pub const OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE: i32 = 110; pub const OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA: i32 = 111; pub const OCSP_R_ROOT_CA_NOT_TRUSTED: i32 = 112; +pub const OCSP_R_SERVER_RESPONSE_PARSE_ERROR: i32 = 115; pub const OCSP_R_SIGNATURE_FAILURE: i32 = 117; pub const OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND: i32 = 118; pub const OCSP_R_UNKNOWN_MESSAGE_DIGEST: i32 = 119; pub const OCSP_R_UNKNOWN_NID: i32 = 120; +pub const OCSP_R_ERROR_PARSING_URL: i32 = 121; +pub const OCSP_R_ERROR_IN_NEXTUPDATE_FIELD: i32 = 122; +pub const OCSP_R_ERROR_IN_THISUPDATE_FIELD: i32 = 123; +pub const OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE: i32 = 124; +pub const OCSP_R_STATUS_EXPIRED: i32 = 125; +pub const OCSP_R_STATUS_NOT_YET_VALID: i32 = 126; +pub const OCSP_R_STATUS_TOO_OLD: i32 = 127; +pub const OCSP_R_REQUEST_NOT_SIGNED: i32 = 128; +pub const OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE: i32 = 129; pub const OCSP_R_NO_SIGNER_KEY: i32 = 130; +pub const OCSP_R_OCSP_REQUEST_DUPLICATE_SIGNATURE: i32 = 131; +pub const OCSP_R_UNKNOWN_FIELD_VALUE: i32 = 132; pub const PEM_BUFSIZE: i32 = 1024; pub const PEM_STRING_X509_OLD: &[u8; 17] = b"X509 CERTIFICATE\0"; pub const PEM_STRING_X509: &[u8; 12] = b"CERTIFICATE\0"; @@ -3675,7 +3841,9 @@ pub const PEM_STRING_DHPARAMS: &[u8; 14] = b"DH PARAMETERS\0"; pub const PEM_STRING_SSL_SESSION: &[u8; 23] = b"SSL SESSION PARAMETERS\0"; pub const PEM_STRING_DSAPARAMS: &[u8; 15] = b"DSA PARAMETERS\0"; pub const PEM_STRING_ECDSA_PUBLIC: &[u8; 17] = b"ECDSA PUBLIC KEY\0"; +pub const PEM_STRING_ECPARAMETERS: &[u8; 14] = b"EC PARAMETERS\0"; pub const PEM_STRING_ECPRIVATEKEY: &[u8; 15] = b"EC PRIVATE KEY\0"; +pub const PEM_STRING_PARAMETERS: &[u8; 11] = b"PARAMETERS\0"; pub const PEM_STRING_CMS: &[u8; 4] = b"CMS\0"; pub const PEM_TYPE_ENCRYPTED: i32 = 10; pub const PEM_TYPE_MIC_ONLY: i32 = 20; @@ -3696,6 +3864,7 @@ pub const PEM_R_READ_KEY: i32 = 111; pub const PEM_R_SHORT_HEADER: i32 = 112; pub const PEM_R_UNSUPPORTED_CIPHER: i32 = 113; pub const PEM_R_UNSUPPORTED_ENCRYPTION: i32 = 114; +pub const PEM_R_PROBLEMS_GETTING_PASSWORD: i32 = 115; pub const PKCS12_DEFAULT_ITER: i32 = 2048; pub const PKCS8_R_BAD_PKCS12_DATA: i32 = 100; pub const PKCS8_R_BAD_PKCS12_VERSION: i32 = 101; @@ -3731,11 +3900,12 @@ pub const PKCS8_R_UNSUPPORTED_PRF: i32 = 130; pub const PKCS8_R_INVALID_CHARACTERS: i32 = 131; pub const PKCS8_R_UNSUPPORTED_OPTIONS: i32 = 132; pub const PKCS8_R_AMBIGUOUS_FRIENDLY_NAME: i32 = 133; +pub const PKCS12_R_MAC_VERIFY_FAILURE: i32 = 108; pub const RIPEMD160_CBLOCK: i32 = 64; pub const RIPEMD160_LBLOCK: i32 = 16; pub const RIPEMD160_DIGEST_LENGTH: i32 = 20; pub const AWSLC_MODE_STRING: &[u8; 8] = b"AWS-LC \0"; -pub const AWSLC_VERSION_STRING: &[u8; 14] = b"AWS-LC 2.0.15\0"; +pub const AWSLC_VERSION_STRING: &[u8; 13] = b"AWS-LC 3.0.0\0"; pub const TRUST_TOKEN_MAX_PRIVATE_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_MAX_PUBLIC_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_R_KEYGEN_FAILURE: i32 = 100; @@ -3801,6 +3971,7 @@ pub type AUTHORITY_KEYID = AUTHORITY_KEYID_st; pub type BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; pub type DIST_POINT = DIST_POINT_st; pub type DSA_SIG = DSA_SIG_st; +pub type GENERAL_NAME = GENERAL_NAME_st; pub type ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; pub type NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; pub type NETSCAPE_SPKAC = Netscape_spkac_st; @@ -3852,6 +4023,12 @@ pub struct X509_req_st { pub type X509_REQ = X509_req_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct x509_sig_info_st { + _unused: [u8; 0], +} +pub type X509_SIG_INFO = x509_sig_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct X509_sig_st { _unused: [u8; 0], } @@ -3914,6 +4091,11 @@ pub struct dh_st { _unused: [u8; 0], } pub type DH = dh_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_st { + _unused: [u8; 0], +} pub type DSA = dsa_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3933,7 +4115,12 @@ pub struct ec_point_st { _unused: [u8; 0], } pub type EC_POINT = ec_point_st; -pub type ECDSA_METHOD = ecdsa_method_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_key_method_st { + _unused: [u8; 0], +} +pub type EC_KEY_METHOD = ec_key_method_st; pub type ECDSA_SIG = ecdsa_sig_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3997,32 +4184,75 @@ pub struct kem_key_st { pub type KEM_KEY = kem_key_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_asn1_method_st { +pub struct evp_pkey_ctx_st { _unused: [u8; 0], } -pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; +pub type EVP_PKEY_CTX = evp_pkey_ctx_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_ctx_st { +pub struct evp_pkey_asn1_method_st { _unused: [u8; 0], } -pub type EVP_PKEY_CTX = evp_pkey_ctx_st; +pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_method_st { +pub struct evp_pkey_st { _unused: [u8; 0], } -pub type EVP_PKEY_METHOD = evp_pkey_method_st; pub type EVP_PKEY = evp_pkey_st; pub type HMAC_CTX = hmac_ctx_st; pub type MD4_CTX = md4_state_st; pub type MD5_CTX = md5_state_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_req_ctx_st { + _unused: [u8; 0], +} +pub type OCSP_REQ_CTX = ocsp_req_ctx_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ossl_init_settings_st { _unused: [u8; 0], } pub type OPENSSL_INIT_SETTINGS = ossl_init_settings_st; +pub type PKCS7 = pkcs7_st; +pub type PKCS7_SIGNED = pkcs7_signed_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_ENVELOPE = pkcs7_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_sign_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGN_ENVELOPE = pkcs7_sign_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_digest_st { + _unused: [u8; 0], +} +pub type PKCS7_DIGEST = pkcs7_digest_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_encrypt_st { + _unused: [u8; 0], +} +pub type PKCS7_ENCRYPT = pkcs7_encrypt_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_recip_info_st { + _unused: [u8; 0], +} +pub type PKCS7_RECIP_INFO = pkcs7_recip_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_signer_info_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGNER_INFO = pkcs7_signer_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pkcs12_st { @@ -4038,6 +4268,11 @@ pub type PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; pub type X509_PKEY = private_key_st; pub type RAND_METHOD = rand_meth_st; pub type RC4_KEY = rc4_key_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_meth_st { + _unused: [u8; 0], +} pub type RSA_METHOD = rsa_meth_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4046,6 +4281,11 @@ pub struct rsassa_pss_params_st { } pub type RSASSA_PSS_PARAMS = rsassa_pss_params_st; pub type RSA_PSS_PARAMS = rsa_pss_params_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_st { + _unused: [u8; 0], +} pub type RSA = rsa_st; pub type SHA256_CTX = sha256_state_st; pub type SHA512_CTX = sha512_state_st; @@ -4148,6 +4388,7 @@ pub struct trust_token_method_st { } pub type TRUST_TOKEN_METHOD = trust_token_method_st; pub type X509V3_CTX = v3_ext_ctx; +pub type X509V3_EXT_METHOD = v3_ext_method; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x509_attributes_st { @@ -4250,7 +4491,7 @@ impl Default for aes_key_st { } pub type AES_KEY = aes_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_encrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_encrypt_key"] pub fn AES_set_encrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4258,7 +4499,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_decrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_decrypt_key"] pub fn AES_set_decrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4266,15 +4507,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_encrypt"] pub fn AES_encrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_decrypt"] pub fn AES_decrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ctr128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ctr128_encrypt"] pub fn AES_ctr128_encrypt( in_: *const u8, out: *mut u8, @@ -4286,7 +4527,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ecb_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ecb_encrypt"] pub fn AES_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -4295,7 +4536,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cbc_encrypt"] pub fn AES_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -4306,7 +4547,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ofb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ofb128_encrypt"] pub fn AES_ofb128_encrypt( in_: *const u8, out: *mut u8, @@ -4317,7 +4558,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cfb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cfb128_encrypt"] pub fn AES_cfb128_encrypt( in_: *const u8, out: *mut u8, @@ -4329,7 +4570,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key"] pub fn AES_wrap_key( key: *const AES_KEY, iv: *const u8, @@ -4339,7 +4580,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key"] pub fn AES_unwrap_key( key: *const AES_KEY, iv: *const u8, @@ -4349,7 +4590,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key_padded"] pub fn AES_wrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4360,7 +4601,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key_padded"] pub fn AES_unwrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4946,27 +5187,27 @@ impl Default for buf_mem_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_new"] pub fn BUF_MEM_new() -> *mut BUF_MEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_free"] pub fn BUF_MEM_free(buf: *mut BUF_MEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_reserve"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_reserve"] pub fn BUF_MEM_reserve(buf: *mut BUF_MEM, cap: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow"] pub fn BUF_MEM_grow(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow_clean"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow_clean"] pub fn BUF_MEM_grow_clean(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_append"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_append"] pub fn BUF_MEM_append( buf: *mut BUF_MEM, in_: *const ::std::os::raw::c_void, @@ -4974,29 +5215,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strdup"] pub fn BUF_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strnlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strnlen"] pub fn BUF_strnlen(str_: *const ::std::os::raw::c_char, max_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strndup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strndup"] pub fn BUF_strndup( str_: *const ::std::os::raw::c_char, size: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_memdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_memdup"] pub fn BUF_memdup( data: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcpy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcpy"] pub fn BUF_strlcpy( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5004,7 +5245,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcat"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcat"] pub fn BUF_strlcat( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5012,330 +5253,104 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_BIO_strings"] - pub fn ERR_load_BIO_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_ERR_strings"] - pub fn ERR_load_ERR_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_crypto_strings"] - pub fn ERR_load_crypto_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_RAND_strings"] - pub fn ERR_load_RAND_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_free_strings"] - pub fn ERR_free_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error"] - pub fn ERR_get_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line"] - pub fn ERR_get_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line_data"] - pub fn ERR_get_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error"] - pub fn ERR_peek_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line"] - pub fn ERR_peek_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line_data"] - pub fn ERR_peek_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error"] - pub fn ERR_peek_last_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line"] - pub fn ERR_peek_last_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line_data"] - pub fn ERR_peek_last_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string_n"] - pub fn ERR_error_string_n( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - len: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_lib_error_string"] - pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Init"] + pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_reason_error_string"] - pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -pub type ERR_print_errors_callback_t = ::std::option::Option< - unsafe extern "C" fn( - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Update"] + pub fn SHA1_Update( + sha: *mut SHA_CTX, + data: *const ::std::os::raw::c_void, len: usize, - ctx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_cb"] - pub fn ERR_print_errors_cb( - callback: ERR_print_errors_callback_t, - ctx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_fp"] - pub fn ERR_print_errors_fp(file: *mut FILE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_error"] - pub fn ERR_clear_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_mark"] - pub fn ERR_set_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_pop_to_mark"] - pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_next_error_library"] - pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; -} -pub const ERR_LIB_NONE: _bindgen_ty_1 = 1; -pub const ERR_LIB_SYS: _bindgen_ty_1 = 2; -pub const ERR_LIB_BN: _bindgen_ty_1 = 3; -pub const ERR_LIB_RSA: _bindgen_ty_1 = 4; -pub const ERR_LIB_DH: _bindgen_ty_1 = 5; -pub const ERR_LIB_EVP: _bindgen_ty_1 = 6; -pub const ERR_LIB_BUF: _bindgen_ty_1 = 7; -pub const ERR_LIB_OBJ: _bindgen_ty_1 = 8; -pub const ERR_LIB_PEM: _bindgen_ty_1 = 9; -pub const ERR_LIB_DSA: _bindgen_ty_1 = 10; -pub const ERR_LIB_X509: _bindgen_ty_1 = 11; -pub const ERR_LIB_ASN1: _bindgen_ty_1 = 12; -pub const ERR_LIB_CONF: _bindgen_ty_1 = 13; -pub const ERR_LIB_CRYPTO: _bindgen_ty_1 = 14; -pub const ERR_LIB_EC: _bindgen_ty_1 = 15; -pub const ERR_LIB_SSL: _bindgen_ty_1 = 16; -pub const ERR_LIB_BIO: _bindgen_ty_1 = 17; -pub const ERR_LIB_PKCS7: _bindgen_ty_1 = 18; -pub const ERR_LIB_PKCS8: _bindgen_ty_1 = 19; -pub const ERR_LIB_X509V3: _bindgen_ty_1 = 20; -pub const ERR_LIB_RAND: _bindgen_ty_1 = 21; -pub const ERR_LIB_ENGINE: _bindgen_ty_1 = 22; -pub const ERR_LIB_OCSP: _bindgen_ty_1 = 23; -pub const ERR_LIB_UI: _bindgen_ty_1 = 24; -pub const ERR_LIB_COMP: _bindgen_ty_1 = 25; -pub const ERR_LIB_ECDSA: _bindgen_ty_1 = 26; -pub const ERR_LIB_ECDH: _bindgen_ty_1 = 27; -pub const ERR_LIB_HMAC: _bindgen_ty_1 = 28; -pub const ERR_LIB_DIGEST: _bindgen_ty_1 = 29; -pub const ERR_LIB_CIPHER: _bindgen_ty_1 = 30; -pub const ERR_LIB_HKDF: _bindgen_ty_1 = 31; -pub const ERR_LIB_TRUST_TOKEN: _bindgen_ty_1 = 32; -pub const ERR_LIB_USER: _bindgen_ty_1 = 33; -pub const ERR_NUM_LIBS: _bindgen_ty_1 = 34; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_state"] - pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_thread_state"] - pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_func_error_string"] - pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string"] - pub fn ERR_error_string( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_system_error"] - pub fn ERR_clear_system_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_put_error"] - pub fn ERR_put_error( - library: ::std::os::raw::c_int, - unused: ::std::os::raw::c_int, - reason: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_uint, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_data"] - pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Final"] + pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_dataf"] - pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1"] + pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_error_data"] - pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Transform"] + pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); } -pub type OPENSSL_sk_free_func = - ::std::option::Option; -pub type OPENSSL_sk_copy_func = ::std::option::Option< - unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *const ::std::os::raw::c_void, - b: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - obj: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_free_func = ::std::option::Option< - unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), ->; -pub type OPENSSL_sk_call_copy_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_copy_func, - arg2: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_cmp_func, - arg2: *const *const ::std::os::raw::c_void, - arg3: *const *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_delete_if_func, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct stack_st { - pub num: usize, - pub data: *mut *mut ::std::os::raw::c_void, - pub sorted: ::std::os::raw::c_int, - pub num_alloc: usize, - pub comp: OPENSSL_sk_cmp_func, +pub struct sha_state_st { + pub h: [u32; 5usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_stack_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha_state_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!(stack_st)) + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(sha_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stack_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(data) + stringify!(Nl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sorted) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(sorted) + stringify!(Nh) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_alloc) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num_alloc) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 92usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(comp) + stringify!(num) ) ); } -impl Default for stack_st { +impl Default for sha_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5344,274 +5359,140 @@ impl Default for stack_st { } } } -pub type _STACK = stack_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new"] - pub fn sk_new(comp: OPENSSL_sk_cmp_func) -> *mut _STACK; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new_null"] - pub fn sk_new_null() -> *mut _STACK; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_num"] - pub fn sk_num(sk: *const _STACK) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_zero"] - pub fn sk_zero(sk: *mut _STACK); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_value"] - pub fn sk_value(sk: *const _STACK, i: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set"] - pub fn sk_set( - sk: *mut _STACK, - i: usize, - p: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_free"] - pub fn sk_free(sk: *mut _STACK); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free_ex"] - pub fn sk_pop_free_ex( - sk: *mut _STACK, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_insert"] - pub fn sk_insert(sk: *mut _STACK, p: *mut ::std::os::raw::c_void, where_: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete"] - pub fn sk_delete(sk: *mut _STACK, where_: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_ptr"] - pub fn sk_delete_ptr( - sk: *mut _STACK, - p: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_if"] - pub fn sk_delete_if( - sk: *mut _STACK, - call_func: OPENSSL_sk_call_delete_if_func, - func: OPENSSL_sk_delete_if_func, - data: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Init"] + pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_find"] - pub fn sk_find( - sk: *const _STACK, - out_index: *mut usize, - p: *const ::std::os::raw::c_void, - call_cmp_func: OPENSSL_sk_call_cmp_func, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Update"] + pub fn SHA224_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_shift"] - pub fn sk_shift(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_push"] - pub fn sk_push(sk: *mut _STACK, p: *mut ::std::os::raw::c_void) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop"] - pub fn sk_pop(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Final"] + pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_dup"] - pub fn sk_dup(sk: *const _STACK) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224"] + pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_sort"] - pub fn sk_sort(sk: *mut _STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Init"] + pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_is_sorted"] - pub fn sk_is_sorted(sk: *const _STACK) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Update"] + pub fn SHA256_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set_cmp_func"] - pub fn sk_set_cmp_func(sk: *mut _STACK, comp: OPENSSL_sk_cmp_func) -> OPENSSL_sk_cmp_func; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Final"] + pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_deep_copy"] - pub fn sk_deep_copy( - sk: *const _STACK, - call_copy_func: OPENSSL_sk_call_copy_func, - copy_func: OPENSSL_sk_copy_func, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256"] + pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free"] - pub fn sk_pop_free(sk: *mut _STACK, free_func: OPENSSL_sk_free_func); -} -pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_void { - _unused: [u8; 0], -} -pub type sk_void_free_func = - ::std::option::Option; -pub type sk_void_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type sk_void_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type sk_void_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_OPENSSL_STRING { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Transform"] + pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); } -pub type sk_OPENSSL_STRING_free_func = - ::std::option::Option; -pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, ->; -pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_char, - arg2: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_DATA = crypto_ex_data_st; -pub type CRYPTO_EX_free = ::std::option::Option< - unsafe extern "C" fn( - parent: *mut ::std::os::raw::c_void, - ptr: *mut ::std::os::raw::c_void, - ad: *mut CRYPTO_EX_DATA, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ), ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_cleanup_all_ex_data"] - pub fn CRYPTO_cleanup_all_ex_data(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_TransformBlocks"] + pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); } -pub type CRYPTO_EX_dup = ::std::option::Option< - unsafe extern "C" fn( - to: *mut CRYPTO_EX_DATA, - from: *const CRYPTO_EX_DATA, - from_d: *mut *mut ::std::os::raw::c_void, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_unused = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct crypto_ex_data_st { - pub sk: *mut stack_st_void, +pub struct sha256_state_st { + pub h: [u32; 8usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_crypto_ex_data_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha256_state_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!(crypto_ex_data_st)) + ::std::mem::size_of::(), + 112usize, + concat!("Size of: ", stringify!(sha256_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(crypto_ex_data_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha256_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(crypto_ex_data_st), + stringify!(sha256_state_st), "::", - stringify!(sk) + stringify!(h) ) ); -} -impl Default for crypto_ex_data_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(Copy, Clone)] -pub union crypto_mutex_st { - pub alignment: f64, - pub padding: [u8; 56usize], -} -#[test] -fn bindgen_test_layout_crypto_mutex_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(crypto_mutex_st)) + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nl) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(crypto_mutex_st)) + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nh) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(crypto_mutex_st), + stringify!(sha256_state_st), "::", - stringify!(alignment) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(crypto_mutex_st), + stringify!(sha256_state_st), "::", - stringify!(padding) + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(md_len) ) ); } -impl Default for crypto_mutex_st { +impl Default for sha256_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5620,128 +5501,136 @@ impl Default for crypto_mutex_st { } } } -pub type CRYPTO_MUTEX = crypto_mutex_st; -pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_clear"] - pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Init"] + pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_shutdown"] - pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Update"] + pub fn SHA384_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_num_locks"] - pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Final"] + pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_locking_callback"] - pub fn CRYPTO_set_locking_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_add_lock_callback"] - pub fn CRYPTO_set_add_lock_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - num: *mut ::std::os::raw::c_int, - amount: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_locking_callback"] - pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384"] + pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_lock_name"] - pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Init"] + pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_callback"] - pub fn CRYPTO_THREADID_set_callback( - threadid_func: ::std::option::Option, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Update"] + pub fn SHA512_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_numeric"] - pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_pointer"] - pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Final"] + pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_current"] - pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512"] + pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_id_callback"] - pub fn CRYPTO_set_id_callback( - func: ::std::option::Option ::std::os::raw::c_ulong>, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Transform"] + pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct CRYPTO_dynlock { - pub references: ::std::os::raw::c_int, - pub data: *mut CRYPTO_dynlock_value, +pub struct sha512_state_st { + pub h: [u64; 8usize], + pub Nl: u64, + pub Nh: u64, + pub p: [u8; 128usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_CRYPTO_dynlock() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha512_state_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!(CRYPTO_dynlock)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(sha512_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + concat!("Alignment of ", stringify!(sha512_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(references) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(data) + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(p) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 212usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(md_len) ) ); } -impl Default for CRYPTO_dynlock { +impl Default for sha512_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5751,951 +5640,1094 @@ impl Default for CRYPTO_dynlock { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_create_callback"] - pub fn CRYPTO_set_dynlock_create_callback( - dyn_create_function: ::std::option::Option< - unsafe extern "C" fn( - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Init"] + pub fn SHA512_224_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_lock_callback"] - pub fn CRYPTO_set_dynlock_lock_callback( - dyn_lock_function: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Update"] + pub fn SHA512_224_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_destroy_callback"] - pub fn CRYPTO_set_dynlock_destroy_callback( - dyn_destroy_function: ::std::option::Option< - unsafe extern "C" fn( - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Final"] + pub fn SHA512_224_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_create_callback"] - pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224"] + pub fn SHA512_224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_lock_callback"] - pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut CRYPTO_dynlock_value, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Init"] + pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_destroy_callback"] - pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_dynlock_value, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Update"] + pub fn SHA512_256_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_BIO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Final"] + pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } -pub type sk_BIO_free_func = ::std::option::Option; -pub type sk_BIO_copy_func = - ::std::option::Option *mut BIO>; -pub type sk_BIO_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const BIO, arg2: *mut *const BIO) -> ::std::os::raw::c_int, ->; -pub type sk_BIO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new"] - pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256"] + pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free"] - pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc"] + pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vfree"] - pub fn BIO_vfree(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_zalloc"] + pub fn OPENSSL_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_up_ref"] - pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_calloc"] + pub fn OPENSSL_calloc(num: usize, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read"] - pub fn BIO_read( - bio: *mut BIO, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_realloc"] + pub fn OPENSSL_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_gets"] - pub fn BIO_gets( - bio: *mut BIO, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_free"] + pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write"] - pub fn BIO_write( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanse"] + pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_all"] - pub fn BIO_write_all( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_memcmp"] + pub fn CRYPTO_memcmp( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_puts"] - pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hash32"] + pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_flush"] - pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strhash"] + pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl"] - pub fn BIO_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - parg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strdup"] + pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ptr_ctrl"] - pub fn BIO_ptr_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strnlen"] + pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_int_ctrl"] - pub fn BIO_int_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - iarg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalpha"] + pub fn OPENSSL_isalpha(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_reset"] - pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isdigit"] + pub fn OPENSSL_isdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_eof"] - pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isxdigit"] + pub fn OPENSSL_isxdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_flags"] - pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_fromxdigit"] + pub fn OPENSSL_fromxdigit(out: *mut u8, c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_test_flags"] - pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hexstr2buf"] + pub fn OPENSSL_hexstr2buf(str_: *const ::std::os::raw::c_char, len: *mut usize) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_read"] - pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalnum"] + pub fn OPENSSL_isalnum(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_write"] - pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_tolower"] + pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_retry"] - pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isspace"] + pub fn OPENSSL_isspace(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_io_special"] - pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strcasecmp"] + pub fn OPENSSL_strcasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_reason"] - pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strncasecmp"] + pub fn OPENSSL_strncasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + n: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_reason"] - pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_snprintf"] + pub fn BIO_snprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_flags"] - pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vsnprintf"] + pub fn BIO_vsnprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + args: va_list, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_read"] - pub fn BIO_set_retry_read(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_vasprintf"] + pub fn OPENSSL_vasprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + args: va_list, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_write"] - pub fn BIO_set_retry_write(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_asprintf"] + pub fn OPENSSL_asprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_flags"] - pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strndup"] + pub fn OPENSSL_strndup( + str_: *const ::std::os::raw::c_char, + size: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_retry_flags"] - pub fn BIO_clear_retry_flags(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_memdup"] + pub fn OPENSSL_memdup( + data: *const ::std::os::raw::c_void, + size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_method_type"] - pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcpy"] + pub fn OPENSSL_strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } -pub type bio_info_cb = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - event: ::std::os::raw::c_int, - parg: *const ::std::os::raw::c_char, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - return_value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long, ->; -pub type BIO_callback_fn_ex = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - oper: ::std::os::raw::c_int, - argp: *const ::std::os::raw::c_char, - len: usize, - argi: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - bio_ret: ::std::os::raw::c_int, - processed: *mut usize, - ) -> ::std::os::raw::c_long, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_callback_ctrl"] - pub fn BIO_callback_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - fp: bio_info_cb, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcat"] + pub fn OPENSSL_strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pending"] - pub fn BIO_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc"] + pub fn CRYPTO_malloc( + size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_pending"] - pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_realloc"] + pub fn CRYPTO_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_wpending"] - pub fn BIO_wpending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_free"] + pub fn CRYPTO_free( + ptr: *mut ::std::os::raw::c_void, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_close"] - pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_clear_free"] + pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_read"] - pub fn BIO_number_read(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_mem_functions"] + pub fn CRYPTO_set_mem_functions( + m: ::std::option::Option< + unsafe extern "C" fn( + arg1: usize, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + r: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: usize, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_written"] - pub fn BIO_number_written(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_init"] + pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_ex"] - pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_initialized"] + pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_arg"] - pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_used"] + pub fn CRYPTO_secure_used() -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_callback_arg"] - pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_malloc"] + pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_push"] - pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_zalloc"] + pub fn OPENSSL_secure_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pop"] - pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_clear_free"] + pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_next"] - pub fn BIO_next(bio: *mut BIO) -> *mut BIO; +#[repr(C)] +#[derive(Copy, Clone)] +pub union crypto_mutex_st { + pub alignment: f64, + pub padding: [u8; 56usize], +} +#[test] +fn bindgen_test_layout_crypto_mutex_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(crypto_mutex_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_mutex_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(crypto_mutex_st), + "::", + stringify!(alignment) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(crypto_mutex_st), + "::", + stringify!(padding) + ) + ); +} +impl Default for crypto_mutex_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() + } + } } +pub type CRYPTO_MUTEX = crypto_mutex_st; +pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free_all"] - pub fn BIO_free_all(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_clear"] + pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_find_type"] - pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_shutdown"] + pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_copy_next_retry"] - pub fn BIO_copy_next_retry(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_num_locks"] + pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_printf"] - pub fn BIO_printf( - bio: *mut BIO, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_locking_callback"] + pub fn CRYPTO_set_locking_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_indent"] - pub fn BIO_indent( - bio: *mut BIO, - indent: ::std::os::raw::c_uint, - max_indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_add_lock_callback"] + pub fn CRYPTO_set_add_lock_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + num: *mut ::std::os::raw::c_int, + amount: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_hexdump"] - pub fn BIO_hexdump( - bio: *mut BIO, - data: *const u8, - len: usize, - indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_locking_callback"] + pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors"] - pub fn ERR_print_errors(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_lock_name"] + pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_asn1"] - pub fn BIO_read_asn1( - bio: *mut BIO, - out: *mut *mut u8, - out_len: *mut usize, - max_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_callback"] + pub fn CRYPTO_THREADID_set_callback( + threadid_func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_mem"] - pub fn BIO_s_mem() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_numeric"] + pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_mem_buf"] - pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_pointer"] + pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_mem_contents"] - pub fn BIO_mem_contents( - bio: *const BIO, - out_contents: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_current"] + pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_mem_ptr"] - pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_id_callback"] + pub fn CRYPTO_set_id_callback( + func: ::std::option::Option ::std::os::raw::c_ulong>, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct CRYPTO_dynlock { + pub references: ::std::os::raw::c_int, + pub data: *mut CRYPTO_dynlock_value, +} +#[test] +fn bindgen_test_layout_CRYPTO_dynlock() { + 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!(CRYPTO_dynlock)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(data) + ) + ); +} +impl Default for CRYPTO_dynlock { + 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_fips_0_12_15_BIO_set_mem_buf"] - pub fn BIO_set_mem_buf( - bio: *mut BIO, - b: *mut BUF_MEM, - take_ownership: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_create_callback"] + pub fn CRYPTO_set_dynlock_create_callback( + dyn_create_function: ::std::option::Option< + unsafe extern "C" fn( + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_eof_return"] - pub fn BIO_set_mem_eof_return( - bio: *mut BIO, - eof_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_lock_callback"] + pub fn CRYPTO_set_dynlock_lock_callback( + dyn_lock_function: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_fd"] - pub fn BIO_s_fd() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_destroy_callback"] + pub fn CRYPTO_set_dynlock_destroy_callback( + dyn_destroy_function: ::std::option::Option< + unsafe extern "C" fn( + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fd"] - pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_create_callback"] + pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_fd"] - pub fn BIO_set_fd( - bio: *mut BIO, - fd: ::std::os::raw::c_int, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_lock_callback"] + pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut CRYPTO_dynlock_value, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fd"] - pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_destroy_callback"] + pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_dynlock_value, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_file"] - pub fn BIO_s_file() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_library_init"] + pub fn CRYPTO_library_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_file"] - pub fn BIO_new_file( - filename: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_is_confidential_build"] + pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fp"] - pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_has_asm"] + pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fp"] - pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BORINGSSL_self_test"] + pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_fp"] - pub fn BIO_set_fp( - bio: *mut BIO, - file: *mut FILE, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_filename"] - pub fn BIO_read_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_pre_sandbox_init"] + pub fn CRYPTO_pre_sandbox_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_filename"] - pub fn BIO_write_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_armv8_disable_dit"] + pub fn armv8_disable_dit(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_append_filename"] - pub fn BIO_append_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_armv8_enable_dit"] + pub fn armv8_enable_dit(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_rw_filename"] - pub fn BIO_rw_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode"] + pub fn FIPS_mode() -> ::std::os::raw::c_int; } +pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; +pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; +pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; +pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; +pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; +pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_tell"] - pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_read_counter"] + pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_seek"] - pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version"] + pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_socket"] - pub fn BIO_s_socket() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay_version"] + pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_socket"] - pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) - -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay"] + pub fn SSLeay() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_connect"] - pub fn BIO_s_connect() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version_num"] + pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_connect"] - pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_api_version_num"] + pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_hostname"] - pub fn BIO_set_conn_hostname( - bio: *mut BIO, - host_and_optional_port: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc_init"] + pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_port"] - pub fn BIO_set_conn_port( - bio: *mut BIO, - port_str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc_init"] + pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_int_port"] - pub fn BIO_set_conn_int_port( - bio: *mut BIO, - port: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_load_builtin_engines"] + pub fn ENGINE_load_builtin_engines(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_nbio"] - pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_register_all_complete"] + pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_do_connect"] - pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_load_builtin_modules"] + pub fn OPENSSL_load_builtin_modules(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_bio_pair"] - pub fn BIO_new_bio_pair( - out1: *mut *mut BIO, - writebuf1: usize, - out2: *mut *mut BIO, - writebuf2: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init_crypto"] + pub fn OPENSSL_init_crypto( + opts: u64, + settings: *const OPENSSL_INIT_SETTINGS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_read_request"] - pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init"] + pub fn OPENSSL_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_write_guarantee"] - pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanup"] + pub fn OPENSSL_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_shutdown_wr"] - pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode_set"] + pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_new_index"] - pub fn BIO_get_new_index() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_BIO_strings"] + pub fn ERR_load_BIO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_new"] - pub fn BIO_meth_new( - type_: ::std::os::raw::c_int, - name: *const ::std::os::raw::c_char, - ) -> *mut BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_ERR_strings"] + pub fn ERR_load_ERR_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_free"] - pub fn BIO_meth_free(method: *mut BIO_METHOD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_CRYPTO_strings"] + pub fn ERR_load_CRYPTO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_create"] - pub fn BIO_meth_set_create( - method: *mut BIO_METHOD, - create: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_crypto_strings"] + pub fn ERR_load_crypto_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_create"] - pub fn BIO_meth_get_create( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_RAND_strings"] + pub fn ERR_load_RAND_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_destroy"] - pub fn BIO_meth_set_destroy( - method: *mut BIO_METHOD, - destroy: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_free_strings"] + pub fn ERR_free_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_destroy"] - pub fn BIO_meth_get_destroy( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error"] + pub fn ERR_get_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_write"] - pub fn BIO_meth_set_write( - method: *mut BIO_METHOD, - write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line"] + pub fn ERR_get_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_read"] - pub fn BIO_meth_set_read( - method: *mut BIO_METHOD, - read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line_data"] + pub fn ERR_get_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_gets"] - pub fn BIO_meth_set_gets( - method: *mut BIO_METHOD, - gets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error"] + pub fn ERR_peek_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_gets"] - pub fn BIO_meth_get_gets( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line"] + pub fn ERR_peek_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_ctrl"] - pub fn BIO_meth_set_ctrl( - method: *mut BIO_METHOD, - ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line_data"] + pub fn ERR_peek_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_ctrl"] - pub fn BIO_meth_get_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_long, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error"] + pub fn ERR_peek_last_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_callback_ctrl"] - pub fn BIO_meth_set_callback_ctrl( - method: *mut BIO_METHOD, - callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line"] + pub fn ERR_peek_last_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_callback_ctrl"] - pub fn BIO_meth_get_callback_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: bio_info_cb, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line_data"] + pub fn ERR_peek_last_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_data"] - pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string_n"] + pub fn ERR_error_string_n( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + len: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_data"] - pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_lib_error_string"] + pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_init"] - pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_reason_error_string"] + pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } +pub type ERR_print_errors_callback_t = ::std::option::Option< + unsafe extern "C" fn( + str_: *const ::std::os::raw::c_char, + len: usize, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_init"] - pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors_cb"] + pub fn ERR_print_errors_cb( + callback: ERR_print_errors_callback_t, + ctx: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_new_index"] - pub fn BIO_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_fips_0_13_0_ERR_print_errors_fp"] + pub fn ERR_print_errors_fp(file: *mut FILE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_ex_data"] - pub fn BIO_set_ex_data( - bio: *mut BIO, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_error"] + pub fn ERR_clear_error(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_data"] - pub fn BIO_get_ex_data( - bio: *const BIO, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_mark"] + pub fn ERR_set_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_f_base64"] - pub fn BIO_f_base64() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_pop_to_mark"] + pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_special"] - pub fn BIO_set_retry_special(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_next_error_library"] + pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_write_buffer_size"] - pub fn BIO_set_write_buffer_size( - bio: *mut BIO, - buffer_size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_state"] + pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_shutdown"] - pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_thread_state"] + pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_shutdown"] - pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_func_error_string"] + pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_puts"] - pub fn BIO_meth_set_puts( - method: *mut BIO_METHOD, - puts: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string"] + pub fn ERR_error_string( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_puts"] - pub fn BIO_meth_get_puts( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_method_st { - pub type_: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub bwrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bread: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bputs: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub bgets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - pub create: - ::std::option::Option ::std::os::raw::c_int>, - pub destroy: - ::std::option::Option ::std::os::raw::c_int>, - pub callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_system_error"] + pub fn ERR_clear_system_error(); } -#[test] -fn bindgen_test_layout_bio_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(bio_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_method_st)) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_put_error"] + pub fn ERR_put_error( + library: ::std::os::raw::c_int, + unused: ::std::os::raw::c_int, + reason: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_uint, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(name) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_data"] + pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_dataf"] + pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_error_data"] + pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); +} +pub type OPENSSL_sk_free_func = + ::std::option::Option; +pub type OPENSSL_sk_copy_func = ::std::option::Option< + unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + a: *const *const ::std::os::raw::c_void, + b: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + obj: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_free_func = ::std::option::Option< + unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), +>; +pub type OPENSSL_sk_call_copy_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_copy_func, + arg2: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_cmp_func, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_delete_if_func, + arg2: *mut ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st { + _unused: [u8; 0], +} +pub type OPENSSL_STACK = stack_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new"] + pub fn OPENSSL_sk_new(comp: OPENSSL_sk_cmp_func) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new_null"] + pub fn OPENSSL_sk_new_null() -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_num"] + pub fn OPENSSL_sk_num(sk: *const OPENSSL_STACK) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_zero"] + pub fn OPENSSL_sk_zero(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_value"] + pub fn OPENSSL_sk_value(sk: *const OPENSSL_STACK, i: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set"] + pub fn OPENSSL_sk_set( + sk: *mut OPENSSL_STACK, + i: usize, + p: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_free"] + pub fn OPENSSL_sk_free(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop_free_ex"] + pub fn OPENSSL_sk_pop_free_ex( + sk: *mut OPENSSL_STACK, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bwrite) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_insert"] + pub fn OPENSSL_sk_insert( + sk: *mut OPENSSL_STACK, + p: *mut ::std::os::raw::c_void, + where_: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete"] + pub fn OPENSSL_sk_delete(sk: *mut OPENSSL_STACK, where_: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_ptr"] + pub fn OPENSSL_sk_delete_ptr( + sk: *mut OPENSSL_STACK, + p: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_if"] + pub fn OPENSSL_sk_delete_if( + sk: *mut OPENSSL_STACK, + call_func: OPENSSL_sk_call_delete_if_func, + func: OPENSSL_sk_delete_if_func, + data: *mut ::std::os::raw::c_void, ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_find"] + pub fn OPENSSL_sk_find( + sk: *const OPENSSL_STACK, + out_index: *mut usize, + p: *const ::std::os::raw::c_void, + call_cmp_func: OPENSSL_sk_call_cmp_func, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_unshift"] + pub fn OPENSSL_sk_unshift( + sk: *mut OPENSSL_STACK, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_shift"] + pub fn OPENSSL_sk_shift(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_push"] + pub fn OPENSSL_sk_push(sk: *mut OPENSSL_STACK, p: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop"] + pub fn OPENSSL_sk_pop(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_dup"] + pub fn OPENSSL_sk_dup(sk: *const OPENSSL_STACK) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_sort"] + pub fn OPENSSL_sk_sort(sk: *mut OPENSSL_STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_is_sorted"] + pub fn OPENSSL_sk_is_sorted(sk: *const OPENSSL_STACK) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set_cmp_func"] + pub fn OPENSSL_sk_set_cmp_func( + sk: *mut OPENSSL_STACK, + comp: OPENSSL_sk_cmp_func, + ) -> OPENSSL_sk_cmp_func; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_deep_copy"] + pub fn OPENSSL_sk_deep_copy( + sk: *const OPENSSL_STACK, + call_copy_func: OPENSSL_sk_call_copy_func, + copy_func: OPENSSL_sk_copy_func, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, + ) -> *mut OPENSSL_STACK; +} +pub type _STACK = OPENSSL_STACK; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_sk_pop_free"] + pub fn sk_pop_free(sk: *mut OPENSSL_STACK, free_func: OPENSSL_sk_free_func); +} +pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_void { + _unused: [u8; 0], +} +pub type sk_void_free_func = + ::std::option::Option; +pub type sk_void_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type sk_void_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_void, + arg2: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type sk_void_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_OPENSSL_STRING { + _unused: [u8; 0], +} +pub type sk_OPENSSL_STRING_free_func = + ::std::option::Option; +pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, +>; +pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_char, + arg2: *const *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_DATA = crypto_ex_data_st; +pub type CRYPTO_EX_free = ::std::option::Option< + unsafe extern "C" fn( + parent: *mut ::std::os::raw::c_void, + ptr: *mut ::std::os::raw::c_void, + ad: *mut CRYPTO_EX_DATA, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_cleanup_all_ex_data"] + pub fn CRYPTO_cleanup_all_ex_data(); +} +pub type CRYPTO_EX_dup = ::std::option::Option< + unsafe extern "C" fn( + to: *mut CRYPTO_EX_DATA, + from: *const CRYPTO_EX_DATA, + from_d: *mut *mut ::std::os::raw::c_void, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_unused = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct crypto_ex_data_st { + pub sk: *mut stack_st_void, +} +#[test] +fn bindgen_test_layout_crypto_ex_data_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bread) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bputs) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bio_method_st), + stringify!(crypto_ex_data_st), "::", - stringify!(bgets) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(ctrl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(create) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(destroy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(callback_ctrl) + stringify!(sk) ) ); } -impl Default for bio_method_st { +impl Default for crypto_ex_data_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6705,1053 +6737,908 @@ impl Default for bio_method_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_st { - pub method: *const BIO_METHOD, - pub ex_data: CRYPTO_EX_DATA, - pub callback_ex: BIO_callback_fn_ex, - pub cb_arg: *mut ::std::os::raw::c_char, - pub init: ::std::os::raw::c_int, - pub shutdown: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub retry_reason: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_int, - pub references: CRYPTO_refcount_t, - pub ptr: *mut ::std::os::raw::c_void, - pub next_bio: *mut BIO, - pub num_read: usize, - pub num_write: usize, -} -#[test] -fn bindgen_test_layout_bio_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(bio_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(method) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(callback_ex) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(cb_arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(shutdown) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(retry_reason) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(next_bio) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_read) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_write) - ) - ); -} -impl Default for bio_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() - } - } +#[derive(Debug, Copy, Clone)] +pub struct stack_st_BIO { + _unused: [u8; 0], } -pub type BN_ULONG = u64; +pub type sk_BIO_free_func = ::std::option::Option; +pub type sk_BIO_copy_func = + ::std::option::Option *mut BIO>; +pub type sk_BIO_cmp_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const *const BIO, arg2: *const *const BIO) -> ::std::os::raw::c_int, +>; +pub type sk_BIO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_new"] - pub fn BN_new() -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new"] + pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_init"] - pub fn BN_init(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free"] + pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_free"] - pub fn BN_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vfree"] + pub fn BIO_vfree(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_free"] - pub fn BN_clear_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_up_ref"] + pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dup"] - pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read"] + pub fn BIO_read( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_copy"] - pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_ex"] + pub fn BIO_read_ex( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + data_len: usize, + read_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear"] - pub fn BN_clear(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_gets"] + pub fn BIO_gets( + bio: *mut BIO, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_value_one"] - pub fn BN_value_one() -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write"] + pub fn BIO_write( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bits"] - pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_ex"] + pub fn BIO_write_ex( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + data_len: usize, + written_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bytes"] - pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_all"] + pub fn BIO_write_all( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_zero"] - pub fn BN_zero(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_puts"] + pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_one"] - pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_flush"] + pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_word"] - pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl"] + pub fn BIO_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + parg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_u64"] - pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ptr_ctrl"] + pub fn BIO_ptr_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_negative"] - pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_int_ctrl"] + pub fn BIO_int_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + iarg: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_negative"] - pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_reset"] + pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bin2bn"] - pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_eof"] + pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin"] - pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_flags"] + pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_le2bn"] - pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_test_flags"] + pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2le_padded"] - pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_read"] + pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin_padded"] - pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_write"] + pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2cbb_padded"] - pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_retry"] + pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2hex"] - pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_io_special"] + pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_hex2bn"] - pub fn BN_hex2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_reason"] + pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2dec"] - pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_reason"] + pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dec2bn"] - pub fn BN_dec2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_flags"] + pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_asc2bn"] - pub fn BN_asc2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_read"] + pub fn BIO_set_retry_read(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print"] - pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_write"] + pub fn BIO_set_retry_write(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print_fp"] - pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_flags"] + pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_word"] - pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_retry_flags"] + pub fn BIO_clear_retry_flags(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_u64"] - pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_type"] + pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_parse_asn1_unsigned"] - pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_name"] + pub fn BIO_method_name(b: *const BIO) -> *const ::std::os::raw::c_char; } +pub type bio_info_cb = ::std::option::Option< + unsafe extern "C" fn( + b: *mut BIO, + state: ::std::os::raw::c_int, + res: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long, +>; +pub type BIO_callback_fn_ex = ::std::option::Option< + unsafe extern "C" fn( + bio: *mut BIO, + oper: ::std::os::raw::c_int, + argp: *const ::std::os::raw::c_char, + len: usize, + argi: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + bio_ret: ::std::os::raw::c_int, + processed: *mut usize, + ) -> ::std::os::raw::c_long, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_marshal_asn1"] - pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_callback_ctrl"] + pub fn BIO_callback_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + fp: bio_info_cb, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_new"] - pub fn BN_CTX_new() -> *mut BN_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pending"] + pub fn BIO_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_free"] - pub fn BN_CTX_free(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_pending"] + pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_start"] - pub fn BN_CTX_start(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_wpending"] + pub fn BIO_wpending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_get"] - pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_close"] + pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_end"] - pub fn BN_CTX_end(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_read"] + pub fn BIO_number_read(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add"] - pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_written"] + pub fn BIO_number_written(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_uadd"] - pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_ex"] + pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add_word"] - pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_arg"] + pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub"] - pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_callback_arg"] + pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_usub"] - pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_push"] + pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub_word"] - pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pop"] + pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul"] - pub fn BN_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_next"] + pub fn BIO_next(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul_word"] - pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free_all"] + pub fn BIO_free_all(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqr"] - pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_find_type"] + pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div"] - pub fn BN_div( - quotient: *mut BIGNUM, - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_copy_next_retry"] + pub fn BIO_copy_next_retry(bio: *mut BIO); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_printf"] + pub fn BIO_printf( + bio: *mut BIO, + format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div_word"] - pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_indent"] + pub fn BIO_indent( + bio: *mut BIO, + indent: ::std::os::raw::c_uint, + max_indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqrt"] - pub fn BN_sqrt( - out_sqrt: *mut BIGNUM, - in_: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_hexdump"] + pub fn BIO_hexdump( + bio: *mut BIO, + data: *const u8, + len: usize, + indent: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp"] - pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors"] + pub fn ERR_print_errors(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp_word"] - pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_asn1"] + pub fn BIO_read_asn1( + bio: *mut BIO, + out: *mut *mut u8, + out_len: *mut usize, + max_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_ucmp"] - pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_mem"] + pub fn BIO_s_mem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_equal_consttime"] - pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_mem_buf"] + pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_abs_is_word"] - pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_mem_contents"] + pub fn BIO_mem_contents( + bio: *const BIO, + out_contents: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_zero"] - pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_mem_ptr"] + pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_one"] - pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_buf"] + pub fn BIO_set_mem_buf( + bio: *mut BIO, + b: *mut BUF_MEM, + take_ownership: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_word"] - pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_eof_return"] + pub fn BIO_set_mem_eof_return( + bio: *mut BIO, + eof_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_odd"] - pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_fd"] + pub fn BIO_s_fd() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_pow2"] - pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fd"] + pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift"] - pub fn BN_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fd"] + pub fn BIO_set_fd( + bio: *mut BIO, + fd: ::std::os::raw::c_int, + close_flag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift1"] - pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fd"] + pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift"] - pub fn BN_rshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_file"] + pub fn BIO_s_file() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift1"] - pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_file"] + pub fn BIO_new_file( + filename: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_bit"] - pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fp"] + pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_bit"] - pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fp"] + pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_bit_set"] - pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fp"] + pub fn BIO_set_fp( + bio: *mut BIO, + file: *mut FILE, + close_flag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mask_bits"] - pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_filename"] + pub fn BIO_read_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_count_low_zero_bits"] - pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_filename"] + pub fn BIO_write_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_word"] - pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_append_filename"] + pub fn BIO_append_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_pow2"] - pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_rw_filename"] + pub fn BIO_rw_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod_pow2"] - pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_tell"] + pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod"] - pub fn BN_nnmod( - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_seek"] + pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add"] - pub fn BN_mod_add( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_socket"] + pub fn BIO_s_socket() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add_quick"] - pub fn BN_mod_add_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_socket"] + pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) + -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub"] - pub fn BN_mod_sub( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_connect"] + pub fn BIO_s_connect() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub_quick"] - pub fn BN_mod_sub_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_connect"] + pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul"] - pub fn BN_mod_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_hostname"] + pub fn BIO_set_conn_hostname( + bio: *mut BIO, + host_and_optional_port: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqr"] - pub fn BN_mod_sqr( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_port"] + pub fn BIO_set_conn_port( + bio: *mut BIO, + port_str: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift"] - pub fn BN_mod_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_int_port"] + pub fn BIO_set_conn_int_port( + bio: *mut BIO, + port: *const ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift_quick"] - pub fn BN_mod_lshift_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_nbio"] + pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1"] - pub fn BN_mod_lshift1( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_do_connect"] + pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1_quick"] - pub fn BN_mod_lshift1_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_bio_pair"] + pub fn BIO_new_bio_pair( + out1: *mut *mut BIO, + writebuf1: usize, + out2: *mut *mut BIO, + writebuf2: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqrt"] - pub fn BN_mod_sqrt( - in_: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_read_request"] + pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand"] - pub fn BN_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_write_guarantee"] + pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand"] - pub fn BN_pseudo_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_shutdown_wr"] + pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range"] - pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_new_index"] + pub fn BIO_get_new_index() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range_ex"] - pub fn BN_rand_range_ex( - r: *mut BIGNUM, - min_inclusive: BN_ULONG, - max_exclusive: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_new"] + pub fn BIO_meth_new( + type_: ::std::os::raw::c_int, + name: *const ::std::os::raw::c_char, + ) -> *mut BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand_range"] - pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_gencb_st { - pub arg: *mut ::std::os::raw::c_void, - pub callback: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut bn_gencb_st, - ) -> ::std::os::raw::c_int, - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_free"] + pub fn BIO_meth_free(method: *mut BIO_METHOD); } -#[test] -fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bn_gencb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(callback) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_create"] + pub fn BIO_meth_set_create( + method: *mut BIO_METHOD, + create: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } -impl Default for bn_gencb_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_fips_0_13_0_BIO_meth_get_create"] + pub fn BIO_meth_get_create( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_new"] - pub fn BN_GENCB_new() -> *mut BN_GENCB; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_destroy"] + pub fn BIO_meth_set_destroy( + method: *mut BIO_METHOD, + destroy: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_free"] - pub fn BN_GENCB_free(callback: *mut BN_GENCB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_destroy"] + pub fn BIO_meth_get_destroy( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_set"] - pub fn BN_GENCB_set( - callback: *mut BN_GENCB, - f: ::std::option::Option< + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_write"] + pub fn BIO_meth_set_write( + method: *mut BIO_METHOD, + write: ::std::option::Option< unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut BN_GENCB, + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, - arg: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_call"] - pub fn BN_GENCB_call( - callback: *mut BN_GENCB, - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_get_arg"] - pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_generate_prime_ex"] - pub fn BN_generate_prime_ex( - ret: *mut BIGNUM, - bits: ::std::os::raw::c_int, - safe: ::std::os::raw::c_int, - add: *const BIGNUM, - rem: *const BIGNUM, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_read"] + pub fn BIO_meth_set_read( + method: *mut BIO_METHOD, + read: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } -pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; -pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; -pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; -pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_enhanced_miller_rabin_primality_test"] - pub fn BN_enhanced_miller_rabin_primality_test( - out_result: *mut bn_primality_result_t, - w: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_gets"] + pub fn BIO_meth_set_gets( + method: *mut BIO_METHOD, + gets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_primality_test"] - pub fn BN_primality_test( - is_probably_prime: *mut ::std::os::raw::c_int, - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_fasttest_ex"] - pub fn BN_is_prime_fasttest_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_ex"] - pub fn BN_is_prime_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_gets"] + pub fn BIO_meth_get_gets( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_gcd"] - pub fn BN_gcd( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_ctrl"] + pub fn BIO_meth_set_ctrl( + method: *mut BIO_METHOD, + ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse"] - pub fn BN_mod_inverse( - out: *mut BIGNUM, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_blinded"] - pub fn BN_mod_inverse_blinded( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_ctrl"] + pub fn BIO_meth_get_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_long, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_odd"] - pub fn BN_mod_inverse_odd( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_callback_ctrl"] + pub fn BIO_meth_set_callback_ctrl( + method: *mut BIO_METHOD, + callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_for_modulus"] - pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_consttime"] - pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_free"] - pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_callback_ctrl"] + pub fn BIO_meth_get_callback_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: bio_info_cb, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_copy"] - pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_data"] + pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_montgomery"] - pub fn BN_to_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_data"] + pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_from_montgomery"] - pub fn BN_from_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_init"] + pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul_montgomery"] - pub fn BN_mod_mul_montgomery( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_init"] + pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_exp"] - pub fn BN_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_new_index"] + pub fn BIO_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_fips_0_12_15_BN_mod_exp"] - pub fn BN_mod_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_ex_data"] + pub fn BIO_set_ex_data( + bio: *mut BIO, + 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_fips_0_12_15_BN_mod_exp_mont"] - pub fn BN_mod_exp_mont( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_data"] + pub fn BIO_get_ex_data( + bio: *const BIO, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_consttime"] - pub fn BN_mod_exp_mont_consttime( - rr: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_f_base64"] + pub fn BIO_f_base64() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2mpi"] - pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_special"] + pub fn BIO_set_retry_special(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mpi2bn"] - pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_shutdown"] + pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_word"] - pub fn BN_mod_exp_mont_word( - r: *mut BIGNUM, - a: BN_ULONG, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_shutdown"] + pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp2_mont"] - pub fn BN_mod_exp2_mont( - r: *mut BIGNUM, - a1: *const BIGNUM, - p1: *const BIGNUM, - a2: *const BIGNUM, - p2: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_puts"] + pub fn BIO_meth_set_puts( + method: *mut BIO_METHOD, + puts: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new"] - pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_puts"] + pub fn BIO_meth_get_puts( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_set"] - pub fn BN_MONT_CTX_set( - mont: *mut BN_MONT_CTX, - mod_: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_secmem"] + pub fn BIO_s_secmem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2binpad"] - pub fn BN_bn2binpad( - in_: *const BIGNUM, - out: *mut u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_write_buffer_size"] + pub fn BIO_set_write_buffer_size( + bio: *mut BIO, + buffer_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_secure_new"] - pub fn BN_secure_new() -> *mut BIGNUM; -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bignum_st { - pub d: *mut BN_ULONG, - pub width: ::std::os::raw::c_int, - pub dmax: ::std::os::raw::c_int, - pub neg: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_bignum_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!(bignum_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bignum_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bignum_st), - "::", - stringify!(d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, - 8usize, +pub struct bio_method_st { + pub type_: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub bwrite: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bread: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bputs: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, + pub bgets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, + pub create: + ::std::option::Option ::std::os::raw::c_int>, + pub destroy: + ::std::option::Option ::std::os::raw::c_int>, + pub callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, +} +#[test] +fn bindgen_test_layout_bio_method_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 80usize, + concat!("Size of: ", stringify!(bio_method_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bio_method_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(width) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(dmax) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(neg) + stringify!(bwrite) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(flags) + stringify!(bread) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bputs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bgets) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(ctrl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(create) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(destroy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(callback_ctrl) ) ); } -impl Default for bignum_st { +impl Default for bio_method_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7762,267 +7649,178 @@ impl Default for bignum_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_mont_ctx_st { - pub RR: BIGNUM, - pub N: BIGNUM, - pub n0: [BN_ULONG; 2usize], +pub struct bio_st { + pub method: *const BIO_METHOD, + pub ex_data: CRYPTO_EX_DATA, + pub callback_ex: BIO_callback_fn_ex, + pub cb_arg: *mut ::std::os::raw::c_char, + pub init: ::std::os::raw::c_int, + pub shutdown: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub retry_reason: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_int, + pub references: CRYPTO_refcount_t, + pub ptr: *mut ::std::os::raw::c_void, + pub next_bio: *mut BIO, + pub num_read: u64, + pub num_write: u64, } #[test] -fn bindgen_test_layout_bn_mont_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_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!(bn_mont_ctx_st)) + ::std::mem::size_of::(), + 88usize, + concat!("Size of: ", stringify!(bio_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + concat!("Alignment of ", stringify!(bio_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(RR) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ex_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(callback_ex) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(N) + stringify!(cb_arg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(n0) + stringify!(init) ) ); -} -impl Default for bn_mont_ctx_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_fips_0_12_15_BN_num_bits_word"] - pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2bit"] - pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2str"] - pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -pub type d2i_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type i2d_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ITEM_EXP = ASN1_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_VALUE_st { - _unused: [u8; 0], -} -pub type ASN1_VALUE = ASN1_VALUE_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_new"] - pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_free"] - pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i"] - pub fn ASN1_item_d2i( - out: *mut *mut ASN1_VALUE, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - ) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d"] - pub fn ASN1_item_i2d( - val: *mut ASN1_VALUE, - outp: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_dup"] - pub fn ASN1_item_dup( - it: *const ASN1_ITEM, - x: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_fp"] - pub fn ASN1_item_d2i_fp( - it: *const ASN1_ITEM, - in_: *mut FILE, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_bio"] - pub fn ASN1_item_d2i_bio( - it: *const ASN1_ITEM, - in_: *mut BIO, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_fp"] - pub fn ASN1_item_i2d_fp( - it: *const ASN1_ITEM, - out: *mut FILE, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_bio"] - pub fn ASN1_item_i2d_bio( - it: *const ASN1_ITEM, - out: *mut BIO, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_unpack"] - pub fn ASN1_item_unpack( - oct: *const ASN1_STRING, - it: *const ASN1_ITEM, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_pack"] - pub fn ASN1_item_pack( - obj: *mut ::std::os::raw::c_void, - it: *const ASN1_ITEM, - out: *mut *mut ASN1_STRING, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BOOLEAN"] - pub fn d2i_ASN1_BOOLEAN( - out: *mut ASN1_BOOLEAN, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> ASN1_BOOLEAN; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BOOLEAN"] - pub fn i2d_ASN1_BOOLEAN( - a: ASN1_BOOLEAN, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BOOLEAN_it"] - pub static ASN1_BOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TBOOLEAN_it"] - pub static ASN1_TBOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_FBOOLEAN_it"] - pub static ASN1_FBOOLEAN_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct asn1_string_st { - pub length: ::std::os::raw::c_int, - pub type_: ::std::os::raw::c_int, - pub data: *mut ::std::os::raw::c_uchar, - pub flags: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) + unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(shutdown) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_string_st)) + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(flags) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, + 44usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(length) + stringify!(retry_reason) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(type_) + stringify!(num) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 52usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(data) + stringify!(references) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(flags) + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(next_bio) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_read) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_write) ) ); } -impl Default for asn1_string_st { +impl Default for bio_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8031,1186 +7829,1039 @@ impl Default for asn1_string_st { } } } +pub type BN_ULONG = u64; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type_new"] - pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_new"] + pub fn BN_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_new"] - pub fn ASN1_STRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_init"] + pub fn BN_init(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_free"] - pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_free"] + pub fn BN_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_clear_free"] - pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_free"] + pub fn BN_clear_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_copy"] - pub fn ASN1_STRING_copy( - dst: *mut ASN1_STRING, - str_: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dup"] + pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_dup"] - pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_copy"] + pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type"] - pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear"] + pub fn BN_clear(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get0_data"] - pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_value_one"] + pub fn BN_value_one() -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_data"] - pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits"] + pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_length"] - pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bytes"] + pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_cmp"] - pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_zero"] + pub fn BN_zero(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set"] - pub fn ASN1_STRING_set( - str_: *mut ASN1_STRING, - data: *const ::std::os::raw::c_void, - len: ossl_ssize_t, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_one"] + pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set0"] - pub fn ASN1_STRING_set0( - str_: *mut ASN1_STRING, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_word"] + pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_new"] - pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_u64"] + pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_new"] - pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_negative"] + pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_new"] - pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_negative"] + pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_new"] - pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bin2bn"] + pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_new"] - pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin"] + pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_new"] - pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_le2bn"] + pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_new"] - pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2le_padded"] + pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_new"] - pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin_padded"] + pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_new"] - pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2cbb_padded"] + pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_free"] - pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2hex"] + pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_free"] - pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_hex2bn"] + pub fn BN_hex2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_free"] - pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2dec"] + pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_free"] - pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dec2bn"] + pub fn BN_dec2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_free"] - pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_asc2bn"] + pub fn BN_asc2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_free"] - pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print"] + pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_free"] - pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print_fp"] + pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_free"] - pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_word"] + pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_free"] - pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_u64"] + pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BMPSTRING"] - pub fn d2i_ASN1_BMPSTRING( - out: *mut *mut ASN1_BMPSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_flags"] + pub fn BN_get_flags(bn: *const BIGNUM, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALSTRING"] - pub fn d2i_ASN1_GENERALSTRING( - out: *mut *mut ASN1_GENERALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_parse_asn1_unsigned"] + pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_IA5STRING"] - pub fn d2i_ASN1_IA5STRING( - out: *mut *mut ASN1_IA5STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_marshal_asn1"] + pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OCTET_STRING"] - pub fn d2i_ASN1_OCTET_STRING( - out: *mut *mut ASN1_OCTET_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_new"] + pub fn BN_CTX_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLESTRING"] - pub fn d2i_ASN1_PRINTABLESTRING( - out: *mut *mut ASN1_PRINTABLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_free"] + pub fn BN_CTX_free(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_T61STRING"] - pub fn d2i_ASN1_T61STRING( - out: *mut *mut ASN1_T61STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_start"] + pub fn BN_CTX_start(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UNIVERSALSTRING"] - pub fn d2i_ASN1_UNIVERSALSTRING( - out: *mut *mut ASN1_UNIVERSALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_get"] + pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTF8STRING"] - pub fn d2i_ASN1_UTF8STRING( - out: *mut *mut ASN1_UTF8STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_end"] + pub fn BN_CTX_end(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_VISIBLESTRING"] - pub fn d2i_ASN1_VISIBLESTRING( - out: *mut *mut ASN1_VISIBLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add"] + pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BMPSTRING"] - pub fn i2d_ASN1_BMPSTRING( - in_: *const ASN1_BMPSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_uadd"] + pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALSTRING"] - pub fn i2d_ASN1_GENERALSTRING( - in_: *const ASN1_GENERALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add_word"] + pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_IA5STRING"] - pub fn i2d_ASN1_IA5STRING( - in_: *const ASN1_IA5STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub"] + pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OCTET_STRING"] - pub fn i2d_ASN1_OCTET_STRING( - in_: *const ASN1_OCTET_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_usub"] + pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLESTRING"] - pub fn i2d_ASN1_PRINTABLESTRING( - in_: *const ASN1_PRINTABLESTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub_word"] + pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_T61STRING"] - pub fn i2d_ASN1_T61STRING( - in_: *const ASN1_T61STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul"] + pub fn BN_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UNIVERSALSTRING"] - pub fn i2d_ASN1_UNIVERSALSTRING( - in_: *const ASN1_UNIVERSALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul_word"] + pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTF8STRING"] - pub fn i2d_ASN1_UTF8STRING( - in_: *const ASN1_UTF8STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqr"] + pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_VISIBLESTRING"] - pub fn i2d_ASN1_VISIBLESTRING( - in_: *const ASN1_VISIBLESTRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div"] + pub fn BN_div( + quotient: *mut BIGNUM, + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_it"] - pub static ASN1_BMPSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div_word"] + pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_it"] - pub static ASN1_GENERALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqrt"] + pub fn BN_sqrt( + out_sqrt: *mut BIGNUM, + in_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_it"] - pub static ASN1_IA5STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp"] + pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_it"] - pub static ASN1_OCTET_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp_word"] + pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_it"] - pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_ucmp"] + pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_it"] - pub static ASN1_T61STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_equal_consttime"] + pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_it"] - pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_abs_is_word"] + pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_it"] - pub static ASN1_UTF8STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_zero"] + pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_it"] - pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_one"] + pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_dup"] - pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_word"] + pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_cmp"] - pub fn ASN1_OCTET_STRING_cmp( - a: *const ASN1_OCTET_STRING, - b: *const ASN1_OCTET_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_odd"] + pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_set"] - pub fn ASN1_OCTET_STRING_set( - str_: *mut ASN1_OCTET_STRING, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_pow2"] + pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_to_UTF8"] - pub fn ASN1_STRING_to_UTF8( - out: *mut *mut ::std::os::raw::c_uchar, - in_: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift"] + pub fn BN_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_copy"] - pub fn ASN1_mbstring_copy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift1"] + pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_ncopy"] - pub fn ASN1_mbstring_ncopy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift"] + pub fn BN_rshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_by_NID"] - pub fn ASN1_STRING_set_by_NID( - out: *mut *mut ASN1_STRING, - in_: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - nid: ::std::os::raw::c_int, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift1"] + pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_add"] - pub fn ASN1_STRING_TABLE_add( - nid: ::std::os::raw::c_int, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, - mask: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_bit"] + pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_new"] - pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_bit"] + pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_free"] - pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_bit_set"] + pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIRECTORYSTRING"] - pub fn d2i_DIRECTORYSTRING( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mask_bits"] + pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIRECTORYSTRING"] - pub fn i2d_DIRECTORYSTRING( - in_: *const ASN1_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_count_low_zero_bits"] + pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_it"] - pub static DIRECTORYSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_word"] + pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_new"] - pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_pow2"] + pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_free"] - pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod_pow2"] + pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DISPLAYTEXT"] - pub fn d2i_DISPLAYTEXT( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod"] + pub fn BN_nnmod( + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DISPLAYTEXT"] - pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add"] + pub fn BN_mod_add( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_it"] - pub static DISPLAYTEXT_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add_quick"] + pub fn BN_mod_add_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_new"] - pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_free"] - pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub"] + pub fn BN_mod_sub( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BIT_STRING"] - pub fn d2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub_quick"] + pub fn BN_mod_sub_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BIT_STRING"] - pub fn i2d_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul"] + pub fn BN_mod_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_BIT_STRING"] - pub fn c2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqr"] + pub fn BN_mod_sqr( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_BIT_STRING"] - pub fn i2c_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift"] + pub fn BN_mod_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_it"] - pub static ASN1_BIT_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift_quick"] + pub fn BN_mod_lshift_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_num_bytes"] - pub fn ASN1_BIT_STRING_num_bytes( - str_: *const ASN1_BIT_STRING, - out: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1"] + pub fn BN_mod_lshift1( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set"] - pub fn ASN1_BIT_STRING_set( - str_: *mut ASN1_BIT_STRING, - d: *const ::std::os::raw::c_uchar, - length: ossl_ssize_t, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1_quick"] + pub fn BN_mod_lshift1_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set_bit"] - pub fn ASN1_BIT_STRING_set_bit( - str_: *mut ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqrt"] + pub fn BN_mod_sqrt( + in_: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_get_bit"] - pub fn ASN1_BIT_STRING_get_bit( - str_: *const ASN1_BIT_STRING, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand"] + pub fn BN_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_check"] - pub fn ASN1_BIT_STRING_check( - str_: *const ASN1_BIT_STRING, - flags: *const ::std::os::raw::c_uchar, - flags_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand"] + pub fn BN_pseudo_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_INTEGER { - _unused: [u8; 0], -} -pub type sk_ASN1_INTEGER_free_func = - ::std::option::Option; -pub type sk_ASN1_INTEGER_copy_func = - ::std::option::Option *mut ASN1_INTEGER>; -pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_INTEGER, - arg2: *mut *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_INTEGER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_new"] - pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range"] + pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_free"] - pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range_ex"] + pub fn BN_rand_range_ex( + r: *mut BIGNUM, + min_inclusive: BN_ULONG, + max_exclusive: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_dup"] - pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand_range"] + pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_INTEGER"] - pub fn d2i_ASN1_INTEGER( - out: *mut *mut ASN1_INTEGER, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct bn_gencb_st { + pub type_: u8, + pub arg: *mut ::std::os::raw::c_void, + pub callback: bn_gencb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_INTEGER"] - pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union bn_gencb_st__bindgen_ty_1 { + pub new_style: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut bn_gencb_st, + ) -> ::std::os::raw::c_int, + >, + pub old_style: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_INTEGER"] - pub fn c2i_ASN1_INTEGER( - in_: *mut *mut ASN1_INTEGER, - outp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; +#[test] +fn bindgen_test_layout_bn_gencb_st__bindgen_ty_1() { + 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!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).new_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(new_style) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).old_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(old_style) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_INTEGER"] - pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +impl Default for bn_gencb_st__bindgen_ty_1 { + 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_fips_0_12_15_ASN1_INTEGER_it"] - pub static ASN1_INTEGER_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(callback) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set_uint64"] - pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; +impl Default for bn_gencb_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_fips_0_12_15_ASN1_INTEGER_set_int64"] - pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_new"] + pub fn BN_GENCB_new() -> *mut BN_GENCB; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_uint64"] - pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_free"] + pub fn BN_GENCB_free(callback: *mut BN_GENCB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_int64"] - pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_INTEGER"] - pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_to_BN"] - pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set"] + pub fn BN_GENCB_set( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut BN_GENCB, + ) -> ::std::os::raw::c_int, + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_cmp"] - pub fn ASN1_INTEGER_cmp( - x: *const ASN1_INTEGER, - y: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_call"] + pub fn BN_GENCB_call( + callback: *mut BN_GENCB, + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_new"] - pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_get_arg"] + pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_free"] - pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_generate_prime_ex"] + pub fn BN_generate_prime_ex( + ret: *mut BIGNUM, + bits: ::std::os::raw::c_int, + safe: ::std::os::raw::c_int, + add: *const BIGNUM, + rem: *const BIGNUM, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } +pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; +pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; +pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; +pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_ENUMERATED"] - pub fn d2i_ASN1_ENUMERATED( - out: *mut *mut ASN1_ENUMERATED, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_enhanced_miller_rabin_primality_test"] + pub fn BN_enhanced_miller_rabin_primality_test( + out_result: *mut bn_primality_result_t, + w: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_ENUMERATED"] - pub fn i2d_ASN1_ENUMERATED( - in_: *const ASN1_ENUMERATED, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_primality_test"] + pub fn BN_primality_test( + is_probably_prime: *mut ::std::os::raw::c_int, + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_it"] - pub static ASN1_ENUMERATED_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_fasttest_ex"] + pub fn BN_is_prime_fasttest_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_uint64"] - pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_ex"] + pub fn BN_is_prime_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_int64"] - pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_gcd"] + pub fn BN_gcd( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_uint64"] - pub fn ASN1_ENUMERATED_get_uint64( - out: *mut u64, - a: *const ASN1_ENUMERATED, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse"] + pub fn BN_mod_inverse( + out: *mut BIGNUM, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_int64"] - pub fn ASN1_ENUMERATED_get_int64( - out: *mut i64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_blinded"] + pub fn BN_mod_inverse_blinded( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_ENUMERATED"] - pub fn BN_to_ASN1_ENUMERATED( - bn: *const BIGNUM, - ai: *mut ASN1_ENUMERATED, - ) -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_odd"] + pub fn BN_mod_inverse_odd( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_to_BN"] - pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_for_modulus"] + pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_new"] - pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_consttime"] + pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_free"] - pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_free"] + pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTCTIME"] - pub fn d2i_ASN1_UTCTIME( - out: *mut *mut ASN1_UTCTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_copy"] + pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTCTIME"] - pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_montgomery"] + pub fn BN_to_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_it"] - pub static ASN1_UTCTIME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_from_montgomery"] + pub fn BN_from_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_check"] - pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul_montgomery"] + pub fn BN_mod_mul_montgomery( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set"] - pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_exp"] + pub fn BN_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_adj"] - pub fn ASN1_UTCTIME_adj( - s: *mut ASN1_UTCTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp"] + pub fn BN_mod_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set_string"] - pub fn ASN1_UTCTIME_set_string( - s: *mut ASN1_UTCTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont"] + pub fn BN_mod_exp_mont( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_cmp_time_t"] - pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime"] + pub fn BN_mod_exp_mont_consttime( + rr: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_new"] - pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set_old"] + pub fn BN_GENCB_set_old( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_free"] - pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2mpi"] + pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALIZEDTIME"] - pub fn d2i_ASN1_GENERALIZEDTIME( - out: *mut *mut ASN1_GENERALIZEDTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mpi2bn"] + pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALIZEDTIME"] - pub fn i2d_ASN1_GENERALIZEDTIME( - in_: *const ASN1_GENERALIZEDTIME, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_word"] + pub fn BN_mod_exp_mont_word( + r: *mut BIGNUM, + a: BN_ULONG, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_it"] - pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_check"] - pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp2_mont"] + pub fn BN_mod_exp2_mont( + r: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set"] - pub fn ASN1_GENERALIZEDTIME_set( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new"] + pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_adj"] - pub fn ASN1_GENERALIZEDTIME_adj( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_set"] + pub fn BN_MONT_CTX_set( + mont: *mut BN_MONT_CTX, + mod_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set_string"] - pub fn ASN1_GENERALIZEDTIME_set_string( - s: *mut ASN1_GENERALIZEDTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2binpad"] + pub fn BN_bn2binpad( + in_: *const BIGNUM, + out: *mut u8, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_new"] - pub fn ASN1_TIME_new() -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_secure_new"] + pub fn BN_secure_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_free"] - pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_secure_new"] + pub fn BN_CTX_secure_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TIME"] - pub fn d2i_ASN1_TIME( - out: *mut *mut ASN1_TIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TIME"] - pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_it"] - pub static ASN1_TIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_diff"] - pub fn ASN1_TIME_diff( - out_days: *mut ::std::os::raw::c_int, - out_seconds: *mut ::std::os::raw::c_int, - from: *const ASN1_TIME, - to: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_posix"] - pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set"] - pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_adj"] - pub fn ASN1_TIME_adj( - s: *mut ASN1_TIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_check"] - pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_generalizedtime"] - pub fn ASN1_TIME_to_generalizedtime( - t: *const ASN1_TIME, - out: *mut *mut ASN1_GENERALIZEDTIME, - ) -> *mut ASN1_GENERALIZEDTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_string"] - pub fn ASN1_TIME_set_string( - s: *mut ASN1_TIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime_x2"] + pub fn BN_mod_exp_mont_consttime_x2( + rr1: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + m1: *const BIGNUM, + in_mont1: *const BN_MONT_CTX, + rr2: *mut BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m2: *const BIGNUM, + in_mont2: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_time_t"] - pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_posix"] - pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_new"] - pub fn ASN1_NULL_new() -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_free"] - pub fn ASN1_NULL_free(null: *mut ASN1_NULL); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_NULL"] - pub fn d2i_ASN1_NULL( - out: *mut *mut ASN1_NULL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_NULL"] - pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_it"] - pub static ASN1_NULL_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_OBJECT { - _unused: [u8; 0], -} -pub type sk_ASN1_OBJECT_free_func = - ::std::option::Option; -pub type sk_ASN1_OBJECT_copy_func = - ::std::option::Option *mut ASN1_OBJECT>; -pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_OBJECT, - arg2: *mut *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_create"] - pub fn ASN1_OBJECT_create( - nid: ::std::os::raw::c_int, - data: *const u8, - len: ::std::os::raw::c_int, - sn: *const ::std::os::raw::c_char, - ln: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_free"] - pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OBJECT"] - pub fn d2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OBJECT"] - pub fn i2d_ASN1_OBJECT(a: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_OBJECT"] - pub fn c2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_it"] - pub static ASN1_OBJECT_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct asn1_type_st { - pub type_: ::std::os::raw::c_int, - pub value: asn1_type_st__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union asn1_type_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub boolean: ASN1_BOOLEAN, - pub asn1_string: *mut ASN1_STRING, - pub object: *mut ASN1_OBJECT, - pub integer: *mut ASN1_INTEGER, - pub enumerated: *mut ASN1_ENUMERATED, - pub bit_string: *mut ASN1_BIT_STRING, - pub octet_string: *mut ASN1_OCTET_STRING, - pub printablestring: *mut ASN1_PRINTABLESTRING, - pub t61string: *mut ASN1_T61STRING, - pub ia5string: *mut ASN1_IA5STRING, - pub generalstring: *mut ASN1_GENERALSTRING, - pub bmpstring: *mut ASN1_BMPSTRING, - pub universalstring: *mut ASN1_UNIVERSALSTRING, - pub utctime: *mut ASN1_UTCTIME, - pub generalizedtime: *mut ASN1_GENERALIZEDTIME, - pub visiblestring: *mut ASN1_VISIBLESTRING, - pub utf8string: *mut ASN1_UTF8STRING, - pub set: *mut ASN1_STRING, - pub sequence: *mut ASN1_STRING, - pub asn1_value: *mut ASN1_VALUE, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bignum_st { + pub d: *mut BN_ULONG, + pub width: ::std::os::raw::c_int, + pub dmax: ::std::os::raw::c_int, + pub neg: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bignum_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!(asn1_type_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(bignum_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + concat!("Alignment of ", stringify!(bignum_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(ptr) + stringify!(d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(boolean) + stringify!(width) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(asn1_string) + stringify!(dmax) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(object) + stringify!(neg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(integer) + stringify!(flags) ) ); +} +impl Default for bignum_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 bn_mont_ctx_st { + pub RR: BIGNUM, + pub N: BIGNUM, + pub n0: [BN_ULONG; 2usize], +} +#[test] +fn bindgen_test_layout_bn_mont_ctx_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!(bn_mont_ctx_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(enumerated) + stringify!(RR) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bit_string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(octet_string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(printablestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(t61string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(ia5string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bmpstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(universalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utctime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalizedtime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(visiblestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utf8string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(sequence) + stringify!(N) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(asn1_value) + stringify!(n0) ) ); } -impl Default for asn1_type_st__bindgen_ty_1 { +impl Default for bn_mont_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9219,391 +8870,224 @@ impl Default for asn1_type_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_type_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits_word"] + pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; } -impl Default for asn1_type_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_fips_0_13_0_ASN1_tag2bit"] + pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_TYPE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_tag2str"] + pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -pub type sk_ASN1_TYPE_free_func = ::std::option::Option; -pub type sk_ASN1_TYPE_copy_func = - ::std::option::Option *mut ASN1_TYPE>; -pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< +pub type d2i_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_TYPE, - arg2: *mut *const ASN1_TYPE, - ) -> ::std::os::raw::c_int, + arg1: *mut *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, >; -pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< +pub type i2d_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut ASN1_TYPE, - arg2: *mut ::std::os::raw::c_void, + arg1: *const ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int, >; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_new"] - pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; +pub type ASN1_ITEM_EXP = ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_VALUE_st { + _unused: [u8; 0], } +pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_free"] - pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_new"] + pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TYPE"] - pub fn d2i_ASN1_TYPE( - out: *mut *mut ASN1_TYPE, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TYPE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_free"] + pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TYPE"] - pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i"] + pub fn ASN1_item_d2i( + out: *mut *mut ASN1_VALUE, + inp: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + ) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ANY_it"] - pub static ASN1_ANY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d"] + pub fn ASN1_item_i2d( + val: *mut ASN1_VALUE, + outp: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_get"] - pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_dup"] + pub fn ASN1_dup( + i2d: i2d_of_void, + d2i: d2i_of_void, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set"] - pub fn ASN1_TYPE_set( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_dup"] + pub fn ASN1_item_dup( + it: *const ASN1_ITEM, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set1"] - pub fn ASN1_TYPE_set1( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_cmp"] - pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; -} -pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SEQUENCE_ANY"] - pub fn d2i_ASN1_SEQUENCE_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SEQUENCE_ANY"] - pub fn i2d_ASN1_SEQUENCE_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_fp"] + pub fn ASN1_item_d2i_fp( + it: *const ASN1_ITEM, + in_: *mut FILE, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SET_ANY"] - pub fn d2i_ASN1_SET_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_bio"] + pub fn ASN1_item_d2i_bio( + it: *const ASN1_ITEM, + in_: *mut BIO, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SET_ANY"] - pub fn i2d_ASN1_SET_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_fp"] + pub fn ASN1_item_i2d_fp( + it: *const ASN1_ITEM, + out: *mut FILE, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_print"] - pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_print"] - pub fn ASN1_GENERALIZEDTIME_print( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_bio"] + pub fn ASN1_item_i2d_bio( + it: *const ASN1_ITEM, out: *mut BIO, - a: *const ASN1_GENERALIZEDTIME, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_print"] - pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print"] - pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex"] - pub fn ASN1_STRING_print_ex( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_i2d_bio"] + pub fn ASN1_i2d_bio( + i2d: i2d_of_void, out: *mut BIO, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex_fp"] - pub fn ASN1_STRING_print_ex_fp( - fp: *mut FILE, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_INTEGER"] - pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_ENUMERATED"] - pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_OBJECT"] - pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_STRING"] - pub fn i2a_ASN1_STRING( - bp: *mut BIO, - a: *const ASN1_STRING, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2t_ASN1_OBJECT"] - pub fn i2t_ASN1_OBJECT( - buf: *mut ::std::os::raw::c_char, - buf_len: ::std::os::raw::c_int, - a: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_get_object"] - pub fn ASN1_get_object( - inp: *mut *const ::std::os::raw::c_uchar, - out_length: *mut ::std::os::raw::c_long, - out_tag: *mut ::std::os::raw::c_int, - out_class: *mut ::std::os::raw::c_int, - max_len: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_object"] - pub fn ASN1_put_object( - outp: *mut *mut ::std::os::raw::c_uchar, - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - xclass: ::std::os::raw::c_int, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_eoc"] - pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_object_size"] - pub fn ASN1_object_size( - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask"] - pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask_asc"] - pub fn ASN1_STRING_set_default_mask_asc( - p: *const ::std::os::raw::c_char, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get_default_mask"] - pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_cleanup"] - pub fn ASN1_STRING_TABLE_cleanup(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_new"] - pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_free"] - pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_unpack"] + pub fn ASN1_item_unpack( + oct: *const ASN1_STRING, + it: *const ASN1_ITEM, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLE"] - pub fn d2i_ASN1_PRINTABLE( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_pack"] + pub fn ASN1_item_pack( + obj: *mut ::std::os::raw::c_void, + it: *const ASN1_ITEM, out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLE"] - pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) - -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_it"] - pub static ASN1_PRINTABLE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BOOLEAN"] + pub fn d2i_ASN1_BOOLEAN( + out: *mut ASN1_BOOLEAN, + inp: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> ASN1_BOOLEAN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set"] - pub fn ASN1_INTEGER_set( - a: *mut ASN1_INTEGER, - v: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BOOLEAN"] + pub fn i2d_ASN1_BOOLEAN( + a: ASN1_BOOLEAN, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set"] - pub fn ASN1_ENUMERATED_set( - a: *mut ASN1_ENUMERATED, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BOOLEAN_it"] + pub static ASN1_BOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get"] - pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TBOOLEAN_it"] + pub static ASN1_TBOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get"] - pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; -} -pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_TLC_st { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_FBOOLEAN_it"] + pub static ASN1_FBOOLEAN_it: ASN1_ITEM; } -pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_TEMPLATE_st { - pub flags: u32, - pub tag: ::std::os::raw::c_int, - pub offset: ::std::os::raw::c_ulong, - pub field_name: *const ::std::os::raw::c_char, - pub item: *const ASN1_ITEM_st, +pub struct asn1_string_st { + pub length: ::std::os::raw::c_int, + pub type_: ::std::os::raw::c_int, + pub data: *mut ::std::os::raw::c_uchar, + pub flags: ::std::os::raw::c_long, } #[test] -fn bindgen_test_layout_ASN1_TEMPLATE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_string_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(asn1_string_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + concat!("Alignment of ", stringify!(asn1_string_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(flags) + stringify!(length) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(tag) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(offset) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(field_name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(item) + stringify!(flags) ) ); } -impl Default for ASN1_TEMPLATE_st { +impl Default for asn1_string_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9612,2423 +9096,1197 @@ impl Default for ASN1_TEMPLATE_st { } } } -pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; -pub type ASN1_ADB = ASN1_ADB_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct asn1_must_be_null_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_type_new"] + pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; } -pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_st { - pub flags: u32, - pub offset: ::std::os::raw::c_ulong, - pub unused: *mut ASN1_MUST_BE_NULL, - pub tbl: *const ASN1_ADB_TABLE, - pub tblcount: ::std::os::raw::c_long, - pub default_tt: *const ASN1_TEMPLATE, - pub null_tt: *const ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_new"] + pub fn ASN1_STRING_new() -> *mut ASN1_STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(unused) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tbl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tblcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(default_tt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(null_tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_free"] + pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); } -impl Default for ASN1_ADB_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_fips_0_13_0_ASN1_STRING_clear_free"] + pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_TABLE_st { - pub value: ::std::os::raw::c_int, - pub tt: ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_copy"] + pub fn ASN1_STRING_copy( + dst: *mut ASN1_STRING, + str_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_dup"] + pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; } -impl Default for ASN1_ADB_TABLE_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_fips_0_13_0_ASN1_STRING_type"] + pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ITEM_st { - pub itype: ::std::os::raw::c_char, - pub utype: ::std::os::raw::c_int, - pub templates: *const ASN1_TEMPLATE, - pub tcount: ::std::os::raw::c_long, - pub funcs: *const ::std::os::raw::c_void, - pub size: ::std::os::raw::c_long, - pub sname: *const ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get0_data"] + pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; } -#[test] -fn bindgen_test_layout_ASN1_ITEM_st() { - 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!(ASN1_ITEM_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ITEM_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(itype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(utype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(templates) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(tcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(funcs) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(sname) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_data"] + pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; } -impl Default for ASN1_ITEM_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_fips_0_13_0_ASN1_STRING_length"] + pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } -pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; -pub type ASN1_free_func = ::std::option::Option; -pub type ASN1_d2i_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut ASN1_VALUE, ->; -pub type ASN1_i2d_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut ASN1_VALUE, - in_: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_d2i = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - opt: ::std::os::raw::c_char, - ctx: *mut ASN1_TLC, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_i2d = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - out: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_new_func = ::std::option::Option< - unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_free_func = - ::std::option::Option; -pub type ASN1_ex_print_func = ::std::option::Option< - unsafe extern "C" fn( - out: *mut BIO, - pval: *mut *mut ASN1_VALUE, - indent: ::std::os::raw::c_int, - fname: *const ::std::os::raw::c_char, - pctx: *const ASN1_PCTX, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_EXTERN_FUNCS_st { - pub app_data: *mut ::std::os::raw::c_void, - pub asn1_ex_new: ASN1_ex_new_func, - pub asn1_ex_free: ASN1_ex_free_func, - pub asn1_ex_clear: ASN1_ex_free_func, - pub asn1_ex_d2i: ASN1_ex_d2i, - pub asn1_ex_i2d: ASN1_ex_i2d, - pub asn1_ex_print: ASN1_ex_print_func, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_cmp"] + pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_clear) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_clear) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_print) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set"] + pub fn ASN1_STRING_set( + str_: *mut ASN1_STRING, + data: *const ::std::os::raw::c_void, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set0"] + pub fn ASN1_STRING_set0( + str_: *mut ASN1_STRING, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ); } -impl Default for ASN1_EXTERN_FUNCS_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_fips_0_13_0_ASN1_BMPSTRING_new"] + pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; } -pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; -pub type ASN1_aux_cb = ::std::option::Option< - unsafe extern "C" fn( - operation: ::std::os::raw::c_int, - in_: *mut *mut ASN1_VALUE, - it: *const ASN1_ITEM, - exarg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_AUX_st { - pub app_data: *mut ::std::os::raw::c_void, - pub flags: u32, - pub ref_offset: ::std::os::raw::c_int, - pub asn1_cb: ASN1_aux_cb, - pub enc_offset: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_new"] + pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; } -#[test] -fn bindgen_test_layout_ASN1_AUX_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(ref_offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(asn1_cb) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(enc_offset) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_new"] + pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; } -impl Default for ASN1_AUX_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_fips_0_13_0_ASN1_OCTET_STRING_new"] + pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; } -pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_SEQUENCE_it"] - pub static ASN1_SEQUENCE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_new"] + pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_new"] + pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; } -pub type sk_ASN1_VALUE_free_func = - ::std::option::Option; -pub type sk_ASN1_VALUE_copy_func = - ::std::option::Option *mut ASN1_VALUE>; -pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_VALUE, - arg2: *mut *const ASN1_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeBlock"] - pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_new"] + pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodedLength"] - pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_new"] + pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodedLength"] - pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_new"] + pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBase64"] - pub fn EVP_DecodeBase64( - out: *mut u8, - out_len: *mut usize, - max_out: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_free"] + pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_new"] - pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_free"] + pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_free"] - pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_free"] + pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeInit"] - pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_free"] + pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeUpdate"] - pub fn EVP_EncodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_free"] + pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeFinal"] - pub fn EVP_EncodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_free"] + pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeInit"] - pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_free"] + pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeUpdate"] - pub fn EVP_DecodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_free"] + pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeFinal"] - pub fn EVP_DecodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_free"] + pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBlock"] - pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BMPSTRING"] + pub fn d2i_ASN1_BMPSTRING( + out: *mut *mut ASN1_BMPSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BMPSTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_encode_ctx_st { - pub data_used: ::std::os::raw::c_uint, - pub data: [u8; 48usize], - pub eof_seen: ::std::os::raw::c_char, - pub error_encountered: ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALSTRING"] + pub fn d2i_ASN1_GENERALSTRING( + out: *mut *mut ASN1_GENERALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALSTRING; } -#[test] -fn bindgen_test_layout_evp_encode_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(eof_seen) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, - 53usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(error_encountered) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_IA5STRING"] + pub fn d2i_ASN1_IA5STRING( + out: *mut *mut ASN1_IA5STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_IA5STRING; } -impl Default for evp_encode_ctx_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_fips_0_13_0_d2i_ASN1_OCTET_STRING"] + pub fn d2i_ASN1_OCTET_STRING( + out: *mut *mut ASN1_OCTET_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OCTET_STRING; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct blake2b_state_st { - pub h: [u64; 8usize], - pub t_low: u64, - pub t_high: u64, - pub block: blake2b_state_st__bindgen_ty_1, - pub block_used: usize, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLESTRING"] + pub fn d2i_ASN1_PRINTABLESTRING( + out: *mut *mut ASN1_PRINTABLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_PRINTABLESTRING; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union blake2b_state_st__bindgen_ty_1 { - pub bytes: [u8; 128usize], - pub words: [u64; 16usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_T61STRING"] + pub fn d2i_ASN1_T61STRING( + out: *mut *mut ASN1_T61STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_T61STRING; } -#[test] -fn bindgen_test_layout_blake2b_state_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).words) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(words) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UNIVERSALSTRING"] + pub fn d2i_ASN1_UNIVERSALSTRING( + out: *mut *mut ASN1_UNIVERSALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UNIVERSALSTRING; } -impl Default for blake2b_state_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_blake2b_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(blake2b_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_low) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_high) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block_used) - ) - ); -} -impl Default for blake2b_state_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_fips_0_13_0_d2i_ASN1_UTF8STRING"] + pub fn d2i_ASN1_UTF8STRING( + out: *mut *mut ASN1_UTF8STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTF8STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Init"] - pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_VISIBLESTRING"] + pub fn d2i_ASN1_VISIBLESTRING( + out: *mut *mut ASN1_VISIBLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_VISIBLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Update"] - pub fn BLAKE2B256_Update( - b2b: *mut BLAKE2B_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BMPSTRING"] + pub fn i2d_ASN1_BMPSTRING( + in_: *const ASN1_BMPSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Final"] - pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALSTRING"] + pub fn i2d_ASN1_GENERALSTRING( + in_: *const ASN1_GENERALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256"] - pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bf_key_st { - pub P: [u32; 18usize], - pub S: [u32; 1024usize], -} -#[test] -fn bindgen_test_layout_bf_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 4168usize, - concat!("Size of: ", stringify!(bf_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(bf_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(P) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(S) - ) - ); -} -impl Default for bf_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_IA5STRING"] + pub fn i2d_ASN1_IA5STRING( + in_: *const ASN1_IA5STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_set_key"] - pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OCTET_STRING"] + pub fn i2d_ASN1_OCTET_STRING( + in_: *const ASN1_OCTET_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_encrypt"] - pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLESTRING"] + pub fn i2d_ASN1_PRINTABLESTRING( + in_: *const ASN1_PRINTABLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_decrypt"] - pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_T61STRING"] + pub fn i2d_ASN1_T61STRING( + in_: *const ASN1_T61STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_ecb_encrypt"] - pub fn BF_ecb_encrypt( - in_: *const u8, - out: *mut u8, - key: *const BF_KEY, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UNIVERSALSTRING"] + pub fn i2d_ASN1_UNIVERSALSTRING( + in_: *const ASN1_UNIVERSALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_cbc_encrypt"] - pub fn BF_cbc_encrypt( - in_: *const u8, - out: *mut u8, - length: usize, - schedule: *const BF_KEY, - ivec: *mut u8, - enc: ::std::os::raw::c_int, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbs_st { - pub data: *const u8, - pub len: usize, -} -#[test] -fn bindgen_test_layout_cbs_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!(cbs_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbs_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(len) - ) - ); -} -impl Default for cbs_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTF8STRING"] + pub fn i2d_ASN1_UTF8STRING( + in_: *const ASN1_UTF8STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_init"] - pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_VISIBLESTRING"] + pub fn i2d_ASN1_VISIBLESTRING( + in_: *const ASN1_VISIBLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_skip"] - pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_it"] + pub static ASN1_BMPSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_data"] - pub fn CBS_data(cbs: *const CBS) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_it"] + pub static ASN1_GENERALSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_len"] - pub fn CBS_len(cbs: *const CBS) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_it"] + pub static ASN1_IA5STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_stow"] - pub fn CBS_stow( - cbs: *const CBS, - out_ptr: *mut *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_it"] + pub static ASN1_OCTET_STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_strdup"] - pub fn CBS_strdup( - cbs: *const CBS, - out_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_it"] + pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_contains_zero_byte"] - pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_it"] + pub static ASN1_T61STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_mem_equal"] - pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_it"] + pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8"] - pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_it"] + pub static ASN1_UTF8STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16"] - pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_it"] + pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16le"] - pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_dup"] + pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24"] - pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_cmp"] + pub fn ASN1_OCTET_STRING_cmp( + a: *const ASN1_OCTET_STRING, + b: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32"] - pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_set"] + pub fn ASN1_OCTET_STRING_set( + str_: *mut ASN1_OCTET_STRING, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32le"] - pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_to_UTF8"] + pub fn ASN1_STRING_to_UTF8( + out: *mut *mut ::std::os::raw::c_uchar, + in_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64"] - pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_copy"] + pub fn ASN1_mbstring_copy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64le"] - pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_ncopy"] + pub fn ASN1_mbstring_ncopy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + minsize: ossl_ssize_t, + maxsize: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_last_u8"] - pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_by_NID"] + pub fn ASN1_STRING_set_by_NID( + out: *mut *mut ASN1_STRING, + in_: *const ::std::os::raw::c_uchar, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_bytes"] - pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_add"] + pub fn ASN1_STRING_TABLE_add( + nid: ::std::os::raw::c_int, + minsize: ::std::os::raw::c_long, + maxsize: ::std::os::raw::c_long, + mask: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_copy_bytes"] - pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_new"] + pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8_length_prefixed"] - pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_free"] + pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16_length_prefixed"] - pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIRECTORYSTRING"] + pub fn d2i_DIRECTORYSTRING( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24_length_prefixed"] - pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIRECTORYSTRING"] + pub fn i2d_DIRECTORYSTRING( + in_: *const ASN1_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_until_first"] - pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_it"] + pub static DIRECTORYSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1"] - pub fn CBS_get_asn1( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_new"] + pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_element"] - pub fn CBS_get_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_free"] + pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_peek_asn1_tag"] - pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DISPLAYTEXT"] + pub fn d2i_DISPLAYTEXT( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1"] - pub fn CBS_get_any_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DISPLAYTEXT"] + pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1_element"] - pub fn CBS_get_any_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_it"] + pub static DISPLAYTEXT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_ber_asn1_element"] - pub fn CBS_get_any_ber_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - out_ber_found: *mut ::std::os::raw::c_int, - out_indefinite: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_new"] + pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_uint64"] - pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_free"] + pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_int64"] - pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BIT_STRING"] + pub fn d2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_bool"] - pub fn CBS_get_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BIT_STRING"] + pub fn i2d_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1"] - pub fn CBS_get_optional_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_BIT_STRING"] + pub fn c2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_octet_string"] - pub fn CBS_get_optional_asn1_octet_string( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_BIT_STRING"] + pub fn i2c_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_uint64"] - pub fn CBS_get_optional_asn1_uint64( - cbs: *mut CBS, - out: *mut u64, - tag: CBS_ASN1_TAG, - default_value: u64, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_it"] + pub static ASN1_BIT_STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_num_bytes"] + pub fn ASN1_BIT_STRING_num_bytes( + str_: *const ASN1_BIT_STRING, + out: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_bool"] - pub fn CBS_get_optional_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - default_value: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set"] + pub fn ASN1_BIT_STRING_set( + str_: *mut ASN1_BIT_STRING, + d: *const ::std::os::raw::c_uchar, + length: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_bitstring"] - pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set_bit"] + pub fn ASN1_BIT_STRING_set_bit( + str_: *mut ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_bitstring_has_bit"] - pub fn CBS_asn1_bitstring_has_bit( - cbs: *const CBS, - bit: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_get_bit"] + pub fn ASN1_BIT_STRING_get_bit( + str_: *const ASN1_BIT_STRING, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_integer"] - pub fn CBS_is_valid_asn1_integer( - cbs: *const CBS, - out_is_negative: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_check"] + pub fn ASN1_BIT_STRING_check( + str_: *const ASN1_BIT_STRING, + flags: *const ::std::os::raw::c_uchar, + flags_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_INTEGER { + _unused: [u8; 0], +} +pub type sk_ASN1_INTEGER_free_func = + ::std::option::Option; +pub type sk_ASN1_INTEGER_copy_func = + ::std::option::Option *mut ASN1_INTEGER>; +pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_INTEGER, + arg2: *const *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_INTEGER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_unsigned_asn1_integer"] - pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_new"] + pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_oid_to_text"] - pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_free"] + pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_generalized_time"] - pub fn CBS_parse_generalized_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_dup"] + pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_utc_time"] - pub fn CBS_parse_utc_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_INTEGER"] + pub fn d2i_ASN1_INTEGER( + out: *mut *mut ASN1_INTEGER, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_int64"] - pub fn CBS_get_optional_asn1_int64( - cbs: *mut CBS, - out: *mut i64, - tag: CBS_ASN1_TAG, - default_value: i64, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_INTEGER"] + pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_buffer_st { - pub buf: *mut u8, - pub len: usize, - pub cap: usize, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_INTEGER"] + pub fn c2i_ASN1_INTEGER( + in_: *mut *mut ASN1_INTEGER, + outp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } -#[test] -fn bindgen_test_layout_cbb_buffer_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(cap) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_INTEGER"] + pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -impl Default for cbb_buffer_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_fips_0_13_0_ASN1_INTEGER_it"] + pub static ASN1_INTEGER_it: ASN1_ITEM; } -impl cbb_buffer_st { - #[inline] - pub fn can_resize(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn error(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - can_resize: ::std::os::raw::c_uint, - error: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; - can_resize as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let error: u32 = unsafe { ::std::mem::transmute(error) }; - error as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_uint64"] + pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_child_st { - pub base: *mut cbb_buffer_st, - pub offset: usize, - pub pending_len_len: u8, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u16; 3usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_int64"] + pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_child_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(pending_len_len) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get_uint64"] + pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } -impl Default for cbb_child_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_fips_0_13_0_ASN1_INTEGER_get_int64"] + pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } -impl cbb_child_st { - #[inline] - pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - pending_is_asn1: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; - pending_is_asn1 as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_INTEGER"] + pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct cbb_st { - pub child: *mut CBB, - pub is_child: ::std::os::raw::c_char, - pub u: cbb_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_to_BN"] + pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union cbb_st__bindgen_ty_1 { - pub base: cbb_buffer_st, - pub child: cbb_child_st, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_cmp"] + pub fn ASN1_INTEGER_cmp( + x: *const ASN1_INTEGER, + y: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_cbb_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(child) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_new"] + pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; } -impl Default for cbb_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_cbb_st() { - 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!(cbb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(is_child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) - ); -} -impl Default for cbb_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_fips_0_12_15_CBB_zero"] - pub fn CBB_zero(cbb: *mut CBB); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init"] - pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init_fixed"] - pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_free"] + pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_cleanup"] - pub fn CBB_cleanup(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_ENUMERATED"] + pub fn d2i_ASN1_ENUMERATED( + out: *mut *mut ASN1_ENUMERATED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_finish"] - pub fn CBB_finish( - cbb: *mut CBB, - out_data: *mut *mut u8, - out_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_ENUMERATED"] + pub fn i2d_ASN1_ENUMERATED( + in_: *const ASN1_ENUMERATED, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush"] - pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_data"] - pub fn CBB_data(cbb: *const CBB) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_len"] - pub fn CBB_len(cbb: *const CBB) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_it"] + pub static ASN1_ENUMERATED_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8_length_prefixed"] - pub fn CBB_add_u8_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_uint64"] + pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16_length_prefixed"] - pub fn CBB_add_u16_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_int64"] + pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24_length_prefixed"] - pub fn CBB_add_u24_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_uint64"] + pub fn ASN1_ENUMERATED_get_uint64( + out: *mut u64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1"] - pub fn CBB_add_asn1( - cbb: *mut CBB, - out_contents: *mut CBB, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_int64"] + pub fn ASN1_ENUMERATED_get_int64( + out: *mut i64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_bytes"] - pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_ENUMERATED"] + pub fn BN_to_ASN1_ENUMERATED( + bn: *const BIGNUM, + ai: *mut ASN1_ENUMERATED, + ) -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_zeros"] - pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_to_BN"] + pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_space"] - pub fn CBB_add_space( - cbb: *mut CBB, - out_data: *mut *mut u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_new"] + pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_reserve"] - pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_free"] + pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_did_write"] - pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UTCTIME"] + pub fn d2i_ASN1_UTCTIME( + out: *mut *mut ASN1_UTCTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8"] - pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTCTIME"] + pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16"] - pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_it"] + pub static ASN1_UTCTIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16le"] - pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_check"] + pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24"] - pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set"] + pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32"] - pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_adj"] + pub fn ASN1_UTCTIME_adj( + s: *mut ASN1_UTCTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32le"] - pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set_string"] + pub fn ASN1_UTCTIME_set_string( + s: *mut ASN1_UTCTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64"] - pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_cmp_time_t"] + pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64le"] - pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_new"] + pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_discard_child"] - pub fn CBB_discard_child(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_free"] + pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64"] - pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALIZEDTIME"] + pub fn d2i_ASN1_GENERALIZEDTIME( + out: *mut *mut ASN1_GENERALIZEDTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64_with_tag"] - pub fn CBB_add_asn1_uint64_with_tag( - cbb: *mut CBB, - value: u64, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALIZEDTIME"] + pub fn i2d_ASN1_GENERALIZEDTIME( + in_: *const ASN1_GENERALIZEDTIME, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64"] - pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_it"] + pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64_with_tag"] - pub fn CBB_add_asn1_int64_with_tag( - cbb: *mut CBB, - value: i64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_check"] + pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_octet_string"] - pub fn CBB_add_asn1_octet_string( - cbb: *mut CBB, - data: *const u8, - data_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set"] + pub fn ASN1_GENERALIZEDTIME_set( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_bool"] - pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_adj"] + pub fn ASN1_GENERALIZEDTIME_adj( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_oid_from_text"] - pub fn CBB_add_asn1_oid_from_text( - cbb: *mut CBB, - text: *const ::std::os::raw::c_char, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set_string"] + pub fn ASN1_GENERALIZEDTIME_set_string( + s: *mut ASN1_GENERALIZEDTIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush_asn1_set_of"] - pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_chacha_20"] - pub fn CRYPTO_chacha_20( - out: *mut u8, - in_: *const u8, - in_len: usize, - key: *const u8, - nonce: *const u8, - counter: u32, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_new"] + pub fn ASN1_TIME_new() -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc4"] - pub fn EVP_rc4() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_free"] + pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_cbc"] - pub fn EVP_des_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TIME"] + pub fn d2i_ASN1_TIME( + out: *mut *mut ASN1_TIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ecb"] - pub fn EVP_des_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TIME"] + pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede"] - pub fn EVP_des_ede() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_it"] + pub static ASN1_TIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3"] - pub fn EVP_des_ede3() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_diff"] + pub fn ASN1_TIME_diff( + out_days: *mut ::std::os::raw::c_int, + out_seconds: *mut ::std::os::raw::c_int, + from: *const ASN1_TIME, + to: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede_cbc"] - pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_posix"] + pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_cbc"] - pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set"] + pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ecb"] - pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_adj"] + pub fn ASN1_TIME_adj( + s: *mut ASN1_TIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc"] - pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_check"] + pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ctr"] - pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_generalizedtime"] + pub fn ASN1_TIME_to_generalizedtime( + t: *const ASN1_TIME, + out: *mut *mut ASN1_GENERALIZEDTIME, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ofb"] - pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string"] + pub fn ASN1_TIME_set_string( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ecb"] - pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_tm"] + pub fn ASN1_TIME_to_tm(t: *const ASN1_TIME, out: *mut tm) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc"] - pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string_X509"] + pub fn ASN1_TIME_set_string_X509( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ctr"] - pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_time_t"] + pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ofb"] - pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_posix"] + pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_xts"] - pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_new"] + pub fn ASN1_NULL_new() -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_enc_null"] - pub fn EVP_enc_null() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_free"] + pub fn ASN1_NULL_free(null: *mut ASN1_NULL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_cbc"] - pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_NULL"] + pub fn d2i_ASN1_NULL( + out: *mut *mut ASN1_NULL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_40_cbc"] - pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_NULL"] + pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbynid"] - pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_it"] + pub static ASN1_NULL_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_init"] - pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_new"] - pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cleanup"] - pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_free"] - pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_copy"] - pub fn EVP_CIPHER_CTX_copy( - out: *mut EVP_CIPHER_CTX, - in_: *const EVP_CIPHER_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_reset"] - pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit_ex"] - pub fn EVP_CipherInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - engine: *mut ENGINE, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit_ex"] - pub fn EVP_EncryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit_ex"] - pub fn EVP_DecryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptUpdate"] - pub fn EVP_EncryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal_ex"] - pub fn EVP_EncryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptUpdate"] - pub fn EVP_DecryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal_ex"] - pub fn EVP_DecryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherUpdate"] - pub fn EVP_CipherUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal_ex"] - pub fn EVP_CipherFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cipher"] - pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_nid"] - pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_encrypting"] - pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_block_size"] - pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_key_length"] - pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_iv_length"] - pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_get_app_data"] - pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_app_data"] - pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_flags"] - pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_mode"] - pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_ctrl"] - pub fn EVP_CIPHER_CTX_ctrl( - ctx: *mut EVP_CIPHER_CTX, - command: ::std::os::raw::c_int, - arg: ::std::os::raw::c_int, - ptr: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_padding"] - pub fn EVP_CIPHER_CTX_set_padding( - ctx: *mut EVP_CIPHER_CTX, - pad: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_key_length"] - pub fn EVP_CIPHER_CTX_set_key_length( - ctx: *mut EVP_CIPHER_CTX, - key_len: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_nid"] - pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_block_size"] - pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_key_length"] - pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_iv_length"] - pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_flags"] - pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_mode"] - pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_OBJECT { + _unused: [u8; 0], } +pub type sk_ASN1_OBJECT_free_func = + ::std::option::Option; +pub type sk_ASN1_OBJECT_copy_func = + ::std::option::Option *mut ASN1_OBJECT>; +pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_OBJECT, + arg2: *const *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_BytesToKey"] - pub fn EVP_BytesToKey( - type_: *const EVP_CIPHER, - md: *const EVP_MD, - salt: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_create"] + pub fn ASN1_OBJECT_create( + nid: ::std::os::raw::c_int, data: *const u8, - data_len: usize, - count: ::std::os::raw::c_uint, - key: *mut u8, - iv: *mut u8, - ) -> ::std::os::raw::c_int; + len: usize, + sn: *const ::std::os::raw::c_char, + ln: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha1"] - pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_free"] + pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha1"] - pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_OBJECT"] + pub fn d2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha256"] - pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OBJECT"] + pub fn i2d_ASN1_OBJECT(in_: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha256"] - pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_OBJECT"] + pub fn c2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit"] - pub fn EVP_CipherInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_it"] + pub static ASN1_OBJECT_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit"] - pub fn EVP_EncryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct asn1_type_st { + pub type_: ::std::os::raw::c_int, + pub value: asn1_type_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit"] - pub fn EVP_DecryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal"] - pub fn EVP_CipherFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal"] - pub fn EVP_EncryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal"] - pub fn EVP_DecryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Cipher"] - pub fn EVP_Cipher( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_cipher_alias"] - pub fn EVP_add_cipher_alias( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbyname"] - pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_gcm"] - pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_gcm"] - pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ecb"] - pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cbc"] - pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ctr"] - pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_gcm"] - pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ofb"] - pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_ecb"] - pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb128"] - pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb"] - pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb1"] - pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb8"] - pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb128"] - pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb"] - pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb1"] - pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb8"] - pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb128"] - pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb"] - pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb1"] - pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb8"] - pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_ecb"] - pub fn EVP_bf_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cbc"] - pub fn EVP_bf_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cfb"] - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_ecb"] - pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_cbc"] - pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_flags"] - pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_ctx_st { - pub cipher: *const EVP_CIPHER, - pub app_data: *mut ::std::os::raw::c_void, - pub cipher_data: *mut ::std::os::raw::c_void, - pub key_len: ::std::os::raw::c_uint, - pub encrypt: ::std::os::raw::c_int, - pub flags: u32, - pub oiv: [u8; 16usize], - pub iv: [u8; 16usize], - pub buf: [u8; 32usize], - pub buf_len: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_uint, - pub final_used: ::std::os::raw::c_int, - pub final_: [u8; 32usize], - pub poisoned: ::std::os::raw::c_int, +#[repr(C)] +#[derive(Copy, Clone)] +pub union asn1_type_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub boolean: ASN1_BOOLEAN, + pub asn1_string: *mut ASN1_STRING, + pub object: *mut ASN1_OBJECT, + pub integer: *mut ASN1_INTEGER, + pub enumerated: *mut ASN1_ENUMERATED, + pub bit_string: *mut ASN1_BIT_STRING, + pub octet_string: *mut ASN1_OCTET_STRING, + pub printablestring: *mut ASN1_PRINTABLESTRING, + pub t61string: *mut ASN1_T61STRING, + pub ia5string: *mut ASN1_IA5STRING, + pub generalstring: *mut ASN1_GENERALSTRING, + pub bmpstring: *mut ASN1_BMPSTRING, + pub universalstring: *mut ASN1_UNIVERSALSTRING, + pub utctime: *mut ASN1_UTCTIME, + pub generalizedtime: *mut ASN1_GENERALIZEDTIME, + pub visiblestring: *mut ASN1_VISIBLESTRING, + pub utf8string: *mut ASN1_UTF8STRING, + pub set: *mut ASN1_STRING, + pub sequence: *mut ASN1_STRING, + pub asn1_value: *mut ASN1_VALUE, } #[test] -fn bindgen_test_layout_evp_cipher_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 152usize, - concat!("Size of: ", stringify!(evp_cipher_ctx_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(asn1_type_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) + concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(cipher) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(app_data) + stringify!(boolean) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(cipher_data) + stringify!(asn1_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(key_len) + stringify!(object) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, - 28usize, + unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(encrypt) + stringify!(integer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(flags) + stringify!(enumerated) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(oiv) + stringify!(bit_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 52usize, + unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(iv) + stringify!(octet_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 68usize, + unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(buf) + stringify!(printablestring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, - 100usize, + unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(buf_len) + stringify!(t61string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(num) + stringify!(ia5string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(final_used) + stringify!(generalstring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, - 112usize, + unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(final_) + stringify!(bmpstring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, - 144usize, + unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(poisoned) + stringify!(universalstring) ) ); -} -impl Default for evp_cipher_ctx_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 evp_cipher_info_st { - pub cipher: *const EVP_CIPHER, - pub iv: [::std::os::raw::c_uchar; 16usize], -} -#[test] -fn bindgen_test_layout_evp_cipher_info_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!(evp_cipher_info_st)) + unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utctime) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_info_st)) + unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalizedtime) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_info_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(cipher) + stringify!(visiblestring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_info_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(iv) + stringify!(utf8string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(set) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(sequence) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_value) ) ); } -impl Default for evp_cipher_info_st { +impl Default for asn1_type_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12037,108 +10295,42 @@ impl Default for evp_cipher_info_st { } } } -pub type EVP_CIPHER_INFO = evp_cipher_info_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_CMAC"] - pub fn AES_CMAC( - out: *mut u8, - key: *const u8, - key_len: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_new"] - pub fn CMAC_CTX_new() -> *mut CMAC_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_free"] - pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_copy"] - pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Init"] - pub fn CMAC_Init( - ctx: *mut CMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, - cipher: *const EVP_CIPHER, - engine: *mut ENGINE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Reset"] - pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Update"] - pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Final"] - pub fn CMAC_Final( - ctx: *mut CMAC_CTX, - out: *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct conf_value_st { - pub section: *mut ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, -} #[test] -fn bindgen_test_layout_conf_value_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_type_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!(conf_value_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(asn1_type_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(conf_value_st)) + concat!("Alignment of ", stringify!(asn1_type_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), + stringify!(asn1_type_st), "::", - stringify!(name) + stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 16usize, + 8usize, concat!( "Offset of field: ", - stringify!(conf_value_st), + stringify!(asn1_type_st), "::", stringify!(value) ) ); } -impl Default for conf_value_st { +impl Default for asn1_type_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12149,188 +10341,345 @@ impl Default for conf_value_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_CONF_VALUE { +pub struct stack_st_ASN1_TYPE { _unused: [u8; 0], } -pub type sk_CONF_VALUE_free_func = - ::std::option::Option; -pub type sk_CONF_VALUE_copy_func = - ::std::option::Option *mut CONF_VALUE>; -pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< +pub type sk_ASN1_TYPE_free_func = ::std::option::Option; +pub type sk_ASN1_TYPE_copy_func = + ::std::option::Option *mut ASN1_TYPE>; +pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const CONF_VALUE, - arg2: *mut *const CONF_VALUE, + arg1: *const *const ASN1_TYPE, + arg2: *const *const ASN1_TYPE, ) -> ::std::os::raw::c_int, >; -pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< +pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut CONF_VALUE, + arg1: *mut ASN1_TYPE, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lhash_st_CONF_VALUE { - _unused: [u8; 0], -} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_new"] - pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_new"] + pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_free"] - pub fn NCONF_free(conf: *mut CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_free"] + pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load"] - pub fn NCONF_load( - conf: *mut CONF, - filename: *const ::std::os::raw::c_char, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TYPE"] + pub fn d2i_ASN1_TYPE( + out: *mut *mut ASN1_TYPE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load_bio"] - pub fn NCONF_load_bio( - conf: *mut CONF, - bio: *mut BIO, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TYPE"] + pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_section"] - pub fn NCONF_get_section( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - ) -> *const stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ANY_it"] + pub static ASN1_ANY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_string"] - pub fn NCONF_get_string( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_get"] + pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_load_file"] - pub fn CONF_modules_load_file( - filename: *const ::std::os::raw::c_char, - appname: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set"] + pub fn ASN1_TYPE_set( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_free"] - pub fn CONF_modules_free(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set1"] + pub fn ASN1_TYPE_set1( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_config"] - pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_cmp"] + pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; } +pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_no_config"] - pub fn OPENSSL_no_config(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SEQUENCE_ANY"] + pub fn d2i_ASN1_SEQUENCE_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Init"] - pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SEQUENCE_ANY"] + pub fn i2d_ASN1_SEQUENCE_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Update"] - pub fn SHA1_Update( - sha: *mut SHA_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SET_ANY"] + pub fn d2i_ASN1_SET_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SET_ANY"] + pub fn i2d_ASN1_SET_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Final"] - pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_print"] + pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1"] - pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_print"] + pub fn ASN1_GENERALIZEDTIME_print( + out: *mut BIO, + a: *const ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Transform"] - pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_print"] + pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print"] + pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex"] + pub fn ASN1_STRING_print_ex( + out: *mut BIO, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex_fp"] + pub fn ASN1_STRING_print_ex_fp( + fp: *mut FILE, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_INTEGER"] + pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_ENUMERATED"] + pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_OBJECT"] + pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_STRING"] + pub fn i2a_ASN1_STRING( + bp: *mut BIO, + a: *const ASN1_STRING, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2t_ASN1_OBJECT"] + pub fn i2t_ASN1_OBJECT( + buf: *mut ::std::os::raw::c_char, + buf_len: ::std::os::raw::c_int, + a: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_get_object"] + pub fn ASN1_get_object( + inp: *mut *const ::std::os::raw::c_uchar, + out_length: *mut ::std::os::raw::c_long, + out_tag: *mut ::std::os::raw::c_int, + out_class: *mut ::std::os::raw::c_int, + max_len: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_object"] + pub fn ASN1_put_object( + outp: *mut *mut ::std::os::raw::c_uchar, + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + xclass: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_eoc"] + pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_object_size"] + pub fn ASN1_object_size( + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_new"] + pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_free"] + pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLE"] + pub fn d2i_ASN1_PRINTABLE( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLE"] + pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_it"] + pub static ASN1_PRINTABLE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set"] + pub fn ASN1_INTEGER_set( + a: *mut ASN1_INTEGER, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set"] + pub fn ASN1_ENUMERATED_set( + a: *mut ASN1_ENUMERATED, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get"] + pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get"] + pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask"] + pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask_asc"] + pub fn ASN1_STRING_set_default_mask_asc( + p: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get_default_mask"] + pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_cleanup"] + pub fn ASN1_STRING_TABLE_cleanup(); +} +pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_TLC_st { + _unused: [u8; 0], } +pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha_state_st { - pub h: [u32; 5usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +pub struct ASN1_TEMPLATE_st { + pub flags: u32, + pub tag: ::std::os::raw::c_int, + pub offset: ::std::os::raw::c_ulong, + pub field_name: *const ::std::os::raw::c_char, + pub item: *const ASN1_ITEM_st, } #[test] -fn bindgen_test_layout_sha_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_TEMPLATE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(sha_state_st)) + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(h) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(Nl) + stringify!(tag) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(Nh) + stringify!(offset) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 28usize, + unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(data) + stringify!(field_name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 92usize, + unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(num) + stringify!(item) ) ); } -impl Default for sha_state_st { +impl Default for ASN1_TEMPLATE_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12339,140 +10688,111 @@ impl Default for sha_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Init"] - pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Update"] - pub fn SHA224_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Final"] - pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224"] - pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; +pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; +pub type ASN1_ADB = ASN1_ADB_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct asn1_must_be_null_st { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Init"] - pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Update"] - pub fn SHA256_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Final"] - pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256"] - pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Transform"] - pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_TransformBlocks"] - pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha256_state_st { - pub h: [u32; 8usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, +pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_st { + pub flags: u32, + pub offset: ::std::os::raw::c_ulong, + pub unused: *mut ASN1_MUST_BE_NULL, + pub tbl: *const ASN1_ADB_TABLE, + pub tblcount: ::std::os::raw::c_long, + pub default_tt: *const ASN1_TEMPLATE, + pub null_tt: *const ASN1_TEMPLATE, } #[test] -fn bindgen_test_layout_sha256_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ADB_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 112usize, - concat!("Size of: ", stringify!(sha256_state_st)) + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(ASN1_ADB_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha256_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(h) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(Nl) + stringify!(offset) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(Nh) + stringify!(unused) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(data) + stringify!(tbl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(num) + stringify!(tblcount) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(md_len) + stringify!(default_tt) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(null_tt) ) ); } -impl Default for sha256_state_st { +impl Default for ASN1_ADB_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12481,137 +10801,154 @@ impl Default for sha256_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Init"] - pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Update"] - pub fn SHA384_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Final"] - pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384"] - pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Init"] - pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Update"] - pub fn SHA512_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Final"] - pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_TABLE_st { + pub value: ::std::os::raw::c_int, + pub tt: ASN1_TEMPLATE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512"] - pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; +#[test] +fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(value) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(tt) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Transform"] - pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); +impl Default for ASN1_ADB_TABLE_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 sha512_state_st { - pub h: [u64; 8usize], - pub Nl: u64, - pub Nh: u64, - pub p: [u8; 128usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, +pub struct ASN1_ITEM_st { + pub itype: ::std::os::raw::c_char, + pub utype: ::std::os::raw::c_int, + pub templates: *const ASN1_TEMPLATE, + pub tcount: ::std::os::raw::c_long, + pub funcs: *const ::std::os::raw::c_void, + pub size: ::std::os::raw::c_long, + pub sname: *const ::std::os::raw::c_char, } #[test] -fn bindgen_test_layout_sha512_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ITEM_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(sha512_state_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(ASN1_ITEM_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(sha512_state_st)) + concat!("Alignment of ", stringify!(ASN1_ITEM_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(h) + stringify!(itype) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(Nl) + stringify!(utype) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(Nh) + stringify!(templates) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(p) + stringify!(tcount) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 208usize, + unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(num) + stringify!(funcs) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 212usize, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(md_len) + stringify!(size) ) ); -} -impl Default for sha512_state_st { - fn default() -> Self { + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(sname) + ) + ); +} +impl Default for ASN1_ITEM_st { + fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); @@ -12619,1638 +10956,2125 @@ impl Default for sha512_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Init"] - pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Update"] - pub fn SHA512_256_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; +pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; +pub type ASN1_free_func = ::std::option::Option; +pub type ASN1_d2i_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + length: ::std::os::raw::c_long, + ) -> *mut ASN1_VALUE, +>; +pub type ASN1_i2d_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut ASN1_VALUE, + in_: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_d2i = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + opt: ::std::os::raw::c_char, + ctx: *mut ASN1_TLC, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_i2d = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + out: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_new_func = ::std::option::Option< + unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_free_func = + ::std::option::Option; +pub type ASN1_ex_print_func = ::std::option::Option< + unsafe extern "C" fn( + out: *mut BIO, + pval: *mut *mut ASN1_VALUE, + indent: ::std::os::raw::c_int, + fname: *const ::std::os::raw::c_char, + pctx: *const ASN1_PCTX, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_EXTERN_FUNCS_st { + pub app_data: *mut ::std::os::raw::c_void, + pub asn1_ex_new: ASN1_ex_new_func, + pub asn1_ex_free: ASN1_ex_free_func, + pub asn1_ex_d2i: ASN1_ex_d2i, + pub asn1_ex_i2d: ASN1_ex_i2d, + pub asn1_ex_print: ASN1_ex_print_func, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Final"] - pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { + 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!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_new) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_free) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_d2i) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_i2d) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_print) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256"] - pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; +impl Default for ASN1_EXTERN_FUNCS_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_fips_0_12_15_OPENSSL_malloc"] - pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; +pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; +pub type ASN1_aux_cb = ::std::option::Option< + unsafe extern "C" fn( + operation: ::std::os::raw::c_int, + in_: *mut *mut ASN1_VALUE, + it: *const ASN1_ITEM, + exarg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_AUX_st { + pub app_data: *mut ::std::os::raw::c_void, + pub flags: u32, + pub ref_offset: ::std::os::raw::c_int, + pub asn1_cb: ASN1_aux_cb, + pub enc_offset: ::std::os::raw::c_int, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_free"] - pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); +#[test] +fn bindgen_test_layout_ASN1_AUX_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(ref_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(asn1_cb) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(enc_offset) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_realloc"] - pub fn OPENSSL_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanse"] - pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_memcmp"] - pub fn CRYPTO_memcmp( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_hash32"] - pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; +impl Default for ASN1_AUX_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() + } + } } +pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strhash"] - pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_SEQUENCE_it"] + pub static ASN1_SEQUENCE_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strdup"] - pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_VALUE { + _unused: [u8; 0], } +pub type sk_ASN1_VALUE_free_func = + ::std::option::Option; +pub type sk_ASN1_VALUE_copy_func = + ::std::option::Option *mut ASN1_VALUE>; +pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_VALUE, + arg2: *const *const ASN1_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strnlen"] - pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeBlock"] + pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_tolower"] - pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodedLength"] + pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strcasecmp"] - pub fn OPENSSL_strcasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodedLength"] + pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strncasecmp"] - pub fn OPENSSL_strncasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - n: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBase64"] + pub fn EVP_DecodeBase64( + out: *mut u8, + out_len: *mut usize, + max_out: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_snprintf"] - pub fn BIO_snprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_new"] + pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vsnprintf"] - pub fn BIO_vsnprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - args: va_list, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_free"] + pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_vasprintf"] - pub fn OPENSSL_vasprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - args: va_list, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeInit"] + pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_asprintf"] - pub fn OPENSSL_asprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeUpdate"] + pub fn EVP_EncodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strndup"] - pub fn OPENSSL_strndup( - str_: *const ::std::os::raw::c_char, - size: usize, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeFinal"] + pub fn EVP_EncodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_memdup"] - pub fn OPENSSL_memdup( - data: *const ::std::os::raw::c_void, - size: usize, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeInit"] + pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcpy"] - pub fn OPENSSL_strlcpy( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeUpdate"] + pub fn EVP_DecodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcat"] - pub fn OPENSSL_strlcat( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeFinal"] + pub fn EVP_DecodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc"] - pub fn CRYPTO_malloc( - size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBlock"] + pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_realloc"] - pub fn CRYPTO_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_encode_ctx_st { + pub data_used: ::std::os::raw::c_uint, + pub data: [u8; 48usize], + pub eof_seen: ::std::os::raw::c_char, + pub error_encountered: ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_free"] - pub fn CRYPTO_free( - ptr: *mut ::std::os::raw::c_void, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, +#[test] +fn bindgen_test_layout_evp_encode_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(eof_seen) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, + 53usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(error_encountered) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_clear_free"] - pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_mem_functions"] - pub fn CRYPTO_set_mem_functions( - m: ::std::option::Option< - unsafe extern "C" fn( - arg1: usize, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - r: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: usize, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - f: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_malloc_init"] - pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; +impl Default for evp_encode_ctx_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_fips_0_12_15_CRYPTO_secure_malloc_initialized"] - pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct blake2b_state_st { + pub h: [u64; 8usize], + pub t_low: u64, + pub t_high: u64, + pub block: [u8; 128usize], + pub block_used: usize, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_used"] - pub fn CRYPTO_secure_used() -> usize; +#[test] +fn bindgen_test_layout_blake2b_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(blake2b_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(blake2b_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_low) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_high) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block_used) + ) + ); +} +impl Default for blake2b_state_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_fips_0_12_15_OPENSSL_secure_malloc"] - pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Init"] + pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_secure_clear_free"] - pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Update"] + pub fn BLAKE2B256_Update( + b2b: *mut BLAKE2B_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_library_init"] - pub fn CRYPTO_library_init(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Final"] + pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_is_confidential_build"] - pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256"] + pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bf_key_st { + pub P: [u32; 18usize], + pub S: [u32; 1024usize], +} +#[test] +fn bindgen_test_layout_bf_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 4168usize, + concat!("Size of: ", stringify!(bf_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(bf_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(P) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(S) + ) + ); } +impl Default for bf_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() + } + } +} +pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_has_asm"] - pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_set_key"] + pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_self_test"] - pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_encrypt"] + pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_integrity_test"] - pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_decrypt"] + pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_pre_sandbox_init"] - pub fn CRYPTO_pre_sandbox_init(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_ecb_encrypt"] + pub fn BF_ecb_encrypt( + in_: *const u8, + out: *mut u8, + key: *const BF_KEY, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_mode"] - pub fn FIPS_mode() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_cbc_encrypt"] + pub fn BF_cbc_encrypt( + in_: *const u8, + out: *mut u8, + length: usize, + schedule: *const BF_KEY, + ivec: *mut u8, + enc: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbs_st { + pub data: *const u8, + pub len: usize, +} +#[test] +fn bindgen_test_layout_cbs_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!(cbs_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbs_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(len) + ) + ); +} +impl Default for cbs_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() + } + } } -pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; -pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; -pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; -pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; -pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; -pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_read_counter"] - pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_init"] + pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version"] - pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_skip"] + pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay_version"] - pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_data"] + pub fn CBS_data(cbs: *const CBS) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay"] - pub fn SSLeay() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_len"] + pub fn CBS_len(cbs: *const CBS) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version_num"] - pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_stow"] + pub fn CBS_stow( + cbs: *const CBS, + out_ptr: *mut *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_api_version_num"] - pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_strdup"] + pub fn CBS_strdup( + cbs: *const CBS, + out_ptr: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc_init"] - pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_contains_zero_byte"] + pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_malloc_init"] - pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_mem_equal"] + pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_load_builtin_engines"] - pub fn ENGINE_load_builtin_engines(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8"] + pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_register_all_complete"] - pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16"] + pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_load_builtin_modules"] - pub fn OPENSSL_load_builtin_modules(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16le"] + pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_init_crypto"] - pub fn OPENSSL_init_crypto( - opts: u64, - settings: *const OPENSSL_INIT_SETTINGS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24"] + pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanup"] - pub fn OPENSSL_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32"] + pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_mode_set"] - pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32le"] + pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_keypair"] - pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64"] + pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519"] - pub fn X25519( - out_shared_key: *mut u8, - private_key: *const u8, - peer_public_value: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64le"] + pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_public_from_private"] - pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_last_u8"] + pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair"] - pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_bytes"] + pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_sign"] - pub fn ED25519_sign( - out_sig: *mut u8, - message: *const u8, - message_len: usize, - private_key: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_copy_bytes"] + pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_verify"] - pub fn ED25519_verify( - message: *const u8, - message_len: usize, - signature: *const u8, - public_key: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8_length_prefixed"] + pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair_from_seed"] - pub fn ED25519_keypair_from_seed( - out_public_key: *mut u8, - out_private_key: *mut u8, - seed: *const u8, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16_length_prefixed"] + pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } -pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; -pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; -pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_new"] - pub fn SPAKE2_CTX_new( - my_role: spake2_role_t, - my_name: *const u8, - my_name_len: usize, - their_name: *const u8, - their_name_len: usize, - ) -> *mut SPAKE2_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24_length_prefixed"] + pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_free"] - pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_until_first"] + pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_generate_msg"] - pub fn SPAKE2_generate_msg( - ctx: *mut SPAKE2_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - password: *const u8, - password_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64_decimal"] + pub fn CBS_get_u64_decimal(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_process_msg"] - pub fn SPAKE2_process_msg( - ctx: *mut SPAKE2_CTX, - out_key: *mut u8, - out_key_len: *mut usize, - max_out_key_len: usize, - their_msg: *const u8, - their_msg_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1"] + pub fn CBS_get_asn1( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct DES_cblock_st { - pub bytes: [u8; 8usize], -} -#[test] -fn bindgen_test_layout_DES_cblock_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!(DES_cblock_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(DES_cblock_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DES_cblock_st), - "::", - stringify!(bytes) - ) - ); -} -pub type DES_cblock = DES_cblock_st; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct DES_ks { - pub subkeys: [[u32; 2usize]; 16usize], -} -#[test] -fn bindgen_test_layout_DES_ks() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(DES_ks)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(DES_ks)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subkeys) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DES_ks), - "::", - stringify!(subkeys) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_element"] + pub fn CBS_get_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } -pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_key"] - pub fn DES_set_key(key: *const DES_cblock, schedule: *mut DES_key_schedule); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_peek_asn1_tag"] + pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_odd_parity"] - pub fn DES_set_odd_parity(key: *mut DES_cblock); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1"] + pub fn CBS_get_any_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb_encrypt"] - pub fn DES_ecb_encrypt( - in_: *const DES_cblock, - out: *mut DES_cblock, - schedule: *const DES_key_schedule, - is_encrypt: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1_element"] + pub fn CBS_get_any_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ncbc_encrypt"] - pub fn DES_ncbc_encrypt( - in_: *const u8, - out: *mut u8, - len: usize, - schedule: *const DES_key_schedule, - ivec: *mut DES_cblock, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_ber_asn1_element"] + pub fn CBS_get_any_ber_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + out_ber_found: *mut ::std::os::raw::c_int, + out_indefinite: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb3_encrypt"] - pub fn DES_ecb3_encrypt( - input: *const DES_cblock, - output: *mut DES_cblock, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_uint64"] + pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede3_cbc_encrypt"] - pub fn DES_ede3_cbc_encrypt( - in_: *const u8, - out: *mut u8, - len: usize, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ivec: *mut DES_cblock, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_int64"] + pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede2_cbc_encrypt"] - pub fn DES_ede2_cbc_encrypt( - in_: *const u8, - out: *mut u8, - len: usize, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ivec: *mut DES_cblock, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_bool"] + pub fn CBS_get_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1"] + pub fn CBS_get_optional_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_octet_string"] + pub fn CBS_get_optional_asn1_octet_string( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_new"] - pub fn DH_new() -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_uint64"] + pub fn CBS_get_optional_asn1_uint64( + cbs: *mut CBS, + out: *mut u64, + tag: CBS_ASN1_TAG, + default_value: u64, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_free"] - pub fn DH_free(dh: *mut DH); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_bool"] + pub fn CBS_get_optional_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + default_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_up_ref"] - pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_bitstring"] + pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_bits"] - pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_bitstring_has_bit"] + pub fn CBS_asn1_bitstring_has_bit( + cbs: *const CBS, + bit: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pub_key"] - pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_integer"] + pub fn CBS_is_valid_asn1_integer( + cbs: *const CBS, + out_is_negative: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_priv_key"] - pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_unsigned_asn1_integer"] + pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_p"] - pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_oid"] + pub fn CBS_is_valid_asn1_oid(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_q"] - pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_oid_to_text"] + pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_g"] - pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_generalized_time"] + pub fn CBS_parse_generalized_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_key"] - pub fn DH_get0_key( - dh: *const DH, - out_pub_key: *mut *const BIGNUM, - out_priv_key: *mut *const BIGNUM, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_key"] - pub fn DH_set0_key( - dh: *mut DH, - pub_key: *mut BIGNUM, - priv_key: *mut BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_utc_time"] + pub fn CBS_parse_utc_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pqg"] - pub fn DH_get0_pqg( - dh: *const DH, - out_p: *mut *const BIGNUM, - out_q: *mut *const BIGNUM, - out_g: *mut *const BIGNUM, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_pqg"] - pub fn DH_set0_pqg( - dh: *mut DH, - p: *mut BIGNUM, - q: *mut BIGNUM, - g: *mut BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_int64"] + pub fn CBS_get_optional_asn1_int64( + cbs: *mut CBS, + out: *mut i64, + tag: CBS_ASN1_TAG, + default_value: i64, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set_length"] - pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) - -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_buffer_st { + pub buf: *mut u8, + pub len: usize, + pub cap: usize, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 7usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_rfc7919_2048"] - pub fn DH_get_rfc7919_2048() -> *mut DH; +#[test] +fn bindgen_test_layout_cbb_buffer_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(cap) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_1536"] - pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; +impl Default for cbb_buffer_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_fips_0_12_15_BN_get_rfc3526_prime_2048"] - pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; +impl cbb_buffer_st { + #[inline] + pub fn can_resize(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn error(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + can_resize: ::std::os::raw::c_uint, + error: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; + can_resize as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let error: u32 = unsafe { ::std::mem::transmute(error) }; + error as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_3072"] - pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_child_st { + pub base: *mut cbb_buffer_st, + pub offset: usize, + pub pending_len_len: u8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u16; 3usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_4096"] - pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; +#[test] +fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_child_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(pending_len_len) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_6144"] - pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; +impl Default for cbb_child_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_fips_0_12_15_BN_get_rfc3526_prime_8192"] - pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; +impl cbb_child_st { + #[inline] + pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pending_is_asn1: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; + pending_is_asn1 as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters_ex"] - pub fn DH_generate_parameters_ex( - dh: *mut DH, - prime_bits: ::std::os::raw::c_int, - generator: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct cbb_st { + pub child: *mut CBB, + pub is_child: ::std::os::raw::c_char, + pub u: cbb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_key"] - pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union cbb_st__bindgen_ty_1 { + pub base: cbb_buffer_st, + pub child: cbb_child_st, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key_padded"] - pub fn DH_compute_key_padded( - out: *mut u8, - peers_key: *const BIGNUM, - dh: *mut DH, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_cbb_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(child) + ) + ); +} +impl Default for cbb_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_cbb_st() { + 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!(cbb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(is_child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, + 16usize, + concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) + ); +} +impl Default for cbb_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_fips_0_12_15_DH_compute_key_hashed"] - pub fn DH_compute_key_hashed( - dh: *mut DH, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - peers_key: *const BIGNUM, - digest: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_zero"] + pub fn CBB_zero(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_size"] - pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init"] + pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_num_bits"] - pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init_fixed"] + pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check"] - pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_cleanup"] + pub fn CBB_cleanup(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check_pub_key"] - pub fn DH_check_pub_key( - dh: *const DH, - pub_key: *const BIGNUM, - out_flags: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_finish"] + pub fn CBB_finish( + cbb: *mut CBB, + out_data: *mut *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DHparams_dup"] - pub fn DHparams_dup(dh: *const DH) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush"] + pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_parse_parameters"] - pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_data"] + pub fn CBB_data(cbb: *const CBB) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_marshal_parameters"] - pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_len"] + pub fn CBB_len(cbb: *const CBB) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters"] - pub fn DH_generate_parameters( - prime_len: ::std::os::raw::c_int, - generator: ::std::os::raw::c_int, - callback: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *mut ::std::os::raw::c_void, - ), - >, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8_length_prefixed"] + pub fn CBB_add_u8_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams"] - pub fn d2i_DHparams( - ret: *mut *mut DH, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16_length_prefixed"] + pub fn CBB_add_u16_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DHparams"] - pub fn i2d_DHparams( - in_: *const DH, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24_length_prefixed"] + pub fn CBB_add_u24_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key"] - pub fn DH_compute_key( - out: *mut u8, - peers_key: *const BIGNUM, - dh: *mut DH, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1"] + pub fn CBB_add_asn1( + cbb: *mut CBB, + out_contents: *mut CBB, + tag: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_2048_256"] - pub fn DH_get_2048_256() -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_bytes"] + pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md4"] - pub fn EVP_md4() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_zeros"] + pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5"] - pub fn EVP_md5() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_space"] + pub fn CBB_add_space( + cbb: *mut CBB, + out_data: *mut *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ripemd160"] - pub fn EVP_ripemd160() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_reserve"] + pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha1"] - pub fn EVP_sha1() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_did_write"] + pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha224"] - pub fn EVP_sha224() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8"] + pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha256"] - pub fn EVP_sha256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16"] + pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha384"] - pub fn EVP_sha384() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16le"] + pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512"] - pub fn EVP_sha512() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24"] + pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512_256"] - pub fn EVP_sha512_256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32"] + pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_224"] - pub fn EVP_sha3_224() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32le"] + pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_256"] - pub fn EVP_sha3_256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64"] + pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_384"] - pub fn EVP_sha3_384() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64le"] + pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_512"] - pub fn EVP_sha3_512() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_discard_child"] + pub fn CBB_discard_child(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_blake2b256"] - pub fn EVP_blake2b256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64"] + pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5_sha1"] - pub fn EVP_md5_sha1() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64_with_tag"] + pub fn CBB_add_asn1_uint64_with_tag( + cbb: *mut CBB, + value: u64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbynid"] - pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64"] + pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyobj"] - pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64_with_tag"] + pub fn CBB_add_asn1_int64_with_tag( + cbb: *mut CBB, + value: i64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_init"] - pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_octet_string"] + pub fn CBB_add_asn1_octet_string( + cbb: *mut CBB, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_new"] - pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_bool"] + pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanup"] - pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_oid_from_text"] + pub fn CBB_add_asn1_oid_from_text( + cbb: *mut CBB, + text: *const ::std::os::raw::c_char, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanse"] - pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush_asn1_set_of"] + pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_free"] - pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_chacha_20"] + pub fn CRYPTO_chacha_20( + out: *mut u8, + in_: *const u8, + in_len: usize, + key: *const u8, + nonce: *const u8, + counter: u32, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy_ex"] - pub fn EVP_MD_CTX_copy_ex( - out: *mut EVP_MD_CTX, - in_: *const EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc4"] + pub fn EVP_rc4() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_move"] - pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_cbc"] + pub fn EVP_des_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_reset"] - pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ecb"] + pub fn EVP_des_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit_ex"] - pub fn EVP_DigestInit_ex( - ctx: *mut EVP_MD_CTX, - type_: *const EVP_MD, - engine: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede"] + pub fn EVP_des_ede() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit"] - pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3"] + pub fn EVP_des_ede3() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestUpdate"] - pub fn EVP_DigestUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede_cbc"] + pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal_ex"] - pub fn EVP_DigestFinal_ex( - ctx: *mut EVP_MD_CTX, - md_out: *mut u8, - out_size: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_cbc"] + pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal"] - pub fn EVP_DigestFinal( - ctx: *mut EVP_MD_CTX, - md_out: *mut u8, - out_size: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ecb"] + pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Digest"] - pub fn EVP_Digest( - data: *const ::std::os::raw::c_void, - len: usize, - md_out: *mut u8, - md_out_size: *mut ::std::os::raw::c_uint, - type_: *const EVP_MD, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc"] + pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_type"] - pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ctr"] + pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_flags"] - pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ofb"] + pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_size"] - pub fn EVP_MD_size(md: *const EVP_MD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ecb"] + pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_block_size"] - pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc"] + pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_md"] - pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ctr"] + pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_size"] - pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ofb"] + pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_block_size"] - pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_xts"] + pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_type"] - pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_wrap"] + pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_digest_algorithm"] - pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_enc_null"] + pub fn EVP_enc_null() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_digest_algorithm"] - pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc2_cbc"] + pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_enable"] - pub fn EVP_MD_unstable_sha3_enable(enable: bool); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc2_40_cbc"] + pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_is_enabled"] - pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_chacha20_poly1305"] + pub fn EVP_chacha20_poly1305() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy"] - pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbynid"] + pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_digest"] - pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_init"] + pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyname"] - pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_new"] + pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_create"] - pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cleanup"] + pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_destroy"] - pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_free"] + pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinalXOF"] - pub fn EVP_DigestFinalXOF( - ctx: *mut EVP_MD_CTX, - out: *mut u8, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_copy"] + pub fn EVP_CIPHER_CTX_copy( + out: *mut EVP_CIPHER_CTX, + in_: *const EVP_CIPHER_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_meth_get_flags"] - pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_reset"] + pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_flags"] - pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit_ex"] + pub fn EVP_CipherInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, + key: *const u8, + iv: *const u8, + enc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_nid"] - pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit_ex"] + pub fn EVP_EncryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_pkey_ctx"] - pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evp_md_pctx_ops { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct env_md_ctx_st { - pub digest: *const EVP_MD, - pub md_data: *mut ::std::os::raw::c_void, - pub pctx: *mut EVP_PKEY_CTX, - pub pctx_ops: *const evp_md_pctx_ops, - pub flags: ::std::os::raw::c_ulong, -} -#[test] -fn bindgen_test_layout_env_md_ctx_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!(env_md_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(env_md_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(digest) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(md_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(pctx) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(pctx_ops) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for env_md_ctx_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit_ex"] + pub fn EVP_DecryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md_null"] - pub fn EVP_md_null() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptUpdate"] + pub fn EVP_EncryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_new"] - pub fn ENGINE_new() -> *mut ENGINE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal_ex"] + pub fn EVP_EncryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_free"] - pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptUpdate"] + pub fn EVP_DecryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_RSA_method"] - pub fn ENGINE_set_RSA_method( - engine: *mut ENGINE, - method: *const RSA_METHOD, - method_size: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal_ex"] + pub fn EVP_DecryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_RSA_method"] - pub fn ENGINE_get_RSA_method(engine: *const ENGINE) -> *mut RSA_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherUpdate"] + pub fn EVP_CipherUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_ECDSA_method"] - pub fn ENGINE_set_ECDSA_method( - engine: *mut ENGINE, - method: *const ECDSA_METHOD, - method_size: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal_ex"] + pub fn EVP_CipherFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_ECDSA_method"] - pub fn ENGINE_get_ECDSA_method(engine: *const ENGINE) -> *mut ECDSA_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cipher"] + pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_ref"] - pub fn METHOD_ref(method: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_nid"] + pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_unref"] - pub fn METHOD_unref(method: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct openssl_method_common_st { - pub references: ::std::os::raw::c_int, - pub is_static: ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_openssl_method_common_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!(openssl_method_common_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(openssl_method_common_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(openssl_method_common_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_static) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(openssl_method_common_st), - "::", - stringify!(is_static) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_encrypting"] + pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_new"] - pub fn DSA_new() -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_block_size"] + pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_free"] - pub fn DSA_free(dsa: *mut DSA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_key_length"] + pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_up_ref"] - pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_iv_length"] + pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_bits"] - pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_get_app_data"] + pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pub_key"] - pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_app_data"] + pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_priv_key"] - pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_flags"] + pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_p"] - pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_mode"] + pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_q"] - pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_ctrl"] + pub fn EVP_CIPHER_CTX_ctrl( + ctx: *mut EVP_CIPHER_CTX, + command: ::std::os::raw::c_int, + arg: ::std::os::raw::c_int, + ptr: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_g"] - pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_padding"] + pub fn EVP_CIPHER_CTX_set_padding( + ctx: *mut EVP_CIPHER_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_key"] - pub fn DSA_get0_key( - dsa: *const DSA, - out_pub_key: *mut *const BIGNUM, - out_priv_key: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_key_length"] + pub fn EVP_CIPHER_CTX_set_key_length( + ctx: *mut EVP_CIPHER_CTX, + key_len: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pqg"] - pub fn DSA_get0_pqg( - dsa: *const DSA, - out_p: *mut *const BIGNUM, - out_q: *mut *const BIGNUM, - out_g: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_nid"] + pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_key"] - pub fn DSA_set0_key( - dsa: *mut DSA, - pub_key: *mut BIGNUM, - priv_key: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_name"] + pub fn EVP_CIPHER_name(cipher: *const EVP_CIPHER) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_pqg"] - pub fn DSA_set0_pqg( - dsa: *mut DSA, - p: *mut BIGNUM, - q: *mut BIGNUM, - g: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_block_size"] + pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_parameters_ex"] - pub fn DSA_generate_parameters_ex( - dsa: *mut DSA, - bits: ::std::os::raw::c_uint, - seed: *const u8, - seed_len: usize, - out_counter: *mut ::std::os::raw::c_int, - out_h: *mut ::std::os::raw::c_ulong, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_key_length"] + pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSAparams_dup"] - pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_iv_length"] + pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_key"] - pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DSA_SIG_st { - pub r: *mut BIGNUM, - pub s: *mut BIGNUM, -} -#[test] -fn bindgen_test_layout_DSA_SIG_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!(DSA_SIG_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(DSA_SIG_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DSA_SIG_st), - "::", - stringify!(r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DSA_SIG_st), - "::", - stringify!(s) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_flags"] + pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; } -impl Default for DSA_SIG_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_fips_0_13_0_EVP_CIPHER_mode"] + pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_new"] - pub fn DSA_SIG_new() -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_BytesToKey"] + pub fn EVP_BytesToKey( + type_: *const EVP_CIPHER, + md: *const EVP_MD, + salt: *const u8, + data: *const u8, + data_len: usize, + count: ::std::os::raw::c_uint, + key: *mut u8, + iv: *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_free"] - pub fn DSA_SIG_free(sig: *mut DSA_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha1"] + pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_get0"] - pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha1"] + pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_set0"] - pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha256"] + pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_sign"] - pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha256"] + pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_verify"] - pub fn DSA_do_verify( - digest: *const u8, - digest_len: usize, - sig: *mut DSA_SIG, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit"] + pub fn EVP_CipherInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + enc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_check_signature"] - pub fn DSA_do_check_signature( - out_valid: *mut ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *mut DSA_SIG, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit"] + pub fn EVP_EncryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_sign"] - pub fn DSA_sign( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out_sig: *mut u8, - out_siglen: *mut ::std::os::raw::c_uint, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit"] + pub fn EVP_DecryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_verify"] - pub fn DSA_verify( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal"] + pub fn EVP_CipherFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_check_signature"] - pub fn DSA_check_signature( - out_valid: *mut ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal"] + pub fn EVP_EncryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_size"] - pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal"] + pub fn EVP_DecryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_parse"] - pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Cipher"] + pub fn EVP_Cipher( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_marshal"] - pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbyname"] + pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_public_key"] - pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_gcm"] + pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_public_key"] - pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_gcm"] + pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_private_key"] - pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ccm"] + pub fn EVP_aes_128_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_private_key"] - pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ccm"] + pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_parameters"] - pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ccm"] + pub fn EVP_aes_256_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_parameters"] - pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ecb"] + pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_dup_DH"] - pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cbc"] + pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_new_index"] - pub fn DSA_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_fips_0_13_0_EVP_aes_192_ctr"] + pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set_ex_data"] - pub fn DSA_set_ex_data( - dsa: *mut DSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_gcm"] + pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_data"] - pub fn DSA_get_ex_data( - dsa: *const DSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ofb"] + pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_SIG"] - pub fn d2i_DSA_SIG( - out_sig: *mut *mut DSA_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_ecb"] + pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_SIG"] - pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb128"] + pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPublicKey"] - pub fn d2i_DSAPublicKey( - out: *mut *mut DSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb"] + pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPublicKey"] - pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb1"] + pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey"] - pub fn d2i_DSAPrivateKey( - out: *mut *mut DSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb8"] + pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey"] - pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb128"] + pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAparams"] - pub fn d2i_DSAparams( - out: *mut *mut DSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb"] + pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAparams"] - pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb1"] + pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb8"] + pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb128"] + pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb"] + pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb1"] + pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb8"] + pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_ecb"] + pub fn EVP_bf_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cbc"] + pub fn EVP_bf_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cfb"] + pub fn EVP_bf_cfb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_ecb"] + pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_cbc"] + pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_flags"] + pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_cipher_alias"] + pub fn EVP_add_cipher_alias( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Copy, Clone)] -pub struct dsa_st { - pub version: ::std::os::raw::c_long, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub g: *mut BIGNUM, - pub pub_key: *mut BIGNUM, - pub priv_key: *mut BIGNUM, - pub flags: ::std::os::raw::c_int, - pub method_mont_lock: CRYPTO_MUTEX, - pub method_mont_p: *mut BN_MONT_CTX, - pub method_mont_q: *mut BN_MONT_CTX, - pub references: CRYPTO_refcount_t, - pub ex_data: CRYPTO_EX_DATA, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_cipher_ctx_st { + pub cipher: *const EVP_CIPHER, + pub app_data: *mut ::std::os::raw::c_void, + pub cipher_data: *mut ::std::os::raw::c_void, + pub key_len: ::std::os::raw::c_uint, + pub encrypt: ::std::os::raw::c_int, + pub flags: u32, + pub oiv: [u8; 16usize], + pub iv: [u8; 16usize], + pub buf: [u8; 32usize], + pub buf_len: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_uint, + pub final_used: ::std::os::raw::c_int, + pub final_: [u8; 32usize], + pub poisoned: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_dsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_cipher_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(dsa_st)) + ::std::mem::size_of::(), + 152usize, + concat!("Size of: ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(dsa_st)) + concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(version) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, 8usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(p)) + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(app_data) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, 16usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(q)) + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(cipher_data) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, 24usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(g)) + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(key_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(encrypt) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pub_key) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(pub_key) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).priv_key) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, + 36usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(priv_key) + stringify!(oiv) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 52usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(flags) + stringify!(iv) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_lock) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(buf_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, + 108usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(method_mont_lock) + stringify!(final_used) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_p) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(method_mont_p) + stringify!(final_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_q) as usize - ptr as usize }, - 120usize, + unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(method_mont_q) + stringify!(poisoned) ) ); +} +impl Default for evp_cipher_ctx_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 evp_cipher_info_st { + pub cipher: *const EVP_CIPHER, + pub iv: [::std::os::raw::c_uchar; 16usize], +} +#[test] +fn bindgen_test_layout_evp_cipher_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 128usize, + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_info_st), "::", - stringify!(references) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 136usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_info_st), "::", - stringify!(ex_data) + stringify!(iv) ) ); } -impl Default for dsa_st { +impl Default for evp_cipher_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14259,1074 +13083,1002 @@ impl Default for dsa_st { } } } -#[repr(u32)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum point_conversion_form_t { - POINT_CONVERSION_COMPRESSED = 2, - POINT_CONVERSION_UNCOMPRESSED = 4, - POINT_CONVERSION_HYBRID = 6, +pub type EVP_CIPHER_INFO = evp_cipher_info_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_CMAC"] + pub fn AES_CMAC( + out: *mut u8, + key: *const u8, + key_len: usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_by_curve_name"] - pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_new"] + pub fn CMAC_CTX_new() -> *mut CMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_free"] - pub fn EC_GROUP_free(group: *mut EC_GROUP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_free"] + pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_dup"] - pub fn EC_GROUP_dup(a: *const EC_GROUP) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_copy"] + pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_cmp"] - pub fn EC_GROUP_cmp( - a: *const EC_GROUP, - b: *const EC_GROUP, - ignored: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Init"] + pub fn CMAC_Init( + ctx: *mut CMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_generator"] - pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Reset"] + pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_order"] - pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Update"] + pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_order_bits"] - pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Final"] + pub fn CMAC_Final( + ctx: *mut CMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_cofactor"] - pub fn EC_GROUP_get_cofactor( - group: *const EC_GROUP, - cofactor: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_get0_cipher_ctx"] + pub fn CMAC_CTX_get0_cipher_ctx(ctx: *mut CMAC_CTX) -> *mut EVP_CIPHER_CTX; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_GFp"] - pub fn EC_GROUP_get_curve_GFp( - group: *const EC_GROUP, - out_p: *mut BIGNUM, - out_a: *mut BIGNUM, - out_b: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct conf_value_st { + pub section: *mut ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_name"] - pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_conf_value_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!(conf_value_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(conf_value_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(section) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(value) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_degree"] - pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; +impl Default for conf_value_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_fips_0_12_15_EC_curve_nid2nist"] - pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CONF_VALUE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_curve_nist2nid"] - pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +pub type sk_CONF_VALUE_free_func = + ::std::option::Option; +pub type sk_CONF_VALUE_copy_func = + ::std::option::Option *mut CONF_VALUE>; +pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CONF_VALUE, + arg2: *const *const CONF_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CONF_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lhash_st_CONF_VALUE { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_new"] - pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_new"] + pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_free"] - pub fn EC_POINT_free(point: *mut EC_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_free"] + pub fn NCONF_free(conf: *mut CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_copy"] - pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load"] + pub fn NCONF_load( + conf: *mut CONF, + filename: *const ::std::os::raw::c_char, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dup"] - pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load_bio"] + pub fn NCONF_load_bio( + conf: *mut CONF, + bio: *mut BIO, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_to_infinity"] - pub fn EC_POINT_set_to_infinity( - group: *const EC_GROUP, - point: *mut EC_POINT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_section"] + pub fn NCONF_get_section( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + ) -> *const stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_at_infinity"] - pub fn EC_POINT_is_at_infinity( - group: *const EC_GROUP, - point: *const EC_POINT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_string"] + pub fn NCONF_get_string( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_on_curve"] - pub fn EC_POINT_is_on_curve( - group: *const EC_GROUP, - point: *const EC_POINT, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_load_file"] + pub fn CONF_modules_load_file( + filename: *const ::std::os::raw::c_char, + appname: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_cmp"] - pub fn EC_POINT_cmp( - group: *const EC_GROUP, - a: *const EC_POINT, - b: *const EC_POINT, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_get1_default_config_file"] + pub fn CONF_get1_default_config_file() -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates_GFp"] - pub fn EC_POINT_get_affine_coordinates_GFp( - group: *const EC_GROUP, - point: *const EC_POINT, - x: *mut BIGNUM, - y: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_free"] + pub fn CONF_modules_free(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates"] - pub fn EC_POINT_get_affine_coordinates( - group: *const EC_GROUP, - point: *const EC_POINT, - x: *mut BIGNUM, - y: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_unload"] + pub fn CONF_modules_unload(all: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates_GFp"] - pub fn EC_POINT_set_affine_coordinates_GFp( - group: *const EC_GROUP, - point: *mut EC_POINT, - x: *const BIGNUM, - y: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_finish"] + pub fn CONF_modules_finish(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates"] - pub fn EC_POINT_set_affine_coordinates( - group: *const EC_GROUP, - point: *mut EC_POINT, - x: *const BIGNUM, - y: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_config"] + pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2oct"] - pub fn EC_POINT_point2oct( - group: *const EC_GROUP, - point: *const EC_POINT, - form: point_conversion_form_t, - buf: *mut u8, - len: usize, - ctx: *mut BN_CTX, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_no_config"] + pub fn OPENSSL_no_config(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2cbb"] - pub fn EC_POINT_point2cbb( - out: *mut CBB, - group: *const EC_GROUP, - point: *const EC_POINT, - form: point_conversion_form_t, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_keypair"] + pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_oct2point"] - pub fn EC_POINT_oct2point( - group: *const EC_GROUP, - point: *mut EC_POINT, - buf: *const u8, - len: usize, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519"] + pub fn X25519( + out_shared_key: *mut u8, + private_key: *const u8, + peer_public_value: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_compressed_coordinates_GFp"] - pub fn EC_POINT_set_compressed_coordinates_GFp( - group: *const EC_GROUP, - point: *mut EC_POINT, - x: *const BIGNUM, - y_bit: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_public_from_private"] + pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_add"] - pub fn EC_POINT_add( - group: *const EC_GROUP, - r: *mut EC_POINT, - a: *const EC_POINT, - b: *const EC_POINT, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair"] + pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dbl"] - pub fn EC_POINT_dbl( - group: *const EC_GROUP, - r: *mut EC_POINT, - a: *const EC_POINT, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_sign"] + pub fn ED25519_sign( + out_sig: *mut u8, + message: *const u8, + message_len: usize, + private_key: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_invert"] - pub fn EC_POINT_invert( - group: *const EC_GROUP, - a: *mut EC_POINT, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_verify"] + pub fn ED25519_verify( + message: *const u8, + message_len: usize, + signature: *const u8, + public_key: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_mul"] - pub fn EC_POINT_mul( - group: *const EC_GROUP, - r: *mut EC_POINT, - n: *const BIGNUM, - q: *const EC_POINT, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair_from_seed"] + pub fn ED25519_keypair_from_seed( + out_public_key: *mut u8, + out_private_key: *mut u8, + seed: *const u8, + ); } +pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; +pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; +pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_curve_GFp"] - pub fn EC_GROUP_new_curve_GFp( - p: *const BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_new"] + pub fn SPAKE2_CTX_new( + my_role: spake2_role_t, + my_name: *const u8, + my_name_len: usize, + their_name: *const u8, + their_name_len: usize, + ) -> *mut SPAKE2_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_generator"] - pub fn EC_GROUP_set_generator( - group: *mut EC_GROUP, - generator: *const EC_POINT, - order: *const BIGNUM, - cofactor: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_free"] + pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_order"] - pub fn EC_GROUP_get_order( - group: *const EC_GROUP, - order: *mut BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_generate_msg"] + pub fn SPAKE2_generate_msg( + ctx: *mut SPAKE2_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + password: *const u8, + password_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_asn1_flag"] - pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_asn1_flag"] - pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ec_method_st { - _unused: [u8; 0], -} -pub type EC_METHOD = ec_method_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_method_of"] - pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_METHOD_get_field_type"] - pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_point_conversion_form"] - pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_process_msg"] + pub fn SPAKE2_process_msg( + ctx: *mut SPAKE2_CTX, + out_key: *mut u8, + out_key_len: *mut usize, + max_out_key_len: usize, + their_msg: *const u8, + their_msg_len: usize, + ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EC_builtin_curve { - pub nid: ::std::os::raw::c_int, - pub comment: *const ::std::os::raw::c_char, +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] +pub struct DES_cblock_st { + pub bytes: [u8; 8usize], } #[test] -fn bindgen_test_layout_EC_builtin_curve() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DES_cblock_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!(EC_builtin_curve)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DES_cblock_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EC_builtin_curve)) + ::std::mem::align_of::(), + 1usize, + concat!("Alignment of ", stringify!(DES_cblock_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nid) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(EC_builtin_curve), + stringify!(DES_cblock_st), "::", - stringify!(nid) + stringify!(bytes) ) ); +} +pub type DES_cblock = DES_cblock_st; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] +pub struct DES_ks { + pub subkeys: [[u32; 2usize]; 16usize], +} +#[test] +fn bindgen_test_layout_DES_ks() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 128usize, + concat!("Size of: ", stringify!(DES_ks)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comment) as usize - ptr as usize }, - 8usize, + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(DES_ks)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subkeys) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(EC_builtin_curve), + stringify!(DES_ks), "::", - stringify!(comment) + stringify!(subkeys) ) ); } -impl Default for EC_builtin_curve { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} +pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_get_builtin_curves"] - pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) - -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_is_weak_key"] + pub fn DES_is_weak_key(key: *const DES_cblock) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_clear_free"] - pub fn EC_POINT_clear_free(point: *mut EC_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key"] + pub fn DES_set_key( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new"] - pub fn EC_KEY_new() -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key_unchecked"] + pub fn DES_set_key_unchecked(key: *const DES_cblock, schedule: *mut DES_key_schedule); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_method"] - pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_key_sched"] + pub fn DES_key_sched( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_by_curve_name"] - pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_odd_parity"] + pub fn DES_set_odd_parity(key: *mut DES_cblock); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_free"] - pub fn EC_KEY_free(key: *mut EC_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb_encrypt"] + pub fn DES_ecb_encrypt( + in_: *const DES_cblock, + out: *mut DES_cblock, + schedule: *const DES_key_schedule, + is_encrypt: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_dup"] - pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ncbc_encrypt"] + pub fn DES_ncbc_encrypt( + in_: *const u8, + out: *mut u8, + len: usize, + schedule: *const DES_key_schedule, + ivec: *mut DES_cblock, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_up_ref"] - pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb3_encrypt"] + pub fn DES_ecb3_encrypt( + input: *const DES_cblock, + output: *mut DES_cblock, + ks1: *const DES_key_schedule, + ks2: *const DES_key_schedule, + ks3: *const DES_key_schedule, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_is_opaque"] - pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede3_cbc_encrypt"] + pub fn DES_ede3_cbc_encrypt( + in_: *const u8, + out: *mut u8, + len: usize, + ks1: *const DES_key_schedule, + ks2: *const DES_key_schedule, + ks3: *const DES_key_schedule, + ivec: *mut DES_cblock, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_group"] - pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede2_cbc_encrypt"] + pub fn DES_ede2_cbc_encrypt( + in_: *const u8, + out: *mut u8, + len: usize, + ks1: *const DES_key_schedule, + ks2: *const DES_key_schedule, + ivec: *mut DES_cblock, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_group"] - pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new"] + pub fn DH_new() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_private_key"] - pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new_by_nid"] + pub fn DH_new_by_nid(nid: ::std::os::raw::c_int) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_private_key"] - pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_free"] + pub fn DH_free(dh: *mut DH); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_public_key"] - pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_up_ref"] + pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key"] - pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_bits"] + pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_enc_flags"] - pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pub_key"] + pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_enc_flags"] - pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_priv_key"] + pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_conv_form"] - pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_p"] + pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_conv_form"] - pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_q"] + pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_key"] - pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_g"] + pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_fips"] - pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_key"] + pub fn DH_get0_key( + dh: *const DH, + out_pub_key: *mut *const BIGNUM, + out_priv_key: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key_affine_coordinates"] - pub fn EC_KEY_set_public_key_affine_coordinates( - key: *mut EC_KEY, - x: *const BIGNUM, - y: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_key"] + pub fn DH_set0_key( + dh: *mut DH, + pub_key: *mut BIGNUM, + priv_key: *mut BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_key2buf"] - pub fn EC_KEY_key2buf( - key: *const EC_KEY, - form: point_conversion_form_t, - out_buf: *mut *mut ::std::os::raw::c_uchar, - ctx: *mut BN_CTX, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pqg"] + pub fn DH_get0_pqg( + dh: *const DH, + out_p: *mut *const BIGNUM, + out_q: *mut *const BIGNUM, + out_g: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key"] - pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_pqg"] + pub fn DH_set0_pqg( + dh: *mut DH, + p: *mut BIGNUM, + q: *mut BIGNUM, + g: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key_fips"] - pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set_length"] + pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_derive_from_secret"] - pub fn EC_KEY_derive_from_secret( - group: *const EC_GROUP, - secret: *const u8, - secret_len: usize, - ) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_2048"] + pub fn DH_get_rfc7919_2048() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_private_key"] - pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_4096"] + pub fn DH_get_rfc7919_4096() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_private_key"] - pub fn EC_KEY_marshal_private_key( - cbb: *mut CBB, - key: *const EC_KEY, - enc_flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_1536"] + pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_curve_name"] - pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_2048"] + pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_curve_name"] - pub fn EC_KEY_marshal_curve_name( - cbb: *mut CBB, - group: *const EC_GROUP, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_3072"] + pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_parameters"] - pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_4096"] + pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_new_index"] - pub fn EC_KEY_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_6144"] + pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_8192"] + pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters_ex"] + pub fn DH_generate_parameters_ex( + dh: *mut DH, + prime_bits: ::std::os::raw::c_int, + generator: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_ex_data"] - pub fn EC_KEY_set_ex_data( - r: *mut EC_KEY, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_key"] + pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_padded"] + pub fn DH_compute_key_padded( + out: *mut u8, + peers_key: *const BIGNUM, + dh: *mut DH, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_data"] - pub fn EC_KEY_get_ex_data( - r: *const EC_KEY, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_hashed"] + pub fn DH_compute_key_hashed( + dh: *mut DH, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + peers_key: *const BIGNUM, + digest: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_method_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: - ::std::option::Option ::std::os::raw::c_int>, - pub finish: - ::std::option::Option ::std::os::raw::c_int>, - pub group_order_size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - eckey: *mut EC_KEY, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_size"] + pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_ecdsa_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).group_order_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(group_order_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(flags) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_num_bits"] + pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; } -impl Default for ecdsa_method_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_fips_0_13_0_DH_check"] + pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_asn1_flag"] - pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_check_pub_key"] + pub fn DH_check_pub_key( + dh: *const DH, + pub_key: *const BIGNUM, + out_flags: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECPrivateKey"] - pub fn d2i_ECPrivateKey( - out_key: *mut *mut EC_KEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DHparams_dup"] + pub fn DHparams_dup(dh: *const DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey"] - pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_parse_parameters"] + pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECParameters"] - pub fn d2i_ECParameters( - out_key: *mut *mut EC_KEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_marshal_parameters"] + pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECParameters"] - pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters"] + pub fn DH_generate_parameters( + prime_len: ::std::os::raw::c_int, + generator: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_o2i_ECPublicKey"] - pub fn o2i_ECPublicKey( - out_key: *mut *mut EC_KEY, - inp: *mut *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DHparams"] + pub fn d2i_DHparams( + ret: *mut *mut DH, + inp: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut EC_KEY; + ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2o_ECPublicKey"] - pub fn i2o_ECPublicKey( - key: *const EC_KEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams"] + pub fn i2d_DHparams( + in_: *const DH, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key"] - pub fn ECDH_compute_key( - out: *mut ::std::os::raw::c_void, - outlen: usize, - pub_key: *const EC_POINT, - priv_key: *const EC_KEY, - kdf: ::std::option::Option< - unsafe extern "C" fn( - in_: *const ::std::os::raw::c_void, - inlen: usize, - out: *mut ::std::os::raw::c_void, - outlen: *mut usize, - ) -> *mut ::std::os::raw::c_void, - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key"] + pub fn DH_compute_key( + out: *mut u8, + peers_key: *const BIGNUM, + dh: *mut DH, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key_fips"] - pub fn ECDH_compute_key_fips( - out: *mut u8, - out_len: usize, - pub_key: *const EC_POINT, - priv_key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_2048_256"] + pub fn DH_get_2048_256() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign"] - pub fn ECDSA_sign( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_clear_flags"] + pub fn DH_clear_flags(dh: *mut DH, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_verify"] - pub fn ECDSA_verify( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md4"] + pub fn EVP_md4() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_size"] - pub fn ECDSA_size(key: *const EC_KEY) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5"] + pub fn EVP_md5() -> *const EVP_MD; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_sig_st { - pub r: *mut BIGNUM, - pub s: *mut BIGNUM, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ripemd160"] + pub fn EVP_ripemd160() -> *const EVP_MD; } -#[test] -fn bindgen_test_layout_ecdsa_sig_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!(ecdsa_sig_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_sig_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_sig_st), - "::", - stringify!(r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_sig_st), - "::", - stringify!(s) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha1"] + pub fn EVP_sha1() -> *const EVP_MD; } -impl Default for ecdsa_sig_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_fips_0_13_0_EVP_sha224"] + pub fn EVP_sha224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_new"] - pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha256"] + pub fn EVP_sha256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_free"] - pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha384"] + pub fn EVP_sha384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_r"] - pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512"] + pub fn EVP_sha512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_s"] - pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_224"] + pub fn EVP_sha512_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0"] - pub fn ECDSA_SIG_get0( - sig: *const ECDSA_SIG, - out_r: *mut *const BIGNUM, - out_s: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_256"] + pub fn EVP_sha512_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_set0"] - pub fn ECDSA_SIG_set0( - sig: *mut ECDSA_SIG, - r: *mut BIGNUM, - s: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_224"] + pub fn EVP_sha3_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_sign"] - pub fn ECDSA_do_sign( - digest: *const u8, - digest_len: usize, - key: *const EC_KEY, - ) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_256"] + pub fn EVP_sha3_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_verify"] - pub fn ECDSA_do_verify( - digest: *const u8, - digest_len: usize, - sig: *const ECDSA_SIG, - key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_384"] + pub fn EVP_sha3_384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_parse"] - pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_512"] + pub fn EVP_sha3_512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_from_bytes"] - pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake128"] + pub fn EVP_shake128() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_marshal"] - pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake256"] + pub fn EVP_shake256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_to_bytes"] - pub fn ECDSA_SIG_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - sig: *const ECDSA_SIG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_blake2b256"] + pub fn EVP_blake2b256() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5_sha1"] + pub fn EVP_md5_sha1() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbynid"] + pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyobj"] + pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_init"] + pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_new"] + pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanup"] + pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanse"] + pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_free"] + pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy_ex"] + pub fn EVP_MD_CTX_copy_ex( + out: *mut EVP_MD_CTX, + in_: *const EVP_MD_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_max_len"] - pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_move"] + pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] - pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( - digest: *const u8, - digest_len: usize, - eckey: *const EC_KEY, - nonce: *const u8, - nonce_len: usize, - ) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_reset"] + pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECDSA_SIG"] - pub fn d2i_ECDSA_SIG( - out: *mut *mut ECDSA_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit_ex"] + pub fn EVP_DigestInit_ex( + ctx: *mut EVP_MD_CTX, + type_: *const EVP_MD, + engine: *mut ENGINE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECDSA_SIG"] - pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit"] + pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm"] - pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestUpdate"] + pub fn EVP_DigestUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_192_gcm"] - pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal_ex"] + pub fn EVP_DigestFinal_ex( + ctx: *mut EVP_MD_CTX, + md_out: *mut u8, + out_size: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm"] - pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal"] + pub fn EVP_DigestFinal( + ctx: *mut EVP_MD_CTX, + md_out: *mut u8, + out_size: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_chacha20_poly1305"] - pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Digest"] + pub fn EVP_Digest( + data: *const ::std::os::raw::c_void, + len: usize, + md_out: *mut u8, + out_size: *mut ::std::os::raw::c_uint, + type_: *const EVP_MD, + impl_: *mut ENGINE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_xchacha20_poly1305"] - pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_type"] + pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ctr_hmac_sha256"] - pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_flags"] + pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_ctr_hmac_sha256"] - pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_size"] + pub fn EVP_MD_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_siv"] - pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_block_size"] + pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_siv"] - pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_md"] + pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_randnonce"] - pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_size"] + pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_randnonce"] - pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_block_size"] + pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth"] - pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_type"] + pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth_8"] - pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_digest_algorithm"] + pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_matter"] - pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_digest_algorithm"] + pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_has_aes_hardware"] - pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy"] + pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_key_length"] - pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyname"] + pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_nonce_length"] - pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_create"] + pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_overhead"] - pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_destroy"] + pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_tag_len"] - pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinalXOF"] + pub fn EVP_DigestFinalXOF( + ctx: *mut EVP_MD_CTX, + out: *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_meth_get_flags"] + pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_nid"] + pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_pkey_ctx"] + pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); } #[repr(C)] -#[derive(Copy, Clone)] -pub union evp_aead_ctx_st_state { - pub opaque: [u8; 580usize], - pub alignment: u64, - pub ptr: *mut ::std::os::raw::c_void, +#[derive(Debug, Copy, Clone)] +pub struct evp_md_pctx_ops { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct env_md_ctx_st { + pub digest: *const EVP_MD, + pub md_data: *mut ::std::os::raw::c_void, + pub update: ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + count: usize, + ), + >, + pub pctx: *mut EVP_PKEY_CTX, + pub pctx_ops: *const evp_md_pctx_ops, + pub flags: ::std::os::raw::c_ulong, } #[test] -fn bindgen_test_layout_evp_aead_ctx_st_state() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_env_md_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 584usize, - concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(env_md_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(evp_aead_ctx_st_state)) + concat!("Alignment of ", stringify!(env_md_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st_state), + stringify!(env_md_ctx_st), "::", - stringify!(opaque) + stringify!(digest) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_data) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st_state), + stringify!(env_md_ctx_st), "::", - stringify!(alignment) + stringify!(md_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).update) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st_state), + stringify!(env_md_ctx_st), "::", - stringify!(ptr) + stringify!(update) ) ); -} -impl Default for evp_aead_ctx_st_state { - 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(Copy, Clone)] -pub struct evp_aead_ctx_st { - pub aead: *const EVP_AEAD, - pub state: evp_aead_ctx_st_state, - pub state_offset: u8, - pub tag_len: u8, -} -#[test] -fn bindgen_test_layout_evp_aead_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 600usize, - concat!("Size of: ", stringify!(evp_aead_ctx_st)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_aead_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_aead_ctx_st), - "::", - stringify!(aead) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st), + stringify!(env_md_ctx_st), "::", - stringify!(state) + stringify!(pctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, - 592usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st), + stringify!(env_md_ctx_st), "::", - stringify!(state_offset) + stringify!(pctx_ops) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, - 593usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st), + stringify!(env_md_ctx_st), "::", - stringify!(tag_len) + stringify!(flags) ) ); } -impl Default for evp_aead_ctx_st { +impl Default for env_md_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -15336,1147 +14088,1207 @@ impl Default for evp_aead_ctx_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_zero"] - pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_enable"] + pub fn EVP_MD_unstable_sha3_enable(enable: bool); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_new"] - pub fn EVP_AEAD_CTX_new( - aead: *const EVP_AEAD, - key: *const u8, - key_len: usize, - tag_len: usize, - ) -> *mut EVP_AEAD_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_is_enabled"] + pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_free"] - pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_flags"] + pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init"] - pub fn EVP_AEAD_CTX_init( - ctx: *mut EVP_AEAD_CTX, - aead: *const EVP_AEAD, - key: *const u8, - key_len: usize, - tag_len: usize, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_digest"] + pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_cleanup"] - pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md_null"] + pub fn EVP_md_null() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal"] - pub fn EVP_AEAD_CTX_seal( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_new"] + pub fn DSA_new() -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open"] - pub fn EVP_AEAD_CTX_open( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_free"] + pub fn DSA_free(dsa: *mut DSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal_scatter"] - pub fn EVP_AEAD_CTX_seal_scatter( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - out_tag: *mut u8, - out_tag_len: *mut usize, - max_out_tag_len: usize, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - extra_in: *const u8, - extra_in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_up_ref"] + pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open_gather"] - pub fn EVP_AEAD_CTX_open_gather( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - in_tag: *const u8, - in_tag_len: usize, - ad: *const u8, - ad_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print"] + pub fn DSA_print( + bio: *mut BIO, + dsa: *const DSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_aead"] - pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print_fp"] + pub fn DSA_print_fp( + fp: *mut FILE, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls"] - pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_bits"] + pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] - pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pub_key"] + pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls"] - pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_priv_key"] + pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] - pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_p"] + pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls"] - pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_q"] + pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] - pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_g"] + pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls"] - pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_key"] + pub fn DSA_get0_key( + dsa: *const DSA, + out_pub_key: *mut *const BIGNUM, + out_priv_key: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] - pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pqg"] + pub fn DSA_get0_pqg( + dsa: *const DSA, + out_p: *mut *const BIGNUM, + out_q: *mut *const BIGNUM, + out_g: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_null_sha1_tls"] - pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_key"] + pub fn DSA_set0_key( + dsa: *mut DSA, + pub_key: *mut BIGNUM, + priv_key: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls12"] - pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_pqg"] + pub fn DSA_set0_pqg( + dsa: *mut DSA, + p: *mut BIGNUM, + q: *mut BIGNUM, + g: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls12"] - pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_parameters_ex"] + pub fn DSA_generate_parameters_ex( + dsa: *mut DSA, + bits: ::std::os::raw::c_uint, + seed: *const u8, + seed_len: usize, + out_counter: *mut ::std::os::raw::c_int, + out_h: *mut ::std::os::raw::c_ulong, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls13"] - pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSAparams_dup"] + pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls13"] - pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_key"] + pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; } -pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; -pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; -pub type evp_aead_direction_t = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init_with_direction"] - pub fn EVP_AEAD_CTX_init_with_direction( - ctx: *mut EVP_AEAD_CTX, - aead: *const EVP_AEAD, - key: *const u8, - key_len: usize, - tag_len: usize, - dir: evp_aead_direction_t, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct DSA_SIG_st { + pub r: *mut BIGNUM, + pub s: *mut BIGNUM, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_get_iv"] - pub fn EVP_AEAD_CTX_get_iv( - ctx: *const EVP_AEAD_CTX, - out_iv: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_DSA_SIG_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!(DSA_SIG_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(DSA_SIG_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(DSA_SIG_st), + "::", + stringify!(r) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(DSA_SIG_st), + "::", + stringify!(s) + ) + ); +} +impl Default for DSA_SIG_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_fips_0_12_15_EVP_AEAD_CTX_tag_len"] - pub fn EVP_AEAD_CTX_tag_len( - ctx: *const EVP_AEAD_CTX, - out_tag_len: *mut usize, - in_len: usize, - extra_in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_new"] + pub fn DSA_SIG_new() -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_get_iv_from_ipv4_nanosecs"] - pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( - ipv4_address: u32, - nanosecs: u64, - out_iv: *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_free"] + pub fn DSA_SIG_free(sig: *mut DSA_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new"] - pub fn EVP_PKEY_new() -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_get0"] + pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_free"] - pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_set0"] + pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_up_ref"] - pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_sign"] + pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_is_opaque"] - pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_verify"] + pub fn DSA_do_verify( + digest: *const u8, + digest_len: usize, + sig: *mut DSA_SIG, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp"] - pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_check_signature"] + pub fn DSA_do_check_signature( + out_valid: *mut ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *mut DSA_SIG, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_copy_parameters"] - pub fn EVP_PKEY_copy_parameters( - to: *mut EVP_PKEY, - from: *const EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_sign"] + pub fn DSA_sign( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out_sig: *mut u8, + out_siglen: *mut ::std::os::raw::c_uint, + dsa: *const DSA, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_missing_parameters"] - pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_verify"] + pub fn DSA_verify( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_size"] - pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_check_signature"] + pub fn DSA_check_signature( + out_valid: *mut ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_bits"] - pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_size"] + pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_id"] - pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_parse"] + pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_type"] - pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_marshal"] + pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_RSA"] - pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_public_key"] + pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_RSA"] - pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_public_key"] + pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_RSA"] - pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_private_key"] + pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_RSA"] - pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_private_key"] + pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_DSA"] - pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_parameters"] + pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_DSA"] - pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_parameters"] + pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DSA"] - pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_dup_DH"] + pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DSA"] - pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_new_index"] + pub fn DSA_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_fips_0_12_15_EVP_PKEY_set1_EC_KEY"] - pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set_ex_data"] + pub fn DSA_set_ex_data( + dsa: *mut DSA, + 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_fips_0_12_15_EVP_PKEY_assign_EC_KEY"] - pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_data"] + pub fn DSA_get_ex_data( + dsa: *const DSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_EC_KEY"] - pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_SIG"] + pub fn d2i_DSA_SIG( + out_sig: *mut *mut DSA_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_EC_KEY"] - pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_SIG"] + pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign"] - pub fn EVP_PKEY_assign( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - key: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPublicKey"] + pub fn d2i_DSAPublicKey( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set_type"] - pub fn EVP_PKEY_set_type( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPublicKey"] + pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp_parameters"] - pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPrivateKey"] + pub fn d2i_DSAPrivateKey( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_public_key"] - pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPrivateKey"] + pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_public_key"] - pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAparams"] + pub fn d2i_DSAparams( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_private_key"] - pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAparams"] + pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key"] - pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum point_conversion_form_t { + POINT_CONVERSION_COMPRESSED = 2, + POINT_CONVERSION_UNCOMPRESSED = 4, + POINT_CONVERSION_HYBRID = 6, } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key_v2"] - pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p224"] + pub fn EC_group_p224() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_private_key"] - pub fn EVP_PKEY_new_raw_private_key( - type_: ::std::os::raw::c_int, - unused: *mut ENGINE, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p256"] + pub fn EC_group_p256() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_public_key"] - pub fn EVP_PKEY_new_raw_public_key( - type_: ::std::os::raw::c_int, - unused: *mut ENGINE, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p384"] + pub fn EC_group_p384() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_private_key"] - pub fn EVP_PKEY_get_raw_private_key( - pkey: *const EVP_PKEY, - out: *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p521"] + pub fn EC_group_p521() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_public_key"] - pub fn EVP_PKEY_get_raw_public_key( - pkey: *const EVP_PKEY, - out: *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_secp256k1"] + pub fn EC_group_secp256k1() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignInit"] - pub fn EVP_DigestSignInit( - ctx: *mut EVP_MD_CTX, - pctx: *mut *mut EVP_PKEY_CTX, - type_: *const EVP_MD, - e: *mut ENGINE, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_by_curve_name"] + pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignUpdate"] - pub fn EVP_DigestSignUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_cmp"] + pub fn EC_GROUP_cmp( + a: *const EC_GROUP, + b: *const EC_GROUP, + ignored: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignFinal"] - pub fn EVP_DigestSignFinal( - ctx: *mut EVP_MD_CTX, - out_sig: *mut u8, - out_sig_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_generator"] + pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSign"] - pub fn EVP_DigestSign( - ctx: *mut EVP_MD_CTX, - out_sig: *mut u8, - out_sig_len: *mut usize, - data: *const u8, - data_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_order"] + pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyInit"] - pub fn EVP_DigestVerifyInit( - ctx: *mut EVP_MD_CTX, - pctx: *mut *mut EVP_PKEY_CTX, - type_: *const EVP_MD, - e: *mut ENGINE, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_order_bits"] + pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyUpdate"] - pub fn EVP_DigestVerifyUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_cofactor"] + pub fn EC_GROUP_get_cofactor( + group: *const EC_GROUP, + cofactor: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyFinal"] - pub fn EVP_DigestVerifyFinal( - ctx: *mut EVP_MD_CTX, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_GFp"] + pub fn EC_GROUP_get_curve_GFp( + group: *const EC_GROUP, + out_p: *mut BIGNUM, + out_a: *mut BIGNUM, + out_b: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerify"] - pub fn EVP_DigestVerify( - ctx: *mut EVP_MD_CTX, - sig: *const u8, - sig_len: usize, - data: *const u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_name"] + pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit_ex"] - pub fn EVP_SignInit_ex( - ctx: *mut EVP_MD_CTX, - type_: *const EVP_MD, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_degree"] + pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit"] - pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nid2nist"] + pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignUpdate"] - pub fn EVP_SignUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nist2nid"] + pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignFinal"] - pub fn EVP_SignFinal( - ctx: *const EVP_MD_CTX, - sig: *mut u8, - out_sig_len: *mut ::std::os::raw::c_uint, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_new"] + pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit_ex"] - pub fn EVP_VerifyInit_ex( - ctx: *mut EVP_MD_CTX, - type_: *const EVP_MD, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_free"] + pub fn EC_POINT_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit"] - pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_copy"] + pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyUpdate"] - pub fn EVP_VerifyUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dup"] + pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyFinal"] - pub fn EVP_VerifyFinal( - ctx: *mut EVP_MD_CTX, - sig: *const u8, - sig_len: usize, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_to_infinity"] + pub fn EC_POINT_set_to_infinity( + group: *const EC_GROUP, + point: *mut EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_public"] - pub fn EVP_PKEY_print_public( - out: *mut BIO, - pkey: *const EVP_PKEY, - indent: ::std::os::raw::c_int, - pctx: *mut ASN1_PCTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_at_infinity"] + pub fn EC_POINT_is_at_infinity( + group: *const EC_GROUP, + point: *const EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_private"] - pub fn EVP_PKEY_print_private( - out: *mut BIO, - pkey: *const EVP_PKEY, - indent: ::std::os::raw::c_int, - pctx: *mut ASN1_PCTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_on_curve"] + pub fn EC_POINT_is_on_curve( + group: *const EC_GROUP, + point: *const EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_params"] - pub fn EVP_PKEY_print_params( - out: *mut BIO, - pkey: *const EVP_PKEY, - indent: ::std::os::raw::c_int, - pctx: *mut ASN1_PCTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_cmp"] + pub fn EC_POINT_cmp( + group: *const EC_GROUP, + a: *const EC_POINT, + b: *const EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC"] - pub fn PKCS5_PBKDF2_HMAC( - password: *const ::std::os::raw::c_char, - password_len: usize, - salt: *const u8, - salt_len: usize, - iterations: ::std::os::raw::c_uint, - digest: *const EVP_MD, - key_len: usize, - out_key: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates_GFp"] + pub fn EC_POINT_get_affine_coordinates_GFp( + group: *const EC_GROUP, + point: *const EC_POINT, + x: *mut BIGNUM, + y: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC_SHA1"] - pub fn PKCS5_PBKDF2_HMAC_SHA1( - password: *const ::std::os::raw::c_char, - password_len: usize, - salt: *const u8, - salt_len: usize, - iterations: ::std::os::raw::c_uint, - key_len: usize, - out_key: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates"] + pub fn EC_POINT_get_affine_coordinates( + group: *const EC_GROUP, + point: *const EC_POINT, + x: *mut BIGNUM, + y: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PBE_scrypt"] - pub fn EVP_PBE_scrypt( - password: *const ::std::os::raw::c_char, - password_len: usize, - salt: *const u8, - salt_len: usize, - N: u64, - r: u64, - p: u64, - max_mem: usize, - out_key: *mut u8, - key_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates_GFp"] + pub fn EC_POINT_set_affine_coordinates_GFp( + group: *const EC_GROUP, + point: *mut EC_POINT, + x: *const BIGNUM, + y: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new"] - pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new_id"] - pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_free"] - pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_dup"] - pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_pkey"] - pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign_init"] - pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign"] - pub fn EVP_PKEY_sign( - ctx: *mut EVP_PKEY_CTX, - sig: *mut u8, - sig_len: *mut usize, - digest: *const u8, - digest_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates"] + pub fn EC_POINT_set_affine_coordinates( + group: *const EC_GROUP, + point: *mut EC_POINT, + x: *const BIGNUM, + y: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_init"] - pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2oct"] + pub fn EC_POINT_point2oct( + group: *const EC_GROUP, + point: *const EC_POINT, + form: point_conversion_form_t, + buf: *mut u8, + len: usize, + ctx: *mut BN_CTX, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify"] - pub fn EVP_PKEY_verify( - ctx: *mut EVP_PKEY_CTX, - sig: *const u8, - sig_len: usize, - digest: *const u8, - digest_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2cbb"] + pub fn EC_POINT_point2cbb( + out: *mut CBB, + group: *const EC_GROUP, + point: *const EC_POINT, + form: point_conversion_form_t, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt_init"] - pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt"] - pub fn EVP_PKEY_encrypt( - ctx: *mut EVP_PKEY_CTX, - out: *mut u8, - out_len: *mut usize, - in_: *const u8, - in_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_oct2point"] + pub fn EC_POINT_oct2point( + group: *const EC_GROUP, + point: *mut EC_POINT, + buf: *const u8, + len: usize, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt_init"] - pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_compressed_coordinates_GFp"] + pub fn EC_POINT_set_compressed_coordinates_GFp( + group: *const EC_GROUP, + point: *mut EC_POINT, + x: *const BIGNUM, + y_bit: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt"] - pub fn EVP_PKEY_decrypt( - ctx: *mut EVP_PKEY_CTX, - out: *mut u8, - out_len: *mut usize, - in_: *const u8, - in_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_add"] + pub fn EC_POINT_add( + group: *const EC_GROUP, + r: *mut EC_POINT, + a: *const EC_POINT, + b: *const EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover_init"] - pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dbl"] + pub fn EC_POINT_dbl( + group: *const EC_GROUP, + r: *mut EC_POINT, + a: *const EC_POINT, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover"] - pub fn EVP_PKEY_verify_recover( - ctx: *mut EVP_PKEY_CTX, - out: *mut u8, - out_len: *mut usize, - sig: *const u8, - siglen: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_invert"] + pub fn EC_POINT_invert( + group: *const EC_GROUP, + a: *mut EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_init"] - pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_mul"] + pub fn EC_POINT_mul( + group: *const EC_GROUP, + r: *mut EC_POINT, + n: *const BIGNUM, + q: *const EC_POINT, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_set_peer"] - pub fn EVP_PKEY_derive_set_peer( - ctx: *mut EVP_PKEY_CTX, - peer: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p256_xmd_sha256_sswu"] + pub fn EC_hash_to_curve_p256_xmd_sha256_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive"] - pub fn EVP_PKEY_derive( - ctx: *mut EVP_PKEY_CTX, - key: *mut u8, - out_key_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p384_xmd_sha384_sswu"] + pub fn EC_hash_to_curve_p384_xmd_sha384_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen_init"] - pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_free"] + pub fn EC_GROUP_free(group: *mut EC_GROUP); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen"] - pub fn EVP_PKEY_keygen( - ctx: *mut EVP_PKEY_CTX, - out_pkey: *mut *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_dup"] + pub fn EC_GROUP_dup(group: *const EC_GROUP) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encapsulate"] - pub fn EVP_PKEY_encapsulate( - ctx: *mut EVP_PKEY_CTX, - ciphertext: *mut u8, - ciphertext_len: *mut usize, - shared_secret: *mut u8, - shared_secret_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_curve_GFp"] + pub fn EC_GROUP_new_curve_GFp( + p: *const BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decapsulate"] - pub fn EVP_PKEY_decapsulate( - ctx: *mut EVP_PKEY_CTX, - shared_secret: *mut u8, - shared_secret_len: *mut usize, - ciphertext: *mut u8, - ciphertext_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_generator"] + pub fn EC_GROUP_set_generator( + group: *mut EC_GROUP, + generator: *const EC_POINT, + order: *const BIGNUM, + cofactor: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen_init"] - pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2bn"] + pub fn EC_POINT_point2bn( + group: *const EC_GROUP, + point: *const EC_POINT, + form: point_conversion_form_t, + ret: *mut BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen"] - pub fn EVP_PKEY_paramgen( - ctx: *mut EVP_PKEY_CTX, - out_pkey: *mut *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_bn2point"] + pub fn EC_POINT_bn2point( + group: *const EC_GROUP, + bn: *const BIGNUM, + point: *mut EC_POINT, + ctx: *mut BN_CTX, + ) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_signature_md"] - pub fn EVP_PKEY_CTX_set_signature_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_order"] + pub fn EC_GROUP_get_order( + group: *const EC_GROUP, + order: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_signature_md"] - pub fn EVP_PKEY_CTX_get_signature_md( - ctx: *mut EVP_PKEY_CTX, - out_md: *mut *const EVP_MD, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct EC_builtin_curve { + pub nid: ::std::os::raw::c_int, + pub comment: *const ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_padding"] - pub fn EVP_PKEY_CTX_set_rsa_padding( - ctx: *mut EVP_PKEY_CTX, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_EC_builtin_curve() { + 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!(EC_builtin_curve)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(EC_builtin_curve)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).nid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(EC_builtin_curve), + "::", + stringify!(nid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).comment) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(EC_builtin_curve), + "::", + stringify!(comment) + ) + ); +} +impl Default for EC_builtin_curve { + 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_fips_0_12_15_EVP_PKEY_CTX_get_rsa_padding"] - pub fn EVP_PKEY_CTX_get_rsa_padding( - ctx: *mut EVP_PKEY_CTX, - out_padding: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_get_builtin_curves"] + pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) + -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_saltlen"] - pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( - ctx: *mut EVP_PKEY_CTX, - salt_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_clear_free"] + pub fn EC_POINT_clear_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_pss_saltlen"] - pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( - ctx: *mut EVP_PKEY_CTX, - out_salt_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_asn1_flag"] + pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_bits"] - pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( - ctx: *mut EVP_PKEY_CTX, - bits: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_asn1_flag"] + pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] - pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( - ctx: *mut EVP_PKEY_CTX, - e: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_point_conversion_form"] + pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_oaep_md"] - pub fn EVP_PKEY_CTX_set_rsa_oaep_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_seed"] + pub fn EC_GROUP_set_seed( + group: *mut EC_GROUP, + p: *const ::std::os::raw::c_uchar, + len: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_oaep_md"] - pub fn EVP_PKEY_CTX_get_rsa_oaep_md( - ctx: *mut EVP_PKEY_CTX, - out_md: *mut *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_seed"] + pub fn EC_GROUP_get0_seed(group: *const EC_GROUP) -> *mut ::std::os::raw::c_uchar; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_mgf1_md"] - pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_seed_len"] + pub fn EC_GROUP_get_seed_len(group: *const EC_GROUP) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_mgf1_md"] - pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( - ctx: *mut EVP_PKEY_CTX, - out_md: *mut *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECPKParameters_print"] + pub fn ECPKParameters_print( + bio: *mut BIO, + group: *const EC_GROUP, + offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_method_st { + _unused: [u8; 0], +} +pub type EC_METHOD = ec_method_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set0_rsa_oaep_label"] - pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( - ctx: *mut EVP_PKEY_CTX, - label: *mut u8, - label_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_method_of"] + pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_rsa_oaep_label"] - pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( - ctx: *mut EVP_PKEY_CTX, - out_label: *mut *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_METHOD_get_field_type"] + pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] - pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( - ctx: *mut EVP_PKEY_CTX, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_new"] + pub fn ENGINE_new() -> *mut ENGINE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_kem_set_params"] - pub fn EVP_PKEY_CTX_kem_set_params( - ctx: *mut EVP_PKEY_CTX, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_free"] + pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_public_key"] - pub fn EVP_PKEY_kem_new_raw_public_key( - nid: ::std::os::raw::c_int, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_RSA"] + pub fn ENGINE_set_RSA(engine: *mut ENGINE, method: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_secret_key"] - pub fn EVP_PKEY_kem_new_raw_secret_key( - nid: ::std::os::raw::c_int, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_RSA"] + pub fn ENGINE_get_RSA(engine: *const ENGINE) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_key"] - pub fn EVP_PKEY_kem_new_raw_key( - nid: ::std::os::raw::c_int, - in_public: *const u8, - len_public: usize, - in_secret: *const u8, - len_secret: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_EC"] + pub fn ENGINE_set_EC( + engine: *mut ENGINE, + method: *const EC_KEY_METHOD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0"] - pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_EC"] + pub fn ENGINE_get_EC(engine: *const ENGINE) -> *const EC_KEY_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_algorithms"] - pub fn OpenSSL_add_all_algorithms(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_cleanup"] + pub fn ENGINE_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_add_all_algorithms_conf"] - pub fn OPENSSL_add_all_algorithms_conf(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new"] + pub fn EC_KEY_new() -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_ciphers"] - pub fn OpenSSL_add_all_ciphers(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_method"] + pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_digests"] - pub fn OpenSSL_add_all_digests(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_by_curve_name"] + pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cleanup"] - pub fn EVP_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_free"] + pub fn EC_KEY_free(key: *mut EC_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_do_all_sorted"] - pub fn EVP_CIPHER_do_all_sorted( - callback: ::std::option::Option< - unsafe extern "C" fn( - cipher: *const EVP_CIPHER, - name: *const ::std::os::raw::c_char, - unused: *const ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ), - >, - arg: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_dup"] + pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_do_all_sorted"] - pub fn EVP_MD_do_all_sorted( - callback: ::std::option::Option< - unsafe extern "C" fn( - cipher: *const EVP_MD, - name: *const ::std::os::raw::c_char, - unused: *const ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ), - >, - arg: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_up_ref"] + pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PrivateKey"] - pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_is_opaque"] + pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PublicKey"] - pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_group"] + pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey"] - pub fn d2i_PrivateKey( - type_: ::std::os::raw::c_int, - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_group"] + pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AutoPrivateKey"] - pub fn d2i_AutoPrivateKey( - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_private_key"] + pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PublicKey"] - pub fn d2i_PublicKey( - type_: ::std::os::raw::c_int, - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_private_key"] + pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DH"] - pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_public_key"] + pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DH"] - pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key"] + pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_param_enc"] - pub fn EVP_PKEY_CTX_set_ec_param_enc( - ctx: *mut EVP_PKEY_CTX, - encoding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_enc_flags"] + pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_tls_encodedpoint"] - pub fn EVP_PKEY_set1_tls_encodedpoint( - pkey: *mut EVP_PKEY, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_enc_flags"] + pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_tls_encodedpoint"] - pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_conv_form"] + pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_base_id"] - pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_conv_form"] + pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] - pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_key"] + pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] - pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( - ctx: *mut EVP_PKEY_CTX, - salt_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_fips"] + pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] - pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key_affine_coordinates"] + pub fn EC_KEY_set_public_key_affine_coordinates( + key: *mut EC_KEY, + x: *const BIGNUM, + y: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PUBKEY"] - pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_key2buf"] + pub fn EC_KEY_key2buf( + key: *const EC_KEY, + form: point_conversion_form_t, + out_buf: *mut *mut ::std::os::raw::c_uchar, + ctx: *mut BN_CTX, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PUBKEY"] - pub fn d2i_PUBKEY( - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key"] + pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PUBKEY"] - pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key_fips"] + pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PUBKEY"] - pub fn d2i_RSA_PUBKEY( - out: *mut *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_derive_from_secret"] + pub fn EC_KEY_derive_from_secret( + group: *const EC_GROUP, + secret: *const u8, + secret_len: usize, + ) -> *mut EC_KEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_private_key"] + pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_private_key"] + pub fn EC_KEY_marshal_private_key( + cbb: *mut CBB, + key: *const EC_KEY, + enc_flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_curve_name"] + pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_curve_name"] + pub fn EC_KEY_marshal_curve_name( + cbb: *mut CBB, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_parameters"] + pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_ex_new_index"] + pub fn EC_KEY_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_fips_0_13_0_EC_KEY_set_ex_data"] + pub fn EC_KEY_set_ex_data( + r: *mut EC_KEY, + 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_fips_0_13_0_EC_KEY_get_ex_data"] + pub fn EC_KEY_get_ex_data( + r: *const EC_KEY, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPrivateKey"] + pub fn d2i_ECPrivateKey( + out_key: *mut *mut EC_KEY, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut RSA; + ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_PUBKEY"] - pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPrivateKey"] + pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_PUBKEY"] - pub fn d2i_DSA_PUBKEY( - out: *mut *mut DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECParameters"] + pub fn d2i_ECParameters( + out_key: *mut *mut EC_KEY, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut DSA; + ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY"] - pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECParameters"] + pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EC_PUBKEY"] - pub fn d2i_EC_PUBKEY( - out: *mut *mut EC_KEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPKParameters_bio"] + pub fn d2i_ECPKParameters_bio(bio: *mut BIO, out_group: *mut *mut EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPKParameters_bio"] + pub fn i2d_ECPKParameters_bio(bio: *mut BIO, group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_o2i_ECPublicKey"] + pub fn o2i_ECPublicKey( + out_key: *mut *mut EC_KEY, inp: *mut *const u8, len: ::std::os::raw::c_long, ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( - ctx: *mut EVP_PKEY_CTX, - nbits: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2o_ECPublicKey"] + pub fn i2o_ECPublicKey( + key: *const EC_KEY, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( - ctx: *mut EVP_PKEY_CTX, - qbits: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_default_method"] + pub fn EC_KEY_get_default_method() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_OpenSSL"] + pub fn EC_KEY_OpenSSL() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_new"] + pub fn EC_KEY_METHOD_new(eckey_meth: *const EC_KEY_METHOD) -> *mut EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_free"] + pub fn EC_KEY_METHOD_free(eckey_meth: *mut EC_KEY_METHOD); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_method"] + pub fn EC_KEY_set_method(ec: *mut EC_KEY, meth: *const EC_KEY_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_method"] + pub fn EC_KEY_get_method(ec: *const EC_KEY) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_sign_awslc"] + pub fn EC_KEY_METHOD_set_sign_awslc( + meth: *mut EC_KEY_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: ::std::os::raw::c_int, + sig: *mut u8, + siglen: *mut ::std::os::raw::c_uint, + k_inv: *const BIGNUM, + r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> ::std::os::raw::c_int, + >, + sign_sig: ::std::option::Option< + unsafe extern "C" fn( + digest: *const u8, + digest_len: ::std::os::raw::c_int, + in_kinv: *const BIGNUM, + in_r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> *mut ECDSA_SIG, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_init_awslc"] + pub fn EC_KEY_METHOD_set_init_awslc( + meth: *mut EC_KEY_METHOD, + init: ::std::option::Option< + unsafe extern "C" fn(key: *mut EC_KEY) -> ::std::os::raw::c_int, + >, + finish: ::std::option::Option, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_flags"] + pub fn EC_KEY_METHOD_set_flags( + meth: *mut EC_KEY_METHOD, + flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_pkey_st { - pub references: CRYPTO_refcount_t, - pub type_: ::std::os::raw::c_int, - pub pkey: evp_pkey_st__bindgen_ty_1, - pub ameth: *const EVP_PKEY_ASN1_METHOD, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_asn1_flag"] + pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key"] + pub fn ECDH_compute_key( + out: *mut ::std::os::raw::c_void, + outlen: usize, + pub_key: *const EC_POINT, + priv_key: *const EC_KEY, + kdf: ::std::option::Option< + unsafe extern "C" fn( + in_: *const ::std::os::raw::c_void, + inlen: usize, + out: *mut ::std::os::raw::c_void, + outlen: *mut usize, + ) -> *mut ::std::os::raw::c_void, + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key_fips"] + pub fn ECDH_compute_key_fips( + out: *mut u8, + out_len: usize, + pub_key: *const EC_POINT, + priv_key: *const EC_KEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign"] + pub fn ECDSA_sign( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *mut u8, + sig_len: *mut ::std::os::raw::c_uint, + key: *const EC_KEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_verify"] + pub fn ECDSA_verify( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + key: *const EC_KEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_size"] + pub fn ECDSA_size(key: *const EC_KEY) -> usize; } #[repr(C)] -#[derive(Copy, Clone)] -pub union evp_pkey_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_void, - pub rsa: *mut RSA, - pub dsa: *mut DSA, - pub dh: *mut DH, - pub ec: *mut EC_KEY, - pub kem_key: *mut KEM_KEY, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ecdsa_sig_st { + pub r: *mut BIGNUM, + pub s: *mut BIGNUM, } #[test] -fn bindgen_test_layout_evp_pkey_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ecdsa_sig_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!(evp_pkey_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(ecdsa_sig_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(rsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dh) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dh) - ) + concat!("Alignment of ", stringify!(ecdsa_sig_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ec) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), + stringify!(ecdsa_sig_st), "::", - stringify!(ec) + stringify!(r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem_key) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), + stringify!(ecdsa_sig_st), "::", - stringify!(kem_key) + stringify!(s) ) ); } -impl Default for evp_pkey_st__bindgen_ty_1 { +impl Default for ecdsa_sig_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16485,207 +15297,303 @@ impl Default for evp_pkey_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_evp_pkey_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!(evp_pkey_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ameth) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(ameth) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_new"] + pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_free"] + pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_r"] + pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_s"] + pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0"] + pub fn ECDSA_SIG_get0( + sig: *const ECDSA_SIG, + out_r: *mut *const BIGNUM, + out_s: *mut *const BIGNUM, ); } -impl Default for evp_pkey_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_fips_0_13_0_ECDSA_SIG_set0"] + pub fn ECDSA_SIG_set0( + sig: *mut ECDSA_SIG, + r: *mut BIGNUM, + s: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF"] - pub fn HKDF( - out_key: *mut u8, - out_len: usize, - digest: *const EVP_MD, - secret: *const u8, - secret_len: usize, - salt: *const u8, - salt_len: usize, - info: *const u8, - info_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_sign"] + pub fn ECDSA_do_sign( + digest: *const u8, + digest_len: usize, + key: *const EC_KEY, + ) -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_verify"] + pub fn ECDSA_do_verify( + digest: *const u8, + digest_len: usize, + sig: *const ECDSA_SIG, + key: *const EC_KEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_extract"] - pub fn HKDF_extract( - out_key: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_parse"] + pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_from_bytes"] + pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_marshal"] + pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_to_bytes"] + pub fn ECDSA_SIG_to_bytes( + out_bytes: *mut *mut u8, out_len: *mut usize, - digest: *const EVP_MD, - secret: *const u8, - secret_len: usize, - salt: *const u8, - salt_len: usize, + sig: *const ECDSA_SIG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_expand"] - pub fn HKDF_expand( - out_key: *mut u8, - out_len: usize, - digest: *const EVP_MD, - prk: *const u8, - prk_len: usize, - info: *const u8, - info_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_max_len"] + pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Init"] - pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] + pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( + digest: *const u8, + digest_len: usize, + eckey: *const EC_KEY, + nonce: *const u8, + nonce_len: usize, + ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Update"] - pub fn MD5_Update( - md5: *mut MD5_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECDSA_SIG"] + pub fn d2i_ECDSA_SIG( + out: *mut *mut ECDSA_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Final"] - pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECDSA_SIG"] + pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5"] - pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm"] + pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Transform"] - pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_192_gcm"] + pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm"] + pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_chacha20_poly1305"] + pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_xchacha20_poly1305"] + pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ctr_hmac_sha256"] + pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_ctr_hmac_sha256"] + pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_siv"] + pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_siv"] + pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_randnonce"] + pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_randnonce"] + pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth"] + pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth_8"] + pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_matter"] + pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_has_aes_hardware"] + pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_key_length"] + pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_nonce_length"] + pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_overhead"] + pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_tag_len"] + pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct md5_state_st { - pub h: [u32; 4usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +#[derive(Copy, Clone)] +pub union evp_aead_ctx_st_state { + pub opaque: [u8; 564usize], + pub alignment: u64, + pub ptr: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_md5_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_aead_ctx_st_state() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 92usize, - concat!("Size of: ", stringify!(md5_state_st)) + ::std::mem::size_of::(), + 568usize, + concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(md5_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st_state), "::", - stringify!(h) + stringify!(opaque) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st_state), "::", - stringify!(Nl) + stringify!(alignment) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st_state), "::", - stringify!(Nh) + stringify!(ptr) ) ); +} +impl Default for evp_aead_ctx_st_state { + 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(Copy, Clone)] +pub struct evp_aead_ctx_st { + pub aead: *const EVP_AEAD, + pub state: evp_aead_ctx_st_state, + pub state_offset: u8, + pub tag_len: u8, +} +#[test] +fn bindgen_test_layout_evp_aead_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 584usize, + concat!("Size of: ", stringify!(evp_aead_ctx_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 24usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_aead_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st), "::", - stringify!(data) + stringify!(aead) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 88usize, + unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st), "::", - stringify!(num) + stringify!(state) ) ); -} -impl Default for md5_state_st { + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, + 576usize, + concat!( + "Offset of field: ", + stringify!(evp_aead_ctx_st), + "::", + stringify!(state_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, + 577usize, + concat!( + "Offset of field: ", + stringify!(evp_aead_ctx_st), + "::", + stringify!(tag_len) + ) + ); +} +impl Default for evp_aead_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16695,256 +15603,359 @@ impl Default for md5_state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC"] - pub fn HMAC( - evp_md: *const EVP_MD, - key: *const ::std::os::raw::c_void, - key_len: usize, - data: *const u8, - data_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_zero"] + pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_init"] - pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_new"] + pub fn EVP_AEAD_CTX_new( + aead: *const EVP_AEAD, + key: *const u8, + key_len: usize, + tag_len: usize, + ) -> *mut EVP_AEAD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_new"] - pub fn HMAC_CTX_new() -> *mut HMAC_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_free"] + pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanup"] - pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init"] + pub fn EVP_AEAD_CTX_init( + ctx: *mut EVP_AEAD_CTX, + aead: *const EVP_AEAD, + key: *const u8, + key_len: usize, + tag_len: usize, + impl_: *mut ENGINE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanse"] - pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_cleanup"] + pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_free"] - pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal"] + pub fn EVP_AEAD_CTX_seal( + ctx: *const EVP_AEAD_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init_ex"] - pub fn HMAC_Init_ex( - ctx: *mut HMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, - md: *const EVP_MD, - impl_: *mut ENGINE, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open"] + pub fn EVP_AEAD_CTX_open( + ctx: *const EVP_AEAD_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Update"] - pub fn HMAC_Update( - ctx: *mut HMAC_CTX, - data: *const u8, - data_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal_scatter"] + pub fn EVP_AEAD_CTX_seal_scatter( + ctx: *const EVP_AEAD_CTX, + out: *mut u8, + out_tag: *mut u8, + out_tag_len: *mut usize, + max_out_tag_len: usize, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + extra_in: *const u8, + extra_in_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Final"] - pub fn HMAC_Final( - ctx: *mut HMAC_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open_gather"] + pub fn EVP_AEAD_CTX_open_gather( + ctx: *const EVP_AEAD_CTX, out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + in_tag: *const u8, + in_tag_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_size"] - pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_aead"] + pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_get_md"] - pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls"] + pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy_ex"] - pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] + pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_reset"] - pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls"] + pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init"] - pub fn HMAC_Init( - ctx: *mut HMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: ::std::os::raw::c_int, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] + pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy"] - pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls"] + pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hmac_methods_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] + pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; } -pub type HmacMethods = hmac_methods_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub union md_ctx_union { - pub md5: MD5_CTX, - pub sha1: SHA_CTX, - pub sha256: SHA256_CTX, - pub sha512: SHA512_CTX, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha384_tls"] + pub fn EVP_aead_aes_256_cbc_sha384_tls() -> *const EVP_AEAD; } -#[test] -fn bindgen_test_layout_md_ctx_union() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(md_ctx_union)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(md_ctx_union)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md5) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(md5) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sha1) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(sha1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sha256) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(sha256) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sha512) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(sha512) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls"] + pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; } -impl Default for md_ctx_union { - 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_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] + pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct hmac_ctx_st { - pub md: *const EVP_MD, - pub methods: *const HmacMethods, - pub md_ctx: md_ctx_union, - pub i_ctx: md_ctx_union, - pub o_ctx: md_ctx_union, - pub state: i8, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_null_sha1_tls"] + pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; } -#[test] -fn bindgen_test_layout_hmac_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 672usize, - concat!("Size of: ", stringify!(hmac_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hmac_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(hmac_ctx_st), - "::", - stringify!(md) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).methods) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(hmac_ctx_st), - "::", - stringify!(methods) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_ctx) as usize - ptr as usize }, - 16usize, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls12"] + pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls12"] + pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls13"] + pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls13"] + pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; +} +pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; +pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; +pub type evp_aead_direction_t = ::std::os::raw::c_uint; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init_with_direction"] + pub fn EVP_AEAD_CTX_init_with_direction( + ctx: *mut EVP_AEAD_CTX, + aead: *const EVP_AEAD, + key: *const u8, + key_len: usize, + tag_len: usize, + dir: evp_aead_direction_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_get_iv"] + pub fn EVP_AEAD_CTX_get_iv( + ctx: *const EVP_AEAD_CTX, + out_iv: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_tag_len"] + pub fn EVP_AEAD_CTX_tag_len( + ctx: *const EVP_AEAD_CTX, + out_tag_len: *mut usize, + in_len: usize, + extra_in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_get_iv_from_ipv4_nanosecs"] + pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( + ipv4_address: u32, + nanosecs: u64, + out_iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_dup"] + pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cmp"] + pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get0_data"] + pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_length"] + pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2nid"] + pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cbs2nid"] + pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_sn2nid"] + pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_ln2nid"] + pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2nid"] + pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2obj"] + pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get_undef"] + pub fn OBJ_get_undef() -> *const ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2sn"] + pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2ln"] + pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2cbb"] + pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2obj"] + pub fn OBJ_txt2obj( + s: *const ::std::os::raw::c_char, + dont_search_names: ::std::os::raw::c_int, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2txt"] + pub fn OBJ_obj2txt( + out: *mut ::std::os::raw::c_char, + out_len: ::std::os::raw::c_int, + obj: *const ASN1_OBJECT, + always_return_oid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_create"] + pub fn OBJ_create( + oid: *const ::std::os::raw::c_char, + short_name: *const ::std::os::raw::c_char, + long_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_algs"] + pub fn OBJ_find_sigid_algs( + sign_nid: ::std::os::raw::c_int, + out_digest_nid: *mut ::std::os::raw::c_int, + out_pkey_nid: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_by_algs"] + pub fn OBJ_find_sigid_by_algs( + out_sign_nid: *mut ::std::os::raw::c_int, + digest_nid: ::std::os::raw::c_int, + pkey_nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct obj_name_st { + pub type_: ::std::os::raw::c_int, + pub alias: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub data: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_obj_name_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!(obj_name_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(obj_name_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(md_ctx) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i_ctx) as usize - ptr as usize }, - 232usize, + unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(i_ctx) + stringify!(alias) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).o_ctx) as usize - ptr as usize }, - 448usize, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(o_ctx) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, - 664usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(state) + stringify!(data) ) ); } -impl Default for hmac_ctx_st { +impl Default for obj_name_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16953,1924 +15964,1322 @@ impl Default for hmac_ctx_st { } } } +pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_x25519_hkdf_sha256"] - pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_NAME_do_all_sorted"] + pub fn OBJ_NAME_do_all_sorted( + type_: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn(arg1: *const OBJ_NAME, arg: *mut ::std::os::raw::c_void), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_id"] - pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cleanup"] + pub fn OBJ_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_public_key_len"] - pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new"] + pub fn EVP_PKEY_new() -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_private_key_len"] - pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_free"] + pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_enc_len"] - pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_up_ref"] + pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_hkdf_sha256"] - pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_is_opaque"] + pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_id"] - pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp"] + pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_hkdf_md"] - pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_copy_parameters"] + pub fn EVP_PKEY_copy_parameters( + to: *mut EVP_PKEY, + from: *const EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_128_gcm"] - pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_missing_parameters"] + pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_256_gcm"] - pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_size"] + pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_chacha20_poly1305"] - pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_bits"] + pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_id"] - pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_id"] + pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_aead"] - pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_type"] + pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_zero"] - pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get0_name"] + pub fn EVP_MD_get0_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_cleanup"] - pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_name"] + pub fn EVP_MD_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_new"] - pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_RSA"] + pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_free"] - pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_RSA"] + pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_copy"] - pub fn EVP_HPKE_KEY_copy( - dst: *mut EVP_HPKE_KEY, - src: *const EVP_HPKE_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_RSA"] + pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_init"] - pub fn EVP_HPKE_KEY_init( - key: *mut EVP_HPKE_KEY, - kem: *const EVP_HPKE_KEM, - priv_key: *const u8, - priv_key_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_RSA"] + pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_generate"] - pub fn EVP_HPKE_KEY_generate( - key: *mut EVP_HPKE_KEY, - kem: *const EVP_HPKE_KEM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DSA"] + pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_kem"] - pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DSA"] + pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_public_key"] - pub fn EVP_HPKE_KEY_public_key( - key: *const EVP_HPKE_KEY, - out: *mut u8, - out_len: *mut usize, - max_out: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DSA"] + pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_private_key"] - pub fn EVP_HPKE_KEY_private_key( - key: *const EVP_HPKE_KEY, - out: *mut u8, - out_len: *mut usize, - max_out: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DSA"] + pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_zero"] - pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_EC_KEY"] + pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_cleanup"] - pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_EC_KEY"] + pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_new"] - pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_EC_KEY"] + pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_free"] - pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_EC_KEY"] + pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender"] - pub fn EVP_HPKE_CTX_setup_sender( - ctx: *mut EVP_HPKE_CTX, - out_enc: *mut u8, - out_enc_len: *mut usize, - max_enc: usize, - kem: *const EVP_HPKE_KEM, - kdf: *const EVP_HPKE_KDF, - aead: *const EVP_HPKE_AEAD, - peer_public_key: *const u8, - peer_public_key_len: usize, - info: *const u8, - info_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DH"] + pub fn EVP_PKEY_set1_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] - pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( - ctx: *mut EVP_HPKE_CTX, - out_enc: *mut u8, - out_enc_len: *mut usize, - max_enc: usize, - kem: *const EVP_HPKE_KEM, - kdf: *const EVP_HPKE_KDF, - aead: *const EVP_HPKE_AEAD, - peer_public_key: *const u8, - peer_public_key_len: usize, - info: *const u8, - info_len: usize, - seed: *const u8, - seed_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DH"] + pub fn EVP_PKEY_assign_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_recipient"] - pub fn EVP_HPKE_CTX_setup_recipient( - ctx: *mut EVP_HPKE_CTX, - key: *const EVP_HPKE_KEY, - kdf: *const EVP_HPKE_KDF, - aead: *const EVP_HPKE_AEAD, - enc: *const u8, - enc_len: usize, - info: *const u8, - info_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DH"] + pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DH"] + pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set_type"] + pub fn EVP_PKEY_set_type( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_open"] - pub fn EVP_HPKE_CTX_open( - ctx: *mut EVP_HPKE_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp_parameters"] + pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_public_key"] + pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_public_key"] + pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_private_key"] + pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key"] + pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key_v2"] + pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_private_key"] + pub fn EVP_PKEY_new_raw_private_key( + type_: ::std::os::raw::c_int, + unused: *mut ENGINE, in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_seal"] - pub fn EVP_HPKE_CTX_seal( - ctx: *mut EVP_HPKE_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_public_key"] + pub fn EVP_PKEY_new_raw_public_key( + type_: ::std::os::raw::c_int, + unused: *mut ENGINE, + in_: *const u8, + len: usize, + ) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_private_key"] + pub fn EVP_PKEY_get_raw_private_key( + pkey: *const EVP_PKEY, out: *mut u8, out_len: *mut usize, - max_out_len: usize, - in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_export"] - pub fn EVP_HPKE_CTX_export( - ctx: *const EVP_HPKE_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_public_key"] + pub fn EVP_PKEY_get_raw_public_key( + pkey: *const EVP_PKEY, out: *mut u8, - secret_len: usize, - context: *const u8, - context_len: usize, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_max_overhead"] - pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignInit"] + pub fn EVP_DigestSignInit( + ctx: *mut EVP_MD_CTX, + pctx: *mut *mut EVP_PKEY_CTX, + type_: *const EVP_MD, + e: *mut ENGINE, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kem"] - pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignUpdate"] + pub fn EVP_DigestSignUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_aead"] - pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignFinal"] + pub fn EVP_DigestSignFinal( + ctx: *mut EVP_MD_CTX, + out_sig: *mut u8, + out_sig_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kdf"] - pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSign"] + pub fn EVP_DigestSign( + ctx: *mut EVP_MD_CTX, + out_sig: *mut u8, + out_sig_len: *mut usize, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_hpke_ctx_st { - pub kem: *const EVP_HPKE_KEM, - pub aead: *const EVP_HPKE_AEAD, - pub kdf: *const EVP_HPKE_KDF, - pub aead_ctx: EVP_AEAD_CTX, - pub base_nonce: [u8; 24usize], - pub exporter_secret: [u8; 64usize], - pub seq: u64, - pub is_sender: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyInit"] + pub fn EVP_DigestVerifyInit( + ctx: *mut EVP_MD_CTX, + pctx: *mut *mut EVP_PKEY_CTX, + type_: *const EVP_MD, + e: *mut ENGINE, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_evp_hpke_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 728usize, - concat!("Size of: ", stringify!(evp_hpke_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_hpke_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(kem) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(aead) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kdf) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(kdf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).aead_ctx) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(aead_ctx) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, - 624usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(base_nonce) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, - 648usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(exporter_secret) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, - 712usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(seq) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, - 720usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(is_sender) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyUpdate"] + pub fn EVP_DigestVerifyUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -impl Default for evp_hpke_ctx_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 evp_hpke_key_st { - pub kem: *const EVP_HPKE_KEM, - pub private_key: [u8; 32usize], - pub public_key: [u8; 32usize], -} -#[test] -fn bindgen_test_layout_evp_hpke_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 72usize, - concat!("Size of: ", stringify!(evp_hpke_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_hpke_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_key_st), - "::", - stringify!(kem) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_key) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_key_st), - "::", - stringify!(private_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).public_key) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_key_st), - "::", - stringify!(public_key) - ) - ); -} -impl Default for evp_hpke_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 HRSS_private_key { - pub opaque: [u8; 1808usize], -} -#[test] -fn bindgen_test_layout_HRSS_private_key() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 1808usize, - concat!("Size of: ", stringify!(HRSS_private_key)) - ); - assert_eq!( - ::std::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(HRSS_private_key)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HRSS_private_key), - "::", - stringify!(opaque) - ) - ); -} -impl Default for HRSS_private_key { - 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_fips_0_13_0_EVP_DigestVerifyFinal"] + pub fn EVP_DigestVerifyFinal( + ctx: *mut EVP_MD_CTX, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct HRSS_public_key { - pub opaque: [u8; 1424usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerify"] + pub fn EVP_DigestVerify( + ctx: *mut EVP_MD_CTX, + sig: *const u8, + sig_len: usize, + data: *const u8, + len: usize, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_HRSS_public_key() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 1424usize, - concat!("Size of: ", stringify!(HRSS_public_key)) - ); - assert_eq!( - ::std::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(HRSS_public_key)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HRSS_public_key), - "::", - stringify!(opaque) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignInit_ex"] + pub fn EVP_SignInit_ex( + ctx: *mut EVP_MD_CTX, + type_: *const EVP_MD, + impl_: *mut ENGINE, + ) -> ::std::os::raw::c_int; } -impl Default for HRSS_public_key { - 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_fips_0_13_0_EVP_SignInit"] + pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_generate_key"] - pub fn HRSS_generate_key( - out_pub: *mut HRSS_public_key, - out_priv: *mut HRSS_private_key, - input: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignUpdate"] + pub fn EVP_SignUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_encap"] - pub fn HRSS_encap( - out_ciphertext: *mut u8, - out_shared_key: *mut u8, - in_pub: *const HRSS_public_key, - in_: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignFinal"] + pub fn EVP_SignFinal( + ctx: *const EVP_MD_CTX, + sig: *mut u8, + out_sig_len: *mut ::std::os::raw::c_uint, + pkey: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_decap"] - pub fn HRSS_decap( - out_shared_key: *mut u8, - in_priv: *const HRSS_private_key, - ciphertext: *const u8, - ciphertext_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit_ex"] + pub fn EVP_VerifyInit_ex( + ctx: *mut EVP_MD_CTX, + type_: *const EVP_MD, + impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_marshal_public_key"] - pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit"] + pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_parse_public_key"] - pub fn HRSS_parse_public_key( - out: *mut HRSS_public_key, - in_: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyUpdate"] + pub fn EVP_VerifyUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Init"] - pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyFinal"] + pub fn EVP_VerifyFinal( + ctx: *mut EVP_MD_CTX, + sig: *const u8, + sig_len: usize, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Update"] - pub fn MD4_Update( - md4: *mut MD4_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_public"] + pub fn EVP_PKEY_print_public( + out: *mut BIO, + pkey: *const EVP_PKEY, + indent: ::std::os::raw::c_int, + pctx: *mut ASN1_PCTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Final"] - pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_private"] + pub fn EVP_PKEY_print_private( + out: *mut BIO, + pkey: *const EVP_PKEY, + indent: ::std::os::raw::c_int, + pctx: *mut ASN1_PCTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4"] - pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_params"] + pub fn EVP_PKEY_print_params( + out: *mut BIO, + pkey: *const EVP_PKEY, + indent: ::std::os::raw::c_int, + pctx: *mut ASN1_PCTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Transform"] - pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC"] + pub fn PKCS5_PBKDF2_HMAC( + password: *const ::std::os::raw::c_char, + password_len: usize, + salt: *const u8, + salt_len: usize, + iterations: u32, + digest: *const EVP_MD, + key_len: usize, + out_key: *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct md4_state_st { - pub h: [u32; 4usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC_SHA1"] + pub fn PKCS5_PBKDF2_HMAC_SHA1( + password: *const ::std::os::raw::c_char, + password_len: usize, + salt: *const u8, + salt_len: usize, + iterations: u32, + key_len: usize, + out_key: *mut u8, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_md4_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 92usize, - concat!("Size of: ", stringify!(md4_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(md4_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(Nl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(Nh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(num) - ) - ); -} -impl Default for md4_state_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_fips_0_13_0_EVP_PBE_scrypt"] + pub fn EVP_PBE_scrypt( + password: *const ::std::os::raw::c_char, + password_len: usize, + salt: *const u8, + salt_len: usize, + N: u64, + r: u64, + p: u64, + max_mem: usize, + out_key: *mut u8, + key_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_dup"] - pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new"] + pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cmp"] - pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new_id"] + pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_get0_data"] - pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_free"] + pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_length"] - pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_dup"] + pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2nid"] - pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_pkey"] + pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cbs2nid"] - pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign_init"] + pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_sn2nid"] - pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign"] + pub fn EVP_PKEY_sign( + ctx: *mut EVP_PKEY_CTX, + sig: *mut u8, + sig_len: *mut usize, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_ln2nid"] - pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_init"] + pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2nid"] - pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify"] + pub fn EVP_PKEY_verify( + ctx: *mut EVP_PKEY_CTX, + sig: *const u8, + sig_len: usize, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2obj"] - pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt_init"] + pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2sn"] - pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt"] + pub fn EVP_PKEY_encrypt( + ctx: *mut EVP_PKEY_CTX, + out: *mut u8, + out_len: *mut usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2ln"] - pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt_init"] + pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2cbb"] - pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt"] + pub fn EVP_PKEY_decrypt( + ctx: *mut EVP_PKEY_CTX, + out: *mut u8, + out_len: *mut usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2obj"] - pub fn OBJ_txt2obj( - s: *const ::std::os::raw::c_char, - dont_search_names: ::std::os::raw::c_int, - ) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover_init"] + pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2txt"] - pub fn OBJ_obj2txt( - out: *mut ::std::os::raw::c_char, - out_len: ::std::os::raw::c_int, - obj: *const ASN1_OBJECT, - always_return_oid: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover"] + pub fn EVP_PKEY_verify_recover( + ctx: *mut EVP_PKEY_CTX, + out: *mut u8, + out_len: *mut usize, + sig: *const u8, + siglen: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_create"] - pub fn OBJ_create( - oid: *const ::std::os::raw::c_char, - short_name: *const ::std::os::raw::c_char, - long_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_init"] + pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_algs"] - pub fn OBJ_find_sigid_algs( - sign_nid: ::std::os::raw::c_int, - out_digest_nid: *mut ::std::os::raw::c_int, - out_pkey_nid: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_set_peer"] + pub fn EVP_PKEY_derive_set_peer( + ctx: *mut EVP_PKEY_CTX, + peer: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_by_algs"] - pub fn OBJ_find_sigid_by_algs( - out_sign_nid: *mut ::std::os::raw::c_int, - digest_nid: ::std::os::raw::c_int, - pkey_nid: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive"] + pub fn EVP_PKEY_derive( + ctx: *mut EVP_PKEY_CTX, + key: *mut u8, + out_key_len: *mut usize, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct obj_name_st { - pub type_: ::std::os::raw::c_int, - pub alias: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub data: *const ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_obj_name_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!(obj_name_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(obj_name_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(alias) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(data) - ) - ); -} -impl Default for obj_name_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_fips_0_13_0_EVP_PKEY_keygen_init"] + pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } -pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cleanup"] - pub fn OBJ_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_keygen"] + pub fn EVP_PKEY_keygen( + ctx: *mut EVP_PKEY_CTX, + out_pkey: *mut *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_CRYPTO_BUFFER { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encapsulate"] + pub fn EVP_PKEY_encapsulate( + ctx: *mut EVP_PKEY_CTX, + ciphertext: *mut u8, + ciphertext_len: *mut usize, + shared_secret: *mut u8, + shared_secret_len: *mut usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509 { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decapsulate"] + pub fn EVP_PKEY_decapsulate( + ctx: *mut EVP_PKEY_CTX, + shared_secret: *mut u8, + shared_secret_len: *mut usize, + ciphertext: *const u8, + ciphertext_len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_CRL { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen_init"] + pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_raw_certificates"] - pub fn PKCS7_get_raw_certificates( - out_certs: *mut stack_st_CRYPTO_BUFFER, - cbs: *mut CBS, - pool: *mut CRYPTO_BUFFER_POOL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen"] + pub fn EVP_PKEY_paramgen( + ctx: *mut EVP_PKEY_CTX, + out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_certificates"] - pub fn PKCS7_get_certificates( - out_certs: *mut stack_st_X509, - cbs: *mut CBS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_signature_md"] + pub fn EVP_PKEY_CTX_set_signature_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_raw_certificates"] - pub fn PKCS7_bundle_raw_certificates( - out: *mut CBB, - certs: *const stack_st_CRYPTO_BUFFER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_signature_md"] + pub fn EVP_PKEY_CTX_get_signature_md( + ctx: *mut EVP_PKEY_CTX, + out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_certificates"] - pub fn PKCS7_bundle_certificates( - out: *mut CBB, - certs: *const stack_st_X509, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_padding"] + pub fn EVP_PKEY_CTX_set_rsa_padding( + ctx: *mut EVP_PKEY_CTX, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_CRLs"] - pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_padding"] + pub fn EVP_PKEY_CTX_get_rsa_padding( + ctx: *mut EVP_PKEY_CTX, + out_padding: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_CRLs"] - pub fn PKCS7_bundle_CRLs( - out: *mut CBB, - crls: *const stack_st_X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_saltlen"] + pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( + ctx: *mut EVP_PKEY_CTX, + salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_certificates"] - pub fn PKCS7_get_PEM_certificates( - out_certs: *mut stack_st_X509, - pem_bio: *mut BIO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_pss_saltlen"] + pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( + ctx: *mut EVP_PKEY_CTX, + out_salt_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_CRLs"] - pub fn PKCS7_get_PEM_CRLs( - out_crls: *mut stack_st_X509_CRL, - pem_bio: *mut BIO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_bits"] + pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( + ctx: *mut EVP_PKEY_CTX, + bits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGNED { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] + pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( + ctx: *mut EVP_PKEY_CTX, + e: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_PKCS7_SIGNED() { - 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!(PKCS7_SIGNED)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGNED)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(crl) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_oaep_md"] + pub fn EVP_PKEY_CTX_set_rsa_oaep_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -impl Default for PKCS7_SIGNED { - 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_fips_0_13_0_EVP_PKEY_CTX_get_rsa_oaep_md"] + pub fn EVP_PKEY_CTX_get_rsa_oaep_md( + ctx: *mut EVP_PKEY_CTX, + out_md: *mut *const EVP_MD, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGN_ENVELOPE { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_mgf1_md"] + pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_PKCS7_SIGN_ENVELOPE() { - 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!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(crl) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_mgf1_md"] + pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( + ctx: *mut EVP_PKEY_CTX, + out_md: *mut *const EVP_MD, + ) -> ::std::os::raw::c_int; } -impl Default for PKCS7_SIGN_ENVELOPE { - 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_fips_0_13_0_EVP_PKEY_CTX_set0_rsa_oaep_label"] + pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( + ctx: *mut EVP_PKEY_CTX, + label: *mut u8, + label_len: usize, + ) -> ::std::os::raw::c_int; } -pub type PKCS7_ENVELOPE = ::std::os::raw::c_void; -pub type PKCS7_DIGEST = ::std::os::raw::c_void; -pub type PKCS7_ENCRYPT = ::std::os::raw::c_void; -pub type PKCS7_SIGNER_INFO = ::std::os::raw::c_void; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct PKCS7 { - pub ber_bytes: *mut u8, - pub ber_len: usize, - pub type_: *mut ASN1_OBJECT, - pub d: PKCS7__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_rsa_oaep_label"] + pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( + ctx: *mut EVP_PKEY_CTX, + out_label: *mut *const u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union PKCS7__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub data: *mut ASN1_OCTET_STRING, - pub sign: *mut PKCS7_SIGNED, - pub enveloped: *mut PKCS7_ENVELOPE, - pub signed_and_enveloped: *mut PKCS7_SIGN_ENVELOPE, - pub digest: *mut PKCS7_DIGEST, - pub encrypted: *mut PKCS7_ENCRYPT, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_PKCS7__bindgen_ty_1() { - 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!(PKCS7__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enveloped) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(enveloped) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signed_and_enveloped) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(signed_and_enveloped) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(digest) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypted) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(encrypted) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(other) - ) - ); -} -impl Default for PKCS7__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_PKCS7() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(PKCS7)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7), - "::", - stringify!(ber_bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7), - "::", - stringify!(ber_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(PKCS7), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(PKCS7), "::", stringify!(d)) - ); -} -impl Default for PKCS7 { - 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_fips_0_13_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] + pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( + ctx: *mut EVP_PKEY_CTX, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7"] - pub fn d2i_PKCS7(out: *mut *mut PKCS7, inp: *mut *const u8, len: usize) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_kem_set_params"] + pub fn EVP_PKEY_CTX_kem_set_params( + ctx: *mut EVP_PKEY_CTX, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7_bio"] - pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_public_key"] + pub fn EVP_PKEY_kem_new_raw_public_key( + nid: ::std::os::raw::c_int, + in_: *const u8, + len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7"] - pub fn i2d_PKCS7(p7: *const PKCS7, out: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_secret_key"] + pub fn EVP_PKEY_kem_new_raw_secret_key( + nid: ::std::os::raw::c_int, + in_: *const u8, + len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7_bio"] - pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_key"] + pub fn EVP_PKEY_kem_new_raw_key( + nid: ::std::os::raw::c_int, + in_public: *const u8, + len_public: usize, + in_secret: *const u8, + len_secret: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_free"] - pub fn PKCS7_free(p7: *mut PKCS7); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_check_key"] + pub fn EVP_PKEY_kem_check_key(key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_data"] - pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dh_pad"] + pub fn EVP_PKEY_CTX_set_dh_pad( + ctx: *mut EVP_PKEY_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_digest"] - pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get_count"] + pub fn EVP_PKEY_asn1_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_encrypted"] - pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0"] + pub fn EVP_PKEY_asn1_get0(idx: ::std::os::raw::c_int) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_enveloped"] - pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find"] + pub fn EVP_PKEY_asn1_find( + _pe: *mut *mut ENGINE, + type_: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signed"] - pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find_str"] + pub fn EVP_PKEY_asn1_find_str( + _pe: *mut *mut ENGINE, + name: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signedAndEnveloped"] - pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0_info"] + pub fn EVP_PKEY_asn1_get0_info( + ppkey_id: *mut ::std::os::raw::c_int, + pkey_base_id: *mut ::std::os::raw::c_int, + ppkey_flags: *mut ::std::os::raw::c_int, + pinfo: *mut *const ::std::os::raw::c_char, + ppem_str: *mut *const ::std::os::raw::c_char, + ameth: *const EVP_PKEY_ASN1_METHOD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_sign"] - pub fn PKCS7_sign( - sign_cert: *mut X509, - pkey: *mut EVP_PKEY, - certs: *mut stack_st_X509, - data: *mut BIO, - flags: ::std::os::raw::c_int, - ) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get_pkey_type"] + pub fn EVP_MD_get_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } -pub type sk_CRYPTO_BUFFER_free_func = - ::std::option::Option; -pub type sk_CRYPTO_BUFFER_copy_func = - ::std::option::Option *mut CRYPTO_BUFFER>; -pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const CRYPTO_BUFFER, - arg2: *mut *const CRYPTO_BUFFER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_BUFFER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_new"] - pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_pkey_type"] + pub fn EVP_MD_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_free"] - pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_do_all_sorted"] + pub fn EVP_CIPHER_do_all_sorted( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_CIPHER, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new"] - pub fn CRYPTO_BUFFER_new( - data: *const u8, - len: usize, - pool: *mut CRYPTO_BUFFER_POOL, - ) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all_sorted"] + pub fn EVP_MD_do_all_sorted( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_alloc"] - pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all"] + pub fn EVP_MD_do_all( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_CBS"] - pub fn CRYPTO_BUFFER_new_from_CBS( - cbs: *const CBS, - pool: *mut CRYPTO_BUFFER_POOL, - ) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PrivateKey"] + pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_static_data_unsafe"] - pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( - data: *const u8, - len: usize, - pool: *mut CRYPTO_BUFFER_POOL, - ) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PublicKey"] + pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_free"] - pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PrivateKey"] + pub fn d2i_PrivateKey( + type_: ::std::os::raw::c_int, + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_up_ref"] - pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AutoPrivateKey"] + pub fn d2i_AutoPrivateKey( + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_data"] - pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PublicKey"] + pub fn d2i_PublicKey( + type_: ::std::os::raw::c_int, + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_len"] - pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_param_enc"] + pub fn EVP_PKEY_CTX_set_ec_param_enc( + ctx: *mut EVP_PKEY_CTX, + encoding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_init_CBS"] - pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_tls_encodedpoint"] + pub fn EVP_PKEY_set1_tls_encodedpoint( + pkey: *mut EVP_PKEY, + in_: *const u8, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new"] - pub fn RSA_new() -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_tls_encodedpoint"] + pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new_method"] - pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_base_id"] + pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_free"] - pub fn RSA_free(rsa: *mut RSA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] + pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_up_ref"] - pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] + pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( + ctx: *mut EVP_PKEY_CTX, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_bits"] - pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] + pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_n"] - pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PUBKEY"] + pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_e"] - pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PUBKEY"] + pub fn d2i_PUBKEY( + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_d"] - pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSA_PUBKEY"] + pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_p"] - pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSA_PUBKEY"] + pub fn d2i_RSA_PUBKEY( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_q"] - pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_PUBKEY"] + pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmp1"] - pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmq1"] - pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_PUBKEY"] + pub fn d2i_DSA_PUBKEY( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_iqmp"] - pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EC_PUBKEY"] + pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_key"] - pub fn RSA_get0_key( - rsa: *const RSA, - out_n: *mut *const BIGNUM, - out_e: *mut *const BIGNUM, - out_d: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EC_PUBKEY"] + pub fn d2i_EC_PUBKEY( + out: *mut *mut EC_KEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_factors"] - pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign"] + pub fn EVP_PKEY_assign( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, + key: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_crt_params"] - pub fn RSA_get0_crt_params( - rsa: *const RSA, - out_dmp1: *mut *const BIGNUM, - out_dmq1: *mut *const BIGNUM, - out_iqmp: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_mac_key"] + pub fn EVP_PKEY_new_mac_key( + type_: ::std::os::raw::c_int, + engine: *mut ENGINE, + mac_key: *const u8, + mac_key_len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_key"] - pub fn RSA_set0_key( - rsa: *mut RSA, - n: *mut BIGNUM, - e: *mut BIGNUM, - d: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0"] + pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_factors"] - pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_algorithms"] + pub fn OpenSSL_add_all_algorithms(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_crt_params"] - pub fn RSA_set0_crt_params( - rsa: *mut RSA, - dmp1: *mut BIGNUM, - dmq1: *mut BIGNUM, - iqmp: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_add_all_algorithms_conf"] + pub fn OPENSSL_add_all_algorithms_conf(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_ex"] - pub fn RSA_generate_key_ex( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - e: *const BIGNUM, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_ciphers"] + pub fn OpenSSL_add_all_ciphers(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_fips"] - pub fn RSA_generate_key_fips( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_digests"] + pub fn OpenSSL_add_all_digests(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_encrypt"] - pub fn RSA_encrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cleanup"] + pub fn EVP_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_decrypt"] - pub fn RSA_decrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( + ctx: *mut EVP_PKEY_CTX, + nbits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_encrypt"] - pub fn RSA_public_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( + ctx: *mut EVP_PKEY_CTX, + qbits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_decrypt"] - pub fn RSA_private_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_ctrl_str"] + pub fn EVP_PKEY_CTX_ctrl_str( + ctx: *mut EVP_PKEY_CTX, + type_: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } +pub type EVP_PKEY_gen_cb = + ::std::option::Option ::std::os::raw::c_int>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign"] - pub fn RSA_sign( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - rsa: *mut RSA, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_cb"] + pub fn EVP_PKEY_CTX_set_cb(ctx: *mut EVP_PKEY_CTX, cb: EVP_PKEY_gen_cb); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_pss_mgf1"] - pub fn RSA_sign_pss_mgf1( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_app_data"] + pub fn EVP_PKEY_CTX_set_app_data(ctx: *mut EVP_PKEY_CTX, data: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_raw"] - pub fn RSA_sign_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_app_data"] + pub fn EVP_PKEY_CTX_get_app_data(ctx: *mut EVP_PKEY_CTX) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify"] - pub fn RSA_verify( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_keygen_info"] + pub fn EVP_PKEY_CTX_get_keygen_info( + ctx: *mut EVP_PKEY_CTX, + idx: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_pss_mgf1"] - pub fn RSA_verify_pss_mgf1( - rsa: *mut RSA, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF"] + pub fn HKDF( + out_key: *mut u8, + out_len: usize, + digest: *const EVP_MD, + secret: *const u8, + secret_len: usize, + salt: *const u8, + salt_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_raw"] - pub fn RSA_verify_raw( - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_extract"] + pub fn HKDF_extract( + out_key: *mut u8, out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_encrypt"] - pub fn RSA_private_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + digest: *const EVP_MD, + secret: *const u8, + secret_len: usize, + salt: *const u8, + salt_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_decrypt"] - pub fn RSA_public_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_expand"] + pub fn HKDF_expand( + out_key: *mut u8, + out_len: usize, + digest: *const EVP_MD, + prk: *const u8, + prk_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_size"] - pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_is_opaque"] - pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPublicKey_dup"] - pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPrivateKey_dup"] - pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_key"] - pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_fips"] - pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Init"] + pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS_mgf1"] - pub fn RSA_verify_PKCS1_PSS_mgf1( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Update"] + pub fn MD5_Update( + md5: *mut MD5_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS_mgf1"] - pub fn RSA_padding_add_PKCS1_PSS_mgf1( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Final"] + pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP_mgf1"] - pub fn RSA_padding_add_PKCS1_OAEP_mgf1( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, - md: *const EVP_MD, - mgf1md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5"] + pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_add_pkcs1_prefix"] - pub fn RSA_add_pkcs1_prefix( - out_msg: *mut *mut u8, - out_msg_len: *mut usize, - is_alloced: *mut ::std::os::raw::c_int, - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Transform"] + pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_public_key"] - pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct md5_state_st { + pub h: [u32; 4usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_key_from_bytes"] - pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; +#[test] +fn bindgen_test_layout_md5_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 92usize, + concat!("Size of: ", stringify!(md5_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(md5_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(num) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_public_key"] - pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; +impl Default for md5_state_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_fips_0_12_15_RSA_public_key_to_bytes"] - pub fn RSA_public_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC"] + pub fn HMAC( + evp_md: *const EVP_MD, + key: *const ::std::os::raw::c_void, + key_len: usize, + data: *const u8, + data_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_private_key"] - pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_init"] + pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_from_bytes"] - pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_new"] + pub fn HMAC_CTX_new() -> *mut HMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_private_key"] - pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanup"] + pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_to_bytes"] - pub fn RSA_private_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanse"] + pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_new_index"] - pub fn RSA_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_fips_0_13_0_HMAC_CTX_free"] + pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set_ex_data"] - pub fn RSA_set_ex_data( - rsa: *mut RSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_ex"] + pub fn HMAC_Init_ex( + ctx: *mut HMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + md: *const EVP_MD, + impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_data"] - pub fn RSA_get_ex_data( - rsa: *const RSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_flags"] - pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_test_flags"] - pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Update"] + pub fn HMAC_Update( + ctx: *mut HMAC_CTX, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_blinding_on"] - pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Final"] + pub fn HMAC_Final( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key"] - pub fn RSA_generate_key( - bits: ::std::os::raw::c_int, - e: u64, - callback: *mut ::std::os::raw::c_void, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_size"] + pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey"] - pub fn d2i_RSAPublicKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_get_md"] + pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPublicKey"] - pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy_ex"] + pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey"] - pub fn d2i_RSAPrivateKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_reset"] + pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPrivateKey"] - pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_set_precomputed_key_export"] + pub fn HMAC_set_precomputed_key_export(ctx: *mut HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS"] - pub fn RSA_padding_add_PKCS1_PSS( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_get_precomputed_key"] + pub fn HMAC_get_precomputed_key( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS"] - pub fn RSA_verify_PKCS1_PSS( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_from_precomputed_key"] + pub fn HMAC_Init_from_precomputed_key( + ctx: *mut HMAC_CTX, + precomputed_key: *const u8, + precompute_key_len: usize, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP"] - pub fn RSA_padding_add_PKCS1_OAEP( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init"] + pub fn HMAC_Init( + ctx: *mut HMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: ::std::os::raw::c_int, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_print"] - pub fn RSA_print( - bio: *mut BIO, - rsa: *const RSA, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy"] + pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_pss_params"] - pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hmac_methods_st { + _unused: [u8; 0], } +pub type HmacMethods = hmac_methods_st; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_meth_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: ::std::option::Option ::std::os::raw::c_int>, - pub finish: ::std::option::Option ::std::os::raw::c_int>, - pub size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - type_: ::std::os::raw::c_int, - m: *const u8, - m_length: ::std::os::raw::c_uint, - sigret: *mut u8, - siglen: *mut ::std::os::raw::c_uint, - rsa: *const RSA, - ) -> ::std::os::raw::c_int, - >, - pub sign_raw: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub decrypt: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub private_transform: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out: *mut u8, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +#[derive(Copy, Clone)] +pub union md_ctx_union { + pub md5: MD5_CTX, + pub sha1: SHA_CTX, + pub sha256: SHA256_CTX, + pub sha512: SHA512_CTX, } #[test] -fn bindgen_test_layout_rsa_meth_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_md_ctx_union() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(rsa_meth_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(md_ctx_union)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rsa_meth_st)) + concat!("Alignment of ", stringify!(md_ctx_union)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md5) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(common) + stringify!(md5) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).sha1) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(app_data) + stringify!(sha1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign_raw) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign_raw) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).decrypt) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(decrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_transform) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).sha256) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(private_transform) + stringify!(sha256) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).sha512) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(flags) + stringify!(sha512) ) ); } -impl Default for rsa_meth_st { +impl Default for md_ctx_union { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18880,284 +17289,91 @@ impl Default for rsa_meth_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct bn_blinding_st { - _unused: [u8; 0], -} -pub type BN_BLINDING = bn_blinding_st; -#[repr(C)] #[derive(Copy, Clone)] -pub struct rsa_st { - pub meth: *mut RSA_METHOD, - pub n: *mut BIGNUM, - pub e: *mut BIGNUM, - pub d: *mut BIGNUM, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub dmp1: *mut BIGNUM, - pub dmq1: *mut BIGNUM, - pub iqmp: *mut BIGNUM, - pub pss: *mut RSASSA_PSS_PARAMS, - pub ex_data: CRYPTO_EX_DATA, - pub references: CRYPTO_refcount_t, - pub flags: ::std::os::raw::c_int, - pub lock: CRYPTO_MUTEX, - pub mont_n: *mut BN_MONT_CTX, - pub mont_p: *mut BN_MONT_CTX, - pub mont_q: *mut BN_MONT_CTX, - pub d_fixed: *mut BIGNUM, - pub dmp1_fixed: *mut BIGNUM, - pub dmq1_fixed: *mut BIGNUM, - pub inv_small_mod_large_mont: *mut BIGNUM, - pub num_blindings: usize, - pub blindings: *mut *mut BN_BLINDING, - pub blindings_inuse: *mut ::std::os::raw::c_uchar, - pub blinding_fork_generation: u64, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +pub struct hmac_ctx_st { + pub md: *const EVP_MD, + pub methods: *const HmacMethods, + pub md_ctx: md_ctx_union, + pub i_ctx: md_ctx_union, + pub o_ctx: md_ctx_union, + pub state: i8, } #[test] -fn bindgen_test_layout_rsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_hmac_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 248usize, - concat!("Size of: ", stringify!(rsa_st)) + ::std::mem::size_of::(), + 672usize, + concat!("Size of: ", stringify!(hmac_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rsa_st)) + concat!("Alignment of ", stringify!(hmac_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).meth) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(meth) + stringify!(md) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).methods) as usize - ptr as usize }, 8usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(n)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).e) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(e)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(d)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 32usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 40usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iqmp) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(iqmp) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pss) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(pss) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).lock) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_n) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_n) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_p) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_q) as usize - ptr as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d_fixed) as usize - ptr as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(d_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1_fixed) as usize - ptr as usize }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1_fixed) as usize - ptr as usize }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inv_small_mod_large_mont) as usize - ptr as usize }, - 200usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(inv_small_mod_large_mont) + stringify!(methods) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_blindings) as usize - ptr as usize }, - 208usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_ctx) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(num_blindings) + stringify!(md_ctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings) as usize - ptr as usize }, - 216usize, + unsafe { ::std::ptr::addr_of!((*ptr).i_ctx) as usize - ptr as usize }, + 232usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(blindings) + stringify!(i_ctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings_inuse) as usize - ptr as usize }, - 224usize, + unsafe { ::std::ptr::addr_of!((*ptr).o_ctx) as usize - ptr as usize }, + 448usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(blindings_inuse) + stringify!(o_ctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blinding_fork_generation) as usize - ptr as usize }, - 232usize, + unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, + 664usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(blinding_fork_generation) + stringify!(state) ) ); } -impl Default for rsa_st { +impl Default for hmac_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19166,1750 +17382,2461 @@ impl Default for rsa_st { } } } -impl rsa_st { - #[inline] - pub fn private_key_frozen(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_private_key_frozen(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - private_key_frozen: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let private_key_frozen: u32 = unsafe { ::std::mem::transmute(private_key_frozen) }; - private_key_frozen as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_x25519_hkdf_sha256"] + pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; } -pub type sk_X509_free_func = ::std::option::Option; -pub type sk_X509_copy_func = - ::std::option::Option *mut X509>; -pub type sk_X509_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const X509, arg2: *mut *const X509) -> ::std::os::raw::c_int, ->; -pub type sk_X509_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_it"] - pub static X509_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_id"] + pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_up_ref"] - pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_public_key_len"] + pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_chain_up_ref"] - pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_private_key_len"] + pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_dup"] - pub fn X509_dup(x509: *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_enc_len"] + pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_free"] - pub fn X509_free(x509: *mut X509); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_hkdf_sha256"] + pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509"] - pub fn d2i_X509( - out: *mut *mut X509, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_id"] + pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_parse_from_buffer"] - pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_hkdf_md"] + pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509"] - pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_128_gcm"] + pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_version"] - pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_256_gcm"] + pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_serialNumber"] - pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_chacha20_poly1305"] + pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notBefore"] - pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_id"] + pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notAfter"] - pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_aead"] + pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_issuer_name"] - pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_zero"] + pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_subject_name"] - pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_cleanup"] + pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_X509_PUBKEY"] - pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_new"] + pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_pubkey"] - pub fn X509_get_pubkey(x509: *mut X509) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_free"] + pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_pubkey_bitstr"] - pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_copy"] + pub fn EVP_HPKE_KEY_copy( + dst: *mut EVP_HPKE_KEY, + src: *const EVP_HPKE_KEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_uids"] - pub fn X509_get0_uids( - x509: *const X509, - out_issuer_uid: *mut *const ASN1_BIT_STRING, - out_subject_uid: *mut *const ASN1_BIT_STRING, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_EXTENSION { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_move"] + pub fn EVP_HPKE_KEY_move(out: *mut EVP_HPKE_KEY, in_: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_extensions"] - pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_init"] + pub fn EVP_HPKE_KEY_init( + key: *mut EVP_HPKE_KEY, + kem: *const EVP_HPKE_KEM, + priv_key: *const u8, + priv_key_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_count"] - pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_generate"] + pub fn EVP_HPKE_KEY_generate( + key: *mut EVP_HPKE_KEY, + kem: *const EVP_HPKE_KEM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_NID"] - pub fn X509_get_ext_by_NID( - x: *const X509, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_kem"] + pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_OBJ"] - pub fn X509_get_ext_by_OBJ( - x: *const X509, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_public_key"] + pub fn EVP_HPKE_KEY_public_key( + key: *const EVP_HPKE_KEY, + out: *mut u8, + out_len: *mut usize, + max_out: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_critical"] - pub fn X509_get_ext_by_critical( - x: *const X509, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_private_key"] + pub fn EVP_HPKE_KEY_private_key( + key: *const EVP_HPKE_KEY, + out: *mut u8, + out_len: *mut usize, + max_out: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext"] - pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_zero"] + pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_tbs_sigalg"] - pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_cleanup"] + pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_signature"] - pub fn X509_get0_signature( - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - x509: *const X509, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_new"] + pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_signature_nid"] - pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_free"] + pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_tbs"] - pub fn i2d_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender"] + pub fn EVP_HPKE_CTX_setup_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + kem: *const EVP_HPKE_KEM, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_new"] - pub fn X509_new() -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_version"] - pub fn X509_set_version( - x509: *mut X509, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + kem: *const EVP_HPKE_KEM, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_serialNumber"] - pub fn X509_set_serialNumber( - x509: *mut X509, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_recipient"] + pub fn EVP_HPKE_CTX_setup_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notBefore"] - pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notAfter"] - pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notBefore"] - pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notAfter"] - pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_issuer_name"] - pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender"] + pub fn EVP_HPKE_CTX_setup_auth_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_subject_name"] - pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_pubkey"] - pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_recipient"] + pub fn EVP_HPKE_CTX_setup_auth_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, + peer_public_key: *const u8, + peer_public_key_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_delete_ext"] - pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_open"] + pub fn EVP_HPKE_CTX_open( + ctx: *mut EVP_HPKE_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add_ext"] - pub fn X509_add_ext( - x: *mut X509, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_seal"] + pub fn EVP_HPKE_CTX_seal( + ctx: *mut EVP_HPKE_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign"] - pub fn X509_sign( - x509: *mut X509, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_export"] + pub fn EVP_HPKE_CTX_export( + ctx: *const EVP_HPKE_CTX, + out: *mut u8, + secret_len: usize, + context: *const u8, + context_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign_ctx"] - pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_max_overhead"] + pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_tbs"] - pub fn i2d_re_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kem"] + pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_algo"] - pub fn X509_set1_signature_algo( - x509: *mut X509, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_aead"] + pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_value"] - pub fn X509_set1_signature_value( - x509: *mut X509, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kdf"] + pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_AUX"] - pub fn i2d_X509_AUX( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct evp_hpke_ctx_st { + pub kem: *const EVP_HPKE_KEM, + pub aead: *const EVP_HPKE_AEAD, + pub kdf: *const EVP_HPKE_KDF, + pub aead_ctx: EVP_AEAD_CTX, + pub base_nonce: [u8; 24usize], + pub exporter_secret: [u8; 64usize], + pub seq: u64, + pub is_sender: ::std::os::raw::c_int, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_AUX"] - pub fn d2i_X509_AUX( - x509: *mut *mut X509, - inp: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut X509; +#[test] +fn bindgen_test_layout_evp_hpke_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 712usize, + concat!("Size of: ", stringify!(evp_hpke_ctx_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_hpke_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(kem) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(aead) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).kdf) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(kdf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).aead_ctx) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(aead_ctx) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, + 608usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(base_nonce) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, + 632usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(exporter_secret) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, + 696usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(seq) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, + 704usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(is_sender) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_set1"] - pub fn X509_alias_set1( - x509: *mut X509, - name: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for evp_hpke_ctx_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_fips_0_12_15_X509_keyid_set1"] - pub fn X509_keyid_set1( - x509: *mut X509, - id: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_hpke_key_st { + pub kem: *const EVP_HPKE_KEM, + pub private_key: [u8; 32usize], + pub public_key: [u8; 32usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_get0"] - pub fn X509_alias_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; +#[test] +fn bindgen_test_layout_evp_hpke_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 72usize, + concat!("Size of: ", stringify!(evp_hpke_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_hpke_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_key_st), + "::", + stringify!(kem) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).private_key) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_key_st), + "::", + stringify!(private_key) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).public_key) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_key_st), + "::", + stringify!(public_key) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_keyid_get0"] - pub fn X509_keyid_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; +impl Default for evp_hpke_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() + } + } } -pub type sk_X509_CRL_free_func = ::std::option::Option; -pub type sk_X509_CRL_copy_func = - ::std::option::Option *mut X509_CRL>; -pub type sk_X509_CRL_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_CRL, - arg2: *mut *const X509_CRL, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_CRL_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_CRL, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_it"] - pub static X509_CRL_it: ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct HRSS_private_key { + pub opaque: [u8; 1808usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_up_ref"] - pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_HRSS_private_key() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 1808usize, + concat!("Size of: ", stringify!(HRSS_private_key)) + ); + assert_eq!( + ::std::mem::align_of::(), + 1usize, + concat!("Alignment of ", stringify!(HRSS_private_key)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HRSS_private_key), + "::", + stringify!(opaque) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_dup"] - pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; +impl Default for HRSS_private_key { + 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_fips_0_12_15_X509_CRL_free"] - pub fn X509_CRL_free(crl: *mut X509_CRL); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct HRSS_public_key { + pub opaque: [u8; 1424usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_CRL"] - pub fn d2i_X509_CRL( - out: *mut *mut X509_CRL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_CRL"] - pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_HRSS_public_key() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 1424usize, + concat!("Size of: ", stringify!(HRSS_public_key)) + ); + assert_eq!( + ::std::mem::align_of::(), + 1usize, + concat!("Alignment of ", stringify!(HRSS_public_key)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HRSS_public_key), + "::", + stringify!(opaque) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_version"] - pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; +impl Default for HRSS_public_key { + 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_fips_0_12_15_X509_CRL_get0_lastUpdate"] - pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_generate_key"] + pub fn HRSS_generate_key( + out_pub: *mut HRSS_public_key, + out_priv: *mut HRSS_private_key, + input: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_nextUpdate"] - pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_encap"] + pub fn HRSS_encap( + out_ciphertext: *mut u8, + out_shared_key: *mut u8, + in_pub: *const HRSS_public_key, + in_: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_issuer"] - pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_REVOKED { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_decap"] + pub fn HRSS_decap( + out_shared_key: *mut u8, + in_priv: *const HRSS_private_key, + ciphertext: *const u8, + ciphertext_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_REVOKED"] - pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_marshal_public_key"] + pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_extensions"] - pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_parse_public_key"] + pub fn HRSS_parse_public_key( + out: *mut HRSS_public_key, + in_: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_count"] - pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Init"] + pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_NID"] - pub fn X509_CRL_get_ext_by_NID( - x: *const X509_CRL, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Update"] + pub fn MD4_Update( + md4: *mut MD4_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_OBJ"] - pub fn X509_CRL_get_ext_by_OBJ( - x: *const X509_CRL, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Final"] + pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_critical"] - pub fn X509_CRL_get_ext_by_critical( - x: *const X509_CRL, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4"] + pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext"] - pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Transform"] + pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_signature"] - pub fn X509_CRL_get0_signature( - crl: *const X509_CRL, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct md4_state_st { + pub h: [u32; 4usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, +} +#[test] +fn bindgen_test_layout_md4_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 92usize, + concat!("Size of: ", stringify!(md4_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(md4_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(num) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_signature_nid"] - pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; +impl Default for md4_state_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_fips_0_12_15_i2d_X509_CRL_tbs"] - pub fn i2d_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CRYPTO_BUFFER { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_new"] - pub fn X509_CRL_new() -> *mut X509_CRL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509 { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_CRL { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_version"] - pub fn X509_CRL_set_version( - crl: *mut X509_CRL, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_raw_certificates"] + pub fn PKCS7_get_raw_certificates( + out_certs: *mut stack_st_CRYPTO_BUFFER, + cbs: *mut CBS, + pool: *mut CRYPTO_BUFFER_POOL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_issuer_name"] - pub fn X509_CRL_set_issuer_name( - crl: *mut X509_CRL, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_certificates"] + pub fn PKCS7_get_certificates( + out_certs: *mut stack_st_X509, + cbs: *mut CBS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_lastUpdate"] - pub fn X509_CRL_set1_lastUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_raw_certificates"] + pub fn PKCS7_bundle_raw_certificates( + out: *mut CBB, + certs: *const stack_st_CRYPTO_BUFFER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_nextUpdate"] - pub fn X509_CRL_set1_nextUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_certificates"] + pub fn PKCS7_bundle_certificates( + out: *mut CBB, + certs: *const stack_st_X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_delete_ext"] - pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) - -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_CRLs"] + pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add_ext"] - pub fn X509_CRL_add_ext( - x: *mut X509_CRL, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_CRLs"] + pub fn PKCS7_bundle_CRLs( + out: *mut CBB, + crls: *const stack_st_X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign"] - pub fn X509_CRL_sign( - crl: *mut X509_CRL, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_certificates"] + pub fn PKCS7_get_PEM_certificates( + out_certs: *mut stack_st_X509, + pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign_ctx"] - pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_CRL_tbs"] - pub fn i2d_re_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_CRLs"] + pub fn PKCS7_get_PEM_CRLs( + out_crls: *mut stack_st_X509_CRL, + pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_signature_algo"] - pub fn X509_CRL_set1_signature_algo( - crl: *mut X509_CRL, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct pkcs7_st { + pub type_: *mut ASN1_OBJECT, + pub d: pkcs7_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pkcs7_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub data: *mut ASN1_OCTET_STRING, + pub sign: *mut PKCS7_SIGNED, + pub enveloped: *mut PKCS7_ENVELOPE, + pub signed_and_enveloped: *mut PKCS7_SIGN_ENVELOPE, + pub digest: *mut PKCS7_DIGEST, + pub encrypted: *mut PKCS7_ENCRYPT, + pub other: *mut ASN1_TYPE, +} +#[test] +fn bindgen_test_layout_pkcs7_st__bindgen_ty_1() { + 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!(pkcs7_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(pkcs7_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(sign) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enveloped) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(enveloped) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signed_and_enveloped) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(signed_and_enveloped) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(digest) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).encrypted) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(encrypted) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); +} +impl Default for pkcs7_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_pkcs7_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!(pkcs7_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(pkcs7_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), + "::", + stringify!(d) + ) + ); +} +impl Default for pkcs7_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 pkcs7_signed_st { + pub version: *mut ASN1_INTEGER, + pub md_algs: *mut stack_st_X509_ALGOR, + pub contents: *mut PKCS7, + pub cert: *mut stack_st_X509, + pub crl: *mut stack_st_X509_CRL, + pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO, +} +#[test] +fn bindgen_test_layout_pkcs7_signed_st() { + 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!(pkcs7_signed_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(pkcs7_signed_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(version) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_algs) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(md_algs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).contents) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(contents) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signer_info) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(signer_info) + ) + ); +} +impl Default for pkcs7_signed_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_fips_0_12_15_X509_CRL_set1_signature_value"] - pub fn X509_CRL_set1_signature_value( - crl: *mut X509_CRL, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_new"] + pub fn PKCS7_new() -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_it"] - pub static X509_REQ_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_free"] + pub fn PKCS7_free(a: *mut PKCS7); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_dup"] - pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7"] + pub fn d2i_PKCS7( + a: *mut *mut PKCS7, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_free"] - pub fn X509_REQ_free(req: *mut X509_REQ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7"] + pub fn i2d_PKCS7( + a: *mut PKCS7, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REQ"] - pub fn d2i_X509_REQ( - out: *mut *mut X509_REQ, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_it"] + pub static PKCS7_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REQ"] - pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_new"] + pub fn PKCS7_RECIP_INFO_new() -> *mut PKCS7_RECIP_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_version"] - pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_free"] + pub fn PKCS7_RECIP_INFO_free(a: *mut PKCS7_RECIP_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_subject_name"] - pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_RECIP_INFO"] + pub fn d2i_PKCS7_RECIP_INFO( + a: *mut *mut PKCS7_RECIP_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_RECIP_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_pubkey"] - pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_RECIP_INFO"] + pub fn i2d_PKCS7_RECIP_INFO( + a: *mut PKCS7_RECIP_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get0_signature"] - pub fn X509_REQ_get0_signature( - req: *const X509_REQ, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_it"] + pub static PKCS7_RECIP_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_signature_nid"] - pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_new"] + pub fn PKCS7_SIGNER_INFO_new() -> *mut PKCS7_SIGNER_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_new"] - pub fn X509_REQ_new() -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_free"] + pub fn PKCS7_SIGNER_INFO_free(a: *mut PKCS7_SIGNER_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_version"] - pub fn X509_REQ_set_version( - req: *mut X509_REQ, - version: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_SIGNER_INFO"] + pub fn d2i_PKCS7_SIGNER_INFO( + a: *mut *mut PKCS7_SIGNER_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_SIGNER_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_subject_name"] - pub fn X509_REQ_set_subject_name( - req: *mut X509_REQ, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_SIGNER_INFO"] + pub fn i2d_PKCS7_SIGNER_INFO( + a: *mut PKCS7_SIGNER_INFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_pubkey"] - pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign"] - pub fn X509_REQ_sign( - req: *mut X509_REQ, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign_ctx"] - pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_REQ_tbs"] - pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_algo"] - pub fn X509_REQ_set1_signature_algo( - req: *mut X509_REQ, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_value"] - pub fn X509_REQ_set1_signature_value( - req: *mut X509_REQ, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_it"] + pub static PKCS7_SIGNER_INFO_it: ASN1_ITEM; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME_ENTRY { +pub struct stack_st_PKCS7_RECIP_INFO { _unused: [u8; 0], } -pub type sk_X509_NAME_ENTRY_free_func = - ::std::option::Option; -pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +pub type sk_PKCS7_RECIP_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_RECIP_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_RECIP_INFO) -> *mut PKCS7_RECIP_INFO, >; -pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< +pub type sk_PKCS7_RECIP_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME_ENTRY, - arg2: *mut *const X509_NAME_ENTRY, + arg1: *const *const PKCS7_RECIP_INFO, + arg2: *const *const PKCS7_RECIP_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< +pub type sk_PKCS7_RECIP_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME_ENTRY, + arg1: *mut PKCS7_RECIP_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME { +pub struct stack_st_PKCS7_SIGNER_INFO { _unused: [u8; 0], } -pub type sk_X509_NAME_free_func = ::std::option::Option; -pub type sk_X509_NAME_copy_func = - ::std::option::Option *mut X509_NAME>; -pub type sk_X509_NAME_cmp_func = ::std::option::Option< +pub type sk_PKCS7_SIGNER_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_SIGNER_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_SIGNER_INFO) -> *mut PKCS7_SIGNER_INFO, +>; +pub type sk_PKCS7_SIGNER_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME, - arg2: *mut *const X509_NAME, + arg1: *const *const PKCS7_SIGNER_INFO, + arg2: *const *const PKCS7_SIGNER_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_delete_if_func = ::std::option::Option< +pub type sk_PKCS7_SIGNER_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME, + arg1: *mut PKCS7_SIGNER_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_it"] - pub static X509_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_dup"] + pub fn PKCS7_dup(p7: *mut PKCS7) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_new"] - pub fn X509_NAME_new() -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_bio"] + pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_free"] - pub fn X509_NAME_free(name: *mut X509_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_bio"] + pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME"] - pub fn d2i_X509_NAME( - out: *mut *mut X509_NAME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signed_attribute"] + pub fn PKCS7_get_signed_attribute( + si: *const PKCS7_SIGNER_INFO, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME"] - pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signer_info"] + pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_dup"] - pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_set"] + pub fn PKCS7_RECIP_INFO_set( + p7i: *mut PKCS7_RECIP_INFO, + x509: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get0_der"] - pub fn X509_NAME_get0_der( - name: *mut X509_NAME, - out_der: *mut *const u8, - out_der_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_set"] + pub fn PKCS7_SIGNER_INFO_set( + p7i: *mut PKCS7_SIGNER_INFO, + x509: *mut X509, + pkey: *mut EVP_PKEY, + dgst: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_set"] - pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_certificate"] + pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_entry_count"] - pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_crl"] + pub fn PKCS7_add_crl(p7: *mut PKCS7, x509: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_NID"] - pub fn X509_NAME_get_index_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_recipient_info"] + pub fn PKCS7_add_recipient_info( + p7: *mut PKCS7, + ri: *mut PKCS7_RECIP_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_OBJ"] - pub fn X509_NAME_get_index_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_signer"] + pub fn PKCS7_add_signer(p7: *mut PKCS7, p7i: *mut PKCS7_SIGNER_INFO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_entry"] - pub fn X509_NAME_get_entry( - name: *const X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_content_new"] + pub fn PKCS7_content_new(p7: *mut PKCS7, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_delete_entry"] - pub fn X509_NAME_delete_entry( - name: *mut X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_cipher"] + pub fn PKCS7_set_cipher(p7: *mut PKCS7, cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry"] - pub fn X509_NAME_add_entry( - name: *mut X509_NAME, - entry: *const X509_NAME_ENTRY, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_content"] + pub fn PKCS7_set_content(p7: *mut PKCS7, p7_data: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_OBJ"] - pub fn X509_NAME_add_entry_by_OBJ( - name: *mut X509_NAME, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_type"] + pub fn PKCS7_set_type(p7: *mut PKCS7, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_NID"] - pub fn X509_NAME_add_entry_by_NID( - name: *mut X509_NAME, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_get0_alg"] + pub fn PKCS7_RECIP_INFO_get0_alg(ri: *mut PKCS7_RECIP_INFO, penc: *mut *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_txt"] - pub fn X509_NAME_add_entry_by_txt( - name: *mut X509_NAME, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_get0_algs"] + pub fn PKCS7_SIGNER_INFO_get0_algs( + si: *mut PKCS7_SIGNER_INFO, + pk: *mut *mut EVP_PKEY, + pdig: *mut *mut X509_ALGOR, + psig: *mut *mut X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_it"] - pub static X509_NAME_ENTRY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_data"] + pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_new"] - pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_digest"] + pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_free"] - pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_encrypted"] + pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME_ENTRY"] - pub fn d2i_X509_NAME_ENTRY( - out: *mut *mut X509_NAME_ENTRY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_enveloped"] + pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME_ENTRY"] - pub fn i2d_X509_NAME_ENTRY( - in_: *const X509_NAME_ENTRY, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signed"] + pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_dup"] - pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signedAndEnveloped"] + pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_object"] - pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_sign"] + pub fn PKCS7_sign( + sign_cert: *mut X509, + pkey: *mut EVP_PKEY, + certs: *mut stack_st_X509, + data: *mut BIO, + flags: ::std::os::raw::c_int, + ) -> *mut PKCS7; } +pub type sk_CRYPTO_BUFFER_free_func = + ::std::option::Option; +pub type sk_CRYPTO_BUFFER_copy_func = + ::std::option::Option *mut CRYPTO_BUFFER>; +pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CRYPTO_BUFFER, + arg2: *const *const CRYPTO_BUFFER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_BUFFER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_object"] - pub fn X509_NAME_ENTRY_set_object( - entry: *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_new"] + pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_data"] - pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_free"] + pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_data"] - pub fn X509_NAME_ENTRY_set_data( - entry: *mut X509_NAME_ENTRY, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new"] + pub fn CRYPTO_BUFFER_new( + data: *const u8, + len: usize, + pool: *mut CRYPTO_BUFFER_POOL, + ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set"] - pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_alloc"] + pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_OBJ"] - pub fn X509_NAME_ENTRY_create_by_OBJ( - out: *mut *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_CBS"] + pub fn CRYPTO_BUFFER_new_from_CBS( + cbs: *const CBS, + pool: *mut CRYPTO_BUFFER_POOL, + ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_NID"] - pub fn X509_NAME_ENTRY_create_by_NID( - out: *mut *mut X509_NAME_ENTRY, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_static_data_unsafe"] + pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( + data: *const u8, + len: usize, + pool: *mut CRYPTO_BUFFER_POOL, + ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_txt"] - pub fn X509_NAME_ENTRY_create_by_txt( - out: *mut *mut X509_NAME_ENTRY, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_free"] + pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_it"] - pub static X509_EXTENSION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_up_ref"] + pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_new"] - pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_data"] + pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_free"] - pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_len"] + pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSION"] - pub fn d2i_X509_EXTENSION( - out: *mut *mut X509_EXTENSION, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_init_CBS"] + pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSION"] - pub fn i2d_X509_EXTENSION( - alg: *const X509_EXTENSION, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_public_key"] + pub fn RSA_new_public_key(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_dup"] - pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key"] + pub fn RSA_new_private_key( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_NID"] - pub fn X509_EXTENSION_create_by_NID( - ex: *mut *mut X509_EXTENSION, - nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new"] + pub fn RSA_new() -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_OBJ"] - pub fn X509_EXTENSION_create_by_OBJ( - ex: *mut *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_method"] + pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_object"] - pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_free"] + pub fn RSA_free(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_data"] - pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_up_ref"] + pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_critical"] - pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_bits"] + pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_object"] - pub fn X509_EXTENSION_set_object( - ex: *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_n"] + pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_critical"] - pub fn X509_EXTENSION_set_critical( - ex: *mut X509_EXTENSION, - crit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_e"] + pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_data"] - pub fn X509_EXTENSION_set_data( - ex: *mut X509_EXTENSION, - data: *const ASN1_OCTET_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_d"] + pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; } -pub type sk_X509_EXTENSION_free_func = - ::std::option::Option; -pub type sk_X509_EXTENSION_copy_func = - ::std::option::Option *mut X509_EXTENSION>; -pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_EXTENSION, - arg2: *mut *const X509_EXTENSION, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_EXTENSION, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSIONS_it"] - pub static X509_EXTENSIONS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_p"] + pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSIONS"] - pub fn d2i_X509_EXTENSIONS( - out: *mut *mut X509_EXTENSIONS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSIONS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_q"] + pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSIONS"] - pub fn i2d_X509_EXTENSIONS( - alg: *const X509_EXTENSIONS, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmp1"] + pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_count"] - pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmq1"] + pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_NID"] - pub fn X509v3_get_ext_by_NID( - x: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_iqmp"] + pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_OBJ"] - pub fn X509v3_get_ext_by_OBJ( - x: *const stack_st_X509_EXTENSION, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_key"] + pub fn RSA_get0_key( + rsa: *const RSA, + out_n: *mut *const BIGNUM, + out_e: *mut *const BIGNUM, + out_d: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_critical"] - pub fn X509v3_get_ext_by_critical( - x: *const stack_st_X509_EXTENSION, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_factors"] + pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext"] - pub fn X509v3_get_ext( - x: *const stack_st_X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_crt_params"] + pub fn RSA_get0_crt_params( + rsa: *const RSA, + out_dmp1: *mut *const BIGNUM, + out_dmq1: *mut *const BIGNUM, + out_iqmp: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_delete_ext"] - pub fn X509v3_delete_ext( - x: *mut stack_st_X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_key"] + pub fn RSA_set0_key( + rsa: *mut RSA, + n: *mut BIGNUM, + e: *mut BIGNUM, + d: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_add_ext"] - pub fn X509v3_add_ext( - x: *mut *mut stack_st_X509_EXTENSION, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_EXTENSION; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ALGOR { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_factors"] + pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) + -> ::std::os::raw::c_int; } -pub type sk_X509_ALGOR_free_func = - ::std::option::Option; -pub type sk_X509_ALGOR_copy_func = - ::std::option::Option *mut X509_ALGOR>; -pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ALGOR, - arg2: *mut *const X509_ALGOR, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ALGOR, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_it"] - pub static X509_ALGOR_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_crt_params"] + pub fn RSA_set0_crt_params( + rsa: *mut RSA, + dmp1: *mut BIGNUM, + dmq1: *mut BIGNUM, + iqmp: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_new"] - pub fn X509_ALGOR_new() -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_default_method"] + pub fn RSA_get_default_method() -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_dup"] - pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_new"] + pub fn RSA_meth_new( + name: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_free"] - pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_method"] + pub fn RSA_set_method(rsa: *mut RSA, meth: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ALGOR"] - pub fn d2i_X509_ALGOR( - out: *mut *mut X509_ALGOR, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_method"] + pub fn RSA_get_method(rsa: *const RSA) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ALGOR"] - pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_free"] + pub fn RSA_meth_free(meth: *mut RSA_METHOD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set0"] - pub fn X509_ALGOR_set0( - alg: *mut X509_ALGOR, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_init"] + pub fn RSA_meth_set_init( + meth: *mut RSA_METHOD, + init: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_get0"] - pub fn X509_ALGOR_get0( - out_obj: *mut *const ASN1_OBJECT, - out_param_type: *mut ::std::os::raw::c_int, - out_param_value: *mut *const ::std::os::raw::c_void, - alg: *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_finish"] + pub fn RSA_meth_set_finish( + meth: *mut RSA_METHOD, + finish: ::std::option::Option ::std::os::raw::c_int>, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set_md"] - pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_dec"] + pub fn RSA_meth_set_priv_dec( + meth: *mut RSA_METHOD, + priv_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_cmp"] - pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_enc"] + pub fn RSA_meth_set_priv_enc( + meth: *mut RSA_METHOD, + priv_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_meth_set_pub_dec"] + pub fn RSA_meth_set_pub_dec( + meth: *mut RSA_METHOD, + pub_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_pub_enc"] + pub fn RSA_meth_set_pub_enc( + meth: *mut RSA_METHOD, + pub_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_meth_set0_app_data"] + pub fn RSA_meth_set0_app_data( + meth: *mut RSA_METHOD, + app_data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_meth_set_sign"] + pub fn RSA_meth_set_sign( + meth: *mut RSA_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + m: *const ::std::os::raw::c_uchar, + m_length: ::std::os::raw::c_uint, + sigret: *mut ::std::os::raw::c_uchar, + siglen: *mut ::std::os::raw::c_uint, + rsa: *const RSA, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_ex"] + pub fn RSA_generate_key_ex( + rsa: *mut RSA, + bits: ::std::os::raw::c_int, + e: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_fips"] + pub fn RSA_generate_key_fips( + rsa: *mut RSA, + bits: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_encrypt"] + pub fn RSA_encrypt( + rsa: *mut RSA, + out_len: *mut usize, out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_decrypt"] + pub fn RSA_decrypt( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_public_encrypt"] + pub fn RSA_public_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_decrypt"] + pub fn RSA_private_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign"] + pub fn RSA_sign( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_sign_pss_mgf1"] + pub fn RSA_sign_pss_mgf1( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_13_0_RSA_sign_raw"] + pub fn RSA_sign_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify"] + pub fn RSA_verify( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_pss_mgf1"] + pub fn RSA_verify_pss_mgf1( + rsa: *mut RSA, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_raw"] + pub fn RSA_verify_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_encrypt"] + pub fn RSA_private_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_decrypt"] + pub fn RSA_public_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_size"] + pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_is_opaque"] + pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSAPublicKey_dup"] + pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSAPrivateKey_dup"] + pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_check_key"] + pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_check_fips"] + pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_PKCS1_PSS_mgf1"] + pub fn RSA_verify_PKCS1_PSS_mgf1( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_PSS_mgf1"] + pub fn RSA_padding_add_PKCS1_PSS_mgf1( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP_mgf1"] + pub fn RSA_padding_add_PKCS1_OAEP_mgf1( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + md: *const EVP_MD, + mgf1md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS1_MGF1"] + pub fn PKCS1_MGF1( + out: *mut u8, + len: usize, + seed: *const u8, + seed_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_add_pkcs1_prefix"] + pub fn RSA_add_pkcs1_prefix( + out_msg: *mut *mut u8, + out_msg_len: *mut usize, + is_alloced: *mut ::std::os::raw::c_int, + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_parse_public_key"] + pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_public_key_from_bytes"] + pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_marshal_public_key"] + pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_public_key_to_bytes"] + pub fn RSA_public_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_parse_private_key"] + pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_key_from_bytes"] + pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_marshal_private_key"] + pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_private_key_to_bytes"] + pub fn RSA_private_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_crt"] + pub fn RSA_new_private_key_no_crt( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_e"] + pub fn RSA_new_private_key_no_e(n: *const BIGNUM, d: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_new_public_key_large_e"] + pub fn RSA_new_public_key_large_e(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_new_private_key_large_e"] + pub fn RSA_new_private_key_large_e( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_ex_new_index"] + pub fn RSA_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_fips_0_12_15_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_fips_0_13_0_RSA_set_ex_data"] + pub fn RSA_set_ex_data( + rsa: *mut RSA, + 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_fips_0_12_15_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_fips_0_13_0_RSA_get_ex_data"] + pub fn RSA_get_ex_data( + rsa: *const RSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_flags"] + pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_set_flags"] + pub fn RSA_set_flags(rsa: *mut RSA, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_test_flags"] + pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_blinding_on"] + pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_blinding_off_temp_for_accp_compatibility"] + pub fn RSA_blinding_off_temp_for_accp_compatibility(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_pkey_ctx_ctrl"] + pub fn RSA_pkey_ctx_ctrl( + ctx: *mut EVP_PKEY_CTX, + optype: ::std::os::raw::c_int, + cmd: ::std::os::raw::c_int, + p1: ::std::os::raw::c_int, + p2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_generate_key"] + pub fn RSA_generate_key( + bits: ::std::os::raw::c_int, + e: u64, + callback: *mut ::std::os::raw::c_void, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPublicKey"] + pub fn d2i_RSAPublicKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_RSAPublicKey"] + pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPrivateKey"] + pub fn d2i_RSAPrivateKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_RSAPrivateKey"] + pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_padding_add_PKCS1_PSS"] + pub fn RSA_padding_add_PKCS1_PSS( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_PKCS1_PSS"] + pub fn RSA_verify_PKCS1_PSS( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_padding_add_PKCS1_OAEP"] + pub fn RSA_padding_add_PKCS1_OAEP( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_print"] + pub fn RSA_print( + bio: *mut BIO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_print_fp"] + pub fn RSA_print_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_get0_pss_params"] + pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_new_method_no_e"] + pub fn RSA_new_method_no_e(engine: *const ENGINE, n: *const BIGNUM) -> *mut RSA; } +pub type sk_X509_free_func = ::std::option::Option; +pub type sk_X509_copy_func = + ::std::option::Option *mut X509>; +pub type sk_X509_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509, + arg2: *const *const X509, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_it"] + pub static X509_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_up_ref"] + pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_chain_up_ref"] + pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_dup"] + pub fn X509_dup(x509: *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_free"] + pub fn X509_free(x509: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509"] + pub fn d2i_X509( + out: *mut *mut X509, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_parse_from_buffer"] + pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509"] + pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get_version"] + pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_serialNumber"] + pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_notBefore"] + pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get0_notAfter"] + pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get_issuer_name"] + pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_subject_name"] + pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_X509_PUBKEY"] + pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_pubkey"] + pub fn X509_get0_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get_pubkey"] + pub fn X509_get_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get0_pubkey_bitstr"] + pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; } -#[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_fips_0_13_0_X509_check_private_key"] + pub fn X509_check_private_key( + x509: *const X509, + pkey: *const EVP_PKEY, + ) -> ::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_fips_0_13_0_X509_get0_uids"] + pub fn X509_get0_uids( + x509: *const X509, + out_issuer_uid: *mut *const ASN1_BIT_STRING, + out_subject_uid: *mut *const ASN1_BIT_STRING, ); } -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_fips_0_13_0_X509_get_extension_flags"] + pub fn X509_get_extension_flags(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_pathlen"] + pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_key_usage"] + pub fn X509_get_key_usage(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_extended_key_usage"] + pub fn X509_get_extended_key_usage(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_subject_key_id"] + pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_key_id"] + pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ATTRIBUTE { +pub struct stack_st_GENERAL_NAME { _unused: [u8; 0], } -pub type sk_X509_ATTRIBUTE_free_func = - ::std::option::Option; -pub type sk_X509_ATTRIBUTE_copy_func = - ::std::option::Option *mut X509_ATTRIBUTE>; -pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< +pub type sk_GENERAL_NAME_free_func = + ::std::option::Option; +pub type sk_GENERAL_NAME_copy_func = + ::std::option::Option *mut GENERAL_NAME>; +pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_ATTRIBUTE, - arg2: *mut *const X509_ATTRIBUTE, + arg1: *const *const GENERAL_NAME, + arg2: *const *const GENERAL_NAME, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< +pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_ATTRIBUTE, + arg1: *mut GENERAL_NAME, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +pub type GENERAL_NAMES = stack_st_GENERAL_NAME; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_issuer"] + pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_serial"] + pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAME { +pub struct stack_st_X509_EXTENSION { _unused: [u8; 0], } -#[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: *mut x509_trust_st, - 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_fips_0_13_0_X509_get0_extensions"] + pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; } -#[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_fips_0_13_0_X509_get_ext_count"] + pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_NID"] + pub fn X509_get_ext_by_NID( + x: *const X509, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_OBJ"] + pub fn X509_get_ext_by_OBJ( + x: *const X509, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_critical"] + pub fn X509_get_ext_by_critical( + x: *const X509, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext"] + pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_d2i"] + pub fn X509_get_ext_d2i( + x509: *const X509, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_tbs_sigalg"] + pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_signature_info"] + pub fn X509_get_signature_info( + x509: *mut X509, + digest_nid: *mut ::std::os::raw::c_int, + pubkey_nid: *mut ::std::os::raw::c_int, + sec_bits: *mut ::std::os::raw::c_int, + flags: *mut u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_signature"] + pub fn X509_get0_signature( + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + x509: *const X509, ); } -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_fips_0_13_0_X509_get_signature_nid"] + pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_tbs"] + pub fn i2d_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } -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< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify"] + pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_email"] + pub fn X509_get1_email(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_ocsp"] + pub fn X509_get1_ocsp(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_email_free"] + pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_new"] + pub fn X509_new() -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_version"] + pub fn X509_set_version( + x509: *mut X509, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_serialNumber"] + pub fn X509_set_serialNumber( + x509: *mut X509, + serial: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notBefore"] + pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notAfter"] + pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notBefore"] + pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notAfter"] + pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_issuer_name"] + pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_subject_name"] + pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_pubkey"] + pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_delete_ext"] + pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add_ext"] + pub fn X509_add_ext( + x: *mut X509, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_ext_i2d"] + pub fn X509_add1_ext_i2d( + x: *mut X509, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign"] + pub fn X509_sign( + x509: *mut X509, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign_ctx"] + pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_tbs"] + pub fn i2d_re_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_algo"] + pub fn X509_set1_signature_algo( + x509: *mut X509, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_value"] + pub fn X509_set1_signature_value( + x509: *mut X509, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_AUX"] + pub fn i2d_X509_AUX(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_AUX"] + pub fn d2i_X509_AUX( + x509: *mut *mut X509, + inp: *mut *const u8, + length: ::std::os::raw::c_long, + ) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_set1"] + pub fn X509_alias_set1( + x509: *mut X509, + name: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_set1"] + pub fn X509_keyid_set1( + x509: *mut X509, + id: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_get0"] + pub fn X509_alias_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_get0"] + pub fn X509_keyid_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_trust_object"] + pub fn X509_add1_trust_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_reject_object"] + pub fn X509_add1_reject_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_trust_clear"] + pub fn X509_trust_clear(x509: *mut X509); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_reject_clear"] + pub fn X509_reject_clear(x509: *mut X509); +} +pub type sk_X509_CRL_free_func = ::std::option::Option; +pub type sk_X509_CRL_copy_func = + ::std::option::Option *mut X509_CRL>; +pub type sk_X509_CRL_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_TRUST, - arg2: *mut *const X509_TRUST, + arg1: *const *const X509_CRL, + arg2: *const *const X509_CRL, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_CRL_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_CRL, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_REVOKED { + _unused: [u8; 0], +} pub type sk_X509_REVOKED_free_func = ::std::option::Option; pub type sk_X509_REVOKED_copy_func = ::std::option::Option *mut X509_REVOKED>; pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_REVOKED, - arg2: *mut *const X509_REVOKED, + arg1: *const *const X509_REVOKED, + arg2: *const *const X509_REVOKED, ) -> ::std::os::raw::c_int, >; pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< @@ -20918,860 +19845,508 @@ pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAMES { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_it"] + pub static X509_CRL_it: ASN1_ITEM; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub version: ::std::os::raw::c_int, - pub enc_algor: *mut X509_ALGOR, - pub enc_pkey: *mut ASN1_OCTET_STRING, - pub dec_pkey: *mut EVP_PKEY, - pub key_length: ::std::os::raw::c_int, - pub key_data: *mut ::std::os::raw::c_char, - pub key_free: ::std::os::raw::c_int, - pub cipher: EVP_CIPHER_INFO, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_up_ref"] + pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::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::(), - 80usize, - 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).version) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_length) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_data) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_free) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(cipher) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_dup"] + pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; } -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_fips_0_13_0_X509_CRL_free"] + pub fn X509_CRL_free(crl: *mut X509_CRL); } -#[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_fips_0_13_0_d2i_X509_CRL"] + pub fn d2i_X509_CRL( + out: *mut *mut X509_CRL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *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_fips_0_13_0_i2d_X509_CRL"] + pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -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_fips_0_13_0_X509_CRL_get_version"] + pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_lastUpdate"] + pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } -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: *mut *const X509_INFO, - arg2: *mut *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, ->; -#[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_fips_0_13_0_X509_CRL_get0_nextUpdate"] + pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } -#[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) - ) - ); -} -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() - } - } -} -#[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) - ) - ); -} -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_fips_0_13_0_X509_CRL_get_issuer"] + pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_pathlen"] - pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_by_serial"] + pub fn X509_CRL_get0_by_serial( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + serial: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get0_by_cert"] + pub fn X509_CRL_get0_by_cert( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + x509: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get_REVOKED"] + pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get0_extensions"] + pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_verify"] - pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_count"] + pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_verify"] - pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_NID"] + pub fn X509_CRL_get_ext_by_NID( + x: *const X509_CRL, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_verify"] - pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_OBJ"] + pub fn X509_CRL_get_ext_by_OBJ( + x: *const X509_CRL, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_critical"] + pub fn X509_CRL_get_ext_by_critical( + x: *const X509_CRL, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext"] + pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get_ext_d2i"] + pub fn X509_CRL_get_ext_d2i( + crl: *const X509_CRL, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *mut NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_signature"] + pub fn X509_CRL_get0_signature( + crl: *const X509_CRL, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get_signature_nid"] + pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_CRL_tbs"] + pub fn i2d_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_dup"] - pub fn X509_ATTRIBUTE_dup(xa: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_verify"] + pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_dup"] - pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_new"] + pub fn X509_CRL_new() -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *mut time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set_version"] + pub fn X509_CRL_set_version( + crl: *mut X509_CRL, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_set_issuer_name"] + pub fn X509_CRL_set_issuer_name( + crl: *mut X509_CRL, + name: *mut X509_NAME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_set1_lastUpdate"] + pub fn X509_CRL_set1_lastUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *mut time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_nextUpdate"] + pub fn X509_CRL_set1_nextUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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: *mut time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add0_revoked"] + pub fn X509_CRL_add0_revoked( + crl: *mut X509_CRL, + rev: *mut X509_REVOKED, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_sort"] + pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_delete_ext"] + pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) + -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add_ext"] + pub fn X509_CRL_add_ext( + x: *mut X509_CRL, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add1_ext_i2d"] + pub fn X509_CRL_add1_ext_i2d( + x: *mut X509_CRL, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_sign"] + pub fn X509_CRL_sign( + crl: *mut X509_CRL, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_sign_ctx"] + pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_CRL_tbs"] + pub fn i2d_re_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_new"] - pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_algo"] + pub fn X509_CRL_set1_signature_algo( + crl: *mut X509_CRL, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_free"] - pub fn X509_PUBKEY_free(a: *mut X509_PUBKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_value"] + pub fn X509_CRL_set1_signature_value( + crl: *mut X509_CRL, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_PUBKEY"] - pub fn d2i_X509_PUBKEY( - a: *mut *mut X509_PUBKEY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_http_nbio"] + pub fn X509_CRL_http_nbio( + rctx: *mut OCSP_REQ_CTX, + pcrl: *mut *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_PUBKEY"] - pub fn i2d_X509_PUBKEY( - a: *const X509_PUBKEY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_it"] + pub static X509_REVOKED_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_it"] - pub static X509_PUBKEY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_new"] + pub fn X509_REVOKED_new() -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_set"] - pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_free"] + pub fn X509_REVOKED_free(rev: *mut X509_REVOKED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get"] - pub fn X509_PUBKEY_get(key: *mut X509_PUBKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REVOKED"] + pub fn d2i_X509_REVOKED( + out: *mut *mut X509_REVOKED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REVOKED"] + pub fn i2d_X509_REVOKED(alg: *const X509_REVOKED, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_free"] - pub fn X509_SIG_free(a: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_dup"] + pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - a: *mut *mut X509_SIG, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_serialNumber"] + pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_SIG"] - pub fn i2d_X509_SIG( - a: *const X509_SIG, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_serialNumber"] + pub fn X509_REVOKED_set_serialNumber( + revoked: *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_revocationDate"] + pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_new"] - pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_revocationDate"] + pub fn X509_REVOKED_set_revocationDate( + revoked: *mut X509_REVOKED, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_free"] - pub fn X509_ATTRIBUTE_free(a: *mut X509_ATTRIBUTE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_extensions"] + pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ATTRIBUTE"] - pub fn d2i_X509_ATTRIBUTE( - a: *mut *mut X509_ATTRIBUTE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_count"] + pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ATTRIBUTE"] - pub fn i2d_X509_ATTRIBUTE( - a: *const X509_ATTRIBUTE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_it"] - pub static X509_ATTRIBUTE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create"] - pub fn X509_ATTRIBUTE_create( + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_NID"] + pub fn X509_REVOKED_get_ext_by_NID( + x: *const X509_REVOKED, nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_trust_object"] - pub fn X509_add1_trust_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_reject_object"] - pub fn X509_add1_reject_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_trust_clear"] - pub fn X509_trust_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_reject_clear"] - pub fn X509_reject_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_new"] - pub fn X509_REVOKED_new() -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_free"] - pub fn X509_REVOKED_free(a: *mut X509_REVOKED); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REVOKED"] - pub fn d2i_X509_REVOKED( - a: *mut *mut X509_REVOKED, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_REVOKED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_OBJ"] + pub fn X509_REVOKED_get_ext_by_OBJ( + x: *const X509_REVOKED, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REVOKED"] - pub fn i2d_X509_REVOKED( - a: *const X509_REVOKED, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_critical"] + pub fn X509_REVOKED_get_ext_by_critical( + x: *const X509_REVOKED, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_it"] - pub static X509_REVOKED_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext"] + pub fn X509_REVOKED_get_ext( + x: *const X509_REVOKED, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add0_revoked"] - pub fn X509_CRL_add0_revoked( - crl: *mut X509_CRL, - rev: *mut X509_REVOKED, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_delete_ext"] + pub fn X509_REVOKED_delete_ext( + x: *mut X509_REVOKED, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_serial"] - pub fn X509_CRL_get0_by_serial( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - serial: *mut ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add_ext"] + pub fn X509_REVOKED_add_ext( + x: *mut X509_REVOKED, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_cert"] - pub fn X509_CRL_get0_by_cert( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_d2i"] + pub fn X509_REVOKED_get_ext_d2i( + revoked: *const X509_REVOKED, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_new"] - pub fn X509_PKEY_new() -> *mut X509_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add1_ext_i2d"] + pub fn X509_REVOKED_add1_ext_i2d( + x: *mut X509_REVOKED, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_free"] - pub fn X509_PKEY_free(a: *mut X509_PKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_it"] + pub static X509_REQ_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_dup"] + pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(a: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_free"] + pub fn X509_REQ_free(req: *mut X509_REQ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - a: *mut *mut NETSCAPE_SPKI, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REQ"] + pub fn d2i_X509_REQ( + out: *mut *mut X509_REQ, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - a: *const NETSCAPE_SPKI, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REQ"] + pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_version"] + pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_subject_name"] + pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(a: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_pubkey"] + pub fn X509_REQ_get0_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - a: *mut *mut NETSCAPE_SPKAC, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_pubkey"] + pub fn X509_REQ_get_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - a: *const NETSCAPE_SPKAC, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_check_private_key"] + pub fn X509_REQ_check_private_key( + req: *const X509_REQ, + pkey: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_new"] - pub fn X509_INFO_new() -> *mut X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_free"] - pub fn X509_INFO_free(a: *mut X509_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - a: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_count"] + pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_attr"] + pub fn X509_REQ_get_attr( + req: *const X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_by_NID"] + pub fn X509_REQ_get_attr_by_NID( + req: *const X509_REQ, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_by_OBJ"] + pub fn X509_REQ_get_attr_by_OBJ( + req: *const X509_REQ, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_extension_nid"] + pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_extensions"] + pub fn X509_REQ_get_extensions(req: *const X509_REQ) -> *mut stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_extension_nid"] - pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_signature"] + pub fn X509_REQ_get0_signature( + req: *const X509_REQ, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_extensions"] - pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_signature_nid"] + pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions_nid"] - pub fn X509_REQ_add_extensions_nid( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_verify"] + pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions"] - pub fn X509_REQ_add_extensions( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get1_email"] + pub fn X509_REQ_get1_email(req: *const X509_REQ) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_count"] - pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_new"] + pub fn X509_REQ_new() -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_NID"] - pub fn X509_REQ_get_attr_by_NID( - req: *const X509_REQ, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_version"] + pub fn X509_REQ_set_version( + req: *mut X509_REQ, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_OBJ"] - pub fn X509_REQ_get_attr_by_OBJ( - req: *const X509_REQ, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_subject_name"] + pub fn X509_REQ_set_subject_name( + req: *mut X509_REQ, + name: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr"] - pub fn X509_REQ_get_attr( - req: *const X509_REQ, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_pubkey"] + pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_delete_attr"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_delete_attr"] pub fn X509_REQ_delete_attr( req: *mut X509_REQ, loc: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr"] pub fn X509_REQ_add1_attr( req: *mut X509_REQ, - attr: *mut X509_ATTRIBUTE, + attr: *const X509_ATTRIBUTE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_OBJ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_OBJ"] pub fn X509_REQ_add1_attr_by_OBJ( req: *mut X509_REQ, obj: *const ASN1_OBJECT, @@ -21781,7 +20356,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_NID"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_NID"] pub fn X509_REQ_add1_attr_by_NID( req: *mut X509_REQ, nid: ::std::os::raw::c_int, @@ -21791,7 +20366,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_txt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_txt"] pub fn X509_REQ_add1_attr_by_txt( req: *mut X509_REQ, attrname: *const ::std::os::raw::c_char, @@ -21801,621 +20376,627 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sort"] - pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_serialNumber"] - pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_set_serialNumber"] - pub fn X509_REVOKED_set_serialNumber( - revoked: *mut X509_REVOKED, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add_extensions_nid"] + pub fn X509_REQ_add_extensions_nid( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_revocationDate"] - pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_set_revocationDate"] - pub fn X509_REVOKED_set_revocationDate( - revoked: *mut X509_REVOKED, - tm: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add_extensions"] + pub fn X509_REQ_add_extensions( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_extensions"] - pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_diff"] - pub fn X509_CRL_diff( - base: *mut X509_CRL, - newer: *mut X509_CRL, - skey: *mut EVP_PKEY, - md: *const EVP_MD, - flags: ::std::os::raw::c_uint, - ) -> *mut X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_check_private_key"] - pub fn X509_REQ_check_private_key( - x509: *mut X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_sign"] + pub fn X509_REQ_sign( + req: *mut X509_REQ, pkey: *mut EVP_PKEY, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_private_key"] - pub fn X509_check_private_key(x509: *mut X509, pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_sign_ctx"] + pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_REQ_tbs"] + pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_set1_signature_algo"] + pub fn X509_REQ_set1_signature_algo( + req: *mut X509_REQ, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x: *mut X509) -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set1_signature_value"] + pub fn X509_REQ_set1_signature_value( + req: *mut X509_REQ, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME_ENTRY { + _unused: [u8; 0], +} +pub type sk_X509_NAME_ENTRY_free_func = + ::std::option::Option; +pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +>; +pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME_ENTRY, + arg2: *const *const X509_NAME_ENTRY, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME_ENTRY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME { + _unused: [u8; 0], } +pub type sk_X509_NAME_free_func = ::std::option::Option; +pub type sk_X509_NAME_copy_func = + ::std::option::Option *mut X509_NAME>; +pub type sk_X509_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME, + arg2: *const *const X509_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_it"] + pub static X509_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_new"] + pub fn X509_NAME_new() -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_cmp"] - pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_free"] + pub fn X509_NAME_free(name: *mut X509_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash"] - pub fn X509_NAME_hash(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_NAME"] + pub fn d2i_X509_NAME( + out: *mut *mut X509_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_NAME"] + pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_dup"] + pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_cmp"] + pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - bp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get0_der"] + pub fn X509_NAME_get0_der( + name: *mut X509_NAME, + out_der: *mut *const u8, + out_der_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_print_fp"] - pub fn X509_print_fp(bp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_set"] + pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(bp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_entry_count"] + pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(bp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_index_by_NID"] + pub fn X509_NAME_get_index_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get_index_by_OBJ"] + pub fn X509_NAME_get_index_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_entry"] + pub fn X509_NAME_get_entry( name: *const X509_NAME, - obase: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_delete_entry"] + pub fn X509_NAME_delete_entry( + name: *mut X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry"] + pub fn X509_NAME_add_entry( + name: *mut X509_NAME, + entry: *const X509_NAME_ENTRY, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry_by_OBJ"] + pub fn X509_NAME_add_entry_by_OBJ( + name: *mut X509_NAME, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_NID"] + pub fn X509_NAME_add_entry_by_NID( + name: *mut X509_NAME, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry_by_txt"] + pub fn X509_NAME_add_entry_by_txt( + name: *mut X509_NAME, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_it"] + pub static X509_NAME_ENTRY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_d2i"] - pub fn X509_get_ext_d2i( - x509: *const X509, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_new"] + pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_ext_i2d"] - pub fn X509_add1_ext_i2d( - x: *mut X509, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_free"] + pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_d2i"] - pub fn X509_CRL_get_ext_d2i( - crl: *const X509_CRL, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_NAME_ENTRY"] + pub fn d2i_X509_NAME_ENTRY( + out: *mut *mut X509_NAME_ENTRY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add1_ext_i2d"] - pub fn X509_CRL_add1_ext_i2d( - x: *mut X509_CRL, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_NAME_ENTRY"] + pub fn i2d_X509_NAME_ENTRY( + in_: *const X509_NAME_ENTRY, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_count"] - pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_dup"] + pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_by_NID"] - pub fn X509_REVOKED_get_ext_by_NID( - x: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_object"] + pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_by_OBJ"] - pub fn X509_REVOKED_get_ext_by_OBJ( - x: *const X509_REVOKED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_object"] + pub fn X509_NAME_ENTRY_set_object( + entry: *mut X509_NAME_ENTRY, obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_by_critical"] - pub fn X509_REVOKED_get_ext_by_critical( - x: *const X509_REVOKED, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_data"] + pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext"] - pub fn X509_REVOKED_get_ext( - x: *const X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_data"] + pub fn X509_NAME_ENTRY_set_data( + entry: *mut X509_NAME_ENTRY, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_delete_ext"] - pub fn X509_REVOKED_delete_ext( - x: *mut X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set"] + pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_add_ext"] - pub fn X509_REVOKED_add_ext( - x: *mut X509_REVOKED, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_create_by_OBJ"] + pub fn X509_NAME_ENTRY_create_by_OBJ( + out: *mut *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_d2i"] - pub fn X509_REVOKED_get_ext_d2i( - revoked: *const X509_REVOKED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_create_by_NID"] + pub fn X509_NAME_ENTRY_create_by_NID( + out: *mut *mut X509_NAME_ENTRY, nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_add1_ext_i2d"] - pub fn X509_REVOKED_add1_ext_i2d( - x: *mut X509_REVOKED, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_create_by_txt"] + pub fn X509_NAME_ENTRY_create_by_txt( + out: *mut *mut X509_NAME_ENTRY, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_count"] - pub fn X509at_get_attr_count(x: *const stack_st_X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_it"] + pub static X509_PUBKEY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_by_NID"] - pub fn X509at_get_attr_by_NID( - x: *const stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_new"] + pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_by_OBJ"] - pub fn X509at_get_attr_by_OBJ( - sk: *const stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr"] - pub fn X509at_get_attr( - x: *const stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_delete_attr"] - pub fn X509at_delete_attr( - x: *mut stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr"] - pub fn X509at_add1_attr( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attr: *mut X509_ATTRIBUTE, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_free"] + pub fn X509_PUBKEY_free(key: *mut X509_PUBKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr_by_OBJ"] - pub fn X509at_add1_attr_by_OBJ( - x: *mut *mut stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_PUBKEY"] + pub fn d2i_X509_PUBKEY( + out: *mut *mut X509_PUBKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr_by_NID"] - pub fn X509at_add1_attr_by_NID( - x: *mut *mut stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_PUBKEY"] + pub fn i2d_X509_PUBKEY(key: *const X509_PUBKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr_by_txt"] - pub fn X509at_add1_attr_by_txt( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_set"] + pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create_by_NID"] - pub fn X509_ATTRIBUTE_create_by_NID( - attr: *mut *mut X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get0"] + pub fn X509_PUBKEY_get0(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create_by_OBJ"] - pub fn X509_ATTRIBUTE_create_by_OBJ( - attr: *mut *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get"] + pub fn X509_PUBKEY_get(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create_by_txt"] - pub fn X509_ATTRIBUTE_create_by_txt( - attr: *mut *mut X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_set0_param"] + pub fn X509_PUBKEY_set0_param( + pub_: *mut X509_PUBKEY, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + key: *mut u8, + key_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_set1_object"] - pub fn X509_ATTRIBUTE_set1_object( - attr: *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get0_param"] + pub fn X509_PUBKEY_get0_param( + out_obj: *mut *mut ASN1_OBJECT, + out_key: *mut *const u8, + out_key_len: *mut ::std::os::raw::c_int, + out_alg: *mut *mut X509_ALGOR, + pub_: *mut X509_PUBKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_set1_data"] - pub fn X509_ATTRIBUTE_set1_data( - attr: *mut X509_ATTRIBUTE, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get0_public_key"] + pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_get0_data"] - pub fn X509_ATTRIBUTE_get0_data( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - unused: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_it"] + pub static X509_EXTENSION_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_count"] - pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_new"] + pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_get0_object"] - pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_free"] + pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_get0_type"] - pub fn X509_ATTRIBUTE_get0_type( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - ) -> *mut ASN1_TYPE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_EXTENSION"] + pub fn d2i_X509_EXTENSION( + out: *mut *mut X509_EXTENSION, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_EXTENSION"] + pub fn i2d_X509_EXTENSION( + ex: *const X509_EXTENSION, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_dup"] + pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(a: *mut PKCS8_PRIV_KEY_INFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_create_by_NID"] + pub fn X509_EXTENSION_create_by_NID( + ex: *mut *mut X509_EXTENSION, + nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - a: *mut *mut PKCS8_PRIV_KEY_INFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_create_by_OBJ"] + pub fn X509_EXTENSION_create_by_OBJ( + ex: *mut *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - a: *const PKCS8_PRIV_KEY_INFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_get_object"] + pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_get_data"] + pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_get_critical"] + pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_object"] + pub fn X509_EXTENSION_set_object( + ex: *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_set0_param"] - pub fn X509_PUBKEY_set0_param( - pub_: *mut X509_PUBKEY, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - key: *mut u8, - key_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_critical"] + pub fn X509_EXTENSION_set_critical( + ex: *mut X509_EXTENSION, + crit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get0_param"] - pub fn X509_PUBKEY_get0_param( - out_obj: *mut *mut ASN1_OBJECT, - out_key: *mut *const u8, - out_key_len: *mut ::std::os::raw::c_int, - out_alg: *mut *mut X509_ALGOR, - pub_: *mut X509_PUBKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_data"] + pub fn X509_EXTENSION_set_data( + ex: *mut X509_EXTENSION, + data: *const ASN1_OCTET_STRING, ) -> ::std::os::raw::c_int; } +pub type sk_X509_EXTENSION_free_func = + ::std::option::Option; +pub type sk_X509_EXTENSION_copy_func = + ::std::option::Option *mut X509_EXTENSION>; +pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_EXTENSION, + arg2: *const *const X509_EXTENSION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_EXTENSION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get0_public_key"] - pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSIONS_it"] + pub static X509_EXTENSIONS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSIONS"] + pub fn d2i_X509_EXTENSIONS( + out: *mut *mut X509_EXTENSIONS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSIONS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_EXTENSIONS"] + pub fn i2d_X509_EXTENSIONS( + alg: *const X509_EXTENSIONS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *mut X509_TRUST; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_count"] + pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_get_ext_by_NID"] + pub fn X509v3_get_ext_by_NID( + x: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_add"] - pub fn X509_TRUST_add( - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_OBJ"] + pub fn X509v3_get_ext_by_OBJ( + x: *const stack_st_X509_EXTENSION, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_cleanup"] - pub fn X509_TRUST_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_critical"] + pub fn X509v3_get_ext_by_critical( + x: *const stack_st_X509_EXTENSION, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_get_ext"] + pub fn X509v3_get_ext( + x: *const stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_delete_ext"] + pub fn X509v3_delete_ext( + x: *mut stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_add_ext"] + pub fn X509v3_add_ext( + x: *mut *mut stack_st_X509_EXTENSION, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut stack_st_X509_EXTENSION; } #[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, +pub struct otherName_st { + pub type_id: *mut ASN1_OBJECT, + pub value: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_otherName_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)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(otherName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) + concat!("Alignment of ", stringify!(otherName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(otherName_st), "::", - stringify!(hashAlgorithm) + stringify!(type_id) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(otherName_st), "::", - stringify!(maskGenAlgorithm) + stringify!(value) ) ); +} +impl Default for otherName_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() + } + } +} +pub type OTHERNAME = otherName_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct EDIPartyName_st { + pub nameAssigner: *mut ASN1_STRING, + pub partyName: *mut ASN1_STRING, +} +#[test] +fn bindgen_test_layout_EDIPartyName_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) + concat!("Size of: ", stringify!(EDIPartyName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(EDIPartyName_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(EDIPartyName_st), "::", - stringify!(trailerField) + stringify!(nameAssigner) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(EDIPartyName_st), "::", - stringify!(maskHash) + stringify!(partyName) ) ); } -impl Default for rsa_pss_params_st { +impl Default for EDIPartyName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22424,1049 +21005,1142 @@ impl Default for rsa_pss_params_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(a: *mut RSA_PSS_PARAMS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - a: *mut *mut RSA_PSS_PARAMS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - a: *const RSA_PSS_PARAMS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_LOOKUP { - _unused: [u8; 0], -} -pub type sk_X509_LOOKUP_free_func = - ::std::option::Option; -pub type sk_X509_LOOKUP_copy_func = - ::std::option::Option *mut X509_LOOKUP>; -pub type sk_X509_LOOKUP_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_LOOKUP, - arg2: *mut *const X509_LOOKUP, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_LOOKUP_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_LOOKUP, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; +pub type EDIPARTYNAME = EDIPartyName_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], +#[derive(Copy, Clone)] +pub struct GENERAL_NAME_st { + pub type_: ::std::os::raw::c_int, + pub d: GENERAL_NAME_st__bindgen_ty_1, } -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: *mut *const X509_OBJECT, - arg2: *mut *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, ->; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_VERIFY_PARAM { - _unused: [u8; 0], -} -pub type sk_X509_VERIFY_PARAM_free_func = - ::std::option::Option; -pub type sk_X509_VERIFY_PARAM_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_VERIFY_PARAM) -> *mut X509_VERIFY_PARAM, ->; -pub type sk_X509_VERIFY_PARAM_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_VERIFY_PARAM, - arg2: *mut *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_VERIFY_PARAM_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_VERIFY_PARAM, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -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, ->; -pub type X509_STORE_CTX_verify_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_get_issuer_fn = ::std::option::Option< - unsafe extern "C" fn( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_issued_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - x: *mut X509, - issuer: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_revocation_fn = - ::std::option::Option ::std::os::raw::c_int>; -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, ->; -pub type X509_STORE_CTX_cert_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_policy_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_lookup_certs_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509, ->; -pub type X509_STORE_CTX_lookup_crls_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509_CRL, ->; -pub type X509_STORE_CTX_cleanup_fn = - ::std::option::Option ::std::os::raw::c_int>; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_OBJECT_idx_by_subject"] - pub fn X509_OBJECT_idx_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_retrieve_by_subject"] - pub fn X509_OBJECT_retrieve_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> *mut X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_retrieve_match"] - pub fn X509_OBJECT_retrieve_match( - h: *mut stack_st_X509_OBJECT, - x: *mut X509_OBJECT, - ) -> *mut X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_up_ref_count"] - pub fn X509_OBJECT_up_ref_count(a: *mut X509_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_free_contents"] - pub fn X509_OBJECT_free_contents(a: *mut X509_OBJECT); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(a: *const X509_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(a: *const X509_OBJECT) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_STORE_free"] - pub fn X509_STORE_free(v: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_STORE_get1_certs"] - pub fn X509_STORE_get1_certs(st: *mut X509_STORE_CTX, nm: *mut X509_NAME) - -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get1_crls"] - pub fn X509_STORE_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - ctx: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - ctx: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - ctx: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - ctx: *mut X509_STORE, - pm: *mut X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(ctx: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_verify"] - pub fn X509_STORE_set_verify(ctx: *mut X509_STORE, verify: X509_STORE_CTX_verify_fn); -} -extern "C" { - pub fn X509_STORE_CTX_set_verify(ctx: *mut X509_STORE_CTX, verify: X509_STORE_CTX_verify_fn); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_verify"] - pub fn X509_STORE_get_verify(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_fn; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(ctx: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_verify_cb"] - pub fn X509_STORE_get_verify_cb(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_cb; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_get_issuer"] - pub fn X509_STORE_set_get_issuer( - ctx: *mut X509_STORE, - get_issuer: X509_STORE_CTX_get_issuer_fn, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_get_issuer"] - pub fn X509_STORE_get_get_issuer(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_issuer_fn; +#[derive(Copy, Clone)] +pub union GENERAL_NAME_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub otherName: *mut OTHERNAME, + pub rfc822Name: *mut ASN1_IA5STRING, + pub dNSName: *mut ASN1_IA5STRING, + pub x400Address: *mut ASN1_STRING, + pub directoryName: *mut X509_NAME, + pub ediPartyName: *mut EDIPARTYNAME, + pub uniformResourceIdentifier: *mut ASN1_IA5STRING, + pub iPAddress: *mut ASN1_OCTET_STRING, + pub registeredID: *mut ASN1_OBJECT, + pub ip: *mut ASN1_OCTET_STRING, + pub dirn: *mut X509_NAME, + pub ia5: *mut ASN1_IA5STRING, + pub rid: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_check_issued"] - pub fn X509_STORE_set_check_issued( - ctx: *mut X509_STORE, - check_issued: X509_STORE_CTX_check_issued_fn, +#[test] +fn bindgen_test_layout_GENERAL_NAME_st__bindgen_ty_1() { + 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!(GENERAL_NAME_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(otherName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rfc822Name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dNSName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(x400Address) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(directoryName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ediPartyName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ediPartyName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(uniformResourceIdentifier) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(iPAddress) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(registeredID) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ip) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dirn) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ia5) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rid) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_issued"] - pub fn X509_STORE_get_check_issued(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_issued_fn; +impl Default for GENERAL_NAME_st__bindgen_ty_1 { + 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_fips_0_12_15_X509_STORE_set_check_revocation"] - pub fn X509_STORE_set_check_revocation( - ctx: *mut X509_STORE, - check_revocation: X509_STORE_CTX_check_revocation_fn, +#[test] +fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(d) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_revocation"] - pub fn X509_STORE_get_check_revocation( - ctx: *mut X509_STORE, - ) -> X509_STORE_CTX_check_revocation_fn; +impl Default for GENERAL_NAME_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_fips_0_12_15_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(ctx: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_new"] + pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_get_crl"] - pub fn X509_STORE_get_get_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_free"] + pub fn GENERAL_NAME_free(gen: *mut GENERAL_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(ctx: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAME"] + pub fn d2i_GENERAL_NAME( + out: *mut *mut GENERAL_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_crl"] - pub fn X509_STORE_get_check_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAME"] + pub fn i2d_GENERAL_NAME(in_: *mut GENERAL_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_cert_crl"] - pub fn X509_STORE_set_cert_crl(ctx: *mut X509_STORE, cert_crl: X509_STORE_CTX_cert_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_dup"] + pub fn GENERAL_NAME_dup(gen: *mut GENERAL_NAME) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_cert_crl"] - pub fn X509_STORE_get_cert_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_cert_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_new"] + pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_lookup_certs"] - pub fn X509_STORE_set_lookup_certs( - ctx: *mut X509_STORE, - lookup_certs: X509_STORE_CTX_lookup_certs_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_free"] + pub fn GENERAL_NAMES_free(gens: *mut GENERAL_NAMES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_lookup_certs"] - pub fn X509_STORE_get_lookup_certs(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_certs_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAMES"] + pub fn d2i_GENERAL_NAMES( + out: *mut *mut GENERAL_NAMES, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_lookup_crls"] - pub fn X509_STORE_set_lookup_crls( - ctx: *mut X509_STORE, - lookup_crls: X509_STORE_CTX_lookup_crls_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAMES"] + pub fn i2d_GENERAL_NAMES(in_: *mut GENERAL_NAMES, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_lookup_crls"] - pub fn X509_STORE_get_lookup_crls(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_crls_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_new"] + pub fn OTHERNAME_new() -> *mut OTHERNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_cleanup"] - pub fn X509_STORE_set_cleanup(ctx: *mut X509_STORE, cleanup: X509_STORE_CTX_cleanup_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_free"] + pub fn OTHERNAME_free(name: *mut OTHERNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_cleanup"] - pub fn X509_STORE_get_cleanup(ctx: *mut X509_STORE) -> X509_STORE_CTX_cleanup_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_new"] + pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_free"] + pub fn EDIPARTYNAME_free(name: *mut EDIPARTYNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_NAME_set0_value"] + pub fn GENERAL_NAME_set0_value( + gen: *mut GENERAL_NAME, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_zero"] - pub fn X509_STORE_CTX_zero(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_value"] + pub fn GENERAL_NAME_get0_value( + gen: *const GENERAL_NAME, + out_type: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_set0_othername"] + pub fn GENERAL_NAME_set0_othername( + gen: *mut GENERAL_NAME, + oid: *mut ASN1_OBJECT, + value: *mut ASN1_TYPE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_otherName"] + pub fn GENERAL_NAME_get0_otherName( + gen: *const GENERAL_NAME, + out_oid: *mut *mut ASN1_OBJECT, + out_value: *mut *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ALGOR { + _unused: [u8; 0], } +pub type sk_X509_ALGOR_free_func = + ::std::option::Option; +pub type sk_X509_ALGOR_copy_func = + ::std::option::Option *mut X509_ALGOR>; +pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ALGOR, + arg2: *const *const X509_ALGOR, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ALGOR, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_it"] + pub static X509_ALGOR_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_new"] + pub fn X509_ALGOR_new() -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_dup"] + pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *mut X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_free"] + pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ALGOR"] + pub fn d2i_X509_ALGOR( + out: *mut *mut X509_ALGOR, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ALGOR"] + pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_set0"] + pub fn X509_ALGOR_set0( + alg: *mut X509_ALGOR, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_get0"] + pub fn X509_ALGOR_get0( + out_obj: *mut *const ASN1_OBJECT, + out_param_type: *mut ::std::os::raw::c_int, + out_param_value: *mut *const ::std::os::raw::c_void, + alg: *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_by_subject"] - pub fn X509_STORE_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_set_md"] + pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_cmp"] + pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ATTRIBUTE { + _unused: [u8; 0], } +pub type sk_X509_ATTRIBUTE_free_func = + ::std::option::Option; +pub type sk_X509_ATTRIBUTE_copy_func = + ::std::option::Option *mut X509_ATTRIBUTE>; +pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ATTRIBUTE, + arg2: *const *const X509_ATTRIBUTE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ATTRIBUTE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_it"] + pub static X509_ATTRIBUTE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_new"] + pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_new"] - pub fn X509_LOOKUP_new(method: *mut X509_LOOKUP_METHOD) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_dup"] + pub fn X509_ATTRIBUTE_dup(attr: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_free"] + pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_init"] - pub fn X509_LOOKUP_init(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ATTRIBUTE"] + pub fn d2i_X509_ATTRIBUTE( + out: *mut *mut X509_ATTRIBUTE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_by_subject"] - pub fn X509_LOOKUP_by_subject( - ctx: *mut X509_LOOKUP, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ATTRIBUTE"] + pub fn i2d_X509_ATTRIBUTE( + alg: *const X509_ATTRIBUTE, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_shutdown"] - pub fn X509_LOOKUP_shutdown(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create"] + pub fn X509_ATTRIBUTE_create( + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_NID"] + pub fn X509_ATTRIBUTE_create_by_NID( + attr: *mut *mut X509_ATTRIBUTE, + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_OBJ"] + pub fn X509_ATTRIBUTE_create_by_OBJ( + attr: *mut *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_txt"] + pub fn X509_ATTRIBUTE_create_by_txt( + attr: *mut *mut X509_ATTRIBUTE, + attrname: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_object"] + pub fn X509_ATTRIBUTE_set1_object( + attr: *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_set1_data"] + pub fn X509_ATTRIBUTE_set1_data( + attr: *mut X509_ATTRIBUTE, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_get0_data"] + pub fn X509_ATTRIBUTE_get0_data( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + unused: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_count"] + pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_get0_object"] + pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_get0_type"] + pub fn X509_ATTRIBUTE_get0_type( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + 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_fips_0_12_15_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( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_name"] - pub fn X509_VERIFY_PARAM_set1_name( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_depth"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set_time"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set_time_posix"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_add0_policy"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_policies"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_host"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add1_host"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, - namelen: usize, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_hostflags"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get0_peername"] - pub fn X509_VERIFY_PARAM_get0_peername( - arg1: *mut X509_VERIFY_PARAM, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set1_email"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set1_ip"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set1_ip_asc"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_12_15_X509_VERIFY_PARAM_get0_name"] - pub fn X509_VERIFY_PARAM_get0_name( - param: *const X509_VERIFY_PARAM, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add0_table"] - pub fn X509_VERIFY_PARAM_add0_table(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get_count"] - pub fn X509_VERIFY_PARAM_get_count() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0"] - pub fn X509_VERIFY_PARAM_get0(id: ::std::os::raw::c_int) -> *const X509_VERIFY_PARAM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_lookup"] - pub fn X509_VERIFY_PARAM_lookup( - name: *const ::std::os::raw::c_char, - ) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_table_cleanup"] - pub fn X509_VERIFY_PARAM_table_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -pub type X509V3_EXT_METHOD = v3_ext_method; -pub type X509V3_EXT_NEW = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type X509V3_EXT_FREE = - ::std::option::Option; -pub type X509V3_EXT_D2I = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2D = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_I2V = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE, ->; -pub type X509V3_EXT_V2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - values: *const stack_st_CONF_VALUE, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2S = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; -pub type X509V3_EXT_S2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2R = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - out: *mut BIO, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_R2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_method { - pub ext_nid: ::std::os::raw::c_int, - pub ext_flags: ::std::os::raw::c_int, - pub it: *const ASN1_ITEM_st, - pub ext_new: X509V3_EXT_NEW, - pub ext_free: X509V3_EXT_FREE, - pub d2i: X509V3_EXT_D2I, - pub i2d: X509V3_EXT_I2D, - pub i2s: X509V3_EXT_I2S, - pub s2i: X509V3_EXT_S2I, - pub i2v: X509V3_EXT_I2V, - pub v2i: X509V3_EXT_V2I, - pub i2r: X509V3_EXT_I2R, - pub r2i: X509V3_EXT_R2I, - pub usr_data: *mut ::std::os::raw::c_void, +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_v3_ext_method() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 104usize, - concat!("Size of: ", stringify!(v3_ext_method)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(v3_ext_method)) + concat!("Alignment of ", stringify!(Netscape_spki_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_nid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spki_st), "::", - stringify!(ext_flags) + stringify!(spkac) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spki_st), "::", - stringify!(it) + stringify!(sig_algor) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spki_st), "::", - stringify!(d2i) + stringify!(signature) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2d) - ) +} +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_fips_0_13_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, +} +#[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!( - unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, - 48usize, + ::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!(v3_ext_method), + stringify!(Netscape_spkac_st), "::", - stringify!(i2s) + stringify!(pubkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spkac_st), "::", - stringify!(s2i) + stringify!(challenge) ) ); +} +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_fips_0_13_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::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, +} +#[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!( - unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, - 64usize, + ::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!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(i2v) + stringify!(hashAlgorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(v2i) + stringify!(maskGenAlgorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(i2r) + stringify!(saltLength) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, - 88usize, + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(r2i) + stringify!(trailerField) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 96usize, + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(usr_data) + stringify!(maskHash) ) ); } -impl Default for v3_ext_method { +impl Default for rsa_pss_params_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23475,361 +22149,944 @@ impl Default for v3_ext_method { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509V3_EXT_METHOD { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; } -pub type sk_X509V3_EXT_METHOD_free_func = - ::std::option::Option; -pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, ->; -pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509V3_EXT_METHOD, - arg2: *mut *const X509V3_EXT_METHOD, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509V3_EXT_METHOD, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct BASIC_CONSTRAINTS_st { - pub ca: ::std::os::raw::c_int, - pub pathlen: *mut ASN1_INTEGER, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_BASIC_CONSTRAINTS_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!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(ca) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(pathlen) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } -impl Default for BASIC_CONSTRAINTS_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_fips_0_13_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct otherName_st { - pub type_id: *mut ASN1_OBJECT, - pub value: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_otherName_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!(otherName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(otherName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(type_id) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; } -impl Default for otherName_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_fips_0_13_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; } -pub type OTHERNAME = otherName_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EDIPartyName_st { - pub nameAssigner: *mut ASN1_STRING, - pub partyName: *mut ASN1_STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_EDIPartyName_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!(EDIPartyName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EDIPartyName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(nameAssigner) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(partyName) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -impl Default for EDIPartyName_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_fips_0_13_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; } -pub type EDIPARTYNAME = EDIPartyName_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct GENERAL_NAME_st { - pub type_: ::std::os::raw::c_int, - pub d: GENERAL_NAME_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union GENERAL_NAME_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub otherName: *mut OTHERNAME, - pub rfc822Name: *mut ASN1_IA5STRING, - pub dNSName: *mut ASN1_IA5STRING, - pub x400Address: *mut ASN1_STRING, - pub directoryName: *mut X509_NAME, - pub ediPartyName: *mut EDIPARTYNAME, - pub uniformResourceIdentifier: *mut ASN1_IA5STRING, - pub iPAddress: *mut ASN1_OCTET_STRING, - pub registeredID: *mut ASN1_OBJECT, - pub ip: *mut ASN1_OCTET_STRING, - pub dirn: *mut X509_NAME, - pub ia5: *mut ASN1_IA5STRING, - pub rid: *mut ASN1_OBJECT, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_GENERAL_NAME_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + concat!("Size of: ", stringify!(private_key_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(otherName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(rfc822Name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(dNSName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(x400Address) - ) + concat!("Alignment of ", stringify!(private_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(private_key_st), "::", - stringify!(directoryName) + 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).ediPartyName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ediPartyName) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(uniformResourceIdentifier) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(iPAddress) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(registeredID) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ip) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(dirn) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ia5) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(rid) + stringify!(enc_data) ) ); } -impl Default for GENERAL_NAME_st__bindgen_ty_1 { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23838,127 +23095,116 @@ impl Default for GENERAL_NAME_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(d) - ) - ); -} -impl Default for GENERAL_NAME_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)] +pub struct stack_st_X509_INFO { + _unused: [u8; 0], } -pub type GENERAL_NAME = GENERAL_NAME_st; -pub type sk_GENERAL_NAME_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAME_copy_func = - ::std::option::Option *mut GENERAL_NAME>; -pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const GENERAL_NAME, - arg2: *mut *const GENERAL_NAME, - ) -> ::std::os::raw::c_int, ->; -pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut GENERAL_NAME, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type GENERAL_NAMES = stack_st_GENERAL_NAME; -pub type sk_GENERAL_NAMES_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAMES_copy_func = - ::std::option::Option *mut GENERAL_NAMES>; -pub type sk_GENERAL_NAMES_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: *mut *const GENERAL_NAMES, - arg2: *mut *const GENERAL_NAMES, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_NAMES_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_NAMES, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ACCESS_DESCRIPTION_st { - pub method: *mut ASN1_OBJECT, - pub location: *mut GENERAL_NAME, +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_ACCESS_DESCRIPTION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), - 16usize, - concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) + concat!("Alignment of ", stringify!(v3_ext_ctx)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(method) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(location) + 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 ACCESS_DESCRIPTION_st { +impl Default for v3_ext_ctx { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23967,138 +23213,317 @@ impl Default for ACCESS_DESCRIPTION_st { } } } -pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ACCESS_DESCRIPTION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -pub type sk_ACCESS_DESCRIPTION_free_func = - ::std::option::Option; -pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, ->; -pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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: *mut *const ACCESS_DESCRIPTION, - arg2: *mut *const ACCESS_DESCRIPTION, + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, ) -> ::std::os::raw::c_int, >; -pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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( - arg1: *mut ACCESS_DESCRIPTION, - arg2: *mut ::std::os::raw::c_void, + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, ) -> ::std::os::raw::c_int, >; -pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; -pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DIST_POINT_NAME_st { - pub type_: ::std::os::raw::c_int, - pub name: DIST_POINT_NAME_st__bindgen_ty_1, - pub dpname: *mut X509_NAME, +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_fips_0_13_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); } -#[repr(C)] -#[derive(Copy, Clone)] -pub union DIST_POINT_NAME_st__bindgen_ty_1 { - pub fullname: *mut GENERAL_NAMES, - pub relativename: *mut stack_st_X509_NAME_ENTRY, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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); } -#[test] -fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { - 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!(DIST_POINT_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!( - "Alignment of ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(fullname) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(relativename) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { - 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_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_DIST_POINT_NAME_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 24usize, - concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) + concat!("Alignment of ", stringify!(X509_algor_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(type_) + stringify!(algorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(dpname) + stringify!(parameter) ) ); } -impl Default for DIST_POINT_NAME_st { +impl Default for X509_algor_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24107,199 +23532,103 @@ impl Default for DIST_POINT_NAME_st { } } } -pub type DIST_POINT_NAME = DIST_POINT_NAME_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DIST_POINT_st { - pub distpoint: *mut DIST_POINT_NAME, - pub reasons: *mut ASN1_BIT_STRING, - pub CRLissuer: *mut GENERAL_NAMES, - pub dp_reasons: ::std::os::raw::c_int, +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, } #[test] -fn bindgen_test_layout_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 32usize, - concat!("Size of: ", stringify!(DIST_POINT_st)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_st)) + concat!("Alignment of ", stringify!(x509_trust_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(distpoint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(reasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(CRLissuer) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dp_reasons) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), + stringify!(x509_trust_st), "::", - stringify!(dp_reasons) + stringify!(trust) ) ); -} -impl Default for DIST_POINT_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() - } - } -} -pub type CRL_DIST_POINTS = stack_st_DIST_POINT; -pub type sk_DIST_POINT_free_func = - ::std::option::Option; -pub type sk_DIST_POINT_copy_func = - ::std::option::Option *mut DIST_POINT>; -pub type sk_DIST_POINT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const DIST_POINT, - arg2: *mut *const DIST_POINT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut DIST_POINT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct AUTHORITY_KEYID_st { - pub keyid: *mut ASN1_OCTET_STRING, - pub issuer: *mut GENERAL_NAMES, - pub serial: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_AUTHORITY_KEYID_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!(AUTHORITY_KEYID_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(keyid) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(issuer) + stringify!(check_trust) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(serial) + stringify!(name) ) ); -} -impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { - pub organization: *mut ASN1_STRING, - pub noticenos: *mut stack_st_ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_NOTICEREF_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!(NOTICEREF_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NOTICEREF_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(organization) + stringify!(arg1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(noticenos) + stringify!(arg2) ) ); } -impl Default for NOTICEREF_st { +impl Default for x509_trust_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24308,391 +23637,495 @@ impl Default for NOTICEREF_st { } } } -pub type NOTICEREF = NOTICEREF_st; +#[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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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>; +pub type X509V3_EXT_FREE = + ::std::option::Option; +pub type X509V3_EXT_D2I = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2D = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_I2V = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE, +>; +pub type X509V3_EXT_V2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + values: *const stack_st_CONF_VALUE, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2S = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; +pub type X509V3_EXT_S2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2R = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + out: *mut BIO, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_R2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct USERNOTICE_st { - pub noticeref: *mut NOTICEREF, - pub exptext: *mut ASN1_STRING, +pub struct v3_ext_method { + pub ext_nid: ::std::os::raw::c_int, + pub ext_flags: ::std::os::raw::c_int, + pub it: *const ASN1_ITEM_st, + pub ext_new: X509V3_EXT_NEW, + pub ext_free: X509V3_EXT_FREE, + pub d2i: X509V3_EXT_D2I, + pub i2d: X509V3_EXT_I2D, + pub i2s: X509V3_EXT_I2S, + pub s2i: X509V3_EXT_S2I, + pub i2v: X509V3_EXT_I2V, + pub v2i: X509V3_EXT_V2I, + pub i2r: X509V3_EXT_I2R, + pub r2i: X509V3_EXT_R2I, + pub usr_data: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_USERNOTICE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_v3_ext_method() { + 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!(USERNOTICE_st)) + ::std::mem::size_of::(), + 104usize, + concat!("Size of: ", stringify!(v3_ext_method)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(USERNOTICE_st)) + concat!("Alignment of ", stringify!(v3_ext_method)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(noticeref) + stringify!(ext_nid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(exptext) + stringify!(ext_flags) ) ); -} -impl Default for USERNOTICE_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() - } - } -} -pub type USERNOTICE = USERNOTICE_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct POLICYQUALINFO_st { - pub pqualid: *mut ASN1_OBJECT, - pub d: POLICYQUALINFO_st__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union POLICYQUALINFO_st__bindgen_ty_1 { - pub cpsuri: *mut ASN1_IA5STRING, - pub usernotice: *mut USERNOTICE, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { - 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!(POLICYQUALINFO_st__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(cpsuri) + stringify!(it) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(usernotice) + stringify!(ext_new) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(other) + stringify!(ext_free) ) ); -} -impl Default for POLICYQUALINFO_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(pqualid) + stringify!(d2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(d) + stringify!(i2d) ) ); -} -impl Default for POLICYQUALINFO_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() - } - } -} -pub type POLICYQUALINFO = POLICYQUALINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYQUALINFO { - _unused: [u8; 0], -} -pub type sk_POLICYQUALINFO_free_func = - ::std::option::Option; -pub type sk_POLICYQUALINFO_copy_func = - ::std::option::Option *mut POLICYQUALINFO>; -pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYQUALINFO, - arg2: *mut *const POLICYQUALINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYQUALINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICYINFO_st { - pub policyid: *mut ASN1_OBJECT, - pub qualifiers: *mut stack_st_POLICYQUALINFO, -} -#[test] -fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYINFO_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, - 0usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(policyid) + stringify!(i2s) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(qualifiers) + stringify!(s2i) ) ); -} -impl Default for POLICYINFO_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() - } - } -} -pub type POLICYINFO = POLICYINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYINFO { - _unused: [u8; 0], -} -pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; -pub type sk_POLICYINFO_free_func = - ::std::option::Option; -pub type sk_POLICYINFO_copy_func = - ::std::option::Option *mut POLICYINFO>; -pub type sk_POLICYINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYINFO, - arg2: *mut *const POLICYINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_MAPPING_st { - pub issuerDomainPolicy: *mut ASN1_OBJECT, - pub subjectDomainPolicy: *mut ASN1_OBJECT, -} -#[test] -fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(issuerDomainPolicy) + stringify!(i2v) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(subjectDomainPolicy) + stringify!(v2i) ) ); -} -impl Default for POLICY_MAPPING_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() - } - } -} -pub type POLICY_MAPPING = POLICY_MAPPING_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICY_MAPPING { - _unused: [u8; 0], -} -pub type sk_POLICY_MAPPING_free_func = - ::std::option::Option; -pub type sk_POLICY_MAPPING_copy_func = - ::std::option::Option *mut POLICY_MAPPING>; -pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICY_MAPPING, - arg2: *mut *const POLICY_MAPPING, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICY_MAPPING, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct GENERAL_SUBTREE_st { - pub base: *mut GENERAL_NAME, - pub minimum: *mut ASN1_INTEGER, - pub maximum: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(base) + stringify!(i2r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(minimum) + stringify!(r2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(maximum) + stringify!(usr_data) ) ); } -impl Default for GENERAL_SUBTREE_st { +impl Default for v3_ext_method { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24701,71 +24134,70 @@ impl Default for GENERAL_SUBTREE_st { } } } -pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_SUBTREE { +pub struct stack_st_X509V3_EXT_METHOD { _unused: [u8; 0], } -pub type sk_GENERAL_SUBTREE_free_func = - ::std::option::Option; -pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +pub type sk_X509V3_EXT_METHOD_free_func = + ::std::option::Option; +pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, >; -pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const GENERAL_SUBTREE, - arg2: *mut *const GENERAL_SUBTREE, + arg1: *const *const X509V3_EXT_METHOD, + arg2: *const *const X509V3_EXT_METHOD, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_SUBTREE, + arg1: *mut X509V3_EXT_METHOD, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct NAME_CONSTRAINTS_st { - pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, - pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, +pub struct BASIC_CONSTRAINTS_st { + pub ca: ::std::os::raw::c_int, + pub pathlen: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_NAME_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_BASIC_CONSTRAINTS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(permittedSubtrees) + stringify!(ca) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(excludedSubtrees) + stringify!(pathlen) ) ); } -impl Default for NAME_CONSTRAINTS_st { +impl Default for BASIC_CONSTRAINTS_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24776,47 +24208,47 @@ impl Default for NAME_CONSTRAINTS_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_CONSTRAINTS_st { - pub requireExplicitPolicy: *mut ASN1_INTEGER, - pub inhibitPolicyMapping: *mut ASN1_INTEGER, +pub struct ACCESS_DESCRIPTION_st { + pub method: *mut ASN1_OBJECT, + pub location: *mut GENERAL_NAME, } #[test] -fn bindgen_test_layout_POLICY_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = +fn bindgen_test_layout_ACCESS_DESCRIPTION_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(requireExplicitPolicy) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(inhibitPolicyMapping) + stringify!(location) ) ); } -impl Default for POLICY_CONSTRAINTS_st { +impl Default for ACCESS_DESCRIPTION_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24825,49 +24257,84 @@ impl Default for POLICY_CONSTRAINTS_st { } } } -pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ACCESS_DESCRIPTION { + _unused: [u8; 0], +} +pub type sk_ACCESS_DESCRIPTION_free_func = + ::std::option::Option; +pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, +>; +pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ACCESS_DESCRIPTION, + arg2: *const *const ACCESS_DESCRIPTION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ACCESS_DESCRIPTION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; +pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DIST_POINT_NAME_st { + pub type_: ::std::os::raw::c_int, + pub name: DIST_POINT_NAME_st__bindgen_ty_1, + pub dpname: *mut X509_NAME, +} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_POLICY_st { - pub policyLanguage: *mut ASN1_OBJECT, - pub policy: *mut ASN1_OCTET_STRING, +#[derive(Copy, Clone)] +pub union DIST_POINT_NAME_st__bindgen_ty_1 { + pub fullname: *mut GENERAL_NAMES, + pub relativename: *mut stack_st_X509_NAME_ENTRY, } #[test] -fn bindgen_test_layout_PROXY_POLICY_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { + 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!(PROXY_POLICY_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_POLICY_st)) + concat!( + "Alignment of ", + stringify!(DIST_POINT_NAME_st__bindgen_ty_1) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyLanguage) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policyLanguage) + stringify!(fullname) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policy) + stringify!(relativename) ) ); } -impl Default for PROXY_POLICY_st { +impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24876,50 +24343,52 @@ impl Default for PROXY_POLICY_st { } } } -pub type PROXY_POLICY = PROXY_POLICY_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_CERT_INFO_EXTENSION_st { - pub pcPathLengthConstraint: *mut ASN1_INTEGER, - pub proxyPolicy: *mut PROXY_POLICY, -} #[test] -fn bindgen_test_layout_PROXY_CERT_INFO_EXTENSION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_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!(PROXY_CERT_INFO_EXTENSION_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_CERT_INFO_EXTENSION_st)) + concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pcPathLengthConstraint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), "::", - stringify!(pcPathLengthConstraint) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).proxyPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(DIST_POINT_NAME_st), "::", - stringify!(proxyPolicy) + stringify!(dpname) ) ); } -impl Default for PROXY_CERT_INFO_EXTENSION_st { +impl Default for DIST_POINT_NAME_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24928,148 +24397,60 @@ impl Default for PROXY_CERT_INFO_EXTENSION_st { } } } -pub type PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_new"] - pub fn PROXY_POLICY_new() -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_free"] - pub fn PROXY_POLICY_free(a: *mut PROXY_POLICY); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_POLICY"] - pub fn d2i_PROXY_POLICY( - a: *mut *mut PROXY_POLICY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_POLICY"] - pub fn i2d_PROXY_POLICY( - a: *const PROXY_POLICY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_it"] - pub static PROXY_POLICY_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_new"] - pub fn PROXY_CERT_INFO_EXTENSION_new() -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_free"] - pub fn PROXY_CERT_INFO_EXTENSION_free(a: *mut PROXY_CERT_INFO_EXTENSION); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_CERT_INFO_EXTENSION"] - pub fn d2i_PROXY_CERT_INFO_EXTENSION( - a: *mut *mut PROXY_CERT_INFO_EXTENSION, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_CERT_INFO_EXTENSION"] - pub fn i2d_PROXY_CERT_INFO_EXTENSION( - a: *const PROXY_CERT_INFO_EXTENSION, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_it"] - pub static PROXY_CERT_INFO_EXTENSION_it: ASN1_ITEM; -} +pub type DIST_POINT_NAME = DIST_POINT_NAME_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ISSUING_DIST_POINT_st { +pub struct DIST_POINT_st { pub distpoint: *mut DIST_POINT_NAME, - pub onlyuser: ::std::os::raw::c_int, - pub onlyCA: ::std::os::raw::c_int, - pub onlysomereasons: *mut ASN1_BIT_STRING, - pub indirectCRL: ::std::os::raw::c_int, - pub onlyattr: ::std::os::raw::c_int, + pub reasons: *mut ASN1_BIT_STRING, + pub CRLissuer: *mut GENERAL_NAMES, } #[test] -fn bindgen_test_layout_ISSUING_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + concat!("Alignment of ", stringify!(DIST_POINT_st)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", stringify!(distpoint) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlyuser) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyCA) + stringify!(reasons) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlysomereasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(indirectCRL) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyattr) + stringify!(CRLissuer) ) ); } -impl Default for ISSUING_DIST_POINT_st { +impl Default for DIST_POINT_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25078,109 +24459,126 @@ impl Default for ISSUING_DIST_POINT_st { } } } +pub type CRL_DIST_POINTS = stack_st_DIST_POINT; +pub type sk_DIST_POINT_free_func = + ::std::option::Option; +pub type sk_DIST_POINT_copy_func = + ::std::option::Option *mut DIST_POINT>; +pub type sk_DIST_POINT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const DIST_POINT, + arg2: *const *const DIST_POINT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut DIST_POINT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_purpose_st { - pub purpose: ::std::os::raw::c_int, - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_purpose: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const x509_purpose_st, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub sname: *mut ::std::os::raw::c_char, - pub usr_data: *mut ::std::os::raw::c_void, +pub struct AUTHORITY_KEYID_st { + pub keyid: *mut ASN1_OCTET_STRING, + pub issuer: *mut GENERAL_NAMES, + pub serial: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_x509_purpose_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_AUTHORITY_KEYID_st() { + 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!(x509_purpose_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_purpose_st)) + concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(purpose) + stringify!(keyid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(trust) + stringify!(issuer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(flags) + stringify!(serial) ) ); +} +impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { + pub organization: *mut ASN1_STRING, + pub noticenos: *mut stack_st_ASN1_INTEGER, +} +#[test] +fn bindgen_test_layout_NOTICEREF_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(check_purpose) - ) + concat!("Size of: ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(name) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(sname) + stringify!(organization) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(usr_data) + stringify!(noticenos) ) ); } -impl Default for x509_purpose_st { +impl Default for NOTICEREF_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25189,1182 +24587,1291 @@ impl Default for x509_purpose_st { } } } -pub type X509_PURPOSE = x509_purpose_st; +pub type NOTICEREF = NOTICEREF_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_PURPOSE { - _unused: [u8; 0], -} -pub type sk_X509_PURPOSE_free_func = - ::std::option::Option; -pub type sk_X509_PURPOSE_copy_func = - ::std::option::Option *mut X509_PURPOSE>; -pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_PURPOSE, - arg2: *mut *const X509_PURPOSE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_PURPOSE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_new"] - pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_free"] - pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_BASIC_CONSTRAINTS"] - pub fn d2i_BASIC_CONSTRAINTS( - a: *mut *mut BASIC_CONSTRAINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_BASIC_CONSTRAINTS"] - pub fn i2d_BASIC_CONSTRAINTS( - a: *const BASIC_CONSTRAINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_it"] - pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_new"] - pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_free"] - pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_KEYID"] - pub fn d2i_AUTHORITY_KEYID( - a: *mut *mut AUTHORITY_KEYID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_KEYID"] - pub fn i2d_AUTHORITY_KEYID( - a: *mut AUTHORITY_KEYID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_it"] - pub static AUTHORITY_KEYID_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_new"] - pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_free"] - pub fn GENERAL_NAME_free(a: *mut GENERAL_NAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAME"] - pub fn d2i_GENERAL_NAME( - a: *mut *mut GENERAL_NAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAME"] - pub fn i2d_GENERAL_NAME( - a: *mut GENERAL_NAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_it"] - pub static GENERAL_NAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_dup"] - pub fn GENERAL_NAME_dup(a: *mut GENERAL_NAME) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_cmp"] - pub fn GENERAL_NAME_cmp( - a: *const GENERAL_NAME, - b: *const GENERAL_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *mut GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_new"] - pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_free"] - pub fn GENERAL_NAMES_free(a: *mut GENERAL_NAMES); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAMES"] - pub fn d2i_GENERAL_NAMES( - a: *mut *mut GENERAL_NAMES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAMES"] - pub fn i2d_GENERAL_NAMES( - a: *mut GENERAL_NAMES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_it"] - pub static GENERAL_NAMES_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAMES"] - pub fn v2i_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - nval: *const stack_st_CONF_VALUE, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_new"] - pub fn OTHERNAME_new() -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_free"] - pub fn OTHERNAME_free(a: *mut OTHERNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OTHERNAME"] - pub fn d2i_OTHERNAME( - a: *mut *mut OTHERNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OTHERNAME"] - pub fn i2d_OTHERNAME( - a: *const OTHERNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_it"] - pub static OTHERNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_new"] - pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_free"] - pub fn EDIPARTYNAME_free(a: *mut EDIPARTYNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EDIPARTYNAME"] - pub fn d2i_EDIPARTYNAME( - a: *mut *mut EDIPARTYNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EDIPARTYNAME"] - pub fn i2d_EDIPARTYNAME( - a: *const EDIPARTYNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_it"] - pub static EDIPARTYNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_cmp"] - pub fn OTHERNAME_cmp(a: *mut OTHERNAME, b: *mut OTHERNAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_value"] - pub fn GENERAL_NAME_set0_value( - a: *mut GENERAL_NAME, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_value"] - pub fn GENERAL_NAME_get0_value( - a: *const GENERAL_NAME, - ptype: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_othername"] - pub fn GENERAL_NAME_set0_othername( - gen: *mut GENERAL_NAME, - oid: *mut ASN1_OBJECT, - value: *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_otherName"] - pub fn GENERAL_NAME_get0_otherName( - gen: *const GENERAL_NAME, - poid: *mut *mut ASN1_OBJECT, - pvalue: *mut *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ia5: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_EXTENDED_KEY_USAGE_new"] - pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_free"] - pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EXTENDED_KEY_USAGE"] - pub fn d2i_EXTENDED_KEY_USAGE( - a: *mut *mut EXTENDED_KEY_USAGE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EXTENDED_KEY_USAGE"] - pub fn i2d_EXTENDED_KEY_USAGE( - a: *const EXTENDED_KEY_USAGE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_it"] - pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ACCESS_DESCRIPTION"] - pub fn i2a_ACCESS_DESCRIPTION( - bp: *mut BIO, - a: *const ACCESS_DESCRIPTION, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_new"] - pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct USERNOTICE_st { + pub noticeref: *mut NOTICEREF, + pub exptext: *mut ASN1_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_free"] - pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); +#[test] +fn bindgen_test_layout_USERNOTICE_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!(USERNOTICE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(USERNOTICE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(noticeref) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(exptext) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CERTIFICATEPOLICIES"] - pub fn d2i_CERTIFICATEPOLICIES( - a: *mut *mut CERTIFICATEPOLICIES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CERTIFICATEPOLICIES; +impl Default for USERNOTICE_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_fips_0_12_15_i2d_CERTIFICATEPOLICIES"] - pub fn i2d_CERTIFICATEPOLICIES( - a: *const CERTIFICATEPOLICIES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type USERNOTICE = USERNOTICE_st; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct POLICYQUALINFO_st { + pub pqualid: *mut ASN1_OBJECT, + pub d: POLICYQUALINFO_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_it"] - pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; +#[repr(C)] +#[derive(Copy, Clone)] +pub union POLICYQUALINFO_st__bindgen_ty_1 { + pub cpsuri: *mut ASN1_IA5STRING, + pub usernotice: *mut USERNOTICE, + pub other: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_new"] - pub fn POLICYINFO_new() -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { + 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!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(cpsuri) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(usernotice) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_free"] - pub fn POLICYINFO_free(a: *mut POLICYINFO); +impl Default for POLICYQUALINFO_st__bindgen_ty_1 { + 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_fips_0_12_15_d2i_POLICYINFO"] - pub fn d2i_POLICYINFO( - a: *mut *mut POLICYINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(pqualid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_POLICYINFO"] - pub fn i2d_POLICYINFO( - a: *const POLICYINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for POLICYQUALINFO_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_fips_0_12_15_POLICYINFO_it"] - pub static POLICYINFO_it: ASN1_ITEM; +pub type POLICYQUALINFO = POLICYQUALINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYQUALINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_new"] - pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; +pub type sk_POLICYQUALINFO_free_func = + ::std::option::Option; +pub type sk_POLICYQUALINFO_copy_func = + ::std::option::Option *mut POLICYQUALINFO>; +pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYQUALINFO, + arg2: *const *const POLICYQUALINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYQUALINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICYINFO_st { + pub policyid: *mut ASN1_OBJECT, + pub qualifiers: *mut stack_st_POLICYQUALINFO, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_free"] - pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); +#[test] +fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(policyid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(qualifiers) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_POLICYQUALINFO"] - pub fn d2i_POLICYQUALINFO( - a: *mut *mut POLICYQUALINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYQUALINFO; +impl Default for POLICYINFO_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_fips_0_12_15_i2d_POLICYQUALINFO"] - pub fn i2d_POLICYQUALINFO( - a: *const POLICYQUALINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICYINFO = POLICYINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_it"] - pub static POLICYQUALINFO_it: ASN1_ITEM; +pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; +pub type sk_POLICYINFO_free_func = + ::std::option::Option; +pub type sk_POLICYINFO_copy_func = + ::std::option::Option *mut POLICYINFO>; +pub type sk_POLICYINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYINFO, + arg2: *const *const POLICYINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_MAPPING_st { + pub issuerDomainPolicy: *mut ASN1_OBJECT, + pub subjectDomainPolicy: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_new"] - pub fn USERNOTICE_new() -> *mut USERNOTICE; +#[test] +fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(issuerDomainPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(subjectDomainPolicy) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_free"] - pub fn USERNOTICE_free(a: *mut USERNOTICE); +impl Default for POLICY_MAPPING_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_fips_0_12_15_d2i_USERNOTICE"] - pub fn d2i_USERNOTICE( - a: *mut *mut USERNOTICE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut USERNOTICE; +pub type POLICY_MAPPING = POLICY_MAPPING_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICY_MAPPING { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_USERNOTICE"] - pub fn i2d_USERNOTICE( - a: *const USERNOTICE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type sk_POLICY_MAPPING_free_func = + ::std::option::Option; +pub type sk_POLICY_MAPPING_copy_func = + ::std::option::Option *mut POLICY_MAPPING>; +pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICY_MAPPING, + arg2: *const *const POLICY_MAPPING, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICY_MAPPING, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct GENERAL_SUBTREE_st { + pub base: *mut GENERAL_NAME, + pub minimum: *mut ASN1_INTEGER, + pub maximum: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_it"] - pub static USERNOTICE_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(minimum) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(maximum) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_new"] - pub fn NOTICEREF_new() -> *mut NOTICEREF; +impl Default for GENERAL_SUBTREE_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_fips_0_12_15_NOTICEREF_free"] - pub fn NOTICEREF_free(a: *mut NOTICEREF); +pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_SUBTREE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NOTICEREF"] - pub fn d2i_NOTICEREF( - a: *mut *mut NOTICEREF, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NOTICEREF; +pub type sk_GENERAL_SUBTREE_free_func = + ::std::option::Option; +pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +>; +pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_SUBTREE, + arg2: *const *const GENERAL_SUBTREE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_SUBTREE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct NAME_CONSTRAINTS_st { + pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, + pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NOTICEREF"] - pub fn i2d_NOTICEREF( - a: *const NOTICEREF, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_NAME_CONSTRAINTS_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!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(permittedSubtrees) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(excludedSubtrees) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_it"] - pub static NOTICEREF_it: ASN1_ITEM; +impl Default for NAME_CONSTRAINTS_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_fips_0_12_15_CRL_DIST_POINTS_new"] - pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_CONSTRAINTS_st { + pub requireExplicitPolicy: *mut ASN1_INTEGER, + pub inhibitPolicyMapping: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_free"] - pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); +#[test] +fn bindgen_test_layout_POLICY_CONSTRAINTS_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!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(requireExplicitPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(inhibitPolicyMapping) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CRL_DIST_POINTS"] - pub fn d2i_CRL_DIST_POINTS( - a: *mut *mut CRL_DIST_POINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CRL_DIST_POINTS; +impl Default for POLICY_CONSTRAINTS_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_fips_0_12_15_i2d_CRL_DIST_POINTS"] - pub fn i2d_CRL_DIST_POINTS( - a: *mut CRL_DIST_POINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ISSUING_DIST_POINT_st { + pub distpoint: *mut DIST_POINT_NAME, + pub onlyuser: ASN1_BOOLEAN, + pub onlyCA: ASN1_BOOLEAN, + pub onlysomereasons: *mut ASN1_BIT_STRING, + pub indirectCRL: ASN1_BOOLEAN, + pub onlyattr: ASN1_BOOLEAN, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_it"] - pub static CRL_DIST_POINTS_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_ISSUING_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(distpoint) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyuser) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyCA) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlysomereasons) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(indirectCRL) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyattr) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_new"] - pub fn DIST_POINT_new() -> *mut DIST_POINT; +impl Default for ISSUING_DIST_POINT_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_fips_0_12_15_DIST_POINT_free"] - pub fn DIST_POINT_free(a: *mut DIST_POINT); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_purpose_st { + pub purpose: ::std::os::raw::c_int, + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_purpose: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const x509_purpose_st, + arg2: *const X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub sname: *mut ::std::os::raw::c_char, + pub usr_data: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT"] - pub fn d2i_DIST_POINT( - a: *mut *mut DIST_POINT, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT; +#[test] +fn bindgen_test_layout_x509_purpose_st() { + 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!(x509_purpose_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_purpose_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(check_purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(sname) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(usr_data) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT"] - pub fn i2d_DIST_POINT( - a: *mut DIST_POINT, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for x509_purpose_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_fips_0_12_15_DIST_POINT_it"] - pub static DIST_POINT_it: ASN1_ITEM; +pub type X509_PURPOSE = x509_purpose_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_PURPOSE { + _unused: [u8; 0], } +pub type sk_X509_PURPOSE_free_func = + ::std::option::Option; +pub type sk_X509_PURPOSE_copy_func = + ::std::option::Option *mut X509_PURPOSE>; +pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_PURPOSE, + arg2: *const *const X509_PURPOSE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_PURPOSE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_new"] - pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_new"] + pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_free"] - pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_free"] + pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT_NAME"] - pub fn d2i_DIST_POINT_NAME( - a: *mut *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_BASIC_CONSTRAINTS"] + pub fn d2i_BASIC_CONSTRAINTS( + a: *mut *mut BASIC_CONSTRAINTS, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT_NAME; + ) -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT_NAME"] - pub fn i2d_DIST_POINT_NAME( - a: *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_BASIC_CONSTRAINTS"] + pub fn i2d_BASIC_CONSTRAINTS( + a: *const BASIC_CONSTRAINTS, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_it"] - pub static DIST_POINT_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_it"] + pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_new"] - pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_new"] + pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_free"] - pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_free"] + pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ISSUING_DIST_POINT"] - pub fn d2i_ISSUING_DIST_POINT( - a: *mut *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_KEYID"] + pub fn d2i_AUTHORITY_KEYID( + a: *mut *mut AUTHORITY_KEYID, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ISSUING_DIST_POINT; + ) -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ISSUING_DIST_POINT"] - pub fn i2d_ISSUING_DIST_POINT( - a: *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_KEYID"] + pub fn i2d_AUTHORITY_KEYID( + a: *mut AUTHORITY_KEYID, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_it"] - pub static ISSUING_DIST_POINT_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_set_dpname"] - pub fn DIST_POINT_set_dpname( - dpn: *mut DIST_POINT_NAME, - iname: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check(x: *mut X509, nc: *mut NAME_CONSTRAINTS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_it"] + pub static AUTHORITY_KEYID_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_new"] - pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_new"] + pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_free"] - pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_free"] + pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ACCESS_DESCRIPTION"] - pub fn d2i_ACCESS_DESCRIPTION( - a: *mut *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EXTENDED_KEY_USAGE"] + pub fn d2i_EXTENDED_KEY_USAGE( + a: *mut *mut EXTENDED_KEY_USAGE, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ACCESS_DESCRIPTION; + ) -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ACCESS_DESCRIPTION"] - pub fn i2d_ACCESS_DESCRIPTION( - a: *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EXTENDED_KEY_USAGE"] + pub fn i2d_EXTENDED_KEY_USAGE( + a: *const EXTENDED_KEY_USAGE, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_it"] - pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_it"] + pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_new"] - pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_new"] + pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_free"] - pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_free"] + pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_INFO_ACCESS"] - pub fn d2i_AUTHORITY_INFO_ACCESS( - a: *mut *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CERTIFICATEPOLICIES"] + pub fn d2i_CERTIFICATEPOLICIES( + a: *mut *mut CERTIFICATEPOLICIES, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_INFO_ACCESS; + ) -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_INFO_ACCESS"] - pub fn i2d_AUTHORITY_INFO_ACCESS( - a: *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CERTIFICATEPOLICIES"] + pub fn i2d_CERTIFICATEPOLICIES( + a: *const CERTIFICATEPOLICIES, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_it"] - pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_it"] - pub static POLICY_MAPPING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_new"] - pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_free"] - pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPINGS_it"] - pub static POLICY_MAPPINGS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_it"] - pub static GENERAL_SUBTREE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_new"] - pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_free"] - pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_it"] - pub static NAME_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_new"] - pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_free"] - pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_new"] - pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_free"] - pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_it"] - pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_GENERAL_NAME"] - pub fn a2i_GENERAL_NAME( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - gen_type: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME"] - pub fn v2i_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME_ex"] - pub fn v2i_GENERAL_NAME_ex( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_it"] + pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); -} -#[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) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYINFO_new"] + pub fn POLICYINFO_new() -> *mut POLICYINFO; } -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_fips_0_13_0_POLICYINFO_free"] + pub fn POLICYINFO_free(a: *mut POLICYINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYINFO"] + pub fn d2i_POLICYINFO( + a: *mut *mut POLICYINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYINFO"] + pub fn i2d_POLICYINFO( + a: *const POLICYINFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYINFO_it"] + pub static POLICYINFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_new"] + pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_free"] + pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYQUALINFO"] + pub fn d2i_POLICYQUALINFO( + a: *mut *mut POLICYQUALINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYQUALINFO"] + pub fn i2d_POLICYQUALINFO( + a: *const POLICYQUALINFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYQUALINFO_it"] + pub static POLICYQUALINFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_new"] + pub fn USERNOTICE_new() -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_free"] + pub fn USERNOTICE_free(a: *mut USERNOTICE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_USERNOTICE"] + pub fn d2i_USERNOTICE( + a: *mut *mut USERNOTICE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_USERNOTICE"] + pub fn i2d_USERNOTICE( + a: *const USERNOTICE, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_it"] + pub static USERNOTICE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_new"] + pub fn NOTICEREF_new() -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_free"] + pub fn NOTICEREF_free(a: *mut NOTICEREF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_NOTICEREF"] + pub fn d2i_NOTICEREF( + a: *mut *mut NOTICEREF, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_NOTICEREF"] + pub fn i2d_NOTICEREF( + a: *const NOTICEREF, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_it"] + pub static NOTICEREF_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_new"] + pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_free"] + pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add"] - pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CRL_DIST_POINTS"] + pub fn d2i_CRL_DIST_POINTS( + a: *mut *mut CRL_DIST_POINTS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_list"] - pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CRL_DIST_POINTS"] + pub fn i2d_CRL_DIST_POINTS( + a: *mut CRL_DIST_POINTS, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_alias"] - pub fn X509V3_EXT_add_alias( - nid_to: ::std::os::raw::c_int, - nid_from: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_it"] + pub static CRL_DIST_POINTS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_new"] + pub fn DIST_POINT_new() -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_free"] + pub fn DIST_POINT_free(a: *mut DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT"] + pub fn d2i_DIST_POINT( + a: *mut *mut DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIST_POINT"] + pub fn i2d_DIST_POINT( + a: *mut DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_cleanup"] - pub fn X509V3_EXT_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_it"] + pub static DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get"] - pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_new"] + pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get_nid"] - pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_free"] + pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT_NAME"] + pub fn d2i_DIST_POINT_NAME( + a: *mut *mut DIST_POINT_NAME, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_DIST_POINT_NAME"] + pub fn i2d_DIST_POINT_NAME( + a: *mut DIST_POINT_NAME, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_d2i"] - pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_it"] + pub static DIST_POINT_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_get_d2i"] - pub fn X509V3_get_d2i( - extensions: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_new"] + pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_free"] - pub fn X509V3_EXT_free( - nid: ::std::os::raw::c_int, - ext_data: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_free"] + pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ISSUING_DIST_POINT"] + pub fn d2i_ISSUING_DIST_POINT( + a: *mut *mut ISSUING_DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ISSUING_DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ISSUING_DIST_POINT"] + pub fn i2d_ISSUING_DIST_POINT( + a: *mut ISSUING_DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_i2d"] - pub fn X509V3_EXT_i2d( - ext_nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - ext_struc: *mut ::std::os::raw::c_void, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_it"] + pub static ISSUING_DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add1_i2d"] - pub fn X509V3_add1_i2d( - x: *mut *mut stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_set_dpname"] + pub fn DIST_POINT_set_dpname( + dpn: *mut DIST_POINT_NAME, + iname: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_val_prn"] - pub fn X509V3_EXT_val_prn( - out: *mut BIO, - val: *const stack_st_CONF_VALUE, - indent: ::std::os::raw::c_int, - ml: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ACCESS_DESCRIPTION_new"] + pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_free"] + pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ACCESS_DESCRIPTION"] + pub fn d2i_ACCESS_DESCRIPTION( + a: *mut *mut ACCESS_DESCRIPTION, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ACCESS_DESCRIPTION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ACCESS_DESCRIPTION"] + pub fn i2d_ACCESS_DESCRIPTION( + a: *mut ACCESS_DESCRIPTION, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_it"] + pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_new"] + pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_free"] + pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_INFO_ACCESS"] + pub fn d2i_AUTHORITY_INFO_ACCESS( + a: *mut *mut AUTHORITY_INFO_ACCESS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_INFO_ACCESS"] + pub fn i2d_AUTHORITY_INFO_ACCESS( + a: *mut AUTHORITY_INFO_ACCESS, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_it"] + pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ca"] - pub fn X509_check_ca(x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_it"] + pub static POLICY_MAPPING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_new"] + pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_free"] + pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_set"] - pub fn X509_PURPOSE_set( - p: *mut ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPINGS_it"] + pub static POLICY_MAPPINGS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_SUBTREE_it"] + pub static GENERAL_SUBTREE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_akid"] - pub fn X509_check_akid(issuer: *mut X509, akid: *mut AUTHORITY_KEYID) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_new"] + pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extension_flags"] - pub fn X509_get_extension_flags(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_free"] + pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_key_usage"] - pub fn X509_get_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_it"] + pub static NAME_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extended_key_usage"] - pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_new"] + pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_subject_key_id"] - pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_free"] + pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_key_id"] - pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_new"] + pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_issuer"] - pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_free"] + pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_serial"] - pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_it"] + pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_count"] - pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add"] + pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0"] - pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *mut X509_PURPOSE; + pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_sname"] - pub fn X509_PURPOSE_get_by_sname(sname: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add_alias"] + pub fn X509V3_EXT_add_alias( + nid_to: ::std::os::raw::c_int, + nid_from: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_id"] - pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn X509V3_EXT_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_add"] - pub fn X509_PURPOSE_add( - id: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_PURPOSE, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - sname: *mut ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get"] + pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_name"] - pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get_nid"] + pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_sname"] - pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_d2i"] + pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_trust"] - pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_get_d2i"] + pub fn X509V3_get_d2i( + extensions: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_cleanup"] - pub fn X509_PURPOSE_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_free"] + pub fn X509V3_EXT_free( + nid: ::std::os::raw::c_int, + ext_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_id"] - pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_i2d"] + pub fn X509V3_EXT_i2d( + ext_nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + ext_struc: *mut ::std::os::raw::c_void, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_email"] - pub fn X509_get1_email(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add1_i2d"] + pub fn X509V3_add1_i2d( + x: *mut *mut stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get1_email"] - pub fn X509_REQ_get1_email(x: *mut X509_REQ) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_set"] + pub fn X509_PURPOSE_set( + p: *mut ::std::os::raw::c_int, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_email_free"] - pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_count"] + pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_ocsp"] - pub fn X509_get1_ocsp(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0"] + pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *const X509_PURPOSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_host"] - pub fn X509_check_host( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_sname"] + pub fn X509_PURPOSE_get_by_sname(sname: *const ::std::os::raw::c_char) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_email"] - pub fn X509_check_email( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_id"] + pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip"] - pub fn X509_check_ip( - x: *mut X509, - chk: *const ::std::os::raw::c_uchar, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0_name"] + pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x: *mut 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_fips_0_13_0_X509_PURPOSE_get0_sname"] + pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_trust"] + pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PURPOSE_get_id"] + pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -26374,10 +25881,16 @@ pub struct ocsp_cert_id_st { pub type OCSP_CERTID = ocsp_cert_id_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ocsp_responder_id_st { +pub struct ocsp_one_request_st { _unused: [u8; 0], } -pub type OCSP_RESPID = ocsp_responder_id_st; +pub type OCSP_ONEREQ = ocsp_one_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ocsp_req_info_st { + _unused: [u8; 0], +} +pub type OCSP_REQINFO = ocsp_req_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ocsp_signature_st { @@ -26386,6 +25899,12 @@ pub struct ocsp_signature_st { pub type OCSP_SIGNATURE = ocsp_signature_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_request_st { + _unused: [u8; 0], +} +pub type OCSP_REQUEST = ocsp_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_resp_bytes_st { _unused: [u8; 0], } @@ -26422,6 +25941,12 @@ pub struct ocsp_response_st { pub type OCSP_RESPONSE = ocsp_response_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_responder_id_st { + _unused: [u8; 0], +} +pub type OCSP_RESPID = ocsp_responder_id_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_basic_response_st { _unused: [u8; 0], } @@ -26437,8 +25962,8 @@ pub type sk_OCSP_CERTID_copy_func = ::std::option::Option *mut OCSP_CERTID>; pub type sk_OCSP_CERTID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_CERTID, - arg2: *mut *const OCSP_CERTID, + arg1: *const *const OCSP_CERTID, + arg2: *const *const OCSP_CERTID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< @@ -26449,6 +25974,27 @@ pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct stack_st_OCSP_ONEREQ { + _unused: [u8; 0], +} +pub type sk_OCSP_ONEREQ_free_func = + ::std::option::Option; +pub type sk_OCSP_ONEREQ_copy_func = + ::std::option::Option *mut OCSP_ONEREQ>; +pub type sk_OCSP_ONEREQ_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const OCSP_ONEREQ, + arg2: *const *const OCSP_ONEREQ, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OCSP_ONEREQ_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut OCSP_ONEREQ, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct stack_st_OCSP_RESPID { _unused: [u8; 0], } @@ -26458,8 +26004,8 @@ pub type sk_OCSP_RESPID_copy_func = ::std::option::Option *mut OCSP_RESPID>; pub type sk_OCSP_RESPID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_RESPID, - arg2: *mut *const OCSP_RESPID, + arg1: *const *const OCSP_RESPID, + arg2: *const *const OCSP_RESPID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_RESPID_delete_if_func = ::std::option::Option< @@ -26480,8 +26026,8 @@ pub type sk_OCSP_SINGLERESP_copy_func = ::std::option::Option< >; pub type sk_OCSP_SINGLERESP_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_SINGLERESP, - arg2: *mut *const OCSP_SINGLERESP, + arg1: *const *const OCSP_SINGLERESP, + arg2: *const *const OCSP_SINGLERESP, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< @@ -26491,15 +26037,123 @@ pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_new"] + pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_free"] + pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_BASICRESP"] + pub fn d2i_OCSP_BASICRESP( + a: *mut *mut OCSP_BASICRESP, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_BASICRESP"] + pub fn i2d_OCSP_BASICRESP( + a: *mut OCSP_BASICRESP, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_it"] + pub static OCSP_BASICRESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_new"] + pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_free"] + pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE"] + pub fn d2i_OCSP_RESPONSE( + a: *mut *mut OCSP_RESPONSE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE"] + pub fn i2d_OCSP_RESPONSE( + a: *mut OCSP_RESPONSE, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_it"] + pub static OCSP_RESPONSE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_new"] + pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_free"] + pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_CERTID"] + pub fn d2i_OCSP_CERTID( + a: *mut *mut OCSP_CERTID, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_CERTID"] + pub fn i2d_OCSP_CERTID( + a: *mut OCSP_CERTID, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_it"] + pub static OCSP_CERTID_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_new"] + pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_free"] + pub fn OCSP_REQUEST_free(a: *mut OCSP_REQUEST); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST"] + pub fn d2i_OCSP_REQUEST( + a: *mut *mut OCSP_REQUEST, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST"] + pub fn i2d_OCSP_REQUEST( + a: *mut OCSP_REQUEST, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_it"] + pub static OCSP_REQUEST_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_new"] pub fn OCSP_SINGLERESP_new() -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_free"] pub fn OCSP_SINGLERESP_free(a: *mut OCSP_SINGLERESP); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_SINGLERESP"] pub fn d2i_OCSP_SINGLERESP( a: *mut *mut OCSP_SINGLERESP, in_: *mut *const ::std::os::raw::c_uchar, @@ -26507,290 +26161,418 @@ extern "C" { ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_SINGLERESP"] pub fn i2d_OCSP_SINGLERESP( a: *mut OCSP_SINGLERESP, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_it"] - pub static OCSP_SINGLERESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_it"] + pub static OCSP_SINGLERESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST_bio"] + pub fn d2i_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut *mut OCSP_REQUEST) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE_bio"] + pub fn d2i_OCSP_RESPONSE_bio( + bp: *mut BIO, + presp: *mut *mut OCSP_RESPONSE, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE_bio"] + pub fn i2d_OCSP_RESPONSE_bio(bp: *mut BIO, presp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST_bio"] + pub fn i2d_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_dup"] + pub fn OCSP_CERTID_dup(id: *mut OCSP_CERTID) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_bio"] + pub fn OCSP_sendreq_bio( + b: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_new"] + pub fn OCSP_sendreq_new( + io: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + maxline: ::std::os::raw::c_int, + ) -> *mut OCSP_REQ_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_nbio"] + pub fn OCSP_sendreq_nbio( + presp: *mut *mut OCSP_RESPONSE, + rctx: *mut OCSP_REQ_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_new"] - pub fn OCSP_CERTSTATUS_new() -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_new"] + pub fn OCSP_REQ_CTX_new(io: *mut BIO, maxline: ::std::os::raw::c_int) -> *mut OCSP_REQ_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_free"] - pub fn OCSP_CERTSTATUS_free(a: *mut OCSP_CERTSTATUS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_free"] + pub fn OCSP_REQ_CTX_free(rctx: *mut OCSP_REQ_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTSTATUS"] - pub fn d2i_OCSP_CERTSTATUS( - a: *mut *mut OCSP_CERTSTATUS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_set_max_response_length"] + pub fn OCSP_set_max_response_length(rctx: *mut OCSP_REQ_CTX, len: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTSTATUS"] - pub fn i2d_OCSP_CERTSTATUS( - a: *mut OCSP_CERTSTATUS, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_http"] + pub fn OCSP_REQ_CTX_http( + rctx: *mut OCSP_REQ_CTX, + op: *const ::std::os::raw::c_char, + path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_it"] - pub static OCSP_CERTSTATUS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_set1_req"] + pub fn OCSP_REQ_CTX_set1_req( + rctx: *mut OCSP_REQ_CTX, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_new"] - pub fn OCSP_REVOKEDINFO_new() -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_add1_header"] + pub fn OCSP_REQ_CTX_add1_header( + rctx: *mut OCSP_REQ_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_free"] - pub fn OCSP_REVOKEDINFO_free(a: *mut OCSP_REVOKEDINFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_i2d"] + pub fn OCSP_REQ_CTX_i2d( + rctx: *mut OCSP_REQ_CTX, + it: *const ASN1_ITEM, + val: *mut ASN1_VALUE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_REVOKEDINFO"] - pub fn d2i_OCSP_REVOKEDINFO( - a: *mut *mut OCSP_REVOKEDINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add0_id"] + pub fn OCSP_request_add0_id(req: *mut OCSP_REQUEST, cid: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_REVOKEDINFO"] - pub fn i2d_OCSP_REVOKEDINFO( - a: *mut OCSP_REVOKEDINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_onereq_get0_id"] + pub fn OCSP_onereq_get0_id(one: *mut OCSP_ONEREQ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_it"] - pub static OCSP_REVOKEDINFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_nonce"] + pub fn OCSP_request_add1_nonce( + req: *mut OCSP_REQUEST, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_new"] - pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_nonce"] + pub fn OCSP_basic_add1_nonce( + resp: *mut OCSP_BASICRESP, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_free"] - pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_nonce"] + pub fn OCSP_check_nonce( + req: *mut OCSP_REQUEST, + bs: *mut OCSP_BASICRESP, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_BASICRESP"] - pub fn d2i_OCSP_BASICRESP( - a: *mut *mut OCSP_BASICRESP, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_copy_nonce"] + pub fn OCSP_copy_nonce( + resp: *mut OCSP_BASICRESP, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_BASICRESP"] - pub fn i2d_OCSP_BASICRESP( - a: *mut OCSP_BASICRESP, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_set1_name"] + pub fn OCSP_request_set1_name( + req: *mut OCSP_REQUEST, + nm: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_it"] - pub static OCSP_BASICRESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_cert"] + pub fn OCSP_request_add1_cert(req: *mut OCSP_REQUEST, cert: *mut X509) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_new"] - pub fn OCSP_RESPDATA_new() -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_is_signed"] + pub fn OCSP_request_is_signed(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_free"] - pub fn OCSP_RESPDATA_free(a: *mut OCSP_RESPDATA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_count"] + pub fn OCSP_request_onereq_count(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPDATA"] - pub fn d2i_OCSP_RESPDATA( - a: *mut *mut OCSP_RESPDATA, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_get0"] + pub fn OCSP_request_onereq_get0( + req: *mut OCSP_REQUEST, + i: ::std::os::raw::c_int, + ) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPDATA"] - pub fn i2d_OCSP_RESPDATA( - a: *mut OCSP_RESPDATA, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_sign"] + pub fn OCSP_request_sign( + req: *mut OCSP_REQUEST, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_it"] - pub static OCSP_RESPDATA_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status"] + pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_new"] - pub fn OCSP_RESPID_new() -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_get1_basic"] + pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_free"] - pub fn OCSP_RESPID_free(a: *mut OCSP_RESPID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_count"] + pub fn OCSP_resp_count(bs: *mut OCSP_BASICRESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPID"] - pub fn d2i_OCSP_RESPID( - a: *mut *mut OCSP_RESPID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_get0"] + pub fn OCSP_resp_get0(bs: *mut OCSP_BASICRESP, idx: usize) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPID"] - pub fn i2d_OCSP_RESPID( - a: *mut OCSP_RESPID, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_single_get0_status"] + pub fn OCSP_single_get0_status( + single: *mut OCSP_SINGLERESP, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_it"] - pub static OCSP_RESPID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find"] + pub fn OCSP_resp_find( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + last: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_new"] - pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find_status"] + pub fn OCSP_resp_find_status( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + status: *mut ::std::os::raw::c_int, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_free"] - pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_validity"] + pub fn OCSP_check_validity( + thisUpdate: *mut ASN1_GENERALIZEDTIME, + nextUpdate: *mut ASN1_GENERALIZEDTIME, + drift_num_seconds: ::std::os::raw::c_long, + max_age_seconds: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPONSE"] - pub fn d2i_OCSP_RESPONSE( - a: *mut *mut OCSP_RESPONSE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_verify"] + pub fn OCSP_basic_verify( + bs: *mut OCSP_BASICRESP, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPONSE"] - pub fn i2d_OCSP_RESPONSE( - a: *mut OCSP_RESPONSE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_verify"] + pub fn OCSP_request_verify( + req: *mut OCSP_REQUEST, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_it"] - pub static OCSP_RESPONSE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_id_new"] + pub fn OCSP_cert_id_new( + dgst: *const EVP_MD, + issuerName: *const X509_NAME, + issuerKey: *const ASN1_BIT_STRING, + serialNumber: *const ASN1_INTEGER, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_new"] - pub fn OCSP_RESPBYTES_new() -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_to_id"] + pub fn OCSP_cert_to_id( + dgst: *const EVP_MD, + subject: *const X509, + issuer: *const X509, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_free"] - pub fn OCSP_RESPBYTES_free(a: *mut OCSP_RESPBYTES); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_parse_url"] + pub fn OCSP_parse_url( + url: *const ::std::os::raw::c_char, + phost: *mut *mut ::std::os::raw::c_char, + pport: *mut *mut ::std::os::raw::c_char, + ppath: *mut *mut ::std::os::raw::c_char, + pssl: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPBYTES"] - pub fn d2i_OCSP_RESPBYTES( - a: *mut *mut OCSP_RESPBYTES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_issuer_cmp"] + pub fn OCSP_id_issuer_cmp( + a: *const OCSP_CERTID, + b: *const OCSP_CERTID, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPBYTES"] - pub fn i2d_OCSP_RESPBYTES( - a: *mut OCSP_RESPBYTES, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_cmp"] + pub fn OCSP_id_cmp(a: *const OCSP_CERTID, b: *const OCSP_CERTID) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_get0_info"] + pub fn OCSP_id_get0_info( + nameHash: *mut *mut ASN1_OCTET_STRING, + algor: *mut *mut ASN1_OBJECT, + keyHash: *mut *mut ASN1_OCTET_STRING, + serial: *mut *mut ASN1_INTEGER, + cid: *mut OCSP_CERTID, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_it"] - pub static OCSP_RESPBYTES_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_cert"] + pub fn OCSP_basic_add1_cert( + resp: *mut OCSP_BASICRESP, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_new"] - pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_status"] + pub fn OCSP_basic_add1_status( + resp: *mut OCSP_BASICRESP, + cid: *mut OCSP_CERTID, + status: ::std::os::raw::c_int, + revoked_reason: ::std::os::raw::c_int, + revoked_time: *mut ASN1_TIME, + this_update: *mut ASN1_TIME, + next_update: *mut ASN1_TIME, + ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_free"] - pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_sign"] + pub fn OCSP_basic_sign( + resp: *mut OCSP_BASICRESP, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTID"] - pub fn d2i_OCSP_CERTID( - a: *mut *mut OCSP_CERTID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_create"] + pub fn OCSP_response_create( + status: ::std::os::raw::c_int, + bs: *mut OCSP_BASICRESP, + ) -> *mut OCSP_RESPONSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTID"] - pub fn i2d_OCSP_CERTID( - a: *mut OCSP_CERTID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get0_id"] + pub fn OCSP_SINGLERESP_get0_id(x: *const OCSP_SINGLERESP) -> *const OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_it"] - pub static OCSP_CERTID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status_str"] + pub fn OCSP_response_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_new() -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_status_str"] + pub fn OCSP_cert_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_free(a: *mut OCSP_SIGNATURE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_crl_reason_str"] + pub fn OCSP_crl_reason_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn d2i_OCSP_SIGNATURE( - a: *mut *mut OCSP_SIGNATURE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_print"] + pub fn OCSP_REQUEST_print( + bp: *mut BIO, + req: *mut OCSP_REQUEST, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn i2d_OCSP_SIGNATURE( - a: *mut OCSP_SIGNATURE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_print"] + pub fn OCSP_RESPONSE_print( + bp: *mut BIO, + resp: *mut OCSP_RESPONSE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub static OCSP_SIGNATURE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext_by_NID"] + pub fn OCSP_BASICRESP_get_ext_by_NID( + bs: *mut OCSP_BASICRESP, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_status"] - pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext"] + pub fn OCSP_BASICRESP_get_ext( + bs: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_get1_basic"] - pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_delete_ext"] + pub fn OCSP_BASICRESP_delete_ext( + x: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_resp_find_status"] - pub fn OCSP_resp_find_status( - bs: *mut OCSP_BASICRESP, - id: *mut OCSP_CERTID, - status: *mut ::std::os::raw::c_int, - reason: *mut ::std::os::raw::c_int, - revtime: *mut *mut ASN1_GENERALIZEDTIME, - thisupd: *mut *mut ASN1_GENERALIZEDTIME, - nextupd: *mut *mut ASN1_GENERALIZEDTIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_add_ext"] + pub fn OCSP_SINGLERESP_add_ext( + sresp: *mut OCSP_SINGLERESP, + ex: *mut X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_basic_verify"] - pub fn OCSP_basic_verify( - bs: *mut OCSP_BASICRESP, - certs: *mut stack_st_X509, - st: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext_count"] + pub fn OCSP_SINGLERESP_get_ext_count(sresp: *mut OCSP_SINGLERESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_cert_to_id"] - pub fn OCSP_cert_to_id( - dgst: *const EVP_MD, - subject: *const X509, - issuer: *const X509, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext"] + pub fn OCSP_SINGLERESP_get_ext( + sresp: *mut OCSP_SINGLERESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } pub type pem_password_cb = ::std::option::Option< unsafe extern "C" fn( @@ -26801,14 +26583,14 @@ pub type pem_password_cb = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_get_EVP_CIPHER_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_get_EVP_CIPHER_INFO"] pub fn PEM_get_EVP_CIPHER_INFO( header: *mut ::std::os::raw::c_char, cipher: *mut EVP_CIPHER_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_do_header"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_do_header"] pub fn PEM_do_header( cipher: *mut EVP_CIPHER_INFO, data: *mut ::std::os::raw::c_uchar, @@ -26818,7 +26600,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio"] pub fn PEM_read_bio( bp: *mut BIO, name: *mut *mut ::std::os::raw::c_char, @@ -26828,7 +26610,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio"] pub fn PEM_write_bio( bp: *mut BIO, name: *const ::std::os::raw::c_char, @@ -26838,7 +26620,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_bytes_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_bytes_read_bio"] pub fn PEM_bytes_read_bio( pdata: *mut *mut ::std::os::raw::c_uchar, plen: *mut ::std::os::raw::c_long, @@ -26850,7 +26632,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read_bio"] pub fn PEM_ASN1_read_bio( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26861,7 +26643,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write_bio"] pub fn PEM_ASN1_write_bio( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26875,7 +26657,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read_bio"] pub fn PEM_X509_INFO_read_bio( bp: *mut BIO, sk: *mut stack_st_X509_INFO, @@ -26884,7 +26666,16 @@ extern "C" { ) -> *mut stack_st_X509_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read"] + pub fn PEM_X509_INFO_read( + fp: *mut FILE, + sk: *mut stack_st_X509_INFO, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut stack_st_X509_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read"] pub fn PEM_read( fp: *mut FILE, name: *mut *mut ::std::os::raw::c_char, @@ -26894,7 +26685,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write"] pub fn PEM_write( fp: *mut FILE, name: *const ::std::os::raw::c_char, @@ -26904,7 +26695,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read"] pub fn PEM_ASN1_read( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26915,7 +26706,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write"] pub fn PEM_ASN1_write( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26929,16 +26720,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read"] - pub fn PEM_X509_INFO_read( - fp: *mut FILE, - sk: *mut stack_st_X509_INFO, - cb: pem_password_cb, - u: *mut ::std::os::raw::c_void, - ) -> *mut stack_st_X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_def_callback"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_def_callback"] pub fn PEM_def_callback( buf: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, @@ -26947,20 +26729,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_proc_type"] - pub fn PEM_proc_type(buf: *mut ::std::os::raw::c_char, type_: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_dek_info"] - pub fn PEM_dek_info( - buf: *mut ::std::os::raw::c_char, - type_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - str_: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509"] pub fn PEM_read_bio_X509( bp: *mut BIO, x: *mut *mut X509, @@ -26969,7 +26738,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509"] pub fn PEM_read_X509( fp: *mut FILE, x: *mut *mut X509, @@ -26978,15 +26747,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509"] pub fn PEM_write_bio_X509(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509"] pub fn PEM_write_X509(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_AUX"] pub fn PEM_read_bio_X509_AUX( bp: *mut BIO, x: *mut *mut X509, @@ -26995,7 +26764,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_AUX"] pub fn PEM_read_X509_AUX( fp: *mut FILE, x: *mut *mut X509, @@ -27004,15 +26773,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_AUX"] pub fn PEM_write_bio_X509_AUX(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_AUX"] pub fn PEM_write_X509_AUX(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_REQ"] pub fn PEM_read_bio_X509_REQ( bp: *mut BIO, x: *mut *mut X509_REQ, @@ -27021,7 +26790,7 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_REQ"] pub fn PEM_read_X509_REQ( fp: *mut FILE, x: *mut *mut X509_REQ, @@ -27030,23 +26799,23 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ"] pub fn PEM_write_bio_X509_REQ(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ"] pub fn PEM_write_X509_REQ(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ_NEW"] pub fn PEM_write_bio_X509_REQ_NEW(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ_NEW"] pub fn PEM_write_X509_REQ_NEW(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_CRL"] pub fn PEM_read_bio_X509_CRL( bp: *mut BIO, x: *mut *mut X509_CRL, @@ -27055,7 +26824,7 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_CRL"] pub fn PEM_read_X509_CRL( fp: *mut FILE, x: *mut *mut X509_CRL, @@ -27064,15 +26833,15 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_CRL"] pub fn PEM_write_bio_X509_CRL(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_CRL"] pub fn PEM_write_X509_CRL(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS7"] pub fn PEM_read_bio_PKCS7( bp: *mut BIO, x: *mut *mut PKCS7, @@ -27081,7 +26850,7 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS7"] pub fn PEM_read_PKCS7( fp: *mut FILE, x: *mut *mut PKCS7, @@ -27090,15 +26859,15 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS7"] pub fn PEM_write_bio_PKCS7(bp: *mut BIO, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS7"] pub fn PEM_write_PKCS7(fp: *mut FILE, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8"] pub fn PEM_read_bio_PKCS8( bp: *mut BIO, x: *mut *mut X509_SIG, @@ -27107,7 +26876,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8"] pub fn PEM_read_PKCS8( fp: *mut FILE, x: *mut *mut X509_SIG, @@ -27116,15 +26885,15 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8"] pub fn PEM_write_bio_PKCS8(bp: *mut BIO, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8"] pub fn PEM_write_PKCS8(fp: *mut FILE, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27133,7 +26902,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27142,21 +26911,21 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPrivateKey"] pub fn PEM_read_bio_RSAPrivateKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27165,7 +26934,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPrivateKey"] pub fn PEM_read_RSAPrivateKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27174,7 +26943,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPrivateKey"] pub fn PEM_write_bio_RSAPrivateKey( bp: *mut BIO, x: *mut RSA, @@ -27186,7 +26955,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPrivateKey"] pub fn PEM_write_RSAPrivateKey( fp: *mut FILE, x: *mut RSA, @@ -27198,7 +26967,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPublicKey"] pub fn PEM_read_bio_RSAPublicKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27207,7 +26976,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPublicKey"] pub fn PEM_read_RSAPublicKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27216,15 +26985,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPublicKey"] pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPublicKey"] pub fn PEM_write_RSAPublicKey(fp: *mut FILE, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSA_PUBKEY"] pub fn PEM_read_bio_RSA_PUBKEY( bp: *mut BIO, x: *mut *mut RSA, @@ -27233,7 +27002,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSA_PUBKEY"] pub fn PEM_read_RSA_PUBKEY( fp: *mut FILE, x: *mut *mut RSA, @@ -27242,15 +27011,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSA_PUBKEY"] pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSA_PUBKEY"] pub fn PEM_write_RSA_PUBKEY(fp: *mut FILE, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAPrivateKey"] pub fn PEM_read_bio_DSAPrivateKey( bp: *mut BIO, x: *mut *mut DSA, @@ -27259,7 +27028,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAPrivateKey"] pub fn PEM_read_DSAPrivateKey( fp: *mut FILE, x: *mut *mut DSA, @@ -27268,7 +27037,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAPrivateKey"] pub fn PEM_write_bio_DSAPrivateKey( bp: *mut BIO, x: *mut DSA, @@ -27280,7 +27049,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAPrivateKey"] pub fn PEM_write_DSAPrivateKey( fp: *mut FILE, x: *mut DSA, @@ -27292,7 +27061,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSA_PUBKEY"] pub fn PEM_read_bio_DSA_PUBKEY( bp: *mut BIO, x: *mut *mut DSA, @@ -27301,7 +27070,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSA_PUBKEY"] pub fn PEM_read_DSA_PUBKEY( fp: *mut FILE, x: *mut *mut DSA, @@ -27310,15 +27079,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSA_PUBKEY"] pub fn PEM_write_bio_DSA_PUBKEY(bp: *mut BIO, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSA_PUBKEY"] pub fn PEM_write_DSA_PUBKEY(fp: *mut FILE, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAparams"] pub fn PEM_read_bio_DSAparams( bp: *mut BIO, x: *mut *mut DSA, @@ -27327,7 +27096,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAparams"] pub fn PEM_read_DSAparams( fp: *mut FILE, x: *mut *mut DSA, @@ -27336,15 +27105,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAparams"] pub fn PEM_write_bio_DSAparams(bp: *mut BIO, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAparams"] pub fn PEM_write_DSAparams(fp: *mut FILE, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPrivateKey"] pub fn PEM_read_bio_ECPrivateKey( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27353,7 +27122,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_ECPrivateKey"] pub fn PEM_read_ECPrivateKey( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27362,7 +27131,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPrivateKey"] pub fn PEM_write_bio_ECPrivateKey( bp: *mut BIO, x: *mut EC_KEY, @@ -27374,7 +27143,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_ECPrivateKey"] pub fn PEM_write_ECPrivateKey( fp: *mut FILE, x: *mut EC_KEY, @@ -27386,7 +27155,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_EC_PUBKEY"] pub fn PEM_read_bio_EC_PUBKEY( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27395,7 +27164,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_EC_PUBKEY"] pub fn PEM_read_EC_PUBKEY( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27404,15 +27173,15 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_EC_PUBKEY"] pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_EC_PUBKEY"] pub fn PEM_write_EC_PUBKEY(fp: *mut FILE, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DHparams"] pub fn PEM_read_bio_DHparams( bp: *mut BIO, x: *mut *mut DH, @@ -27421,7 +27190,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DHparams"] pub fn PEM_read_DHparams( fp: *mut FILE, x: *mut *mut DH, @@ -27430,15 +27199,15 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DHparams"] pub fn PEM_write_bio_DHparams(bp: *mut BIO, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DHparams"] pub fn PEM_write_DHparams(fp: *mut FILE, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PrivateKey"] pub fn PEM_read_bio_PrivateKey( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27447,7 +27216,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PrivateKey"] pub fn PEM_read_PrivateKey( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27456,7 +27225,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey"] pub fn PEM_write_bio_PrivateKey( bp: *mut BIO, x: *mut EVP_PKEY, @@ -27468,7 +27237,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PrivateKey"] pub fn PEM_write_PrivateKey( fp: *mut FILE, x: *mut EVP_PKEY, @@ -27480,7 +27249,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PUBKEY"] pub fn PEM_read_bio_PUBKEY( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27489,7 +27258,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PUBKEY"] pub fn PEM_read_PUBKEY( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27498,18 +27267,18 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PUBKEY"] pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PUBKEY"] pub fn PEM_write_PUBKEY(fp: *mut FILE, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey_nid"] pub fn PEM_write_bio_PKCS8PrivateKey_nid( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27518,10 +27287,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey"] pub fn PEM_write_bio_PKCS8PrivateKey( arg1: *mut BIO, - arg2: *mut EVP_PKEY, + arg2: *const EVP_PKEY, arg3: *const EVP_CIPHER, arg4: *mut ::std::os::raw::c_char, arg5: ::std::os::raw::c_int, @@ -27530,10 +27299,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_bio"] pub fn i2d_PKCS8PrivateKey_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27542,10 +27311,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_bio"] pub fn i2d_PKCS8PrivateKey_nid_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27554,7 +27323,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_bio"] pub fn d2i_PKCS8PrivateKey_bio( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27563,10 +27332,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_fp"] pub fn i2d_PKCS8PrivateKey_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27575,10 +27344,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_fp"] pub fn i2d_PKCS8PrivateKey_nid_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27587,10 +27356,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey_nid"] pub fn PEM_write_PKCS8PrivateKey_nid( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27599,7 +27368,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_fp"] pub fn d2i_PKCS8PrivateKey_fp( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27608,10 +27377,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey"] pub fn PEM_write_PKCS8PrivateKey( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27620,7 +27389,43 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_Parameters"] + pub fn PEM_read_bio_Parameters(bio: *mut BIO, pkey: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_Parameters"] + pub fn PEM_write_bio_Parameters(bio: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPKParameters"] + pub fn PEM_read_bio_ECPKParameters( + bio: *mut BIO, + out_group: *mut *mut EC_GROUP, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPKParameters"] + pub fn PEM_write_bio_ECPKParameters( + out: *mut BIO, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey_traditional"] + pub fn PEM_write_bio_PrivateKey_traditional( + bp: *mut BIO, + x: *mut EVP_PKEY, + enc: *const EVP_CIPHER, + kstr: *mut ::std::os::raw::c_uchar, + klen: ::std::os::raw::c_int, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_encrypt"] pub fn PKCS8_encrypt( pbe_nid: ::std::os::raw::c_int, cipher: *const EVP_CIPHER, @@ -27633,7 +27438,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_marshal_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_marshal_encrypted_private_key"] pub fn PKCS8_marshal_encrypted_private_key( out: *mut CBB, pbe_nid: ::std::os::raw::c_int, @@ -27647,7 +27452,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_decrypt"] pub fn PKCS8_decrypt( pkcs8: *mut X509_SIG, pass: *const ::std::os::raw::c_char, @@ -27655,7 +27460,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_parse_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_parse_encrypted_private_key"] pub fn PKCS8_parse_encrypted_private_key( cbs: *mut CBS, pass: *const ::std::os::raw::c_char, @@ -27663,7 +27468,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_get_key_and_certs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_get_key_and_certs"] pub fn PKCS12_get_key_and_certs( out_key: *mut *mut EVP_PKEY, out_certs: *mut stack_st_X509, @@ -27672,11 +27477,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_PBE_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_PBE_add"] pub fn PKCS12_PBE_add(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12"] pub fn d2i_PKCS12( out_p12: *mut *mut PKCS12, ber_bytes: *mut *const u8, @@ -27684,27 +27489,27 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_bio"] pub fn d2i_PKCS12_bio(bio: *mut BIO, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_fp"] pub fn d2i_PKCS12_fp(fp: *mut FILE, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12"] pub fn i2d_PKCS12(p12: *const PKCS12, out: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_bio"] pub fn i2d_PKCS12_bio(bio: *mut BIO, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_fp"] pub fn i2d_PKCS12_fp(fp: *mut FILE, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_parse"] pub fn PKCS12_parse( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27714,7 +27519,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_verify_mac"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_verify_mac"] pub fn PKCS12_verify_mac( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27722,7 +27527,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_create"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_create"] pub fn PKCS12_create( password: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, @@ -27737,76 +27542,95 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_new"] + pub fn PKCS12_new() -> *mut PKCS12; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_free"] pub fn PKCS12_free(p12: *mut PKCS12); } pub type poly1305_state = [u8; 512usize]; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_init"] pub fn CRYPTO_poly1305_init(state: *mut poly1305_state, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_update"] pub fn CRYPTO_poly1305_update(state: *mut poly1305_state, in_: *const u8, in_len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_finish"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_finish"] pub fn CRYPTO_poly1305_finish(state: *mut poly1305_state, mac: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_bytes"] pub fn RAND_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_system_entropy_for_custom_prng"] - pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_priv_bytes"] + pub fn RAND_priv_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_cleanup"] - pub fn RAND_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_enable_fork_unsafe_buffering"] + pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_enable_fork_unsafe_buffering"] - pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_system_entropy_for_custom_prng"] + pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_pseudo_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_pseudo_bytes"] pub fn RAND_pseudo_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_seed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_seed"] pub fn RAND_seed(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_load_file"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_load_file"] pub fn RAND_load_file( path: *const ::std::os::raw::c_char, num: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_file_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_write_file"] + pub fn RAND_write_file(file: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_file_name"] pub fn RAND_file_name( buf: *mut ::std::os::raw::c_char, num: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_add"] pub fn RAND_add(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int, entropy: f64); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_egd"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd"] pub fn RAND_egd(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_poll"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd_bytes"] + pub fn RAND_egd_bytes( + arg1: *const ::std::os::raw::c_char, + bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_poll"] pub fn RAND_poll() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_status"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_status"] pub fn RAND_status() -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_cleanup"] + pub fn RAND_cleanup(); +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] pub struct rand_meth_st { @@ -27905,21 +27729,25 @@ fn bindgen_test_layout_rand_meth_st() { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_SSLeay"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_SSLeay"] pub fn RAND_SSLeay() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_OpenSSL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_OpenSSL"] pub fn RAND_OpenSSL() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_rand_method"] pub fn RAND_get_rand_method() -> *const RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_set_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_set_rand_method"] pub fn RAND_set_rand_method(arg1: *const RAND_METHOD) -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_keep_random_devices_open"] + pub fn RAND_keep_random_devices_open(a: ::std::os::raw::c_int); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct rc4_key_st { @@ -27982,11 +27810,11 @@ impl Default for rc4_key_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4_set_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4_set_key"] pub fn RC4_set_key(rc4key: *mut RC4_KEY, len: ::std::os::raw::c_uint, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4"] pub fn RC4(key: *mut RC4_KEY, len: usize, in_: *const u8, out: *mut u8); } #[repr(C)] @@ -28073,11 +27901,11 @@ impl Default for RIPEMD160state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Init"] pub fn RIPEMD160_Init(ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Update"] pub fn RIPEMD160_Update( ctx: *mut RIPEMD160_CTX, data: *const ::std::os::raw::c_void, @@ -28085,44 +27913,52 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Final"] pub fn RIPEMD160_Final(out: *mut u8, ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160"] pub fn RIPEMD160(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_before_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_before_call"] pub fn FIPS_service_indicator_before_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_after_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_after_call"] pub fn FIPS_service_indicator_after_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_version_string"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_version_string"] pub fn awslc_version_string() -> *const ::std::os::raw::c_char; } pub const FIPSStatus_AWSLC_NOT_APPROVED: FIPSStatus = 0; pub const FIPSStatus_AWSLC_APPROVED: FIPSStatus = 1; pub type FIPSStatus = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SIPHASH_24"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SIPHASH_24"] pub fn SIPHASH_24(key: *const u64, input: *const u8, input_len: usize) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v1"] pub fn TRUST_TOKEN_experiment_v1() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_voprf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_voprf"] pub fn TRUST_TOKEN_experiment_v2_voprf() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_pmb"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_pmb"] pub fn TRUST_TOKEN_experiment_v2_pmb() -> *const TRUST_TOKEN_METHOD; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_voprf"] + pub fn TRUST_TOKEN_pst_v1_voprf() -> *const TRUST_TOKEN_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_pmb"] + pub fn TRUST_TOKEN_pst_v1_pmb() -> *const TRUST_TOKEN_METHOD; +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct trust_token_st { @@ -28184,8 +28020,8 @@ pub type sk_TRUST_TOKEN_copy_func = ::std::option::Option *mut TRUST_TOKEN>; pub type sk_TRUST_TOKEN_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const TRUST_TOKEN, - arg2: *mut *const TRUST_TOKEN, + arg1: *const *const TRUST_TOKEN, + arg2: *const *const TRUST_TOKEN, ) -> ::std::os::raw::c_int, >; pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< @@ -28195,15 +28031,15 @@ pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_new"] pub fn TRUST_TOKEN_new(data: *const u8, len: usize) -> *mut TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_free"] pub fn TRUST_TOKEN_free(token: *mut TRUST_TOKEN); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_generate_key"] pub fn TRUST_TOKEN_generate_key( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28216,7 +28052,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_derive_key_from_secret"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_derive_key_from_secret"] pub fn TRUST_TOKEN_derive_key_from_secret( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28231,18 +28067,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_new"] pub fn TRUST_TOKEN_CLIENT_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_CLIENT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_free"] pub fn TRUST_TOKEN_CLIENT_free(ctx: *mut TRUST_TOKEN_CLIENT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_add_key"] pub fn TRUST_TOKEN_CLIENT_add_key( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28251,14 +28087,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_set_srr_key"] pub fn TRUST_TOKEN_CLIENT_set_srr_key( ctx: *mut TRUST_TOKEN_CLIENT, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance"] pub fn TRUST_TOKEN_CLIENT_begin_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28267,7 +28103,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] pub fn TRUST_TOKEN_CLIENT_begin_issuance_over_message( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28278,7 +28114,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_issuance"] pub fn TRUST_TOKEN_CLIENT_finish_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28287,7 +28123,7 @@ extern "C" { ) -> *mut stack_st_TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_redemption"] pub fn TRUST_TOKEN_CLIENT_begin_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28299,7 +28135,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_redemption"] pub fn TRUST_TOKEN_CLIENT_finish_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out_rr: *mut *mut u8, @@ -28311,18 +28147,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_new"] pub fn TRUST_TOKEN_ISSUER_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_ISSUER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_free"] pub fn TRUST_TOKEN_ISSUER_free(ctx: *mut TRUST_TOKEN_ISSUER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_add_key"] pub fn TRUST_TOKEN_ISSUER_add_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28330,14 +28166,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_srr_key"] pub fn TRUST_TOKEN_ISSUER_set_srr_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_metadata_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_metadata_key"] pub fn TRUST_TOKEN_ISSUER_set_metadata_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28345,7 +28181,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_issue"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_issue"] pub fn TRUST_TOKEN_ISSUER_issue( ctx: *const TRUST_TOKEN_ISSUER, out: *mut *mut u8, @@ -28359,23 +28195,8 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem"] pub fn TRUST_TOKEN_ISSUER_redeem( - ctx: *const TRUST_TOKEN_ISSUER, - out: *mut *mut u8, - out_len: *mut usize, - out_token: *mut *mut TRUST_TOKEN, - out_client_data: *mut *mut u8, - out_client_data_len: *mut usize, - out_redemption_time: *mut u64, - request: *const u8, - request_len: usize, - lifetime: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_raw"] - pub fn TRUST_TOKEN_ISSUER_redeem_raw( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, out_private: *mut u8, @@ -28387,7 +28208,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem_over_message"] pub fn TRUST_TOKEN_ISSUER_redeem_over_message( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, @@ -28402,7 +28223,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_decode_private_metadata"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_decode_private_metadata"] pub fn TRUST_TOKEN_decode_private_metadata( method: *const TRUST_TOKEN_METHOD, out_value: *mut u8, @@ -28414,7 +28235,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_tls1_prf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_tls1_prf"] pub fn CRYPTO_tls1_prf( digest: *const EVP_MD, out: *mut u8, @@ -28430,15 +28251,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_LIB_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_LIB_RUST"] pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_REASON_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_REASON_RUST"] pub fn ERR_GET_REASON_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_FUNC_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_FUNC_RUST"] pub fn ERR_GET_FUNC_RUST(packed_error: u32) -> ::std::os::raw::c_int; } #[repr(C)] diff --git a/aws-lc-fips-sys/src/aarch64_unknown_linux_musl_crypto.rs b/aws-lc-fips-sys/src/aarch64_unknown_linux_musl_crypto.rs index ee8f46df2f4..3567e35183b 100644 --- a/aws-lc-fips-sys/src/aarch64_unknown_linux_musl_crypto.rs +++ b/aws-lc-fips-sys/src/aarch64_unknown_linux_musl_crypto.rs @@ -110,14 +110,130 @@ where 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 = 20; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"2.0.15\0"; +pub const AWSLC_API_VERSION: i32 = 30; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 6] = b"3.0.0\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; pub const AES_BLOCK_SIZE: i32 = 16; +pub const SHA_CBLOCK: i32 = 64; +pub const SHA_DIGEST_LENGTH: i32 = 20; +pub const SHA224_CBLOCK: i32 = 64; +pub const SHA224_DIGEST_LENGTH: i32 = 28; +pub const SHA256_CBLOCK: i32 = 64; +pub const SHA256_DIGEST_LENGTH: i32 = 32; +pub const SHA384_CBLOCK: i32 = 128; +pub const SHA384_DIGEST_LENGTH: i32 = 48; +pub const SHA512_CBLOCK: i32 = 128; +pub const SHA512_DIGEST_LENGTH: i32 = 64; +pub const SHA512_224_DIGEST_LENGTH: i32 = 28; +pub const SHA512_256_DIGEST_LENGTH: i32 = 32; +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; 41] = b"OpenSSL 1.1.1 (compatible; AWS-LC 3.0.0)\0"; +pub const OPENSSL_VERSION: i32 = 0; +pub const OPENSSL_CFLAGS: i32 = 1; +pub const OPENSSL_BUILT_ON: i32 = 2; +pub const OPENSSL_PLATFORM: i32 = 3; +pub const OPENSSL_DIR: i32 = 4; +pub const SSLEAY_VERSION: i32 = 0; +pub const SSLEAY_CFLAGS: i32 = 1; +pub const SSLEAY_BUILT_ON: i32 = 2; +pub const SSLEAY_PLATFORM: i32 = 3; +pub const SSLEAY_DIR: i32 = 4; +pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_ENGINE_ALL_BUILTIN: i32 = 0; pub const ERR_FLAG_STRING: i32 = 1; pub const ERR_FLAG_MALLOCED: i32 = 2; +pub const ERR_LIB_NONE: i32 = 1; +pub const ERR_LIB_SYS: i32 = 2; +pub const ERR_LIB_BN: i32 = 3; +pub const ERR_LIB_RSA: i32 = 4; +pub const ERR_LIB_DH: i32 = 5; +pub const ERR_LIB_EVP: i32 = 6; +pub const ERR_LIB_BUF: i32 = 7; +pub const ERR_LIB_OBJ: i32 = 8; +pub const ERR_LIB_PEM: i32 = 9; +pub const ERR_LIB_DSA: i32 = 10; +pub const ERR_LIB_X509: i32 = 11; +pub const ERR_LIB_ASN1: i32 = 12; +pub const ERR_LIB_CONF: i32 = 13; +pub const ERR_LIB_CRYPTO: i32 = 14; +pub const ERR_LIB_EC: i32 = 15; +pub const ERR_LIB_SSL: i32 = 16; +pub const ERR_LIB_BIO: i32 = 17; +pub const ERR_LIB_PKCS7: i32 = 18; +pub const ERR_LIB_PKCS8: i32 = 19; +pub const ERR_LIB_X509V3: i32 = 20; +pub const ERR_LIB_RAND: i32 = 21; +pub const ERR_LIB_ENGINE: i32 = 22; +pub const ERR_LIB_OCSP: i32 = 23; +pub const ERR_LIB_UI: i32 = 24; +pub const ERR_LIB_COMP: i32 = 25; +pub const ERR_LIB_ECDSA: i32 = 26; +pub const ERR_LIB_ECDH: i32 = 27; +pub const ERR_LIB_HMAC: i32 = 28; +pub const ERR_LIB_DIGEST: i32 = 29; +pub const ERR_LIB_CIPHER: i32 = 30; +pub const ERR_LIB_HKDF: i32 = 31; +pub const ERR_LIB_TRUST_TOKEN: i32 = 32; +pub const ERR_LIB_USER: i32 = 33; +pub const ERR_NUM_LIBS: i32 = 34; +pub const ERR_LIB_PKCS12: i32 = 35; +pub const ERR_LIB_DSO: i32 = 36; +pub const ERR_LIB_OSSL_STORE: i32 = 37; +pub const ERR_LIB_FIPS: i32 = 38; +pub const ERR_LIB_CMS: i32 = 39; +pub const ERR_LIB_TS: i32 = 40; +pub const ERR_LIB_CT: i32 = 41; +pub const ERR_LIB_ASYNC: i32 = 42; +pub const ERR_LIB_KDF: i32 = 43; +pub const ERR_LIB_SM2: i32 = 44; +pub const ERR_R_SYS_LIB: i32 = 2; +pub const ERR_R_BN_LIB: i32 = 3; +pub const ERR_R_RSA_LIB: i32 = 4; +pub const ERR_R_DH_LIB: i32 = 5; +pub const ERR_R_EVP_LIB: i32 = 6; +pub const ERR_R_BUF_LIB: i32 = 7; +pub const ERR_R_OBJ_LIB: i32 = 8; +pub const ERR_R_PEM_LIB: i32 = 9; +pub const ERR_R_DSA_LIB: i32 = 10; +pub const ERR_R_X509_LIB: i32 = 11; +pub const ERR_R_ASN1_LIB: i32 = 12; +pub const ERR_R_CONF_LIB: i32 = 13; +pub const ERR_R_CRYPTO_LIB: i32 = 14; +pub const ERR_R_EC_LIB: i32 = 15; +pub const ERR_R_SSL_LIB: i32 = 16; +pub const ERR_R_BIO_LIB: i32 = 17; +pub const ERR_R_PKCS7_LIB: i32 = 18; +pub const ERR_R_PKCS8_LIB: i32 = 19; +pub const ERR_R_X509V3_LIB: i32 = 20; +pub const ERR_R_RAND_LIB: i32 = 21; +pub const ERR_R_DSO_LIB: i32 = 36; +pub const ERR_R_ENGINE_LIB: i32 = 22; +pub const ERR_R_OCSP_LIB: i32 = 23; +pub const ERR_R_UI_LIB: i32 = 24; +pub const ERR_R_COMP_LIB: i32 = 25; +pub const ERR_R_ECDSA_LIB: i32 = 26; +pub const ERR_R_ECDH_LIB: i32 = 27; +pub const ERR_R_FIPS_LIB: i32 = 38; +pub const ERR_R_CMS_LIB: i32 = 39; +pub const ERR_R_TS_LIB: i32 = 40; +pub const ERR_R_HMAC_LIB: i32 = 28; +pub const ERR_R_USER_LIB: i32 = 33; +pub const ERR_R_DIGEST_LIB: i32 = 29; +pub const ERR_R_CIPHER_LIB: i32 = 30; +pub const ERR_R_HKDF_LIB: i32 = 31; +pub const ERR_R_TRUST_TOKEN_LIB: i32 = 32; pub const ERR_R_FATAL: i32 = 64; pub const ERR_R_MALLOC_FAILURE: i32 = 65; pub const ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED: i32 = 66; @@ -128,10 +244,6 @@ pub const ERR_ERROR_STRING_BUF_LEN: i32 = 120; pub const ERR_TXT_STRING: i32 = 1; pub const ERR_TXT_MALLOCED: i32 = 2; pub const ERR_NUM_ERRORS: i32 = 16; -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 BIO_RR_CONNECT: i32 = 2; pub const BIO_RR_ACCEPT: i32 = 3; pub const BIO_CB_FREE: i32 = 1; @@ -143,6 +255,7 @@ pub const BIO_CB_CTRL: i32 = 6; pub const BIO_CB_RETURN: i32 = 128; pub const BIO_NOCLOSE: i32 = 0; pub const BIO_CLOSE: i32 = 1; +pub const BIO_FP_TEXT: i32 = 16; pub const BIO_CTRL_DGRAM_QUERY_MTU: i32 = 40; pub const BIO_CTRL_DGRAM_SET_MTU: i32 = 42; pub const BIO_CTRL_DGRAM_MTU_EXCEEDED: i32 = 43; @@ -208,7 +321,6 @@ pub const BIO_C_SET_FILE_PTR: i32 = 106; pub const BIO_C_GET_FILE_PTR: i32 = 107; pub const BIO_C_SET_FILENAME: i32 = 108; pub const BIO_C_SET_SSL: i32 = 109; -pub const BIO_C_GET_SSL: i32 = 110; pub const BIO_C_SET_MD: i32 = 111; pub const BIO_C_GET_MD: i32 = 112; pub const BIO_C_GET_CIPHER_STATUS: i32 = 113; @@ -222,9 +334,6 @@ pub const BIO_C_GET_MD_CTX: i32 = 120; pub const BIO_C_GET_PROXY_PARAM: i32 = 121; pub const BIO_C_SET_BUFF_READ_DATA: i32 = 122; pub const BIO_C_GET_ACCEPT: i32 = 124; -pub const BIO_C_SET_SSL_RENEGOTIATE_BYTES: i32 = 125; -pub const BIO_C_GET_SSL_NUM_RENEGOTIATES: i32 = 126; -pub const BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT: i32 = 127; pub const BIO_C_FILE_SEEK: i32 = 128; pub const BIO_C_GET_CIPHER_CTX: i32 = 129; pub const BIO_C_SET_BUF_MEM_EOF_RETURN: i32 = 130; @@ -269,7 +378,6 @@ pub const BIO_R_UNSUPPORTED_METHOD: i32 = 115; pub const BIO_R_WRITE_TO_READ_ONLY_BIO: i32 = 116; pub const BN_BITS2: i32 = 64; pub const BN_DEC_FMT1: &[u8; 4] = b"%lu\0"; -pub const BN_DEC_FMT2: &[u8; 7] = b"%019lu\0"; pub const BN_HEX_FMT1: &[u8; 4] = b"%lx\0"; pub const BN_HEX_FMT2: &[u8; 7] = b"%016lx\0"; pub const BN_RAND_TOP_ANY: i32 = -1; @@ -304,6 +412,7 @@ pub const BN_R_TOO_MANY_TEMPORARY_VARIABLES: i32 = 116; pub const BN_R_BAD_ENCODING: i32 = 117; pub const BN_R_ENCODE_ERROR: i32 = 118; pub const BN_R_INVALID_INPUT: i32 = 119; +pub const BN_F_BN_GENERATE_PRIME_EX: i32 = 0; pub const V_ASN1_UNIVERSAL: i32 = 0; pub const V_ASN1_APPLICATION: i32 = 64; pub const V_ASN1_CONTEXT_SPECIFIC: i32 = 128; @@ -364,6 +473,9 @@ pub const B_ASN1_UTF8STRING: i32 = 8192; pub const B_ASN1_UTCTIME: i32 = 16384; pub const B_ASN1_GENERALIZEDTIME: i32 = 32768; pub const B_ASN1_SEQUENCE: i32 = 65536; +pub const ASN1_BOOLEAN_FALSE: i32 = 0; +pub const ASN1_BOOLEAN_TRUE: i32 = 255; +pub const ASN1_BOOLEAN_NONE: i32 = -1; pub const ASN1_STRING_FLAG_BITS_LEFT: i32 = 8; pub const MBSTRING_FLAG: i32 = 4096; pub const MBSTRING_UTF8: i32 = 4096; @@ -563,7 +675,10 @@ pub const EVP_CIPH_OFB_MODE: i32 = 4; pub const EVP_CIPH_CTR_MODE: i32 = 5; pub const EVP_CIPH_GCM_MODE: i32 = 6; pub const EVP_CIPH_XTS_MODE: i32 = 7; +pub const EVP_CIPH_CCM_MODE: i32 = 8; pub const EVP_CIPH_FLAG_LENGTH_BITS: i32 = 8192; +pub const EVP_CIPH_OCB_MODE: i32 = 9; +pub const EVP_CIPH_WRAP_MODE: i32 = 10; pub const EVP_CIPH_VARIABLE_LENGTH: i32 = 64; pub const EVP_CIPH_ALWAYS_CALL_INIT: i32 = 128; pub const EVP_CIPH_CUSTOM_IV: i32 = 256; @@ -572,9 +687,6 @@ pub const EVP_CIPH_FLAG_CUSTOM_CIPHER: i32 = 1024; pub const EVP_CIPH_FLAG_AEAD_CIPHER: i32 = 2048; pub const EVP_CIPH_CUSTOM_COPY: i32 = 4096; pub const EVP_CIPH_FLAG_NON_FIPS_ALLOW: i32 = 0; -pub const EVP_CIPH_CCM_MODE: i32 = -1; -pub const EVP_CIPH_OCB_MODE: i32 = -2; -pub const EVP_CIPH_WRAP_MODE: i32 = -3; pub const EVP_CIPHER_CTX_FLAG_WRAP_ALLOW: i32 = 0; pub const EVP_CIPH_NO_PADDING: i32 = 2048; pub const EVP_CTRL_INIT: i32 = 0; @@ -591,8 +703,10 @@ pub const EVP_CTRL_AEAD_GET_TAG: i32 = 16; pub const EVP_CTRL_AEAD_SET_TAG: i32 = 17; pub const EVP_CTRL_AEAD_SET_IV_FIXED: i32 = 18; pub const EVP_CTRL_GCM_IV_GEN: i32 = 19; +pub const EVP_CTRL_CCM_SET_L: i32 = 20; pub const EVP_CTRL_AEAD_SET_MAC_KEY: i32 = 23; pub const EVP_CTRL_GCM_SET_IV_INV: i32 = 24; +pub const EVP_CTRL_GET_IVLEN: i32 = 25; pub const EVP_GCM_TLS_FIXED_IV_LEN: i32 = 4; pub const EVP_GCM_TLS_EXPLICIT_IV_LEN: i32 = 8; pub const EVP_GCM_TLS_TAG_LEN: i32 = 16; @@ -636,6 +750,8 @@ pub const CIPHER_R_XTS_DATA_UNIT_IS_TOO_LARGE: i32 = 139; pub const CIPHER_R_CTRL_OPERATION_NOT_PERFORMED: i32 = 140; pub const CIPHER_R_SERIALIZATION_INVALID_EVP_AEAD_CTX: i32 = 141; pub const CIPHER_R_ALIGNMENT_CHANGED: i32 = 142; +pub const CIPHER_R_SERIALIZATION_INVALID_SERDE_VERSION: i32 = 143; +pub const CIPHER_R_SERIALIZATION_INVALID_CIPHER_ID: i32 = 144; pub const CONF_MFLAGS_DEFAULT_SECTION: i32 = 0; pub const CONF_MFLAGS_IGNORE_MISSING_FILE: i32 = 0; pub const CONF_R_LIST_CANNOT_BE_NULL: i32 = 100; @@ -645,36 +761,7 @@ pub const CONF_R_NO_CLOSE_BRACE: i32 = 103; pub const CONF_R_UNABLE_TO_CREATE_NEW_SECTION: i32 = 104; pub const CONF_R_VARIABLE_HAS_NO_VALUE: i32 = 105; pub const CONF_R_VARIABLE_EXPANSION_TOO_LONG: i32 = 106; -pub const SHA_CBLOCK: i32 = 64; -pub const SHA_DIGEST_LENGTH: i32 = 20; -pub const SHA224_CBLOCK: i32 = 64; -pub const SHA224_DIGEST_LENGTH: i32 = 28; -pub const SHA256_CBLOCK: i32 = 64; -pub const SHA256_DIGEST_LENGTH: i32 = 32; -pub const SHA384_CBLOCK: i32 = 128; -pub const SHA384_DIGEST_LENGTH: i32 = 48; -pub const SHA512_CBLOCK: i32 = 128; -pub const SHA512_DIGEST_LENGTH: i32 = 64; -pub const SHA512_256_DIGEST_LENGTH: i32 = 32; -pub const OPENSSL_VERSION_TEXT: &[u8; 35] = b"OpenSSL 1.1.1 (compatible; AWS-LC)\0"; -pub const OPENSSL_VERSION: i32 = 0; -pub const OPENSSL_CFLAGS: i32 = 1; -pub const OPENSSL_BUILT_ON: i32 = 2; -pub const OPENSSL_PLATFORM: i32 = 3; -pub const OPENSSL_DIR: i32 = 4; -pub const SSLEAY_VERSION: i32 = 0; -pub const SSLEAY_CFLAGS: i32 = 1; -pub const SSLEAY_BUILT_ON: i32 = 2; -pub const SSLEAY_PLATFORM: i32 = 3; -pub const SSLEAY_DIR: i32 = 4; -pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; -pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const CONF_R_VARIABLE_EXPANSION_NOT_SUPPORTED: i32 = 107; pub const X25519_PRIVATE_KEY_LEN: i32 = 32; pub const X25519_PUBLIC_VALUE_LEN: i32 = 32; pub const X25519_SHARED_KEY_LEN: i32 = 32; @@ -702,13 +789,18 @@ pub const DH_UNABLE_TO_CHECK_GENERATOR: i32 = 4; pub const DH_CHECK_PUBKEY_TOO_SMALL: i32 = 1; pub const DH_CHECK_PUBKEY_TOO_LARGE: i32 = 2; pub const DH_CHECK_PUBKEY_INVALID: i32 = 4; +pub const DH_FLAG_CACHE_MONT_P: i32 = 0; pub const DH_R_BAD_GENERATOR: i32 = 100; pub const DH_R_INVALID_PUBKEY: i32 = 101; pub const DH_R_MODULUS_TOO_LARGE: i32 = 102; pub const DH_R_NO_PRIVATE_VALUE: i32 = 103; pub const DH_R_DECODE_ERROR: i32 = 104; pub const DH_R_ENCODE_ERROR: i32 = 105; +pub const DH_R_INVALID_NID: i32 = 106; +pub const DH_R_INVALID_PARAMETERS: i32 = 107; +pub const DH_F_DH_BUILTIN_GENPARAMS: i32 = 0; pub const EVP_MAX_MD_SIZE: i32 = 64; +pub const EVP_MAX_MD_CHAINING_LENGTH: i32 = 64; pub const EVP_MAX_MD_BLOCK_SIZE: i32 = 128; pub const EVP_MD_FLAG_DIGALGID_ABSENT: i32 = 2; pub const EVP_MD_FLAG_XOF: i32 = 4; @@ -716,7 +808,6 @@ pub const EVP_MD_CTX_FLAG_NON_FIPS_ALLOW: i32 = 0; pub const DIGEST_R_INPUT_NOT_INITIALIZED: i32 = 100; pub const DIGEST_R_DECODE_ERROR: i32 = 101; pub const DIGEST_R_UNKNOWN_HASH: i32 = 102; -pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const DSA_R_BAD_Q_VALUE: i32 = 100; pub const DSA_R_MISSING_PARAMETERS: i32 = 101; pub const DSA_R_MODULUS_TOO_LARGE: i32 = 102; @@ -725,8 +816,10 @@ pub const DSA_R_BAD_VERSION: i32 = 104; pub const DSA_R_DECODE_ERROR: i32 = 105; pub const DSA_R_ENCODE_ERROR: i32 = 106; pub const DSA_R_INVALID_PARAMETERS: i32 = 107; +pub const DSA_R_TOO_MANY_ITERATIONS: i32 = 108; pub const OPENSSL_EC_EXPLICIT_CURVE: i32 = 0; pub const OPENSSL_EC_NAMED_CURVE: i32 = 1; +pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const EC_PKEY_NO_PARAMETERS: i32 = 1; pub const EC_PKEY_NO_PUBKEY: i32 = 2; pub const ECDSA_FLAG_OPAQUE: i32 = 1; @@ -775,6 +868,7 @@ pub const ECDSA_R_NOT_IMPLEMENTED: i32 = 103; pub const ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED: i32 = 104; pub const ECDSA_R_ENCODE_ERROR: i32 = 105; pub const ECDSA_R_MISMATCHED_SIGNATURE: i32 = 205; +pub const ECDSA_R_TOO_MANY_ITERATIONS: i32 = 106; pub const EVP_R_BUFFER_TOO_SMALL: i32 = 100; pub const EVP_R_COMMAND_NOT_SUPPORTED: i32 = 101; pub const EVP_R_DECODE_ERROR: i32 = 102; @@ -813,6 +907,8 @@ pub const EVP_R_INVALID_PEER_KEY: i32 = 134; pub const EVP_R_NOT_XOF_OR_INVALID_LENGTH: i32 = 135; pub const EVP_R_EMPTY_PSK: i32 = 136; pub const EVP_R_INVALID_BUFFER_SIZE: i32 = 137; +pub const EVP_R_BAD_DECRYPT: i32 = 138; +pub const EVP_R_EXPECTING_A_DH_KEY: i32 = 139; pub const EVP_R_INVALID_PSS_MD: i32 = 500; pub const EVP_R_INVALID_PSS_SALT_LEN: i32 = 501; pub const EVP_R_INVALID_PSS_TRAILER_FIELD: i32 = 502; @@ -3096,8 +3192,6 @@ pub const NID_kx_any: i32 = 957; pub const SN_auth_any: &[u8; 8] = b"AuthANY\0"; pub const LN_auth_any: &[u8; 9] = b"auth-any\0"; pub const NID_auth_any: i32 = 958; -pub const SN_CECPQ2: &[u8; 7] = b"CECPQ2\0"; -pub const NID_CECPQ2: i32 = 959; pub const SN_ED448: &[u8; 6] = b"ED448\0"; pub const NID_ED448: i32 = 960; pub const SN_X448: &[u8; 5] = b"X448\0"; @@ -3137,23 +3231,80 @@ pub const SN_KYBER768_R3: &[u8; 12] = b"KYBER768_R3\0"; pub const NID_KYBER768_R3: i32 = 973; pub const SN_KYBER1024_R3: &[u8; 13] = b"KYBER1024_R3\0"; pub const NID_KYBER1024_R3: i32 = 974; +pub const SN_DILITHIUM3_R3: &[u8; 14] = b"DILITHIUM3_R3\0"; +pub const NID_DILITHIUM3_R3: i32 = 975; +pub const SN_ffdhe2048: &[u8; 10] = b"ffdhe2048\0"; +pub const NID_ffdhe2048: i32 = 976; +pub const SN_ffdhe4096: &[u8; 10] = b"ffdhe4096\0"; +pub const NID_ffdhe4096: i32 = 977; +pub const SN_sha512_224: &[u8; 11] = b"SHA512-224\0"; +pub const LN_sha512_224: &[u8; 11] = b"sha512-224\0"; +pub const NID_sha512_224: i32 = 978; +pub const SN_shake128: &[u8; 9] = b"SHAKE128\0"; +pub const LN_shake128: &[u8; 9] = b"shake128\0"; +pub const NID_shake128: i32 = 979; +pub const SN_shake256: &[u8; 9] = b"SHAKE256\0"; +pub const LN_shake256: &[u8; 9] = b"shake256\0"; +pub const NID_shake256: i32 = 980; +pub const SN_SecP256r1Kyber768Draft00: &[u8; 25] = b"SecP256r1Kyber768Draft00\0"; +pub const NID_SecP256r1Kyber768Draft00: i32 = 981; +pub const SN_X25519Kyber768Draft00: &[u8; 22] = b"X25519Kyber768Draft00\0"; +pub const NID_X25519Kyber768Draft00: i32 = 982; +pub const SN_ffdhe3072: &[u8; 10] = b"ffdhe3072\0"; +pub const NID_ffdhe3072: i32 = 983; +pub const SN_ffdhe8192: &[u8; 10] = b"ffdhe8192\0"; +pub const NID_ffdhe8192: i32 = 984; +pub const SN_MLKEM512IPD: &[u8; 12] = b"MLKEM512IPD\0"; +pub const NID_MLKEM512IPD: i32 = 985; +pub const SN_MLKEM768IPD: &[u8; 12] = b"MLKEM768IPD\0"; +pub const NID_MLKEM768IPD: i32 = 986; +pub const SN_MLKEM1024IPD: &[u8; 13] = b"MLKEM1024IPD\0"; +pub const NID_MLKEM1024IPD: i32 = 987; +pub const SN_MLKEM512: &[u8; 9] = b"MLKEM512\0"; +pub const NID_MLKEM512: i32 = 988; +pub const SN_MLKEM768: &[u8; 9] = b"MLKEM768\0"; +pub const NID_MLKEM768: i32 = 989; +pub const SN_MLKEM1024: &[u8; 10] = b"MLKEM1024\0"; +pub const NID_MLKEM1024: i32 = 990; +pub const SN_X25519MLKEM768: &[u8; 15] = b"X25519MLKEM768\0"; +pub const NID_X25519MLKEM768: i32 = 991; +pub const SN_SecP256r1MLKEM768: &[u8; 18] = b"SecP256r1MLKEM768\0"; +pub const NID_SecP256r1MLKEM768: i32 = 992; +pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; +pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; +pub const OBJ_R_UNKNOWN_NID: i32 = 100; +pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const EVP_PKEY_NONE: i32 = 0; pub const EVP_PKEY_RSA: i32 = 6; pub const EVP_PKEY_RSA_PSS: i32 = 912; -pub const EVP_PKEY_DSA: i32 = 116; pub const EVP_PKEY_EC: i32 = 408; pub const EVP_PKEY_ED25519: i32 = 949; pub const EVP_PKEY_X25519: i32 = 948; -pub const EVP_PKEY_KYBER512: i32 = 971; pub const EVP_PKEY_HKDF: i32 = 969; -pub const EVP_PKEY_KEM: i32 = 970; +pub const EVP_PKEY_HMAC: i32 = 855; pub const EVP_PKEY_DH: i32 = 28; +pub const EVP_PKEY_KEM: i32 = 970; +pub const PKCS5_SALT_LEN: i32 = 8; pub const EVP_PKEY_RSA2: i32 = 19; pub const EVP_PKEY_X448: i32 = 961; pub const EVP_PKEY_ED448: i32 = 960; +pub const EVP_PKEY_DSA: i32 = 116; 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; +pub const HMAC_R_SET_PRECOMPUTED_KEY_EXPORT_NOT_CALLED: i32 = 103; +pub const HMAC_R_NOT_CALLED_JUST_AFTER_INIT: i32 = 104; pub const EVP_HPKE_DHKEM_X25519_HKDF_SHA256: i32 = 32; pub const EVP_HPKE_MAX_PUBLIC_KEY_LENGTH: i32 = 32; pub const EVP_HPKE_MAX_PRIVATE_KEY_LENGTH: i32 = 32; @@ -3173,26 +3324,26 @@ pub const HRSS_POLY3_BYTES: i32 = 140; pub const HRSS_PRIVATE_KEY_BYTES: i32 = 1452; pub const MD4_CBLOCK: i32 = 64; pub const MD4_DIGEST_LENGTH: i32 = 16; -pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; -pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; -pub const OBJ_R_UNKNOWN_NID: i32 = 100; -pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const PKCS7_DETACHED: i32 = 64; +pub const PKCS7_BINARY: i32 = 128; +pub const PKCS7_NOATTR: i32 = 256; +pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_TEXT: i32 = 1; pub const PKCS7_NOCERTS: i32 = 2; +pub const PKCS7_NOSMIMECAP: i32 = 512; +pub const PKCS7_STREAM: i32 = 4096; pub const PKCS7_NOSIGS: i32 = 4; pub const PKCS7_NOCHAIN: i32 = 8; pub const PKCS7_NOINTERN: i32 = 16; pub const PKCS7_NOVERIFY: i32 = 32; -pub const PKCS7_BINARY: i32 = 128; -pub const PKCS7_NOATTR: i32 = 256; -pub const PKCS7_NOSMIMECAP: i32 = 512; -pub const PKCS7_STREAM: i32 = 4096; -pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_R_BAD_PKCS7_VERSION: i32 = 100; pub const PKCS7_R_NOT_PKCS7_SIGNED_DATA: i32 = 101; pub const PKCS7_R_NO_CERTIFICATES_INCLUDED: i32 = 102; pub const PKCS7_R_NO_CRLS_INCLUDED: i32 = 103; +pub const PKCS7_R_UNSUPPORTED_CONTENT_TYPE: i32 = 104; +pub const PKCS7_R_WRONG_CONTENT_TYPE: i32 = 105; +pub const PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER: i32 = 106; +pub const PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE: i32 = 107; pub const RSA_PKCS1_PADDING: i32 = 1; pub const RSA_NO_PADDING: i32 = 3; pub const RSA_PKCS1_OAEP_PADDING: i32 = 4; @@ -3201,6 +3352,8 @@ pub const RSA_PSS_SALTLEN_DIGEST: i32 = -1; pub const RSA_FLAG_OPAQUE: i32 = 1; pub const RSA_FLAG_NO_BLINDING: i32 = 8; pub const RSA_FLAG_EXT_PKEY: i32 = 32; +pub const RSA_FLAG_NO_PUBLIC_EXPONENT: i32 = 64; +pub const RSA_FLAG_LARGE_PUBLIC_EXPONENT: i32 = 128; pub const RSA_3: i32 = 3; pub const RSA_F4: i32 = 65537; pub const RSA_METHOD_FLAG_NO_CHECK: i32 = 1; @@ -3254,15 +3407,86 @@ pub const RSA_R_PUBLIC_KEY_VALIDATION_FAILED: i32 = 146; pub const RSA_R_D_OUT_OF_RANGE: i32 = 147; pub const RSA_R_BLOCK_TYPE_IS_NOT_02: i32 = 148; pub const RSA_R_MISMATCHED_SIGNATURE: i32 = 248; +pub const RSA_F_RSA_OSSL_PRIVATE_ENCRYPT: i32 = 0; +pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; +pub const X509V3_R_BAD_OBJECT: i32 = 101; +pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; +pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; +pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; +pub const X509V3_R_DIRNAME_ERROR: i32 = 105; +pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; +pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; +pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; +pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; +pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; +pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; +pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; +pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; +pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; +pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; +pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; +pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; +pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; +pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; +pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; +pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; +pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; +pub const X509V3_R_INVALID_NAME: i32 = 123; +pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; +pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; +pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; +pub const X509V3_R_INVALID_NUMBER: i32 = 127; +pub const X509V3_R_INVALID_NUMBERS: i32 = 128; +pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; +pub const X509V3_R_INVALID_OPTION: i32 = 130; +pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; +pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; +pub const X509V3_R_INVALID_PURPOSE: i32 = 133; +pub const X509V3_R_INVALID_SECTION: i32 = 134; +pub const X509V3_R_INVALID_SYNTAX: i32 = 135; +pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; +pub const X509V3_R_MISSING_VALUE: i32 = 137; +pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; +pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; +pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; +pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; +pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; +pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; +pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; +pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; +pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; +pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; +pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; +pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; +pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; +pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; +pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; +pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; +pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; +pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; +pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; +pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; +pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; +pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; +pub const X509V3_R_USER_TOO_LONG: i32 = 162; +pub const X509V3_R_INVALID_VALUE: i32 = 163; +pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; pub const X509_VERSION_1: i32 = 0; pub const X509_VERSION_2: i32 = 1; pub const X509_VERSION_3: i32 = 2; -pub const X509_CRL_VERSION_1: i32 = 0; -pub const X509_CRL_VERSION_2: i32 = 1; -pub const X509_REQ_VERSION_1: i32 = 0; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; +pub const EXFLAG_BCONS: i32 = 1; +pub const EXFLAG_KUSAGE: i32 = 2; +pub const EXFLAG_XKUSAGE: i32 = 4; +pub const EXFLAG_NSCERT: i32 = 8; +pub const EXFLAG_CA: i32 = 16; +pub const EXFLAG_SI: i32 = 32; +pub const EXFLAG_V1: i32 = 64; +pub const EXFLAG_INVALID: i32 = 128; +pub const EXFLAG_SET: i32 = 256; +pub const EXFLAG_CRITICAL: i32 = 512; +pub const EXFLAG_SS: i32 = 8192; pub const X509v3_KU_DIGITAL_SIGNATURE: i32 = 128; pub const X509v3_KU_NON_REPUDIATION: i32 = 64; pub const X509v3_KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3272,60 +3496,29 @@ pub const X509v3_KU_KEY_CERT_SIGN: i32 = 4; pub const X509v3_KU_CRL_SIGN: i32 = 2; pub const X509v3_KU_ENCIPHER_ONLY: i32 = 1; pub const X509v3_KU_DECIPHER_ONLY: i32 = 32768; -pub const X509v3_KU_UNDEF: i32 = 65535; -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_OCSP_SIGN: i32 = 6; -pub const X509_TRUST_OCSP_REQUEST: i32 = 7; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_MIN: i32 = 1; -pub const X509_TRUST_MAX: i32 = 8; -pub const X509_TRUST_DYNAMIC: i32 = 1; -pub const X509_TRUST_DYNAMIC_NAME: i32 = 2; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -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 XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_COMPAT: i32 = 0; -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_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 XKU_SSL_SERVER: i32 = 1; +pub const XKU_SSL_CLIENT: i32 = 2; +pub const XKU_SMIME: i32 = 4; +pub const XKU_CODE_SIGN: i32 = 8; +pub const XKU_SGC: i32 = 16; +pub const XKU_OCSP_SIGN: i32 = 32; +pub const XKU_TIMESTAMP: i32 = 64; +pub const XKU_DVCS: i32 = 128; +pub const XKU_ANYEKU: i32 = 256; +pub const X509_SIG_INFO_VALID: i32 = 1; +pub const X509_SIG_INFO_TLS: i32 = 2; +pub const X509_CRL_VERSION_1: i32 = 0; +pub const X509_CRL_VERSION_2: i32 = 1; +pub const X509_REQ_VERSION_1: i32 = 0; +pub const GEN_OTHERNAME: i32 = 0; +pub const GEN_EMAIL: i32 = 1; +pub const GEN_DNS: i32 = 2; +pub const GEN_X400: i32 = 3; +pub const GEN_DIRNAME: i32 = 4; +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_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3387,31 +3580,117 @@ 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_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; -pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; -pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; -pub const X509_V_FLAG_X509_STRICT: i32 = 0; -pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; -pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; -pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; -pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; -pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; -pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; -pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; -pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; -pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; -pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; +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; +pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; +pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; +pub const X509_V_FLAG_X509_STRICT: i32 = 0; +pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; +pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; +pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; +pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; +pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; +pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; +pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; +pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; +pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; +pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; pub const X509_V_FLAG_PARTIAL_CHAIN: i32 = 524288; pub const X509_V_FLAG_NO_ALT_CHAINS: i32 = 1048576; pub const X509_V_FLAG_NO_CHECK_TIME: i32 = 2097152; -pub const X509_VP_FLAG_DEFAULT: i32 = 1; -pub const X509_VP_FLAG_OVERWRITE: i32 = 2; -pub const X509_VP_FLAG_RESET_FLAGS: i32 = 4; -pub const X509_VP_FLAG_LOCKED: i32 = 8; -pub const X509_VP_FLAG_ONCE: i32 = 16; pub const X509_V_FLAG_POLICY_MASK: i32 = 1920; +pub const X509V3_EXT_CTX_DEP: i32 = 2; +pub const X509V3_EXT_MULTILINE: i32 = 4; +pub const CRLDP_ALL_REASONS: i32 = 32895; +pub const NS_SSL_CLIENT: i32 = 128; +pub const NS_SSL_SERVER: i32 = 64; +pub const NS_SMIME: i32 = 32; +pub const NS_OBJSIGN: i32 = 16; +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 X509V3_ADD_OP_MASK: i32 = 15; +pub const X509V3_ADD_DEFAULT: i32 = 0; +pub const X509V3_ADD_APPEND: i32 = 1; +pub const X509V3_ADD_REPLACE: i32 = 2; +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_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -3457,19 +3736,7 @@ pub const X509_R_NO_CERTIFICATE_FOUND: i32 = 141; pub const X509_R_NO_CERTIFICATE_OR_CRL_FOUND: i32 = 142; pub const X509_R_NO_CRL_FOUND: i32 = 143; pub const X509_R_INVALID_POLICY_EXTENSION: i32 = 144; -pub const X509V3_EXT_DYNAMIC: i32 = 1; -pub const X509V3_EXT_CTX_DEP: i32 = 2; -pub const X509V3_EXT_MULTILINE: i32 = 4; -pub const GEN_OTHERNAME: i32 = 0; -pub const GEN_EMAIL: i32 = 1; -pub const GEN_DNS: i32 = 2; -pub const GEN_X400: i32 = 3; -pub const GEN_DIRNAME: i32 = 4; -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 CRLDP_ALL_REASONS: i32 = 32895; +pub const X509_R_UNKNOWN_SIGID_ALGS: i32 = 145; pub const CRL_REASON_NONE: i32 = -1; pub const CRL_REASON_UNSPECIFIED: i32 = 0; pub const CRL_REASON_KEY_COMPROMISE: i32 = 1; @@ -3481,26 +3748,6 @@ pub const CRL_REASON_CERTIFICATE_HOLD: i32 = 6; pub const CRL_REASON_REMOVE_FROM_CRL: i32 = 8; pub const CRL_REASON_PRIVILEGE_WITHDRAWN: i32 = 9; pub const CRL_REASON_AA_COMPROMISE: i32 = 10; -pub const IDP_PRESENT: i32 = 1; -pub const IDP_INVALID: i32 = 2; -pub const IDP_ONLYUSER: i32 = 4; -pub const IDP_ONLYCA: i32 = 8; -pub const IDP_ONLYATTR: i32 = 16; -pub const IDP_INDIRECT: i32 = 32; -pub const IDP_REASONS: i32 = 64; -pub const EXFLAG_BCONS: i32 = 1; -pub const EXFLAG_KUSAGE: i32 = 2; -pub const EXFLAG_XKUSAGE: i32 = 4; -pub const EXFLAG_NSCERT: i32 = 8; -pub const EXFLAG_CA: i32 = 16; -pub const EXFLAG_SI: i32 = 32; -pub const EXFLAG_V1: i32 = 64; -pub const EXFLAG_INVALID: i32 = 128; -pub const EXFLAG_SET: i32 = 256; -pub const EXFLAG_CRITICAL: i32 = 512; -pub const EXFLAG_PROXY: i32 = 1024; -pub const EXFLAG_FRESHEST: i32 = 4096; -pub const EXFLAG_SS: i32 = 8192; pub const KU_DIGITAL_SIGNATURE: i32 = 128; pub const KU_NON_REPUDIATION: i32 = 64; pub const KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3510,124 +3757,24 @@ pub const KU_KEY_CERT_SIGN: i32 = 4; pub const KU_CRL_SIGN: i32 = 2; pub const KU_ENCIPHER_ONLY: i32 = 1; pub const KU_DECIPHER_ONLY: i32 = 32768; -pub const NS_SSL_CLIENT: i32 = 128; -pub const NS_SSL_SERVER: i32 = 64; -pub const NS_SMIME: i32 = 32; -pub const NS_OBJSIGN: i32 = 16; -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 XKU_SSL_SERVER: i32 = 1; -pub const XKU_SSL_CLIENT: i32 = 2; -pub const XKU_SMIME: i32 = 4; -pub const XKU_CODE_SIGN: i32 = 8; -pub const XKU_SGC: i32 = 16; -pub const XKU_OCSP_SIGN: i32 = 32; -pub const XKU_TIMESTAMP: i32 = 64; -pub const XKU_DVCS: i32 = 128; -pub const XKU_ANYEKU: i32 = 256; -pub const X509_PURPOSE_DYNAMIC: i32 = 1; -pub const X509_PURPOSE_DYNAMIC_NAME: i32 = 2; -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_PURPOSE_MIN: i32 = 1; -pub const X509_PURPOSE_MAX: i32 = 9; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509V3_ADD_OP_MASK: i32 = 15; -pub const X509V3_ADD_DEFAULT: i32 = 0; -pub const X509V3_ADD_APPEND: i32 = 1; -pub const X509V3_ADD_REPLACE: i32 = 2; -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 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 X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: 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_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; -pub const X509V3_R_BAD_OBJECT: i32 = 101; -pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; -pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; -pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; -pub const X509V3_R_DIRNAME_ERROR: i32 = 105; -pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; -pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; -pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; -pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; -pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; -pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; -pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; -pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; -pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; -pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; -pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; -pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; -pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; -pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; -pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; -pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; -pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; -pub const X509V3_R_INVALID_NAME: i32 = 123; -pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; -pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; -pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; -pub const X509V3_R_INVALID_NUMBER: i32 = 127; -pub const X509V3_R_INVALID_NUMBERS: i32 = 128; -pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; -pub const X509V3_R_INVALID_OPTION: i32 = 130; -pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; -pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; -pub const X509V3_R_INVALID_PURPOSE: i32 = 133; -pub const X509V3_R_INVALID_SECTION: i32 = 134; -pub const X509V3_R_INVALID_SYNTAX: i32 = 135; -pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; -pub const X509V3_R_MISSING_VALUE: i32 = 137; -pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; -pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; -pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; -pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; -pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; -pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; -pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; -pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; -pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; -pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; -pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; -pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; -pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; -pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; -pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; -pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; -pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; -pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; -pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; -pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; -pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; -pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; -pub const X509V3_R_USER_TOO_LONG: i32 = 162; -pub const X509V3_R_INVALID_VALUE: i32 = 163; -pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; +pub const OCSP_REVOKED_STATUS_UNSPECIFIED: i32 = 0; +pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: i32 = 1; +pub const OCSP_REVOKED_STATUS_CACOMPROMISE: i32 = 2; +pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: i32 = 3; +pub const OCSP_REVOKED_STATUS_SUPERSEDED: i32 = 4; +pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: i32 = 5; +pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: i32 = 6; +pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: i32 = 8; +pub const OCSP_REVOKED_STATUS_PRIVILEGEWITHDRAWN: i32 = 9; +pub const OCSP_REVOKED_STATUS_AACOMPROMISE: i32 = 10; +pub const OCSP_NOCERTS: i32 = 1; pub const OCSP_NOINTERN: i32 = 2; pub const OCSP_NOCHAIN: i32 = 8; +pub const OCSP_NOVERIFY: i32 = 16; pub const OCSP_NOEXPLICIT: i32 = 32; +pub const OCSP_TRUSTOTHER: i32 = 512; +pub const OCSP_RESPID_KEY: i32 = 1024; +pub const OCSP_NOTIME: i32 = 2048; pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: i32 = 0; pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: i32 = 1; pub const OCSP_RESPONSE_STATUS_INTERNALERROR: i32 = 2; @@ -3639,19 +3786,38 @@ pub const V_OCSP_RESPID_KEY: i32 = 1; pub const V_OCSP_CERTSTATUS_GOOD: i32 = 0; pub const V_OCSP_CERTSTATUS_REVOKED: i32 = 1; pub const V_OCSP_CERTSTATUS_UNKNOWN: i32 = 2; +pub const OCSP_NONCE_EQUAL: i32 = 1; +pub const OCSP_NONCE_BOTH_ABSENT: i32 = 2; +pub const OCSP_NONCE_RESPONSE_ONLY: i32 = 3; +pub const OCSP_NONCE_NOT_EQUAL: i32 = 0; +pub const OCSP_NONCE_REQUEST_ONLY: i32 = -1; pub const OCSP_R_CERTIFICATE_VERIFY_ERROR: i32 = 101; pub const OCSP_R_DIGEST_ERR: i32 = 102; pub const OCSP_R_MISSING_OCSPSIGNING_USAGE: i32 = 103; pub const OCSP_R_NOT_BASIC_RESPONSE: i32 = 104; pub const OCSP_R_NO_CERTIFICATES_IN_CHAIN: i32 = 105; pub const OCSP_R_NO_RESPONSE_DATA: i32 = 108; +pub const OCSP_R_NO_REVOKED_TIME: i32 = 109; +pub const OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE: i32 = 110; pub const OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA: i32 = 111; pub const OCSP_R_ROOT_CA_NOT_TRUSTED: i32 = 112; +pub const OCSP_R_SERVER_RESPONSE_PARSE_ERROR: i32 = 115; pub const OCSP_R_SIGNATURE_FAILURE: i32 = 117; pub const OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND: i32 = 118; pub const OCSP_R_UNKNOWN_MESSAGE_DIGEST: i32 = 119; pub const OCSP_R_UNKNOWN_NID: i32 = 120; +pub const OCSP_R_ERROR_PARSING_URL: i32 = 121; +pub const OCSP_R_ERROR_IN_NEXTUPDATE_FIELD: i32 = 122; +pub const OCSP_R_ERROR_IN_THISUPDATE_FIELD: i32 = 123; +pub const OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE: i32 = 124; +pub const OCSP_R_STATUS_EXPIRED: i32 = 125; +pub const OCSP_R_STATUS_NOT_YET_VALID: i32 = 126; +pub const OCSP_R_STATUS_TOO_OLD: i32 = 127; +pub const OCSP_R_REQUEST_NOT_SIGNED: i32 = 128; +pub const OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE: i32 = 129; pub const OCSP_R_NO_SIGNER_KEY: i32 = 130; +pub const OCSP_R_OCSP_REQUEST_DUPLICATE_SIGNATURE: i32 = 131; +pub const OCSP_R_UNKNOWN_FIELD_VALUE: i32 = 132; pub const PEM_BUFSIZE: i32 = 1024; pub const PEM_STRING_X509_OLD: &[u8; 17] = b"X509 CERTIFICATE\0"; pub const PEM_STRING_X509: &[u8; 12] = b"CERTIFICATE\0"; @@ -3675,7 +3841,9 @@ pub const PEM_STRING_DHPARAMS: &[u8; 14] = b"DH PARAMETERS\0"; pub const PEM_STRING_SSL_SESSION: &[u8; 23] = b"SSL SESSION PARAMETERS\0"; pub const PEM_STRING_DSAPARAMS: &[u8; 15] = b"DSA PARAMETERS\0"; pub const PEM_STRING_ECDSA_PUBLIC: &[u8; 17] = b"ECDSA PUBLIC KEY\0"; +pub const PEM_STRING_ECPARAMETERS: &[u8; 14] = b"EC PARAMETERS\0"; pub const PEM_STRING_ECPRIVATEKEY: &[u8; 15] = b"EC PRIVATE KEY\0"; +pub const PEM_STRING_PARAMETERS: &[u8; 11] = b"PARAMETERS\0"; pub const PEM_STRING_CMS: &[u8; 4] = b"CMS\0"; pub const PEM_TYPE_ENCRYPTED: i32 = 10; pub const PEM_TYPE_MIC_ONLY: i32 = 20; @@ -3696,6 +3864,7 @@ pub const PEM_R_READ_KEY: i32 = 111; pub const PEM_R_SHORT_HEADER: i32 = 112; pub const PEM_R_UNSUPPORTED_CIPHER: i32 = 113; pub const PEM_R_UNSUPPORTED_ENCRYPTION: i32 = 114; +pub const PEM_R_PROBLEMS_GETTING_PASSWORD: i32 = 115; pub const PKCS12_DEFAULT_ITER: i32 = 2048; pub const PKCS8_R_BAD_PKCS12_DATA: i32 = 100; pub const PKCS8_R_BAD_PKCS12_VERSION: i32 = 101; @@ -3731,11 +3900,12 @@ pub const PKCS8_R_UNSUPPORTED_PRF: i32 = 130; pub const PKCS8_R_INVALID_CHARACTERS: i32 = 131; pub const PKCS8_R_UNSUPPORTED_OPTIONS: i32 = 132; pub const PKCS8_R_AMBIGUOUS_FRIENDLY_NAME: i32 = 133; +pub const PKCS12_R_MAC_VERIFY_FAILURE: i32 = 108; pub const RIPEMD160_CBLOCK: i32 = 64; pub const RIPEMD160_LBLOCK: i32 = 16; pub const RIPEMD160_DIGEST_LENGTH: i32 = 20; pub const AWSLC_MODE_STRING: &[u8; 8] = b"AWS-LC \0"; -pub const AWSLC_VERSION_STRING: &[u8; 14] = b"AWS-LC 2.0.15\0"; +pub const AWSLC_VERSION_STRING: &[u8; 13] = b"AWS-LC 3.0.0\0"; pub const TRUST_TOKEN_MAX_PRIVATE_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_MAX_PUBLIC_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_R_KEYGEN_FAILURE: i32 = 100; @@ -3899,6 +4069,7 @@ pub type AUTHORITY_KEYID = AUTHORITY_KEYID_st; pub type BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; pub type DIST_POINT = DIST_POINT_st; pub type DSA_SIG = DSA_SIG_st; +pub type GENERAL_NAME = GENERAL_NAME_st; pub type ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; pub type NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; pub type NETSCAPE_SPKAC = Netscape_spkac_st; @@ -3950,6 +4121,12 @@ pub struct X509_req_st { pub type X509_REQ = X509_req_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct x509_sig_info_st { + _unused: [u8; 0], +} +pub type X509_SIG_INFO = x509_sig_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct X509_sig_st { _unused: [u8; 0], } @@ -4012,6 +4189,11 @@ pub struct dh_st { _unused: [u8; 0], } pub type DH = dh_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_st { + _unused: [u8; 0], +} pub type DSA = dsa_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4031,7 +4213,12 @@ pub struct ec_point_st { _unused: [u8; 0], } pub type EC_POINT = ec_point_st; -pub type ECDSA_METHOD = ecdsa_method_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_key_method_st { + _unused: [u8; 0], +} +pub type EC_KEY_METHOD = ec_key_method_st; pub type ECDSA_SIG = ecdsa_sig_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4095,32 +4282,75 @@ pub struct kem_key_st { pub type KEM_KEY = kem_key_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_asn1_method_st { +pub struct evp_pkey_ctx_st { _unused: [u8; 0], } -pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; +pub type EVP_PKEY_CTX = evp_pkey_ctx_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_ctx_st { +pub struct evp_pkey_asn1_method_st { _unused: [u8; 0], } -pub type EVP_PKEY_CTX = evp_pkey_ctx_st; +pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_method_st { +pub struct evp_pkey_st { _unused: [u8; 0], } -pub type EVP_PKEY_METHOD = evp_pkey_method_st; pub type EVP_PKEY = evp_pkey_st; pub type HMAC_CTX = hmac_ctx_st; pub type MD4_CTX = md4_state_st; pub type MD5_CTX = md5_state_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_req_ctx_st { + _unused: [u8; 0], +} +pub type OCSP_REQ_CTX = ocsp_req_ctx_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ossl_init_settings_st { _unused: [u8; 0], } pub type OPENSSL_INIT_SETTINGS = ossl_init_settings_st; +pub type PKCS7 = pkcs7_st; +pub type PKCS7_SIGNED = pkcs7_signed_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_ENVELOPE = pkcs7_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_sign_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGN_ENVELOPE = pkcs7_sign_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_digest_st { + _unused: [u8; 0], +} +pub type PKCS7_DIGEST = pkcs7_digest_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_encrypt_st { + _unused: [u8; 0], +} +pub type PKCS7_ENCRYPT = pkcs7_encrypt_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_recip_info_st { + _unused: [u8; 0], +} +pub type PKCS7_RECIP_INFO = pkcs7_recip_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_signer_info_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGNER_INFO = pkcs7_signer_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pkcs12_st { @@ -4136,6 +4366,11 @@ pub type PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; pub type X509_PKEY = private_key_st; pub type RAND_METHOD = rand_meth_st; pub type RC4_KEY = rc4_key_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_meth_st { + _unused: [u8; 0], +} pub type RSA_METHOD = rsa_meth_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4144,6 +4379,11 @@ pub struct rsassa_pss_params_st { } pub type RSASSA_PSS_PARAMS = rsassa_pss_params_st; pub type RSA_PSS_PARAMS = rsa_pss_params_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_st { + _unused: [u8; 0], +} pub type RSA = rsa_st; pub type SHA256_CTX = sha256_state_st; pub type SHA512_CTX = sha512_state_st; @@ -4246,6 +4486,7 @@ pub struct trust_token_method_st { } pub type TRUST_TOKEN_METHOD = trust_token_method_st; pub type X509V3_CTX = v3_ext_ctx; +pub type X509V3_EXT_METHOD = v3_ext_method; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x509_attributes_st { @@ -4348,7 +4589,7 @@ impl Default for aes_key_st { } pub type AES_KEY = aes_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_encrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_encrypt_key"] pub fn AES_set_encrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4356,7 +4597,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_decrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_decrypt_key"] pub fn AES_set_decrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4364,15 +4605,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_encrypt"] pub fn AES_encrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_decrypt"] pub fn AES_decrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ctr128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ctr128_encrypt"] pub fn AES_ctr128_encrypt( in_: *const u8, out: *mut u8, @@ -4384,7 +4625,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ecb_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ecb_encrypt"] pub fn AES_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -4393,7 +4634,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cbc_encrypt"] pub fn AES_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -4404,7 +4645,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ofb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ofb128_encrypt"] pub fn AES_ofb128_encrypt( in_: *const u8, out: *mut u8, @@ -4415,7 +4656,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cfb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cfb128_encrypt"] pub fn AES_cfb128_encrypt( in_: *const u8, out: *mut u8, @@ -4427,7 +4668,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key"] pub fn AES_wrap_key( key: *const AES_KEY, iv: *const u8, @@ -4437,7 +4678,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key"] pub fn AES_unwrap_key( key: *const AES_KEY, iv: *const u8, @@ -4447,7 +4688,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key_padded"] pub fn AES_wrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4458,7 +4699,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key_padded"] pub fn AES_unwrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4686,27 +4927,27 @@ impl Default for buf_mem_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_new"] pub fn BUF_MEM_new() -> *mut BUF_MEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_free"] pub fn BUF_MEM_free(buf: *mut BUF_MEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_reserve"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_reserve"] pub fn BUF_MEM_reserve(buf: *mut BUF_MEM, cap: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow"] pub fn BUF_MEM_grow(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow_clean"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow_clean"] pub fn BUF_MEM_grow_clean(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_append"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_append"] pub fn BUF_MEM_append( buf: *mut BUF_MEM, in_: *const ::std::os::raw::c_void, @@ -4714,29 +4955,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strdup"] pub fn BUF_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strnlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strnlen"] pub fn BUF_strnlen(str_: *const ::std::os::raw::c_char, max_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strndup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strndup"] pub fn BUF_strndup( str_: *const ::std::os::raw::c_char, size: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_memdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_memdup"] pub fn BUF_memdup( data: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcpy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcpy"] pub fn BUF_strlcpy( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -4744,7 +4985,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcat"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcat"] pub fn BUF_strlcat( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -4752,330 +4993,104 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_BIO_strings"] - pub fn ERR_load_BIO_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_ERR_strings"] - pub fn ERR_load_ERR_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_crypto_strings"] - pub fn ERR_load_crypto_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_RAND_strings"] - pub fn ERR_load_RAND_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_free_strings"] - pub fn ERR_free_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error"] - pub fn ERR_get_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line"] - pub fn ERR_get_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line_data"] - pub fn ERR_get_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error"] - pub fn ERR_peek_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line"] - pub fn ERR_peek_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line_data"] - pub fn ERR_peek_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error"] - pub fn ERR_peek_last_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line"] - pub fn ERR_peek_last_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line_data"] - pub fn ERR_peek_last_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string_n"] - pub fn ERR_error_string_n( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - len: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_lib_error_string"] - pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Init"] + pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_reason_error_string"] - pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -pub type ERR_print_errors_callback_t = ::std::option::Option< - unsafe extern "C" fn( - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Update"] + pub fn SHA1_Update( + sha: *mut SHA_CTX, + data: *const ::std::os::raw::c_void, len: usize, - ctx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_cb"] - pub fn ERR_print_errors_cb( - callback: ERR_print_errors_callback_t, - ctx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_fp"] - pub fn ERR_print_errors_fp(file: *mut FILE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_error"] - pub fn ERR_clear_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_mark"] - pub fn ERR_set_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_pop_to_mark"] - pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_next_error_library"] - pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; -} -pub const ERR_LIB_NONE: _bindgen_ty_1 = 1; -pub const ERR_LIB_SYS: _bindgen_ty_1 = 2; -pub const ERR_LIB_BN: _bindgen_ty_1 = 3; -pub const ERR_LIB_RSA: _bindgen_ty_1 = 4; -pub const ERR_LIB_DH: _bindgen_ty_1 = 5; -pub const ERR_LIB_EVP: _bindgen_ty_1 = 6; -pub const ERR_LIB_BUF: _bindgen_ty_1 = 7; -pub const ERR_LIB_OBJ: _bindgen_ty_1 = 8; -pub const ERR_LIB_PEM: _bindgen_ty_1 = 9; -pub const ERR_LIB_DSA: _bindgen_ty_1 = 10; -pub const ERR_LIB_X509: _bindgen_ty_1 = 11; -pub const ERR_LIB_ASN1: _bindgen_ty_1 = 12; -pub const ERR_LIB_CONF: _bindgen_ty_1 = 13; -pub const ERR_LIB_CRYPTO: _bindgen_ty_1 = 14; -pub const ERR_LIB_EC: _bindgen_ty_1 = 15; -pub const ERR_LIB_SSL: _bindgen_ty_1 = 16; -pub const ERR_LIB_BIO: _bindgen_ty_1 = 17; -pub const ERR_LIB_PKCS7: _bindgen_ty_1 = 18; -pub const ERR_LIB_PKCS8: _bindgen_ty_1 = 19; -pub const ERR_LIB_X509V3: _bindgen_ty_1 = 20; -pub const ERR_LIB_RAND: _bindgen_ty_1 = 21; -pub const ERR_LIB_ENGINE: _bindgen_ty_1 = 22; -pub const ERR_LIB_OCSP: _bindgen_ty_1 = 23; -pub const ERR_LIB_UI: _bindgen_ty_1 = 24; -pub const ERR_LIB_COMP: _bindgen_ty_1 = 25; -pub const ERR_LIB_ECDSA: _bindgen_ty_1 = 26; -pub const ERR_LIB_ECDH: _bindgen_ty_1 = 27; -pub const ERR_LIB_HMAC: _bindgen_ty_1 = 28; -pub const ERR_LIB_DIGEST: _bindgen_ty_1 = 29; -pub const ERR_LIB_CIPHER: _bindgen_ty_1 = 30; -pub const ERR_LIB_HKDF: _bindgen_ty_1 = 31; -pub const ERR_LIB_TRUST_TOKEN: _bindgen_ty_1 = 32; -pub const ERR_LIB_USER: _bindgen_ty_1 = 33; -pub const ERR_NUM_LIBS: _bindgen_ty_1 = 34; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_state"] - pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_thread_state"] - pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_func_error_string"] - pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string"] - pub fn ERR_error_string( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_system_error"] - pub fn ERR_clear_system_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_put_error"] - pub fn ERR_put_error( - library: ::std::os::raw::c_int, - unused: ::std::os::raw::c_int, - reason: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_uint, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_data"] - pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Final"] + pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_dataf"] - pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1"] + pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_error_data"] - pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Transform"] + pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); } -pub type OPENSSL_sk_free_func = - ::std::option::Option; -pub type OPENSSL_sk_copy_func = ::std::option::Option< - unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *const ::std::os::raw::c_void, - b: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - obj: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_free_func = ::std::option::Option< - unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), ->; -pub type OPENSSL_sk_call_copy_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_copy_func, - arg2: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_cmp_func, - arg2: *const *const ::std::os::raw::c_void, - arg3: *const *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_delete_if_func, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct stack_st { - pub num: usize, - pub data: *mut *mut ::std::os::raw::c_void, - pub sorted: ::std::os::raw::c_int, - pub num_alloc: usize, - pub comp: OPENSSL_sk_cmp_func, +pub struct sha_state_st { + pub h: [u32; 5usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_stack_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha_state_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!(stack_st)) + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(sha_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stack_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(data) + stringify!(Nl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sorted) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(sorted) + stringify!(Nh) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_alloc) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num_alloc) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 92usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(comp) + stringify!(num) ) ); } -impl Default for stack_st { +impl Default for sha_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5084,354 +5099,278 @@ impl Default for stack_st { } } } -pub type _STACK = stack_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new"] - pub fn sk_new(comp: OPENSSL_sk_cmp_func) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Init"] + pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new_null"] - pub fn sk_new_null() -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Update"] + pub fn SHA224_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_num"] - pub fn sk_num(sk: *const _STACK) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Final"] + pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_zero"] - pub fn sk_zero(sk: *mut _STACK); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224"] + pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_value"] - pub fn sk_value(sk: *const _STACK, i: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Init"] + pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set"] - pub fn sk_set( - sk: *mut _STACK, - i: usize, - p: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Update"] + pub fn SHA256_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_free"] - pub fn sk_free(sk: *mut _STACK); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Final"] + pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free_ex"] - pub fn sk_pop_free_ex( - sk: *mut _STACK, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256"] + pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_insert"] - pub fn sk_insert(sk: *mut _STACK, p: *mut ::std::os::raw::c_void, where_: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Transform"] + pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete"] - pub fn sk_delete(sk: *mut _STACK, where_: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_TransformBlocks"] + pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_ptr"] - pub fn sk_delete_ptr( - sk: *mut _STACK, - p: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct sha256_state_st { + pub h: [u32; 8usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_if"] - pub fn sk_delete_if( - sk: *mut _STACK, - call_func: OPENSSL_sk_call_delete_if_func, - func: OPENSSL_sk_delete_if_func, - data: *mut ::std::os::raw::c_void, +#[test] +fn bindgen_test_layout_sha256_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 112usize, + concat!("Size of: ", stringify!(sha256_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha256_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(md_len) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_find"] - pub fn sk_find( - sk: *const _STACK, - out_index: *mut usize, - p: *const ::std::os::raw::c_void, - call_cmp_func: OPENSSL_sk_call_cmp_func, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_shift"] - pub fn sk_shift(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; +impl Default for sha256_state_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_fips_0_12_15_sk_push"] - pub fn sk_push(sk: *mut _STACK, p: *mut ::std::os::raw::c_void) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Init"] + pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop"] - pub fn sk_pop(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Update"] + pub fn SHA384_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_dup"] - pub fn sk_dup(sk: *const _STACK) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Final"] + pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_sort"] - pub fn sk_sort(sk: *mut _STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384"] + pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_is_sorted"] - pub fn sk_is_sorted(sk: *const _STACK) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Init"] + pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set_cmp_func"] - pub fn sk_set_cmp_func(sk: *mut _STACK, comp: OPENSSL_sk_cmp_func) -> OPENSSL_sk_cmp_func; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Update"] + pub fn SHA512_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_deep_copy"] - pub fn sk_deep_copy( - sk: *const _STACK, - call_copy_func: OPENSSL_sk_call_copy_func, - copy_func: OPENSSL_sk_copy_func, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Final"] + pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free"] - pub fn sk_pop_free(sk: *mut _STACK, free_func: OPENSSL_sk_free_func); -} -pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_void { - _unused: [u8; 0], -} -pub type sk_void_free_func = - ::std::option::Option; -pub type sk_void_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type sk_void_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type sk_void_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_OPENSSL_STRING { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512"] + pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } -pub type sk_OPENSSL_STRING_free_func = - ::std::option::Option; -pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, ->; -pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_char, - arg2: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_DATA = crypto_ex_data_st; -pub type CRYPTO_EX_free = ::std::option::Option< - unsafe extern "C" fn( - parent: *mut ::std::os::raw::c_void, - ptr: *mut ::std::os::raw::c_void, - ad: *mut CRYPTO_EX_DATA, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ), ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_cleanup_all_ex_data"] - pub fn CRYPTO_cleanup_all_ex_data(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Transform"] + pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); } -pub type CRYPTO_EX_dup = ::std::option::Option< - unsafe extern "C" fn( - to: *mut CRYPTO_EX_DATA, - from: *const CRYPTO_EX_DATA, - from_d: *mut *mut ::std::os::raw::c_void, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_unused = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct crypto_ex_data_st { - pub sk: *mut stack_st_void, +pub struct sha512_state_st { + pub h: [u64; 8usize], + pub Nl: u64, + pub Nh: u64, + pub p: [u8; 128usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_crypto_ex_data_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha512_state_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!(crypto_ex_data_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(sha512_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(crypto_ex_data_st)) + concat!("Alignment of ", stringify!(sha512_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(crypto_ex_data_st), + stringify!(sha512_state_st), "::", - stringify!(sk) + stringify!(h) ) ); -} -impl Default for crypto_ex_data_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() - } - } -} -pub type CRYPTO_MUTEX = pthread_rwlock_t; -pub type CRYPTO_refcount_t = u32; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_clear"] - pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_shutdown"] - pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_num_locks"] - pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_locking_callback"] - pub fn CRYPTO_set_locking_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_add_lock_callback"] - pub fn CRYPTO_set_add_lock_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - num: *mut ::std::os::raw::c_int, - amount: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_locking_callback"] - pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_lock_name"] - pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_callback"] - pub fn CRYPTO_THREADID_set_callback( - threadid_func: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_numeric"] - pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_pointer"] - pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_current"] - pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_id_callback"] - pub fn CRYPTO_set_id_callback( - func: ::std::option::Option ::std::os::raw::c_ulong>, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nl) + ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct CRYPTO_dynlock { - pub references: ::std::os::raw::c_int, - pub data: *mut CRYPTO_dynlock_value, -} -#[test] -fn bindgen_test_layout_CRYPTO_dynlock() { - 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!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nh) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(p) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 208usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(references) + stringify!(num) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 212usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(data) + stringify!(md_len) ) ); } -impl Default for CRYPTO_dynlock { +impl Default for sha512_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5441,951 +5380,1044 @@ impl Default for CRYPTO_dynlock { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_create_callback"] - pub fn CRYPTO_set_dynlock_create_callback( - dyn_create_function: ::std::option::Option< - unsafe extern "C" fn( - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Init"] + pub fn SHA512_224_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_lock_callback"] - pub fn CRYPTO_set_dynlock_lock_callback( - dyn_lock_function: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Update"] + pub fn SHA512_224_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_destroy_callback"] - pub fn CRYPTO_set_dynlock_destroy_callback( - dyn_destroy_function: ::std::option::Option< - unsafe extern "C" fn( - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Final"] + pub fn SHA512_224_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_create_callback"] - pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224"] + pub fn SHA512_224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_lock_callback"] - pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut CRYPTO_dynlock_value, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Init"] + pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_destroy_callback"] - pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_dynlock_value, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Update"] + pub fn SHA512_256_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_BIO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Final"] + pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } -pub type sk_BIO_free_func = ::std::option::Option; -pub type sk_BIO_copy_func = - ::std::option::Option *mut BIO>; -pub type sk_BIO_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const BIO, arg2: *mut *const BIO) -> ::std::os::raw::c_int, ->; -pub type sk_BIO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new"] - pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256"] + pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free"] - pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc"] + pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vfree"] - pub fn BIO_vfree(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_zalloc"] + pub fn OPENSSL_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_up_ref"] - pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_calloc"] + pub fn OPENSSL_calloc(num: usize, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read"] - pub fn BIO_read( - bio: *mut BIO, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_realloc"] + pub fn OPENSSL_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_gets"] - pub fn BIO_gets( - bio: *mut BIO, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_free"] + pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write"] - pub fn BIO_write( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanse"] + pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_all"] - pub fn BIO_write_all( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_memcmp"] + pub fn CRYPTO_memcmp( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_puts"] - pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hash32"] + pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_flush"] - pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strhash"] + pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl"] - pub fn BIO_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - parg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strdup"] + pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ptr_ctrl"] - pub fn BIO_ptr_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_int_ctrl"] - pub fn BIO_int_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - iarg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strnlen"] + pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_reset"] - pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalpha"] + pub fn OPENSSL_isalpha(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_eof"] - pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isdigit"] + pub fn OPENSSL_isdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_flags"] - pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isxdigit"] + pub fn OPENSSL_isxdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_test_flags"] - pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_fromxdigit"] + pub fn OPENSSL_fromxdigit(out: *mut u8, c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_read"] - pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hexstr2buf"] + pub fn OPENSSL_hexstr2buf(str_: *const ::std::os::raw::c_char, len: *mut usize) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_write"] - pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalnum"] + pub fn OPENSSL_isalnum(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_retry"] - pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_tolower"] + pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_io_special"] - pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isspace"] + pub fn OPENSSL_isspace(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_reason"] - pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strcasecmp"] + pub fn OPENSSL_strcasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_reason"] - pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strncasecmp"] + pub fn OPENSSL_strncasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + n: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_flags"] - pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_snprintf"] + pub fn BIO_snprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_read"] - pub fn BIO_set_retry_read(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vsnprintf"] + pub fn BIO_vsnprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + args: va_list, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_write"] - pub fn BIO_set_retry_write(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_vasprintf"] + pub fn OPENSSL_vasprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + args: va_list, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_flags"] - pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_asprintf"] + pub fn OPENSSL_asprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_retry_flags"] - pub fn BIO_clear_retry_flags(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strndup"] + pub fn OPENSSL_strndup( + str_: *const ::std::os::raw::c_char, + size: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_method_type"] - pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_memdup"] + pub fn OPENSSL_memdup( + data: *const ::std::os::raw::c_void, + size: usize, + ) -> *mut ::std::os::raw::c_void; } -pub type bio_info_cb = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - event: ::std::os::raw::c_int, - parg: *const ::std::os::raw::c_char, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - return_value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long, ->; -pub type BIO_callback_fn_ex = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - oper: ::std::os::raw::c_int, - argp: *const ::std::os::raw::c_char, - len: usize, - argi: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - bio_ret: ::std::os::raw::c_int, - processed: *mut usize, - ) -> ::std::os::raw::c_long, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_callback_ctrl"] - pub fn BIO_callback_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - fp: bio_info_cb, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcpy"] + pub fn OPENSSL_strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pending"] - pub fn BIO_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcat"] + pub fn OPENSSL_strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_pending"] - pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc"] + pub fn CRYPTO_malloc( + size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_wpending"] - pub fn BIO_wpending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_realloc"] + pub fn CRYPTO_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_close"] - pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_free"] + pub fn CRYPTO_free( + ptr: *mut ::std::os::raw::c_void, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_read"] - pub fn BIO_number_read(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_clear_free"] + pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_written"] - pub fn BIO_number_written(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_mem_functions"] + pub fn CRYPTO_set_mem_functions( + m: ::std::option::Option< + unsafe extern "C" fn( + arg1: usize, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + r: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: usize, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_ex"] - pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_init"] + pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_arg"] - pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_initialized"] + pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_callback_arg"] - pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_used"] + pub fn CRYPTO_secure_used() -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_push"] - pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_malloc"] + pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pop"] - pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_zalloc"] + pub fn OPENSSL_secure_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_next"] - pub fn BIO_next(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_clear_free"] + pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } +pub type CRYPTO_MUTEX = pthread_rwlock_t; +pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free_all"] - pub fn BIO_free_all(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_clear"] + pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_find_type"] - pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_shutdown"] + pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_copy_next_retry"] - pub fn BIO_copy_next_retry(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_num_locks"] + pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_printf"] - pub fn BIO_printf( - bio: *mut BIO, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_locking_callback"] + pub fn CRYPTO_set_locking_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_indent"] - pub fn BIO_indent( - bio: *mut BIO, - indent: ::std::os::raw::c_uint, - max_indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_add_lock_callback"] + pub fn CRYPTO_set_add_lock_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + num: *mut ::std::os::raw::c_int, + amount: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_hexdump"] - pub fn BIO_hexdump( - bio: *mut BIO, - data: *const u8, - len: usize, - indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_locking_callback"] + pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors"] - pub fn ERR_print_errors(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_lock_name"] + pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_asn1"] - pub fn BIO_read_asn1( - bio: *mut BIO, - out: *mut *mut u8, - out_len: *mut usize, - max_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_callback"] + pub fn CRYPTO_THREADID_set_callback( + threadid_func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_mem"] - pub fn BIO_s_mem() -> *const BIO_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_mem_buf"] - pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_mem_contents"] - pub fn BIO_mem_contents( - bio: *const BIO, - out_contents: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_numeric"] + pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_mem_ptr"] - pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_pointer"] + pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_buf"] - pub fn BIO_set_mem_buf( - bio: *mut BIO, - b: *mut BUF_MEM, - take_ownership: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_current"] + pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_eof_return"] - pub fn BIO_set_mem_eof_return( - bio: *mut BIO, - eof_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_id_callback"] + pub fn CRYPTO_set_id_callback( + func: ::std::option::Option ::std::os::raw::c_ulong>, + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_fd"] - pub fn BIO_s_fd() -> *const BIO_METHOD; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct CRYPTO_dynlock { + pub references: ::std::os::raw::c_int, + pub data: *mut CRYPTO_dynlock_value, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fd"] - pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; +#[test] +fn bindgen_test_layout_CRYPTO_dynlock() { + 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!(CRYPTO_dynlock)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(data) + ) + ); +} +impl Default for CRYPTO_dynlock { + 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_fips_0_12_15_BIO_set_fd"] - pub fn BIO_set_fd( - bio: *mut BIO, - fd: ::std::os::raw::c_int, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_create_callback"] + pub fn CRYPTO_set_dynlock_create_callback( + dyn_create_function: ::std::option::Option< + unsafe extern "C" fn( + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fd"] - pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_lock_callback"] + pub fn CRYPTO_set_dynlock_lock_callback( + dyn_lock_function: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_file"] - pub fn BIO_s_file() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_destroy_callback"] + pub fn CRYPTO_set_dynlock_destroy_callback( + dyn_destroy_function: ::std::option::Option< + unsafe extern "C" fn( + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_file"] - pub fn BIO_new_file( - filename: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_create_callback"] + pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fp"] - pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_lock_callback"] + pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut CRYPTO_dynlock_value, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fp"] - pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_destroy_callback"] + pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_dynlock_value, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_fp"] - pub fn BIO_set_fp( - bio: *mut BIO, - file: *mut FILE, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_library_init"] + pub fn CRYPTO_library_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_filename"] - pub fn BIO_read_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_is_confidential_build"] + pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_filename"] - pub fn BIO_write_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_has_asm"] + pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_append_filename"] - pub fn BIO_append_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BORINGSSL_self_test"] + pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_rw_filename"] - pub fn BIO_rw_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_tell"] - pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_pre_sandbox_init"] + pub fn CRYPTO_pre_sandbox_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_seek"] - pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_armv8_disable_dit"] + pub fn armv8_disable_dit(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_socket"] - pub fn BIO_s_socket() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_armv8_enable_dit"] + pub fn armv8_enable_dit(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_socket"] - pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) - -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode"] + pub fn FIPS_mode() -> ::std::os::raw::c_int; } +pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; +pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; +pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; +pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; +pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; +pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_connect"] - pub fn BIO_s_connect() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_read_counter"] + pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_connect"] - pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version"] + pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_hostname"] - pub fn BIO_set_conn_hostname( - bio: *mut BIO, - host_and_optional_port: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay_version"] + pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_port"] - pub fn BIO_set_conn_port( - bio: *mut BIO, - port_str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay"] + pub fn SSLeay() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_int_port"] - pub fn BIO_set_conn_int_port( - bio: *mut BIO, - port: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version_num"] + pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_nbio"] - pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_api_version_num"] + pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_do_connect"] - pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc_init"] + pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_bio_pair"] - pub fn BIO_new_bio_pair( - out1: *mut *mut BIO, - writebuf1: usize, - out2: *mut *mut BIO, - writebuf2: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc_init"] + pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_read_request"] - pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_load_builtin_engines"] + pub fn ENGINE_load_builtin_engines(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_write_guarantee"] - pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_register_all_complete"] + pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_shutdown_wr"] - pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_load_builtin_modules"] + pub fn OPENSSL_load_builtin_modules(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_new_index"] - pub fn BIO_get_new_index() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init_crypto"] + pub fn OPENSSL_init_crypto( + opts: u64, + settings: *const OPENSSL_INIT_SETTINGS, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_new"] - pub fn BIO_meth_new( - type_: ::std::os::raw::c_int, - name: *const ::std::os::raw::c_char, - ) -> *mut BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init"] + pub fn OPENSSL_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_free"] - pub fn BIO_meth_free(method: *mut BIO_METHOD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanup"] + pub fn OPENSSL_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_create"] - pub fn BIO_meth_set_create( - method: *mut BIO_METHOD, - create: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode_set"] + pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_create"] - pub fn BIO_meth_get_create( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_BIO_strings"] + pub fn ERR_load_BIO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_destroy"] - pub fn BIO_meth_set_destroy( - method: *mut BIO_METHOD, - destroy: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_ERR_strings"] + pub fn ERR_load_ERR_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_destroy"] - pub fn BIO_meth_get_destroy( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_CRYPTO_strings"] + pub fn ERR_load_CRYPTO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_write"] - pub fn BIO_meth_set_write( - method: *mut BIO_METHOD, - write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_crypto_strings"] + pub fn ERR_load_crypto_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_read"] - pub fn BIO_meth_set_read( - method: *mut BIO_METHOD, - read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_RAND_strings"] + pub fn ERR_load_RAND_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_gets"] - pub fn BIO_meth_set_gets( - method: *mut BIO_METHOD, - gets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_free_strings"] + pub fn ERR_free_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_gets"] - pub fn BIO_meth_get_gets( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error"] + pub fn ERR_get_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_ctrl"] - pub fn BIO_meth_set_ctrl( - method: *mut BIO_METHOD, - ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line"] + pub fn ERR_get_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_ctrl"] - pub fn BIO_meth_get_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_long, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line_data"] + pub fn ERR_get_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_callback_ctrl"] - pub fn BIO_meth_set_callback_ctrl( - method: *mut BIO_METHOD, - callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error"] + pub fn ERR_peek_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_callback_ctrl"] - pub fn BIO_meth_get_callback_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: bio_info_cb, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line"] + pub fn ERR_peek_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_data"] - pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line_data"] + pub fn ERR_peek_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_data"] - pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error"] + pub fn ERR_peek_last_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_init"] - pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line"] + pub fn ERR_peek_last_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_init"] - pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line_data"] + pub fn ERR_peek_last_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_new_index"] - pub fn BIO_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_fips_0_13_0_ERR_error_string_n"] + pub fn ERR_error_string_n( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + len: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_ex_data"] - pub fn BIO_set_ex_data( - bio: *mut BIO, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_lib_error_string"] + pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_data"] - pub fn BIO_get_ex_data( - bio: *const BIO, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_reason_error_string"] + pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } +pub type ERR_print_errors_callback_t = ::std::option::Option< + unsafe extern "C" fn( + str_: *const ::std::os::raw::c_char, + len: usize, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_f_base64"] - pub fn BIO_f_base64() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors_cb"] + pub fn ERR_print_errors_cb( + callback: ERR_print_errors_callback_t, + ctx: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_special"] - pub fn BIO_set_retry_special(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors_fp"] + pub fn ERR_print_errors_fp(file: *mut FILE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_write_buffer_size"] - pub fn BIO_set_write_buffer_size( - bio: *mut BIO, - buffer_size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_error"] + pub fn ERR_clear_error(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_shutdown"] - pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_mark"] + pub fn ERR_set_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_shutdown"] - pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_pop_to_mark"] + pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_puts"] - pub fn BIO_meth_set_puts( - method: *mut BIO_METHOD, - puts: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_next_error_library"] + pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_puts"] - pub fn BIO_meth_get_puts( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_state"] + pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_method_st { - pub type_: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub bwrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bread: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bputs: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub bgets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - pub create: - ::std::option::Option ::std::os::raw::c_int>, - pub destroy: - ::std::option::Option ::std::os::raw::c_int>, - pub callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_thread_state"] + pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); } -#[test] -fn bindgen_test_layout_bio_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(bio_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bwrite) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_func_error_string"] + pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string"] + pub fn ERR_error_string( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_system_error"] + pub fn ERR_clear_system_error(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_put_error"] + pub fn ERR_put_error( + library: ::std::os::raw::c_int, + unused: ::std::os::raw::c_int, + reason: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_uint, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bread) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bputs) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_data"] + pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_dataf"] + pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_error_data"] + pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); +} +pub type OPENSSL_sk_free_func = + ::std::option::Option; +pub type OPENSSL_sk_copy_func = ::std::option::Option< + unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + a: *const *const ::std::os::raw::c_void, + b: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + obj: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_free_func = ::std::option::Option< + unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), +>; +pub type OPENSSL_sk_call_copy_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_copy_func, + arg2: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_cmp_func, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_delete_if_func, + arg2: *mut ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st { + _unused: [u8; 0], +} +pub type OPENSSL_STACK = stack_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new"] + pub fn OPENSSL_sk_new(comp: OPENSSL_sk_cmp_func) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new_null"] + pub fn OPENSSL_sk_new_null() -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_num"] + pub fn OPENSSL_sk_num(sk: *const OPENSSL_STACK) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_zero"] + pub fn OPENSSL_sk_zero(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_value"] + pub fn OPENSSL_sk_value(sk: *const OPENSSL_STACK, i: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set"] + pub fn OPENSSL_sk_set( + sk: *mut OPENSSL_STACK, + i: usize, + p: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_free"] + pub fn OPENSSL_sk_free(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop_free_ex"] + pub fn OPENSSL_sk_pop_free_ex( + sk: *mut OPENSSL_STACK, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bgets) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_insert"] + pub fn OPENSSL_sk_insert( + sk: *mut OPENSSL_STACK, + p: *mut ::std::os::raw::c_void, + where_: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete"] + pub fn OPENSSL_sk_delete(sk: *mut OPENSSL_STACK, where_: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_ptr"] + pub fn OPENSSL_sk_delete_ptr( + sk: *mut OPENSSL_STACK, + p: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_if"] + pub fn OPENSSL_sk_delete_if( + sk: *mut OPENSSL_STACK, + call_func: OPENSSL_sk_call_delete_if_func, + func: OPENSSL_sk_delete_if_func, + data: *mut ::std::os::raw::c_void, ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_find"] + pub fn OPENSSL_sk_find( + sk: *const OPENSSL_STACK, + out_index: *mut usize, + p: *const ::std::os::raw::c_void, + call_cmp_func: OPENSSL_sk_call_cmp_func, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_unshift"] + pub fn OPENSSL_sk_unshift( + sk: *mut OPENSSL_STACK, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_shift"] + pub fn OPENSSL_sk_shift(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_push"] + pub fn OPENSSL_sk_push(sk: *mut OPENSSL_STACK, p: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop"] + pub fn OPENSSL_sk_pop(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_dup"] + pub fn OPENSSL_sk_dup(sk: *const OPENSSL_STACK) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_sort"] + pub fn OPENSSL_sk_sort(sk: *mut OPENSSL_STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_is_sorted"] + pub fn OPENSSL_sk_is_sorted(sk: *const OPENSSL_STACK) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set_cmp_func"] + pub fn OPENSSL_sk_set_cmp_func( + sk: *mut OPENSSL_STACK, + comp: OPENSSL_sk_cmp_func, + ) -> OPENSSL_sk_cmp_func; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_deep_copy"] + pub fn OPENSSL_sk_deep_copy( + sk: *const OPENSSL_STACK, + call_copy_func: OPENSSL_sk_call_copy_func, + copy_func: OPENSSL_sk_copy_func, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, + ) -> *mut OPENSSL_STACK; +} +pub type _STACK = OPENSSL_STACK; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_sk_pop_free"] + pub fn sk_pop_free(sk: *mut OPENSSL_STACK, free_func: OPENSSL_sk_free_func); +} +pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_void { + _unused: [u8; 0], +} +pub type sk_void_free_func = + ::std::option::Option; +pub type sk_void_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type sk_void_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_void, + arg2: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type sk_void_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_OPENSSL_STRING { + _unused: [u8; 0], +} +pub type sk_OPENSSL_STRING_free_func = + ::std::option::Option; +pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, +>; +pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_char, + arg2: *const *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_DATA = crypto_ex_data_st; +pub type CRYPTO_EX_free = ::std::option::Option< + unsafe extern "C" fn( + parent: *mut ::std::os::raw::c_void, + ptr: *mut ::std::os::raw::c_void, + ad: *mut CRYPTO_EX_DATA, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_cleanup_all_ex_data"] + pub fn CRYPTO_cleanup_all_ex_data(); +} +pub type CRYPTO_EX_dup = ::std::option::Option< + unsafe extern "C" fn( + to: *mut CRYPTO_EX_DATA, + from: *const CRYPTO_EX_DATA, + from_d: *mut *mut ::std::os::raw::c_void, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_unused = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct crypto_ex_data_st { + pub sk: *mut stack_st_void, +} +#[test] +fn bindgen_test_layout_crypto_ex_data_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(ctrl) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(create) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bio_method_st), + stringify!(crypto_ex_data_st), "::", - stringify!(destroy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(callback_ctrl) + stringify!(sk) ) ); } -impl Default for bio_method_st { +impl Default for crypto_ex_data_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6395,1053 +6427,908 @@ impl Default for bio_method_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_st { - pub method: *const BIO_METHOD, - pub ex_data: CRYPTO_EX_DATA, - pub callback_ex: BIO_callback_fn_ex, - pub cb_arg: *mut ::std::os::raw::c_char, - pub init: ::std::os::raw::c_int, - pub shutdown: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub retry_reason: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_int, - pub references: CRYPTO_refcount_t, - pub ptr: *mut ::std::os::raw::c_void, - pub next_bio: *mut BIO, - pub num_read: usize, - pub num_write: usize, -} -#[test] -fn bindgen_test_layout_bio_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(bio_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(method) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(callback_ex) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(cb_arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(shutdown) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(retry_reason) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(next_bio) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_read) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_write) - ) - ); -} -impl Default for bio_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() - } - } +#[derive(Debug, Copy, Clone)] +pub struct stack_st_BIO { + _unused: [u8; 0], } -pub type BN_ULONG = u64; +pub type sk_BIO_free_func = ::std::option::Option; +pub type sk_BIO_copy_func = + ::std::option::Option *mut BIO>; +pub type sk_BIO_cmp_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const *const BIO, arg2: *const *const BIO) -> ::std::os::raw::c_int, +>; +pub type sk_BIO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_new"] - pub fn BN_new() -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new"] + pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_init"] - pub fn BN_init(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free"] + pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_free"] - pub fn BN_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vfree"] + pub fn BIO_vfree(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_free"] - pub fn BN_clear_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_up_ref"] + pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dup"] - pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read"] + pub fn BIO_read( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_copy"] - pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_ex"] + pub fn BIO_read_ex( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + data_len: usize, + read_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear"] - pub fn BN_clear(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_gets"] + pub fn BIO_gets( + bio: *mut BIO, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_value_one"] - pub fn BN_value_one() -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write"] + pub fn BIO_write( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bits"] - pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_ex"] + pub fn BIO_write_ex( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + data_len: usize, + written_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bytes"] - pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_all"] + pub fn BIO_write_all( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_zero"] - pub fn BN_zero(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_puts"] + pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_one"] - pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_flush"] + pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_word"] - pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl"] + pub fn BIO_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + parg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_u64"] - pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_negative"] - pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ptr_ctrl"] + pub fn BIO_ptr_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_negative"] - pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_int_ctrl"] + pub fn BIO_int_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + iarg: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bin2bn"] - pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_reset"] + pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin"] - pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_eof"] + pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_le2bn"] - pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_flags"] + pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2le_padded"] - pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_test_flags"] + pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin_padded"] - pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_read"] + pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2cbb_padded"] - pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_write"] + pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2hex"] - pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_retry"] + pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_hex2bn"] - pub fn BN_hex2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_io_special"] + pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2dec"] - pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_reason"] + pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dec2bn"] - pub fn BN_dec2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_reason"] + pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_asc2bn"] - pub fn BN_asc2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_flags"] + pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print"] - pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_read"] + pub fn BIO_set_retry_read(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print_fp"] - pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_write"] + pub fn BIO_set_retry_write(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_word"] - pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_flags"] + pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_u64"] - pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_retry_flags"] + pub fn BIO_clear_retry_flags(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_parse_asn1_unsigned"] - pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_type"] + pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_marshal_asn1"] - pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_name"] + pub fn BIO_method_name(b: *const BIO) -> *const ::std::os::raw::c_char; } +pub type bio_info_cb = ::std::option::Option< + unsafe extern "C" fn( + b: *mut BIO, + state: ::std::os::raw::c_int, + res: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long, +>; +pub type BIO_callback_fn_ex = ::std::option::Option< + unsafe extern "C" fn( + bio: *mut BIO, + oper: ::std::os::raw::c_int, + argp: *const ::std::os::raw::c_char, + len: usize, + argi: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + bio_ret: ::std::os::raw::c_int, + processed: *mut usize, + ) -> ::std::os::raw::c_long, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_new"] - pub fn BN_CTX_new() -> *mut BN_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_callback_ctrl"] + pub fn BIO_callback_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + fp: bio_info_cb, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_free"] - pub fn BN_CTX_free(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pending"] + pub fn BIO_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_start"] - pub fn BN_CTX_start(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_pending"] + pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_get"] - pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_wpending"] + pub fn BIO_wpending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_end"] - pub fn BN_CTX_end(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_close"] + pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add"] - pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_read"] + pub fn BIO_number_read(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_uadd"] - pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_written"] + pub fn BIO_number_written(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add_word"] - pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_ex"] + pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub"] - pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_arg"] + pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_usub"] - pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_callback_arg"] + pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub_word"] - pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_push"] + pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul"] - pub fn BN_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pop"] + pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul_word"] - pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_next"] + pub fn BIO_next(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqr"] - pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free_all"] + pub fn BIO_free_all(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div"] - pub fn BN_div( - quotient: *mut BIGNUM, - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_find_type"] + pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div_word"] - pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_copy_next_retry"] + pub fn BIO_copy_next_retry(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqrt"] - pub fn BN_sqrt( - out_sqrt: *mut BIGNUM, - in_: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_printf"] + pub fn BIO_printf( + bio: *mut BIO, + format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp"] - pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp_word"] - pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_ucmp"] - pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_indent"] + pub fn BIO_indent( + bio: *mut BIO, + indent: ::std::os::raw::c_uint, + max_indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_equal_consttime"] - pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_hexdump"] + pub fn BIO_hexdump( + bio: *mut BIO, + data: *const u8, + len: usize, + indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_abs_is_word"] - pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors"] + pub fn ERR_print_errors(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_zero"] - pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_asn1"] + pub fn BIO_read_asn1( + bio: *mut BIO, + out: *mut *mut u8, + out_len: *mut usize, + max_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_one"] - pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_mem"] + pub fn BIO_s_mem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_word"] - pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_mem_buf"] + pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_odd"] - pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_mem_contents"] + pub fn BIO_mem_contents( + bio: *const BIO, + out_contents: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_pow2"] - pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_mem_ptr"] + pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift"] - pub fn BN_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_buf"] + pub fn BIO_set_mem_buf( + bio: *mut BIO, + b: *mut BUF_MEM, + take_ownership: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift1"] - pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift"] - pub fn BN_rshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_eof_return"] + pub fn BIO_set_mem_eof_return( + bio: *mut BIO, + eof_value: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift1"] - pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_fd"] + pub fn BIO_s_fd() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_bit"] - pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fd"] + pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_bit"] - pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fd"] + pub fn BIO_set_fd( + bio: *mut BIO, + fd: ::std::os::raw::c_int, + close_flag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_bit_set"] - pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fd"] + pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mask_bits"] - pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_file"] + pub fn BIO_s_file() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_count_low_zero_bits"] - pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_file"] + pub fn BIO_new_file( + filename: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_word"] - pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fp"] + pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_pow2"] - pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fp"] + pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod_pow2"] - pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fp"] + pub fn BIO_set_fp( + bio: *mut BIO, + file: *mut FILE, + close_flag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod"] - pub fn BN_nnmod( - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_filename"] + pub fn BIO_read_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add"] - pub fn BN_mod_add( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_filename"] + pub fn BIO_write_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add_quick"] - pub fn BN_mod_add_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_append_filename"] + pub fn BIO_append_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub"] - pub fn BN_mod_sub( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_rw_filename"] + pub fn BIO_rw_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub_quick"] - pub fn BN_mod_sub_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_tell"] + pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul"] - pub fn BN_mod_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_seek"] + pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqr"] - pub fn BN_mod_sqr( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_socket"] + pub fn BIO_s_socket() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift"] - pub fn BN_mod_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_socket"] + pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) + -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift_quick"] - pub fn BN_mod_lshift_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_connect"] + pub fn BIO_s_connect() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1"] - pub fn BN_mod_lshift1( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_connect"] + pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1_quick"] - pub fn BN_mod_lshift1_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_hostname"] + pub fn BIO_set_conn_hostname( + bio: *mut BIO, + host_and_optional_port: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqrt"] - pub fn BN_mod_sqrt( - in_: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_port"] + pub fn BIO_set_conn_port( + bio: *mut BIO, + port_str: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand"] - pub fn BN_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_int_port"] + pub fn BIO_set_conn_int_port( + bio: *mut BIO, + port: *const ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand"] - pub fn BN_pseudo_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_nbio"] + pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range"] - pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_do_connect"] + pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range_ex"] - pub fn BN_rand_range_ex( - r: *mut BIGNUM, - min_inclusive: BN_ULONG, - max_exclusive: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_bio_pair"] + pub fn BIO_new_bio_pair( + out1: *mut *mut BIO, + writebuf1: usize, + out2: *mut *mut BIO, + writebuf2: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand_range"] - pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_gencb_st { - pub arg: *mut ::std::os::raw::c_void, - pub callback: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut bn_gencb_st, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bn_gencb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(callback) - ) - ); -} -impl Default for bn_gencb_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_read_request"] + pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_new"] - pub fn BN_GENCB_new() -> *mut BN_GENCB; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_write_guarantee"] + pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_free"] - pub fn BN_GENCB_free(callback: *mut BN_GENCB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_shutdown_wr"] + pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_set"] - pub fn BN_GENCB_set( - callback: *mut BN_GENCB, - f: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut BN_GENCB, - ) -> ::std::os::raw::c_int, - >, - arg: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_new_index"] + pub fn BIO_get_new_index() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_call"] - pub fn BN_GENCB_call( - callback: *mut BN_GENCB, - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_new"] + pub fn BIO_meth_new( + type_: ::std::os::raw::c_int, + name: *const ::std::os::raw::c_char, + ) -> *mut BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_get_arg"] - pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_free"] + pub fn BIO_meth_free(method: *mut BIO_METHOD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_generate_prime_ex"] - pub fn BN_generate_prime_ex( - ret: *mut BIGNUM, - bits: ::std::os::raw::c_int, - safe: ::std::os::raw::c_int, - add: *const BIGNUM, - rem: *const BIGNUM, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_create"] + pub fn BIO_meth_set_create( + method: *mut BIO_METHOD, + create: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } -pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; -pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; -pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; -pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_enhanced_miller_rabin_primality_test"] - pub fn BN_enhanced_miller_rabin_primality_test( - out_result: *mut bn_primality_result_t, - w: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_create"] + pub fn BIO_meth_get_create( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_primality_test"] - pub fn BN_primality_test( - is_probably_prime: *mut ::std::os::raw::c_int, - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_destroy"] + pub fn BIO_meth_set_destroy( + method: *mut BIO_METHOD, + destroy: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_fasttest_ex"] - pub fn BN_is_prime_fasttest_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_destroy"] + pub fn BIO_meth_get_destroy( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_ex"] - pub fn BN_is_prime_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_write"] + pub fn BIO_meth_set_write( + method: *mut BIO_METHOD, + write: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_gcd"] - pub fn BN_gcd( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_read"] + pub fn BIO_meth_set_read( + method: *mut BIO_METHOD, + read: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse"] - pub fn BN_mod_inverse( - out: *mut BIGNUM, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_gets"] + pub fn BIO_meth_set_gets( + method: *mut BIO_METHOD, + gets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_blinded"] - pub fn BN_mod_inverse_blinded( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_gets"] + pub fn BIO_meth_get_gets( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_odd"] - pub fn BN_mod_inverse_odd( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_ctrl"] + pub fn BIO_meth_set_ctrl( + method: *mut BIO_METHOD, + ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_for_modulus"] - pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_ctrl"] + pub fn BIO_meth_get_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_long, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_consttime"] - pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_callback_ctrl"] + pub fn BIO_meth_set_callback_ctrl( + method: *mut BIO_METHOD, + callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_free"] - pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_callback_ctrl"] + pub fn BIO_meth_get_callback_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: bio_info_cb, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_copy"] - pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_data"] + pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_montgomery"] - pub fn BN_to_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_data"] + pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_from_montgomery"] - pub fn BN_from_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_init"] + pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul_montgomery"] - pub fn BN_mod_mul_montgomery( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_init"] + pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_exp"] - pub fn BN_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_new_index"] + pub fn BIO_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_fips_0_12_15_BN_mod_exp"] - pub fn BN_mod_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_ex_data"] + pub fn BIO_set_ex_data( + bio: *mut BIO, + 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_fips_0_12_15_BN_mod_exp_mont"] - pub fn BN_mod_exp_mont( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_data"] + pub fn BIO_get_ex_data( + bio: *const BIO, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_consttime"] - pub fn BN_mod_exp_mont_consttime( - rr: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_f_base64"] + pub fn BIO_f_base64() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2mpi"] - pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_special"] + pub fn BIO_set_retry_special(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mpi2bn"] - pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_shutdown"] + pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_word"] - pub fn BN_mod_exp_mont_word( - r: *mut BIGNUM, - a: BN_ULONG, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_shutdown"] + pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp2_mont"] - pub fn BN_mod_exp2_mont( - r: *mut BIGNUM, - a1: *const BIGNUM, - p1: *const BIGNUM, - a2: *const BIGNUM, - p2: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_puts"] + pub fn BIO_meth_set_puts( + method: *mut BIO_METHOD, + puts: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new"] - pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_puts"] + pub fn BIO_meth_get_puts( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_set"] - pub fn BN_MONT_CTX_set( - mont: *mut BN_MONT_CTX, - mod_: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_secmem"] + pub fn BIO_s_secmem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2binpad"] - pub fn BN_bn2binpad( - in_: *const BIGNUM, - out: *mut u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_write_buffer_size"] + pub fn BIO_set_write_buffer_size( + bio: *mut BIO, + buffer_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_secure_new"] - pub fn BN_secure_new() -> *mut BIGNUM; -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bignum_st { - pub d: *mut BN_ULONG, - pub width: ::std::os::raw::c_int, - pub dmax: ::std::os::raw::c_int, - pub neg: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, +pub struct bio_method_st { + pub type_: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub bwrite: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bread: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bputs: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, + pub bgets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, + pub create: + ::std::option::Option ::std::os::raw::c_int>, + pub destroy: + ::std::option::Option ::std::os::raw::c_int>, + pub callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, } #[test] -fn bindgen_test_layout_bignum_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_method_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!(bignum_st)) + ::std::mem::size_of::(), + 80usize, + concat!("Size of: ", stringify!(bio_method_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bignum_st)) + concat!("Alignment of ", stringify!(bio_method_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(d) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(width) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(dmax) + stringify!(bwrite) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(neg) + stringify!(bread) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(flags) + stringify!(bputs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bgets) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(ctrl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(create) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(destroy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(callback_ctrl) ) ); } -impl Default for bignum_st { +impl Default for bio_method_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7452,57 +7339,178 @@ impl Default for bignum_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_mont_ctx_st { - pub RR: BIGNUM, - pub N: BIGNUM, - pub n0: [BN_ULONG; 2usize], +pub struct bio_st { + pub method: *const BIO_METHOD, + pub ex_data: CRYPTO_EX_DATA, + pub callback_ex: BIO_callback_fn_ex, + pub cb_arg: *mut ::std::os::raw::c_char, + pub init: ::std::os::raw::c_int, + pub shutdown: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub retry_reason: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_int, + pub references: CRYPTO_refcount_t, + pub ptr: *mut ::std::os::raw::c_void, + pub next_bio: *mut BIO, + pub num_read: u64, + pub num_write: u64, } #[test] -fn bindgen_test_layout_bn_mont_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_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!(bn_mont_ctx_st)) + ::std::mem::size_of::(), + 88usize, + concat!("Size of: ", stringify!(bio_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + concat!("Alignment of ", stringify!(bio_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(RR) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ex_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(callback_ex) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(N) + stringify!(cb_arg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(init) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(shutdown) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(retry_reason) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(n0) + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(next_bio) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_read) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_write) ) ); } -impl Default for bn_mont_ctx_st { +impl Default for bio_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7511,1396 +7519,1039 @@ impl Default for bn_mont_ctx_st { } } } +pub type BN_ULONG = u64; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bits_word"] - pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_new"] + pub fn BN_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2bit"] - pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_init"] + pub fn BN_init(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2str"] - pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_free"] + pub fn BN_free(bn: *mut BIGNUM); } -pub type d2i_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type i2d_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ITEM_EXP = ASN1_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_VALUE_st { - _unused: [u8; 0], -} -pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_new"] - pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_free"] + pub fn BN_clear_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_free"] - pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dup"] + pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i"] - pub fn ASN1_item_d2i( - out: *mut *mut ASN1_VALUE, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - ) -> *mut ASN1_VALUE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_copy"] + pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d"] - pub fn ASN1_item_i2d( - val: *mut ASN1_VALUE, - outp: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear"] + pub fn BN_clear(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_dup"] - pub fn ASN1_item_dup( - it: *const ASN1_ITEM, - x: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_value_one"] + pub fn BN_value_one() -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_fp"] - pub fn ASN1_item_d2i_fp( - it: *const ASN1_ITEM, - in_: *mut FILE, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits"] + pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_bio"] - pub fn ASN1_item_d2i_bio( - it: *const ASN1_ITEM, - in_: *mut BIO, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bytes"] + pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_fp"] - pub fn ASN1_item_i2d_fp( - it: *const ASN1_ITEM, - out: *mut FILE, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_zero"] + pub fn BN_zero(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_bio"] - pub fn ASN1_item_i2d_bio( - it: *const ASN1_ITEM, - out: *mut BIO, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_one"] + pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_unpack"] - pub fn ASN1_item_unpack( - oct: *const ASN1_STRING, - it: *const ASN1_ITEM, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_word"] + pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_pack"] - pub fn ASN1_item_pack( - obj: *mut ::std::os::raw::c_void, - it: *const ASN1_ITEM, - out: *mut *mut ASN1_STRING, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_u64"] + pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BOOLEAN"] - pub fn d2i_ASN1_BOOLEAN( - out: *mut ASN1_BOOLEAN, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> ASN1_BOOLEAN; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_negative"] + pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BOOLEAN"] - pub fn i2d_ASN1_BOOLEAN( - a: ASN1_BOOLEAN, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_negative"] + pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BOOLEAN_it"] - pub static ASN1_BOOLEAN_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bin2bn"] + pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TBOOLEAN_it"] - pub static ASN1_TBOOLEAN_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin"] + pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_FBOOLEAN_it"] - pub static ASN1_FBOOLEAN_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct asn1_string_st { - pub length: ::std::os::raw::c_int, - pub type_: ::std::os::raw::c_int, - pub data: *mut ::std::os::raw::c_uchar, - pub flags: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_string_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(asn1_string_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for asn1_string_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_le2bn"] + pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type_new"] - pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2le_padded"] + pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_new"] - pub fn ASN1_STRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin_padded"] + pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_free"] - pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2cbb_padded"] + pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_clear_free"] - pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2hex"] + pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_copy"] - pub fn ASN1_STRING_copy( - dst: *mut ASN1_STRING, - str_: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_hex2bn"] + pub fn BN_hex2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_dup"] - pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2dec"] + pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type"] - pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dec2bn"] + pub fn BN_dec2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get0_data"] - pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_asc2bn"] + pub fn BN_asc2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_data"] - pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print"] + pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_length"] - pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print_fp"] + pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_cmp"] - pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_word"] + pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set"] - pub fn ASN1_STRING_set( - str_: *mut ASN1_STRING, - data: *const ::std::os::raw::c_void, - len: ossl_ssize_t, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_u64"] + pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set0"] - pub fn ASN1_STRING_set0( - str_: *mut ASN1_STRING, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_flags"] + pub fn BN_get_flags(bn: *const BIGNUM, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_new"] - pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_parse_asn1_unsigned"] + pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_new"] - pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_marshal_asn1"] + pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_new"] - pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_new"] + pub fn BN_CTX_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_new"] - pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_free"] + pub fn BN_CTX_free(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_new"] - pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_start"] + pub fn BN_CTX_start(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_new"] - pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_get"] + pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_new"] - pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_end"] + pub fn BN_CTX_end(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_new"] - pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add"] + pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_new"] - pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_uadd"] + pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_free"] - pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add_word"] + pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_free"] - pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub"] + pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_free"] - pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_usub"] + pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_free"] - pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub_word"] + pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_free"] - pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul"] + pub fn BN_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_free"] - pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul_word"] + pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_free"] - pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqr"] + pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_free"] - pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div"] + pub fn BN_div( + quotient: *mut BIGNUM, + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_free"] - pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div_word"] + pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BMPSTRING"] - pub fn d2i_ASN1_BMPSTRING( - out: *mut *mut ASN1_BMPSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqrt"] + pub fn BN_sqrt( + out_sqrt: *mut BIGNUM, + in_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALSTRING"] - pub fn d2i_ASN1_GENERALSTRING( - out: *mut *mut ASN1_GENERALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp"] + pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_IA5STRING"] - pub fn d2i_ASN1_IA5STRING( - out: *mut *mut ASN1_IA5STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp_word"] + pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OCTET_STRING"] - pub fn d2i_ASN1_OCTET_STRING( - out: *mut *mut ASN1_OCTET_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_ucmp"] + pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLESTRING"] - pub fn d2i_ASN1_PRINTABLESTRING( - out: *mut *mut ASN1_PRINTABLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_equal_consttime"] + pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_T61STRING"] - pub fn d2i_ASN1_T61STRING( - out: *mut *mut ASN1_T61STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_abs_is_word"] + pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UNIVERSALSTRING"] - pub fn d2i_ASN1_UNIVERSALSTRING( - out: *mut *mut ASN1_UNIVERSALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_zero"] + pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTF8STRING"] - pub fn d2i_ASN1_UTF8STRING( - out: *mut *mut ASN1_UTF8STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_one"] + pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_VISIBLESTRING"] - pub fn d2i_ASN1_VISIBLESTRING( - out: *mut *mut ASN1_VISIBLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_word"] + pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BMPSTRING"] - pub fn i2d_ASN1_BMPSTRING( - in_: *const ASN1_BMPSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_odd"] + pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALSTRING"] - pub fn i2d_ASN1_GENERALSTRING( - in_: *const ASN1_GENERALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_pow2"] + pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_IA5STRING"] - pub fn i2d_ASN1_IA5STRING( - in_: *const ASN1_IA5STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift"] + pub fn BN_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OCTET_STRING"] - pub fn i2d_ASN1_OCTET_STRING( - in_: *const ASN1_OCTET_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift1"] + pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLESTRING"] - pub fn i2d_ASN1_PRINTABLESTRING( - in_: *const ASN1_PRINTABLESTRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift"] + pub fn BN_rshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_T61STRING"] - pub fn i2d_ASN1_T61STRING( - in_: *const ASN1_T61STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift1"] + pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UNIVERSALSTRING"] - pub fn i2d_ASN1_UNIVERSALSTRING( - in_: *const ASN1_UNIVERSALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_bit"] + pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTF8STRING"] - pub fn i2d_ASN1_UTF8STRING( - in_: *const ASN1_UTF8STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_bit"] + pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_VISIBLESTRING"] - pub fn i2d_ASN1_VISIBLESTRING( - in_: *const ASN1_VISIBLESTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_bit_set"] + pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_it"] - pub static ASN1_BMPSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mask_bits"] + pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_it"] - pub static ASN1_GENERALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_count_low_zero_bits"] + pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_it"] - pub static ASN1_IA5STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_word"] + pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_it"] - pub static ASN1_OCTET_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_pow2"] + pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_it"] - pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod_pow2"] + pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_it"] - pub static ASN1_T61STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod"] + pub fn BN_nnmod( + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_it"] - pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add"] + pub fn BN_mod_add( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_it"] - pub static ASN1_UTF8STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add_quick"] + pub fn BN_mod_add_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_it"] - pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub"] + pub fn BN_mod_sub( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_dup"] - pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub_quick"] + pub fn BN_mod_sub_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_cmp"] - pub fn ASN1_OCTET_STRING_cmp( - a: *const ASN1_OCTET_STRING, - b: *const ASN1_OCTET_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul"] + pub fn BN_mod_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_set"] - pub fn ASN1_OCTET_STRING_set( - str_: *mut ASN1_OCTET_STRING, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqr"] + pub fn BN_mod_sqr( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_to_UTF8"] - pub fn ASN1_STRING_to_UTF8( - out: *mut *mut ::std::os::raw::c_uchar, - in_: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift"] + pub fn BN_mod_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_copy"] - pub fn ASN1_mbstring_copy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift_quick"] + pub fn BN_mod_lshift_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_ncopy"] - pub fn ASN1_mbstring_ncopy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1"] + pub fn BN_mod_lshift1( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_by_NID"] - pub fn ASN1_STRING_set_by_NID( - out: *mut *mut ASN1_STRING, - in_: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - nid: ::std::os::raw::c_int, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1_quick"] + pub fn BN_mod_lshift1_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_add"] - pub fn ASN1_STRING_TABLE_add( - nid: ::std::os::raw::c_int, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, - mask: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqrt"] + pub fn BN_mod_sqrt( + in_: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_new"] - pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand"] + pub fn BN_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_free"] - pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand"] + pub fn BN_pseudo_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIRECTORYSTRING"] - pub fn d2i_DIRECTORYSTRING( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range"] + pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIRECTORYSTRING"] - pub fn i2d_DIRECTORYSTRING( - in_: *const ASN1_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range_ex"] + pub fn BN_rand_range_ex( + r: *mut BIGNUM, + min_inclusive: BN_ULONG, + max_exclusive: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_it"] - pub static DIRECTORYSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand_range"] + pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_new"] - pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct bn_gencb_st { + pub type_: u8, + pub arg: *mut ::std::os::raw::c_void, + pub callback: bn_gencb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_free"] - pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); +#[repr(C)] +#[derive(Copy, Clone)] +pub union bn_gencb_st__bindgen_ty_1 { + pub new_style: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut bn_gencb_st, + ) -> ::std::os::raw::c_int, + >, + pub old_style: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DISPLAYTEXT"] - pub fn d2i_DISPLAYTEXT( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; +#[test] +fn bindgen_test_layout_bn_gencb_st__bindgen_ty_1() { + 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!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).new_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(new_style) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).old_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(old_style) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DISPLAYTEXT"] - pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; +impl Default for bn_gencb_st__bindgen_ty_1 { + 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_fips_0_12_15_DISPLAYTEXT_it"] - pub static DISPLAYTEXT_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(callback) + ) + ); +} +impl Default for bn_gencb_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_fips_0_12_15_ASN1_BIT_STRING_new"] - pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_new"] + pub fn BN_GENCB_new() -> *mut BN_GENCB; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_free"] - pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_free"] + pub fn BN_GENCB_free(callback: *mut BN_GENCB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BIT_STRING"] - pub fn d2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set"] + pub fn BN_GENCB_set( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut BN_GENCB, + ) -> ::std::os::raw::c_int, + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BIT_STRING"] - pub fn i2d_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_call"] + pub fn BN_GENCB_call( + callback: *mut BN_GENCB, + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_BIT_STRING"] - pub fn c2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_get_arg"] + pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_BIT_STRING"] - pub fn i2c_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_generate_prime_ex"] + pub fn BN_generate_prime_ex( + ret: *mut BIGNUM, + bits: ::std::os::raw::c_int, + safe: ::std::os::raw::c_int, + add: *const BIGNUM, + rem: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } +pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; +pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; +pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; +pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_it"] - pub static ASN1_BIT_STRING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_num_bytes"] - pub fn ASN1_BIT_STRING_num_bytes( - str_: *const ASN1_BIT_STRING, - out: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_enhanced_miller_rabin_primality_test"] + pub fn BN_enhanced_miller_rabin_primality_test( + out_result: *mut bn_primality_result_t, + w: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set"] - pub fn ASN1_BIT_STRING_set( - str_: *mut ASN1_BIT_STRING, - d: *const ::std::os::raw::c_uchar, - length: ossl_ssize_t, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_primality_test"] + pub fn BN_primality_test( + is_probably_prime: *mut ::std::os::raw::c_int, + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set_bit"] - pub fn ASN1_BIT_STRING_set_bit( - str_: *mut ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - value: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_fasttest_ex"] + pub fn BN_is_prime_fasttest_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_get_bit"] - pub fn ASN1_BIT_STRING_get_bit( - str_: *const ASN1_BIT_STRING, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_ex"] + pub fn BN_is_prime_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_check"] - pub fn ASN1_BIT_STRING_check( - str_: *const ASN1_BIT_STRING, - flags: *const ::std::os::raw::c_uchar, - flags_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_gcd"] + pub fn BN_gcd( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_INTEGER { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse"] + pub fn BN_mod_inverse( + out: *mut BIGNUM, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } -pub type sk_ASN1_INTEGER_free_func = - ::std::option::Option; -pub type sk_ASN1_INTEGER_copy_func = - ::std::option::Option *mut ASN1_INTEGER>; -pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_INTEGER, - arg2: *mut *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_INTEGER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_new"] - pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_blinded"] + pub fn BN_mod_inverse_blinded( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_free"] - pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_odd"] + pub fn BN_mod_inverse_odd( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_dup"] - pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_for_modulus"] + pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_INTEGER"] - pub fn d2i_ASN1_INTEGER( - out: *mut *mut ASN1_INTEGER, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_INTEGER"] - pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_INTEGER"] - pub fn c2i_ASN1_INTEGER( - in_: *mut *mut ASN1_INTEGER, - outp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_INTEGER"] - pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_it"] - pub static ASN1_INTEGER_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set_uint64"] - pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set_int64"] - pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_uint64"] - pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_int64"] - pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_consttime"] + pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_INTEGER"] - pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_free"] + pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_to_BN"] - pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_copy"] + pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_cmp"] - pub fn ASN1_INTEGER_cmp( - x: *const ASN1_INTEGER, - y: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_montgomery"] + pub fn BN_to_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_new"] - pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_free"] - pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_ENUMERATED"] - pub fn d2i_ASN1_ENUMERATED( - out: *mut *mut ASN1_ENUMERATED, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_ENUMERATED"] - pub fn i2d_ASN1_ENUMERATED( - in_: *const ASN1_ENUMERATED, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_from_montgomery"] + pub fn BN_from_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_it"] - pub static ASN1_ENUMERATED_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_uint64"] - pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_int64"] - pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_uint64"] - pub fn ASN1_ENUMERATED_get_uint64( - out: *mut u64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul_montgomery"] + pub fn BN_mod_mul_montgomery( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_int64"] - pub fn ASN1_ENUMERATED_get_int64( - out: *mut i64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_exp"] + pub fn BN_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_ENUMERATED"] - pub fn BN_to_ASN1_ENUMERATED( - bn: *const BIGNUM, - ai: *mut ASN1_ENUMERATED, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_to_BN"] - pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_new"] - pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_free"] - pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTCTIME"] - pub fn d2i_ASN1_UTCTIME( - out: *mut *mut ASN1_UTCTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTCTIME"] - pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_it"] - pub static ASN1_UTCTIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_check"] - pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set"] - pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_adj"] - pub fn ASN1_UTCTIME_adj( - s: *mut ASN1_UTCTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set_string"] - pub fn ASN1_UTCTIME_set_string( - s: *mut ASN1_UTCTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp"] + pub fn BN_mod_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_cmp_time_t"] - pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_new"] - pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_free"] - pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALIZEDTIME"] - pub fn d2i_ASN1_GENERALIZEDTIME( - out: *mut *mut ASN1_GENERALIZEDTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont"] + pub fn BN_mod_exp_mont( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALIZEDTIME"] - pub fn i2d_ASN1_GENERALIZEDTIME( - in_: *const ASN1_GENERALIZEDTIME, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime"] + pub fn BN_mod_exp_mont_consttime( + rr: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_it"] - pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set_old"] + pub fn BN_GENCB_set_old( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_check"] - pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2mpi"] + pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set"] - pub fn ASN1_GENERALIZEDTIME_set( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mpi2bn"] + pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_adj"] - pub fn ASN1_GENERALIZEDTIME_adj( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_word"] + pub fn BN_mod_exp_mont_word( + r: *mut BIGNUM, + a: BN_ULONG, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set_string"] - pub fn ASN1_GENERALIZEDTIME_set_string( - s: *mut ASN1_GENERALIZEDTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp2_mont"] + pub fn BN_mod_exp2_mont( + r: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_new"] - pub fn ASN1_TIME_new() -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new"] + pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_free"] - pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_set"] + pub fn BN_MONT_CTX_set( + mont: *mut BN_MONT_CTX, + mod_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TIME"] - pub fn d2i_ASN1_TIME( - out: *mut *mut ASN1_TIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2binpad"] + pub fn BN_bn2binpad( + in_: *const BIGNUM, + out: *mut u8, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TIME"] - pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_secure_new"] + pub fn BN_secure_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_it"] - pub static ASN1_TIME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_secure_new"] + pub fn BN_CTX_secure_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_diff"] - pub fn ASN1_TIME_diff( - out_days: *mut ::std::os::raw::c_int, - out_seconds: *mut ::std::os::raw::c_int, - from: *const ASN1_TIME, - to: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime_x2"] + pub fn BN_mod_exp_mont_consttime_x2( + rr1: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + m1: *const BIGNUM, + in_mont1: *const BN_MONT_CTX, + rr2: *mut BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m2: *const BIGNUM, + in_mont2: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_posix"] - pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set"] - pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_adj"] - pub fn ASN1_TIME_adj( - s: *mut ASN1_TIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_check"] - pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_generalizedtime"] - pub fn ASN1_TIME_to_generalizedtime( - t: *const ASN1_TIME, - out: *mut *mut ASN1_GENERALIZEDTIME, - ) -> *mut ASN1_GENERALIZEDTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_string"] - pub fn ASN1_TIME_set_string( - s: *mut ASN1_TIME, - str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_time_t"] - pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_posix"] - pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_new"] - pub fn ASN1_NULL_new() -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_free"] - pub fn ASN1_NULL_free(null: *mut ASN1_NULL); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_NULL"] - pub fn d2i_ASN1_NULL( - out: *mut *mut ASN1_NULL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_NULL"] - pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_it"] - pub static ASN1_NULL_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_OBJECT { - _unused: [u8; 0], -} -pub type sk_ASN1_OBJECT_free_func = - ::std::option::Option; -pub type sk_ASN1_OBJECT_copy_func = - ::std::option::Option *mut ASN1_OBJECT>; -pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_OBJECT, - arg2: *mut *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_create"] - pub fn ASN1_OBJECT_create( - nid: ::std::os::raw::c_int, - data: *const u8, - len: ::std::os::raw::c_int, - sn: *const ::std::os::raw::c_char, - ln: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_free"] - pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OBJECT"] - pub fn d2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OBJECT"] - pub fn i2d_ASN1_OBJECT(a: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_OBJECT"] - pub fn c2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_it"] - pub static ASN1_OBJECT_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct asn1_type_st { - pub type_: ::std::os::raw::c_int, - pub value: asn1_type_st__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union asn1_type_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub boolean: ASN1_BOOLEAN, - pub asn1_string: *mut ASN1_STRING, - pub object: *mut ASN1_OBJECT, - pub integer: *mut ASN1_INTEGER, - pub enumerated: *mut ASN1_ENUMERATED, - pub bit_string: *mut ASN1_BIT_STRING, - pub octet_string: *mut ASN1_OCTET_STRING, - pub printablestring: *mut ASN1_PRINTABLESTRING, - pub t61string: *mut ASN1_T61STRING, - pub ia5string: *mut ASN1_IA5STRING, - pub generalstring: *mut ASN1_GENERALSTRING, - pub bmpstring: *mut ASN1_BMPSTRING, - pub universalstring: *mut ASN1_UNIVERSALSTRING, - pub utctime: *mut ASN1_UTCTIME, - pub generalizedtime: *mut ASN1_GENERALIZEDTIME, - pub visiblestring: *mut ASN1_VISIBLESTRING, - pub utf8string: *mut ASN1_UTF8STRING, - pub set: *mut ASN1_STRING, - pub sequence: *mut ASN1_STRING, - pub asn1_value: *mut ASN1_VALUE, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bignum_st { + pub d: *mut BN_ULONG, + pub width: ::std::os::raw::c_int, + pub dmax: ::std::os::raw::c_int, + pub neg: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bignum_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!(asn1_type_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(bignum_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + concat!("Alignment of ", stringify!(bignum_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(ptr) + stringify!(d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(boolean) + stringify!(width) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(asn1_string) + stringify!(dmax) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(object) + stringify!(neg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(integer) + stringify!(flags) ) ); +} +impl Default for bignum_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 bn_mont_ctx_st { + pub RR: BIGNUM, + pub N: BIGNUM, + pub n0: [BN_ULONG; 2usize], +} +#[test] +fn bindgen_test_layout_bn_mont_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(enumerated) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bit_string) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(octet_string) + stringify!(RR) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(printablestring) + stringify!(N) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(t61string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(ia5string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bmpstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(universalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utctime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalizedtime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(visiblestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utf8string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(sequence) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(asn1_value) + stringify!(n0) ) ); } -impl Default for asn1_type_st__bindgen_ty_1 { +impl Default for bn_mont_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8909,1082 +8560,1929 @@ impl Default for asn1_type_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_type_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits_word"] + pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; } -impl Default for asn1_type_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_fips_0_13_0_ASN1_tag2bit"] + pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_TYPE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_tag2str"] + pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -pub type sk_ASN1_TYPE_free_func = ::std::option::Option; -pub type sk_ASN1_TYPE_copy_func = - ::std::option::Option *mut ASN1_TYPE>; -pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< +pub type d2i_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_TYPE, - arg2: *mut *const ASN1_TYPE, - ) -> ::std::os::raw::c_int, + arg1: *mut *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, >; -pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< +pub type i2d_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut ASN1_TYPE, - arg2: *mut ::std::os::raw::c_void, + arg1: *const ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int, >; +pub type ASN1_ITEM_EXP = ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_VALUE_st { + _unused: [u8; 0], +} +pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_new"] - pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_new"] + pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_free"] - pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_free"] + pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TYPE"] - pub fn d2i_ASN1_TYPE( - out: *mut *mut ASN1_TYPE, - inp: *mut *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i"] + pub fn ASN1_item_d2i( + out: *mut *mut ASN1_VALUE, + inp: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ASN1_TYPE; + it: *const ASN1_ITEM, + ) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TYPE"] - pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d"] + pub fn ASN1_item_i2d( + val: *mut ASN1_VALUE, + outp: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ANY_it"] - pub static ASN1_ANY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_dup"] + pub fn ASN1_dup( + i2d: i2d_of_void, + d2i: d2i_of_void, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_get"] - pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_dup"] + pub fn ASN1_item_dup( + it: *const ASN1_ITEM, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set"] - pub fn ASN1_TYPE_set( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_fp"] + pub fn ASN1_item_d2i_fp( + it: *const ASN1_ITEM, + in_: *mut FILE, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set1"] - pub fn ASN1_TYPE_set1( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_bio"] + pub fn ASN1_item_d2i_bio( + it: *const ASN1_ITEM, + in_: *mut BIO, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_cmp"] - pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_fp"] + pub fn ASN1_item_i2d_fp( + it: *const ASN1_ITEM, + out: *mut FILE, + in_: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SEQUENCE_ANY"] - pub fn d2i_ASN1_SEQUENCE_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_bio"] + pub fn ASN1_item_i2d_bio( + it: *const ASN1_ITEM, + out: *mut BIO, + in_: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SEQUENCE_ANY"] - pub fn i2d_ASN1_SEQUENCE_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_i2d_bio"] + pub fn ASN1_i2d_bio( + i2d: i2d_of_void, + out: *mut BIO, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SET_ANY"] - pub fn d2i_ASN1_SET_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_unpack"] + pub fn ASN1_item_unpack( + oct: *const ASN1_STRING, + it: *const ASN1_ITEM, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_pack"] + pub fn ASN1_item_pack( + obj: *mut ::std::os::raw::c_void, + it: *const ASN1_ITEM, + out: *mut *mut ASN1_STRING, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BOOLEAN"] + pub fn d2i_ASN1_BOOLEAN( + out: *mut ASN1_BOOLEAN, + inp: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + ) -> ASN1_BOOLEAN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SET_ANY"] - pub fn i2d_ASN1_SET_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BOOLEAN"] + pub fn i2d_ASN1_BOOLEAN( + a: ASN1_BOOLEAN, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_print"] - pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BOOLEAN_it"] + pub static ASN1_BOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_print"] - pub fn ASN1_GENERALIZEDTIME_print( - out: *mut BIO, - a: *const ASN1_GENERALIZEDTIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TBOOLEAN_it"] + pub static ASN1_TBOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_print"] - pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_FBOOLEAN_it"] + pub static ASN1_FBOOLEAN_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct asn1_string_st { + pub length: ::std::os::raw::c_int, + pub type_: ::std::os::raw::c_int, + pub data: *mut ::std::os::raw::c_uchar, + pub flags: ::std::os::raw::c_long, +} +#[test] +fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_string_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(length) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(asn1_string_st), + "::", + stringify!(flags) + ) + ); +} +impl Default for asn1_string_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_fips_0_12_15_ASN1_STRING_print"] - pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_type_new"] + pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex"] - pub fn ASN1_STRING_print_ex( - out: *mut BIO, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_new"] + pub fn ASN1_STRING_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex_fp"] - pub fn ASN1_STRING_print_ex_fp( - fp: *mut FILE, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_free"] + pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_clear_free"] + pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_copy"] + pub fn ASN1_STRING_copy( + dst: *mut ASN1_STRING, str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_INTEGER"] - pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_dup"] + pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_ENUMERATED"] - pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_type"] + pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_OBJECT"] - pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get0_data"] + pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_STRING"] - pub fn i2a_ASN1_STRING( - bp: *mut BIO, - a: *const ASN1_STRING, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_data"] + pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2t_ASN1_OBJECT"] - pub fn i2t_ASN1_OBJECT( - buf: *mut ::std::os::raw::c_char, - buf_len: ::std::os::raw::c_int, - a: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_length"] + pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_get_object"] - pub fn ASN1_get_object( - inp: *mut *const ::std::os::raw::c_uchar, - out_length: *mut ::std::os::raw::c_long, - out_tag: *mut ::std::os::raw::c_int, - out_class: *mut ::std::os::raw::c_int, - max_len: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_cmp"] + pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set"] + pub fn ASN1_STRING_set( + str_: *mut ASN1_STRING, + data: *const ::std::os::raw::c_void, + len: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_object"] - pub fn ASN1_put_object( - outp: *mut *mut ::std::os::raw::c_uchar, - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - xclass: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set0"] + pub fn ASN1_STRING_set0( + str_: *mut ASN1_STRING, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_eoc"] - pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_new"] + pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_object_size"] - pub fn ASN1_object_size( - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_new"] + pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask"] - pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_new"] + pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask_asc"] - pub fn ASN1_STRING_set_default_mask_asc( - p: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_new"] + pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get_default_mask"] - pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_new"] + pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_cleanup"] - pub fn ASN1_STRING_TABLE_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_new"] + pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_new"] - pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_new"] + pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_free"] - pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_new"] + pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLE"] - pub fn d2i_ASN1_PRINTABLE( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_new"] + pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLE"] - pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_free"] + pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_it"] - pub static ASN1_PRINTABLE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_free"] + pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set"] - pub fn ASN1_INTEGER_set( - a: *mut ASN1_INTEGER, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_free"] + pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set"] - pub fn ASN1_ENUMERATED_set( - a: *mut ASN1_ENUMERATED, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_free"] + pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get"] - pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_free"] + pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get"] - pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_free"] + pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); } -pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_TLC_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_free"] + pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); } -pub type ASN1_TLC = ASN1_TLC_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_TEMPLATE_st { - pub flags: u32, - pub tag: ::std::os::raw::c_int, - pub offset: ::std::os::raw::c_ulong, - pub field_name: *const ::std::os::raw::c_char, - pub item: *const ASN1_ITEM_st, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_free"] + pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); } -#[test] -fn bindgen_test_layout_ASN1_TEMPLATE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(tag) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(field_name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(item) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_free"] + pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); } -impl Default for ASN1_TEMPLATE_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_fips_0_13_0_d2i_ASN1_BMPSTRING"] + pub fn d2i_ASN1_BMPSTRING( + out: *mut *mut ASN1_BMPSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BMPSTRING; } -pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; -pub type ASN1_ADB = ASN1_ADB_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct asn1_must_be_null_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALSTRING"] + pub fn d2i_ASN1_GENERALSTRING( + out: *mut *mut ASN1_GENERALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALSTRING; } -pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_st { - pub flags: u32, - pub offset: ::std::os::raw::c_ulong, - pub unused: *mut ASN1_MUST_BE_NULL, - pub tbl: *const ASN1_ADB_TABLE, - pub tblcount: ::std::os::raw::c_long, - pub default_tt: *const ASN1_TEMPLATE, - pub null_tt: *const ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_IA5STRING"] + pub fn d2i_ASN1_IA5STRING( + out: *mut *mut ASN1_IA5STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_IA5STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(unused) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tbl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tblcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(default_tt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(null_tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_OCTET_STRING"] + pub fn d2i_ASN1_OCTET_STRING( + out: *mut *mut ASN1_OCTET_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OCTET_STRING; } -impl Default for ASN1_ADB_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_fips_0_13_0_d2i_ASN1_PRINTABLESTRING"] + pub fn d2i_ASN1_PRINTABLESTRING( + out: *mut *mut ASN1_PRINTABLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_PRINTABLESTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_TABLE_st { - pub value: ::std::os::raw::c_int, - pub tt: ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_T61STRING"] + pub fn d2i_ASN1_T61STRING( + out: *mut *mut ASN1_T61STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_T61STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UNIVERSALSTRING"] + pub fn d2i_ASN1_UNIVERSALSTRING( + out: *mut *mut ASN1_UNIVERSALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UNIVERSALSTRING; } -impl Default for ASN1_ADB_TABLE_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_fips_0_13_0_d2i_ASN1_UTF8STRING"] + pub fn d2i_ASN1_UTF8STRING( + out: *mut *mut ASN1_UTF8STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTF8STRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ITEM_st { - pub itype: ::std::os::raw::c_char, - pub utype: ::std::os::raw::c_int, - pub templates: *const ASN1_TEMPLATE, - pub tcount: ::std::os::raw::c_long, - pub funcs: *const ::std::os::raw::c_void, - pub size: ::std::os::raw::c_long, - pub sname: *const ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_VISIBLESTRING"] + pub fn d2i_ASN1_VISIBLESTRING( + out: *mut *mut ASN1_VISIBLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_VISIBLESTRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BMPSTRING"] + pub fn i2d_ASN1_BMPSTRING( + in_: *const ASN1_BMPSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALSTRING"] + pub fn i2d_ASN1_GENERALSTRING( + in_: *const ASN1_GENERALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_IA5STRING"] + pub fn i2d_ASN1_IA5STRING( + in_: *const ASN1_IA5STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OCTET_STRING"] + pub fn i2d_ASN1_OCTET_STRING( + in_: *const ASN1_OCTET_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLESTRING"] + pub fn i2d_ASN1_PRINTABLESTRING( + in_: *const ASN1_PRINTABLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_T61STRING"] + pub fn i2d_ASN1_T61STRING( + in_: *const ASN1_T61STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UNIVERSALSTRING"] + pub fn i2d_ASN1_UNIVERSALSTRING( + in_: *const ASN1_UNIVERSALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTF8STRING"] + pub fn i2d_ASN1_UTF8STRING( + in_: *const ASN1_UTF8STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_VISIBLESTRING"] + pub fn i2d_ASN1_VISIBLESTRING( + in_: *const ASN1_VISIBLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_it"] + pub static ASN1_BMPSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_it"] + pub static ASN1_GENERALSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_it"] + pub static ASN1_IA5STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_it"] + pub static ASN1_OCTET_STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_it"] + pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_it"] + pub static ASN1_T61STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_it"] + pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_it"] + pub static ASN1_UTF8STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_it"] + pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_dup"] + pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_cmp"] + pub fn ASN1_OCTET_STRING_cmp( + a: *const ASN1_OCTET_STRING, + b: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_set"] + pub fn ASN1_OCTET_STRING_set( + str_: *mut ASN1_OCTET_STRING, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_to_UTF8"] + pub fn ASN1_STRING_to_UTF8( + out: *mut *mut ::std::os::raw::c_uchar, + in_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_copy"] + pub fn ASN1_mbstring_copy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_ncopy"] + pub fn ASN1_mbstring_ncopy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + minsize: ossl_ssize_t, + maxsize: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_by_NID"] + pub fn ASN1_STRING_set_by_NID( + out: *mut *mut ASN1_STRING, + in_: *const ::std::os::raw::c_uchar, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_add"] + pub fn ASN1_STRING_TABLE_add( + nid: ::std::os::raw::c_int, + minsize: ::std::os::raw::c_long, + maxsize: ::std::os::raw::c_long, + mask: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_new"] + pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_free"] + pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIRECTORYSTRING"] + pub fn d2i_DIRECTORYSTRING( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIRECTORYSTRING"] + pub fn i2d_DIRECTORYSTRING( + in_: *const ASN1_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_it"] + pub static DIRECTORYSTRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_new"] + pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_free"] + pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DISPLAYTEXT"] + pub fn d2i_DISPLAYTEXT( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DISPLAYTEXT"] + pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_it"] + pub static DISPLAYTEXT_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_new"] + pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_free"] + pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BIT_STRING"] + pub fn d2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BIT_STRING"] + pub fn i2d_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_BIT_STRING"] + pub fn c2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_BIT_STRING"] + pub fn i2c_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_it"] + pub static ASN1_BIT_STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_num_bytes"] + pub fn ASN1_BIT_STRING_num_bytes( + str_: *const ASN1_BIT_STRING, + out: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set"] + pub fn ASN1_BIT_STRING_set( + str_: *mut ASN1_BIT_STRING, + d: *const ::std::os::raw::c_uchar, + length: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set_bit"] + pub fn ASN1_BIT_STRING_set_bit( + str_: *mut ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_get_bit"] + pub fn ASN1_BIT_STRING_get_bit( + str_: *const ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_check"] + pub fn ASN1_BIT_STRING_check( + str_: *const ASN1_BIT_STRING, + flags: *const ::std::os::raw::c_uchar, + flags_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_INTEGER { + _unused: [u8; 0], +} +pub type sk_ASN1_INTEGER_free_func = + ::std::option::Option; +pub type sk_ASN1_INTEGER_copy_func = + ::std::option::Option *mut ASN1_INTEGER>; +pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_INTEGER, + arg2: *const *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_INTEGER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_new"] + pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_free"] + pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_dup"] + pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_INTEGER"] + pub fn d2i_ASN1_INTEGER( + out: *mut *mut ASN1_INTEGER, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_INTEGER"] + pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_INTEGER"] + pub fn c2i_ASN1_INTEGER( + in_: *mut *mut ASN1_INTEGER, + outp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_INTEGER"] + pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_it"] + pub static ASN1_INTEGER_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_uint64"] + pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_int64"] + pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get_uint64"] + pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get_int64"] + pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_INTEGER"] + pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_to_BN"] + pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_cmp"] + pub fn ASN1_INTEGER_cmp( + x: *const ASN1_INTEGER, + y: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_new"] + pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_free"] + pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_ENUMERATED"] + pub fn d2i_ASN1_ENUMERATED( + out: *mut *mut ASN1_ENUMERATED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_ENUMERATED; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_ENUMERATED"] + pub fn i2d_ASN1_ENUMERATED( + in_: *const ASN1_ENUMERATED, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_it"] + pub static ASN1_ENUMERATED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_uint64"] + pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_int64"] + pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_uint64"] + pub fn ASN1_ENUMERATED_get_uint64( + out: *mut u64, + a: *const ASN1_ENUMERATED, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_int64"] + pub fn ASN1_ENUMERATED_get_int64( + out: *mut i64, + a: *const ASN1_ENUMERATED, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_ENUMERATED"] + pub fn BN_to_ASN1_ENUMERATED( + bn: *const BIGNUM, + ai: *mut ASN1_ENUMERATED, + ) -> *mut ASN1_ENUMERATED; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_to_BN"] + pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_new"] + pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_free"] + pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UTCTIME"] + pub fn d2i_ASN1_UTCTIME( + out: *mut *mut ASN1_UTCTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTCTIME"] + pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_it"] + pub static ASN1_UTCTIME_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_check"] + pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set"] + pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_adj"] + pub fn ASN1_UTCTIME_adj( + s: *mut ASN1_UTCTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set_string"] + pub fn ASN1_UTCTIME_set_string( + s: *mut ASN1_UTCTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_cmp_time_t"] + pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_new"] + pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_free"] + pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALIZEDTIME"] + pub fn d2i_ASN1_GENERALIZEDTIME( + out: *mut *mut ASN1_GENERALIZEDTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALIZEDTIME"] + pub fn i2d_ASN1_GENERALIZEDTIME( + in_: *const ASN1_GENERALIZEDTIME, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_it"] + pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_check"] + pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set"] + pub fn ASN1_GENERALIZEDTIME_set( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_adj"] + pub fn ASN1_GENERALIZEDTIME_adj( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set_string"] + pub fn ASN1_GENERALIZEDTIME_set_string( + s: *mut ASN1_GENERALIZEDTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_new"] + pub fn ASN1_TIME_new() -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_free"] + pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TIME"] + pub fn d2i_ASN1_TIME( + out: *mut *mut ASN1_TIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TIME"] + pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_it"] + pub static ASN1_TIME_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_diff"] + pub fn ASN1_TIME_diff( + out_days: *mut ::std::os::raw::c_int, + out_seconds: *mut ::std::os::raw::c_int, + from: *const ASN1_TIME, + to: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_posix"] + pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set"] + pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_adj"] + pub fn ASN1_TIME_adj( + s: *mut ASN1_TIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_check"] + pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_generalizedtime"] + pub fn ASN1_TIME_to_generalizedtime( + t: *const ASN1_TIME, + out: *mut *mut ASN1_GENERALIZEDTIME, + ) -> *mut ASN1_GENERALIZEDTIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string"] + pub fn ASN1_TIME_set_string( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_tm"] + pub fn ASN1_TIME_to_tm(t: *const ASN1_TIME, out: *mut tm) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string_X509"] + pub fn ASN1_TIME_set_string_X509( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_time_t"] + pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_posix"] + pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_new"] + pub fn ASN1_NULL_new() -> *mut ASN1_NULL; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_free"] + pub fn ASN1_NULL_free(null: *mut ASN1_NULL); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_NULL"] + pub fn d2i_ASN1_NULL( + out: *mut *mut ASN1_NULL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_NULL; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_NULL"] + pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_it"] + pub static ASN1_NULL_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_OBJECT { + _unused: [u8; 0], +} +pub type sk_ASN1_OBJECT_free_func = + ::std::option::Option; +pub type sk_ASN1_OBJECT_copy_func = + ::std::option::Option *mut ASN1_OBJECT>; +pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_OBJECT, + arg2: *const *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_create"] + pub fn ASN1_OBJECT_create( + nid: ::std::os::raw::c_int, + data: *const u8, + len: usize, + sn: *const ::std::os::raw::c_char, + ln: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_free"] + pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_OBJECT"] + pub fn d2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OBJECT"] + pub fn i2d_ASN1_OBJECT(in_: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_OBJECT"] + pub fn c2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_it"] + pub static ASN1_OBJECT_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct asn1_type_st { + pub type_: ::std::os::raw::c_int, + pub value: asn1_type_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union asn1_type_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub boolean: ASN1_BOOLEAN, + pub asn1_string: *mut ASN1_STRING, + pub object: *mut ASN1_OBJECT, + pub integer: *mut ASN1_INTEGER, + pub enumerated: *mut ASN1_ENUMERATED, + pub bit_string: *mut ASN1_BIT_STRING, + pub octet_string: *mut ASN1_OCTET_STRING, + pub printablestring: *mut ASN1_PRINTABLESTRING, + pub t61string: *mut ASN1_T61STRING, + pub ia5string: *mut ASN1_IA5STRING, + pub generalstring: *mut ASN1_GENERALSTRING, + pub bmpstring: *mut ASN1_BMPSTRING, + pub universalstring: *mut ASN1_UNIVERSALSTRING, + pub utctime: *mut ASN1_UTCTIME, + pub generalizedtime: *mut ASN1_GENERALIZEDTIME, + pub visiblestring: *mut ASN1_VISIBLESTRING, + pub utf8string: *mut ASN1_UTF8STRING, + pub set: *mut ASN1_STRING, + pub sequence: *mut ASN1_STRING, + pub asn1_value: *mut ASN1_VALUE, } #[test] -fn bindgen_test_layout_ASN1_ITEM_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { + 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!(ASN1_ITEM_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(asn1_type_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ASN1_ITEM_st)) + concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(itype) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(utype) + stringify!(boolean) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(templates) + stringify!(asn1_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(tcount) + stringify!(object) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(funcs) + stringify!(integer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(size) + stringify!(enumerated) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_ITEM_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(sname) + stringify!(bit_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(octet_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(printablestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(t61string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ia5string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bmpstring) ) ); -} -impl Default for ASN1_ITEM_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() - } - } -} -pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; -pub type ASN1_free_func = ::std::option::Option; -pub type ASN1_d2i_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut ASN1_VALUE, ->; -pub type ASN1_i2d_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut ASN1_VALUE, - in_: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_d2i = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - opt: ::std::os::raw::c_char, - ctx: *mut ASN1_TLC, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_i2d = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - out: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_new_func = ::std::option::Option< - unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_free_func = - ::std::option::Option; -pub type ASN1_ex_print_func = ::std::option::Option< - unsafe extern "C" fn( - out: *mut BIO, - pval: *mut *mut ASN1_VALUE, - indent: ::std::os::raw::c_int, - fname: *const ::std::os::raw::c_char, - pctx: *const ASN1_PCTX, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_EXTERN_FUNCS_st { - pub app_data: *mut ::std::os::raw::c_void, - pub asn1_ex_new: ASN1_ex_new_func, - pub asn1_ex_free: ASN1_ex_free_func, - pub asn1_ex_clear: ASN1_ex_free_func, - pub asn1_ex_d2i: ASN1_ex_d2i, - pub asn1_ex_i2d: ASN1_ex_i2d, - pub asn1_ex_print: ASN1_ex_print_func, -} -#[test] -fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) + unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(universalstring) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) + unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utctime) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(app_data) + stringify!(generalizedtime) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(asn1_ex_new) + stringify!(visiblestring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(asn1_ex_free) + stringify!(utf8string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_clear) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(asn1_ex_clear) + stringify!(set) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(asn1_ex_d2i) + stringify!(sequence) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(asn1_ex_i2d) + stringify!(asn1_value) ) ); +} +impl Default for asn1_type_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, - 48usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), + stringify!(asn1_type_st), "::", - stringify!(asn1_ex_print) + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(value) ) ); } -impl Default for ASN1_EXTERN_FUNCS_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() - } - } +impl Default for asn1_type_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)] +pub struct stack_st_ASN1_TYPE { + _unused: [u8; 0], +} +pub type sk_ASN1_TYPE_free_func = ::std::option::Option; +pub type sk_ASN1_TYPE_copy_func = + ::std::option::Option *mut ASN1_TYPE>; +pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_TYPE, + arg2: *const *const ASN1_TYPE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_TYPE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_new"] + pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_free"] + pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TYPE"] + pub fn d2i_ASN1_TYPE( + out: *mut *mut ASN1_TYPE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TYPE"] + pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ANY_it"] + pub static ASN1_ANY_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_get"] + pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set"] + pub fn ASN1_TYPE_set( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set1"] + pub fn ASN1_TYPE_set1( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_cmp"] + pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SEQUENCE_ANY"] + pub fn d2i_ASN1_SEQUENCE_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SEQUENCE_ANY"] + pub fn i2d_ASN1_SEQUENCE_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SET_ANY"] + pub fn d2i_ASN1_SET_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SET_ANY"] + pub fn i2d_ASN1_SET_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_print"] + pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_print"] + pub fn ASN1_GENERALIZEDTIME_print( + out: *mut BIO, + a: *const ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_print"] + pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print"] + pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex"] + pub fn ASN1_STRING_print_ex( + out: *mut BIO, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex_fp"] + pub fn ASN1_STRING_print_ex_fp( + fp: *mut FILE, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_INTEGER"] + pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_ENUMERATED"] + pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_OBJECT"] + pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_STRING"] + pub fn i2a_ASN1_STRING( + bp: *mut BIO, + a: *const ASN1_STRING, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2t_ASN1_OBJECT"] + pub fn i2t_ASN1_OBJECT( + buf: *mut ::std::os::raw::c_char, + buf_len: ::std::os::raw::c_int, + a: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_get_object"] + pub fn ASN1_get_object( + inp: *mut *const ::std::os::raw::c_uchar, + out_length: *mut ::std::os::raw::c_long, + out_tag: *mut ::std::os::raw::c_int, + out_class: *mut ::std::os::raw::c_int, + max_len: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_object"] + pub fn ASN1_put_object( + outp: *mut *mut ::std::os::raw::c_uchar, + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + xclass: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_eoc"] + pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } -pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; -pub type ASN1_aux_cb = ::std::option::Option< - unsafe extern "C" fn( - operation: ::std::os::raw::c_int, - in_: *mut *mut ASN1_VALUE, - it: *const ASN1_ITEM, - exarg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_object_size"] + pub fn ASN1_object_size( + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_new"] + pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_free"] + pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLE"] + pub fn d2i_ASN1_PRINTABLE( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLE"] + pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_it"] + pub static ASN1_PRINTABLE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set"] + pub fn ASN1_INTEGER_set( + a: *mut ASN1_INTEGER, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set"] + pub fn ASN1_ENUMERATED_set( + a: *mut ASN1_ENUMERATED, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get"] + pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get"] + pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask"] + pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask_asc"] + pub fn ASN1_STRING_set_default_mask_asc( + p: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get_default_mask"] + pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_cleanup"] + pub fn ASN1_STRING_TABLE_cleanup(); +} +pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_TLC_st { + _unused: [u8; 0], +} +pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_AUX_st { - pub app_data: *mut ::std::os::raw::c_void, +pub struct ASN1_TEMPLATE_st { pub flags: u32, - pub ref_offset: ::std::os::raw::c_int, - pub asn1_cb: ASN1_aux_cb, - pub enc_offset: ::std::os::raw::c_int, + pub tag: ::std::os::raw::c_int, + pub offset: ::std::os::raw::c_ulong, + pub field_name: *const ::std::os::raw::c_char, + pub item: *const ASN1_ITEM_st, } #[test] -fn bindgen_test_layout_ASN1_AUX_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_TEMPLATE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 32usize, - concat!("Size of: ", stringify!(ASN1_AUX_st)) + concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ASN1_AUX_st)) + concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_AUX_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(app_data) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(ASN1_AUX_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(flags) + stringify!(tag) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(ASN1_AUX_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(ref_offset) + stringify!(offset) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ASN1_AUX_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(asn1_cb) + stringify!(field_name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(ASN1_AUX_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(enc_offset) + stringify!(item) ) ); } -impl Default for ASN1_AUX_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() - } - } -} -pub type ASN1_AUX = ASN1_AUX_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_SEQUENCE_it"] - pub static ASN1_SEQUENCE_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_VALUE { - _unused: [u8; 0], -} -pub type sk_ASN1_VALUE_free_func = - ::std::option::Option; -pub type sk_ASN1_VALUE_copy_func = - ::std::option::Option *mut ASN1_VALUE>; -pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_VALUE, - arg2: *mut *const ASN1_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeBlock"] - pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodedLength"] - pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodedLength"] - pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBase64"] - pub fn EVP_DecodeBase64( - out: *mut u8, - out_len: *mut usize, - max_out: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_new"] - pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_free"] - pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeInit"] - pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeUpdate"] - pub fn EVP_EncodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeFinal"] - pub fn EVP_EncodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeInit"] - pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeUpdate"] - pub fn EVP_DecodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeFinal"] - pub fn EVP_DecodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for ASN1_TEMPLATE_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_fips_0_12_15_EVP_DecodeBlock"] - pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; +pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; +pub type ASN1_ADB = ASN1_ADB_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct asn1_must_be_null_st { + _unused: [u8; 0], } +pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_encode_ctx_st { - pub data_used: ::std::os::raw::c_uint, - pub data: [u8; 48usize], - pub eof_seen: ::std::os::raw::c_char, - pub error_encountered: ::std::os::raw::c_char, +pub struct ASN1_ADB_st { + pub flags: u32, + pub offset: ::std::os::raw::c_ulong, + pub unused: *mut ASN1_MUST_BE_NULL, + pub tbl: *const ASN1_ADB_TABLE, + pub tblcount: ::std::os::raw::c_long, + pub default_tt: *const ASN1_TEMPLATE, + pub null_tt: *const ASN1_TEMPLATE, } #[test] -fn bindgen_test_layout_evp_encode_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ADB_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 56usize, - concat!("Size of: ", stringify!(evp_encode_ctx_st)) + concat!("Size of: ", stringify!(ASN1_ADB_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(evp_encode_ctx_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_encode_ctx_st), + stringify!(ASN1_ADB_st), "::", - stringify!(data_used) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(evp_encode_ctx_st), + stringify!(ASN1_ADB_st), "::", - stringify!(data) + stringify!(offset) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, - 52usize, + unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(evp_encode_ctx_st), + stringify!(ASN1_ADB_st), "::", - stringify!(eof_seen) + stringify!(unused) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, - 53usize, + unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(evp_encode_ctx_st), + stringify!(ASN1_ADB_st), "::", - stringify!(error_encountered) + stringify!(tbl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tblcount) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(default_tt) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(null_tt) ) ); } -impl Default for evp_encode_ctx_st { +impl Default for ASN1_ADB_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9994,57 +10492,47 @@ impl Default for evp_encode_ctx_st { } } #[repr(C)] -#[derive(Copy, Clone)] -pub struct blake2b_state_st { - pub h: [u64; 8usize], - pub t_low: u64, - pub t_high: u64, - pub block: blake2b_state_st__bindgen_ty_1, - pub block_used: usize, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union blake2b_state_st__bindgen_ty_1 { - pub bytes: [u8; 128usize], - pub words: [u64; 16usize], +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_TABLE_st { + pub value: ::std::os::raw::c_int, + pub tt: ASN1_TEMPLATE, } #[test] -fn bindgen_test_layout_blake2b_state_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ADB_TABLE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(blake2b_state_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(ASN1_ADB_TABLE_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st__bindgen_ty_1)) + concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), + stringify!(ASN1_ADB_TABLE_st), "::", - stringify!(bytes) + stringify!(value) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).words) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), + stringify!(ASN1_ADB_TABLE_st), "::", - stringify!(words) + stringify!(tt) ) ); } -impl Default for blake2b_state_st__bindgen_ty_1 { +impl Default for ASN1_ADB_TABLE_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -10053,72 +10541,103 @@ impl Default for blake2b_state_st__bindgen_ty_1 { } } } +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ITEM_st { + pub itype: ::std::os::raw::c_char, + pub utype: ::std::os::raw::c_int, + pub templates: *const ASN1_TEMPLATE, + pub tcount: ::std::os::raw::c_long, + pub funcs: *const ::std::os::raw::c_void, + pub size: ::std::os::raw::c_long, + pub sname: *const ::std::os::raw::c_char, +} #[test] -fn bindgen_test_layout_blake2b_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ITEM_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(blake2b_state_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(ASN1_ITEM_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st)) + concat!("Alignment of ", stringify!(ASN1_ITEM_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(h) + stringify!(itype) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(t_low) + stringify!(utype) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(t_high) + stringify!(templates) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(block) + stringify!(tcount) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, - 208usize, + unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(blake2b_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(block_used) + stringify!(funcs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(sname) ) ); } -impl Default for blake2b_state_st { +impl Default for ASN1_ITEM_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -10127,464 +10646,410 @@ impl Default for blake2b_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Init"] - pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Update"] - pub fn BLAKE2B256_Update( - b2b: *mut BLAKE2B_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Final"] - pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256"] - pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); -} +pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; +pub type ASN1_free_func = ::std::option::Option; +pub type ASN1_d2i_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + length: ::std::os::raw::c_long, + ) -> *mut ASN1_VALUE, +>; +pub type ASN1_i2d_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut ASN1_VALUE, + in_: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_d2i = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + opt: ::std::os::raw::c_char, + ctx: *mut ASN1_TLC, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_i2d = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + out: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_new_func = ::std::option::Option< + unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_free_func = + ::std::option::Option; +pub type ASN1_ex_print_func = ::std::option::Option< + unsafe extern "C" fn( + out: *mut BIO, + pval: *mut *mut ASN1_VALUE, + indent: ::std::os::raw::c_int, + fname: *const ::std::os::raw::c_char, + pctx: *const ASN1_PCTX, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bf_key_st { - pub P: [u32; 18usize], - pub S: [u32; 1024usize], +pub struct ASN1_EXTERN_FUNCS_st { + pub app_data: *mut ::std::os::raw::c_void, + pub asn1_ex_new: ASN1_ex_new_func, + pub asn1_ex_free: ASN1_ex_free_func, + pub asn1_ex_d2i: ASN1_ex_d2i, + pub asn1_ex_i2d: ASN1_ex_i2d, + pub asn1_ex_print: ASN1_ex_print_func, } #[test] -fn bindgen_test_layout_bf_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 4168usize, - concat!("Size of: ", stringify!(bf_key_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(bf_key_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bf_key_st), + stringify!(ASN1_EXTERN_FUNCS_st), "::", - stringify!(P) + stringify!(app_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(bf_key_st), + stringify!(ASN1_EXTERN_FUNCS_st), "::", - stringify!(S) + stringify!(asn1_ex_new) ) ); -} -impl Default for bf_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() - } - } -} -pub type BF_KEY = bf_key_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_set_key"] - pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_encrypt"] - pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_decrypt"] - pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_ecb_encrypt"] - pub fn BF_ecb_encrypt( - in_: *const u8, - out: *mut u8, - key: *const BF_KEY, - enc: ::std::os::raw::c_int, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_cbc_encrypt"] - pub fn BF_cbc_encrypt( - in_: *const u8, - out: *mut u8, - length: usize, - schedule: *const BF_KEY, - ivec: *mut u8, - enc: ::std::os::raw::c_int, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbs_st { - pub data: *const u8, - pub len: usize, -} -#[test] -fn bindgen_test_layout_cbs_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, 16usize, - concat!("Size of: ", stringify!(cbs_st)) + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_free) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbs_st)) + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_d2i) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(cbs_st), + stringify!(ASN1_EXTERN_FUNCS_st), "::", - stringify!(data) + stringify!(asn1_ex_i2d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(cbs_st), + stringify!(ASN1_EXTERN_FUNCS_st), "::", - stringify!(len) + stringify!(asn1_ex_print) ) ); } -impl Default for cbs_st { +impl Default for ASN1_EXTERN_FUNCS_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_fips_0_12_15_CBS_init"] - pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_skip"] - pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_data"] - pub fn CBS_data(cbs: *const CBS) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_len"] - pub fn CBS_len(cbs: *const CBS) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_stow"] - pub fn CBS_stow( - cbs: *const CBS, - out_ptr: *mut *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_strdup"] - pub fn CBS_strdup( - cbs: *const CBS, - out_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_contains_zero_byte"] - pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_mem_equal"] - pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8"] - pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16"] - pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16le"] - pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24"] - pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32"] - pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32le"] - pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64"] - pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64le"] - pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_last_u8"] - pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_bytes"] - pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_copy_bytes"] - pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8_length_prefixed"] - pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16_length_prefixed"] - pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24_length_prefixed"] - pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_until_first"] - pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1"] - pub fn CBS_get_asn1( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_element"] - pub fn CBS_get_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_peek_asn1_tag"] - pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1"] - pub fn CBS_get_any_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; +pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; +pub type ASN1_aux_cb = ::std::option::Option< + unsafe extern "C" fn( + operation: ::std::os::raw::c_int, + in_: *mut *mut ASN1_VALUE, + it: *const ASN1_ITEM, + exarg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_AUX_st { + pub app_data: *mut ::std::os::raw::c_void, + pub flags: u32, + pub ref_offset: ::std::os::raw::c_int, + pub asn1_cb: ASN1_aux_cb, + pub enc_offset: ::std::os::raw::c_int, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1_element"] - pub fn CBS_get_any_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_ASN1_AUX_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(ref_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(asn1_cb) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(enc_offset) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_ber_asn1_element"] - pub fn CBS_get_any_ber_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - out_ber_found: *mut ::std::os::raw::c_int, - out_indefinite: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for ASN1_AUX_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() + } + } } +pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_uint64"] - pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_SEQUENCE_it"] + pub static ASN1_SEQUENCE_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_int64"] - pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_VALUE { + _unused: [u8; 0], } +pub type sk_ASN1_VALUE_free_func = + ::std::option::Option; +pub type sk_ASN1_VALUE_copy_func = + ::std::option::Option *mut ASN1_VALUE>; +pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_VALUE, + arg2: *const *const ASN1_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_bool"] - pub fn CBS_get_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeBlock"] + pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1"] - pub fn CBS_get_optional_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodedLength"] + pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_octet_string"] - pub fn CBS_get_optional_asn1_octet_string( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodedLength"] + pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_uint64"] - pub fn CBS_get_optional_asn1_uint64( - cbs: *mut CBS, - out: *mut u64, - tag: CBS_ASN1_TAG, - default_value: u64, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBase64"] + pub fn EVP_DecodeBase64( + out: *mut u8, + out_len: *mut usize, + max_out: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_bool"] - pub fn CBS_get_optional_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - default_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_new"] + pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_bitstring"] - pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_free"] + pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_bitstring_has_bit"] - pub fn CBS_asn1_bitstring_has_bit( - cbs: *const CBS, - bit: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeInit"] + pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_integer"] - pub fn CBS_is_valid_asn1_integer( - cbs: *const CBS, - out_is_negative: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeUpdate"] + pub fn EVP_EncodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_unsigned_asn1_integer"] - pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeFinal"] + pub fn EVP_EncodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_oid_to_text"] - pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeInit"] + pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_generalized_time"] - pub fn CBS_parse_generalized_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeUpdate"] + pub fn EVP_DecodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_utc_time"] - pub fn CBS_parse_utc_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeFinal"] + pub fn EVP_DecodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_int64"] - pub fn CBS_get_optional_asn1_int64( - cbs: *mut CBS, - out: *mut i64, - tag: CBS_ASN1_TAG, - default_value: i64, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBlock"] + pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_buffer_st { - pub buf: *mut u8, - pub len: usize, - pub cap: usize, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +pub struct evp_encode_ctx_st { + pub data_used: ::std::os::raw::c_uint, + pub data: [u8; 48usize], + pub eof_seen: ::std::os::raw::c_char, + pub error_encountered: ::std::os::raw::c_char, } #[test] -fn bindgen_test_layout_cbb_buffer_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_encode_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_buffer_st)) + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(evp_encode_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_buffer_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data_used) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(cbb_buffer_st), + stringify!(evp_encode_ctx_st), "::", - stringify!(buf) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, + 52usize, concat!( "Offset of field: ", - stringify!(cbb_buffer_st), + stringify!(evp_encode_ctx_st), "::", - stringify!(len) + stringify!(eof_seen) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, + 53usize, concat!( "Offset of field: ", - stringify!(cbb_buffer_st), + stringify!(evp_encode_ctx_st), "::", - stringify!(cap) + stringify!(error_encountered) ) ); } -impl Default for cbb_buffer_st { +impl Default for evp_encode_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -10593,102 +11058,81 @@ impl Default for cbb_buffer_st { } } } -impl cbb_buffer_st { - #[inline] - pub fn can_resize(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn error(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - can_resize: ::std::os::raw::c_uint, - error: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; - can_resize as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let error: u32 = unsafe { ::std::mem::transmute(error) }; - error as u64 - }); - __bindgen_bitfield_unit - } -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_child_st { - pub base: *mut cbb_buffer_st, - pub offset: usize, - pub pending_len_len: u8, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u16; 3usize], +pub struct blake2b_state_st { + pub h: [u64; 8usize], + pub t_low: u64, + pub t_high: u64, + pub block: [u8; 128usize], + pub block_used: usize, } #[test] -fn bindgen_test_layout_cbb_child_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_blake2b_state_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!(cbb_child_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(blake2b_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(cbb_child_st)) + concat!("Alignment of ", stringify!(blake2b_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(cbb_child_st), + stringify!(blake2b_state_st), "::", - stringify!(base) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(cbb_child_st), + stringify!(blake2b_state_st), "::", - stringify!(offset) + stringify!(t_low) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(cbb_child_st), + stringify!(blake2b_state_st), "::", - stringify!(pending_len_len) + stringify!(t_high) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block_used) ) ); } -impl Default for cbb_child_st { +impl Default for blake2b_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -10697,79 +11141,68 @@ impl Default for cbb_child_st { } } } -impl cbb_child_st { - #[inline] - pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - pending_is_asn1: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; - pending_is_asn1 as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Init"] + pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct cbb_st { - pub child: *mut CBB, - pub is_child: ::std::os::raw::c_char, - pub u: cbb_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Update"] + pub fn BLAKE2B256_Update( + b2b: *mut BLAKE2B_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Final"] + pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256"] + pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); } #[repr(C)] -#[derive(Copy, Clone)] -pub union cbb_st__bindgen_ty_1 { - pub base: cbb_buffer_st, - pub child: cbb_child_st, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bf_key_st { + pub P: [u32; 18usize], + pub S: [u32; 1024usize], } #[test] -fn bindgen_test_layout_cbb_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bf_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 4168usize, + concat!("Size of: ", stringify!(bf_key_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(bf_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), + stringify!(bf_key_st), "::", - stringify!(base) + stringify!(P) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), + stringify!(bf_key_st), "::", - stringify!(child) + stringify!(S) ) ); } -impl Default for cbb_st__bindgen_ty_1 { +impl Default for bf_key_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -10778,47 +11211,81 @@ impl Default for cbb_st__bindgen_ty_1 { } } } +pub type BF_KEY = bf_key_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_set_key"] + pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_encrypt"] + pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_decrypt"] + pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_ecb_encrypt"] + pub fn BF_ecb_encrypt( + in_: *const u8, + out: *mut u8, + key: *const BF_KEY, + enc: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_cbc_encrypt"] + pub fn BF_cbc_encrypt( + in_: *const u8, + out: *mut u8, + length: usize, + schedule: *const BF_KEY, + ivec: *mut u8, + enc: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbs_st { + pub data: *const u8, + pub len: usize, +} #[test] -fn bindgen_test_layout_cbb_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_cbs_st() { + 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!(cbb_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(cbs_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(cbb_st)) + concat!("Alignment of ", stringify!(cbs_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(cbb_st), + stringify!(cbs_st), "::", - stringify!(child) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(cbb_st), + stringify!(cbs_st), "::", - stringify!(is_child) + stringify!(len) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) - ); } -impl Default for cbb_st { +impl Default for cbs_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -10828,1479 +11295,1476 @@ impl Default for cbb_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_zero"] - pub fn CBB_zero(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_init"] + pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init"] - pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_skip"] + pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init_fixed"] - pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_data"] + pub fn CBS_data(cbs: *const CBS) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_cleanup"] - pub fn CBB_cleanup(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_len"] + pub fn CBS_len(cbs: *const CBS) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_finish"] - pub fn CBB_finish( - cbb: *mut CBB, - out_data: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_stow"] + pub fn CBS_stow( + cbs: *const CBS, + out_ptr: *mut *mut u8, out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush"] - pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_data"] - pub fn CBB_data(cbb: *const CBB) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_len"] - pub fn CBB_len(cbb: *const CBB) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8_length_prefixed"] - pub fn CBB_add_u8_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16_length_prefixed"] - pub fn CBB_add_u16_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24_length_prefixed"] - pub fn CBB_add_u24_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_strdup"] + pub fn CBS_strdup( + cbs: *const CBS, + out_ptr: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1"] - pub fn CBB_add_asn1( - cbb: *mut CBB, - out_contents: *mut CBB, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_contains_zero_byte"] + pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_bytes"] - pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_mem_equal"] + pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_zeros"] - pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8"] + pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_space"] - pub fn CBB_add_space( - cbb: *mut CBB, - out_data: *mut *mut u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16"] + pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_reserve"] - pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16le"] + pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_did_write"] - pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24"] + pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8"] - pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32"] + pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16"] - pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32le"] + pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16le"] - pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64"] + pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24"] - pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64le"] + pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32"] - pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_last_u8"] + pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32le"] - pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_bytes"] + pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64"] - pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_copy_bytes"] + pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64le"] - pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8_length_prefixed"] + pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_discard_child"] - pub fn CBB_discard_child(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16_length_prefixed"] + pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64"] - pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24_length_prefixed"] + pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64_with_tag"] - pub fn CBB_add_asn1_uint64_with_tag( - cbb: *mut CBB, - value: u64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_until_first"] + pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64"] - pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64_decimal"] + pub fn CBS_get_u64_decimal(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64_with_tag"] - pub fn CBB_add_asn1_int64_with_tag( - cbb: *mut CBB, - value: i64, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1"] + pub fn CBS_get_asn1( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_octet_string"] - pub fn CBB_add_asn1_octet_string( - cbb: *mut CBB, - data: *const u8, - data_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_element"] + pub fn CBS_get_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_bool"] - pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_peek_asn1_tag"] + pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_oid_from_text"] - pub fn CBB_add_asn1_oid_from_text( - cbb: *mut CBB, - text: *const ::std::os::raw::c_char, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1"] + pub fn CBS_get_any_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush_asn1_set_of"] - pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_chacha_20"] - pub fn CRYPTO_chacha_20( - out: *mut u8, - in_: *const u8, - in_len: usize, - key: *const u8, - nonce: *const u8, - counter: u32, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc4"] - pub fn EVP_rc4() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_cbc"] - pub fn EVP_des_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ecb"] - pub fn EVP_des_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede"] - pub fn EVP_des_ede() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3"] - pub fn EVP_des_ede3() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede_cbc"] - pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_cbc"] - pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ecb"] - pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc"] - pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ctr"] - pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ofb"] - pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ecb"] - pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc"] - pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ctr"] - pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ofb"] - pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_xts"] - pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_enc_null"] - pub fn EVP_enc_null() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_cbc"] - pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_40_cbc"] - pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1_element"] + pub fn CBS_get_any_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbynid"] - pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_ber_asn1_element"] + pub fn CBS_get_any_ber_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + out_ber_found: *mut ::std::os::raw::c_int, + out_indefinite: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_init"] - pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_uint64"] + pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_new"] - pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_int64"] + pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cleanup"] - pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_bool"] + pub fn CBS_get_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_free"] - pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1"] + pub fn CBS_get_optional_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_copy"] - pub fn EVP_CIPHER_CTX_copy( - out: *mut EVP_CIPHER_CTX, - in_: *const EVP_CIPHER_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_octet_string"] + pub fn CBS_get_optional_asn1_octet_string( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_reset"] - pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_uint64"] + pub fn CBS_get_optional_asn1_uint64( + cbs: *mut CBS, + out: *mut u64, + tag: CBS_ASN1_TAG, + default_value: u64, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit_ex"] - pub fn EVP_CipherInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - engine: *mut ENGINE, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_bool"] + pub fn CBS_get_optional_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + default_value: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit_ex"] - pub fn EVP_EncryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_bitstring"] + pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit_ex"] - pub fn EVP_DecryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_bitstring_has_bit"] + pub fn CBS_asn1_bitstring_has_bit( + cbs: *const CBS, + bit: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptUpdate"] - pub fn EVP_EncryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_integer"] + pub fn CBS_is_valid_asn1_integer( + cbs: *const CBS, + out_is_negative: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal_ex"] - pub fn EVP_EncryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_unsigned_asn1_integer"] + pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptUpdate"] - pub fn EVP_DecryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_oid"] + pub fn CBS_is_valid_asn1_oid(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal_ex"] - pub fn EVP_DecryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_oid_to_text"] + pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherUpdate"] - pub fn EVP_CipherUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_generalized_time"] + pub fn CBS_parse_generalized_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal_ex"] - pub fn EVP_CipherFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_utc_time"] + pub fn CBS_parse_utc_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cipher"] - pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_int64"] + pub fn CBS_get_optional_asn1_int64( + cbs: *mut CBS, + out: *mut i64, + tag: CBS_ASN1_TAG, + default_value: i64, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_buffer_st { + pub buf: *mut u8, + pub len: usize, + pub cap: usize, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 7usize], +} +#[test] +fn bindgen_test_layout_cbb_buffer_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(cap) + ) + ); +} +impl Default for cbb_buffer_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() + } + } +} +impl cbb_buffer_st { + #[inline] + pub fn can_resize(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn error(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + can_resize: ::std::os::raw::c_uint, + error: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; + can_resize as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let error: u32 = unsafe { ::std::mem::transmute(error) }; + error as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_child_st { + pub base: *mut cbb_buffer_st, + pub offset: usize, + pub pending_len_len: u8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u16; 3usize], +} +#[test] +fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_child_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(pending_len_len) + ) + ); +} +impl Default for cbb_child_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_fips_0_12_15_EVP_CIPHER_CTX_nid"] - pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +impl cbb_child_st { + #[inline] + pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pending_is_asn1: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; + pending_is_asn1 as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_encrypting"] - pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct cbb_st { + pub child: *mut CBB, + pub is_child: ::std::os::raw::c_char, + pub u: cbb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_block_size"] - pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub union cbb_st__bindgen_ty_1 { + pub base: cbb_buffer_st, + pub child: cbb_child_st, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_key_length"] - pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +#[test] +fn bindgen_test_layout_cbb_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(child) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_iv_length"] - pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +impl Default for cbb_st__bindgen_ty_1 { + 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_fips_0_12_15_EVP_CIPHER_CTX_get_app_data"] - pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; +#[test] +fn bindgen_test_layout_cbb_st() { + 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!(cbb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(is_child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, + 16usize, + concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_app_data"] - pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); +impl Default for cbb_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_fips_0_12_15_EVP_CIPHER_CTX_flags"] - pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_zero"] + pub fn CBB_zero(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_mode"] - pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init"] + pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_ctrl"] - pub fn EVP_CIPHER_CTX_ctrl( - ctx: *mut EVP_CIPHER_CTX, - command: ::std::os::raw::c_int, - arg: ::std::os::raw::c_int, - ptr: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init_fixed"] + pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_padding"] - pub fn EVP_CIPHER_CTX_set_padding( - ctx: *mut EVP_CIPHER_CTX, - pad: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_cleanup"] + pub fn CBB_cleanup(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_key_length"] - pub fn EVP_CIPHER_CTX_set_key_length( - ctx: *mut EVP_CIPHER_CTX, - key_len: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_finish"] + pub fn CBB_finish( + cbb: *mut CBB, + out_data: *mut *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_nid"] - pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_block_size"] - pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush"] + pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_key_length"] - pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_data"] + pub fn CBB_data(cbb: *const CBB) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_iv_length"] - pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_len"] + pub fn CBB_len(cbb: *const CBB) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_flags"] - pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8_length_prefixed"] + pub fn CBB_add_u8_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_mode"] - pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16_length_prefixed"] + pub fn CBB_add_u16_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_BytesToKey"] - pub fn EVP_BytesToKey( - type_: *const EVP_CIPHER, - md: *const EVP_MD, - salt: *const u8, - data: *const u8, - data_len: usize, - count: ::std::os::raw::c_uint, - key: *mut u8, - iv: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24_length_prefixed"] + pub fn CBB_add_u24_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha1"] - pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1"] + pub fn CBB_add_asn1( + cbb: *mut CBB, + out_contents: *mut CBB, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha1"] - pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_bytes"] + pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha256"] - pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_zeros"] + pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha256"] - pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_space"] + pub fn CBB_add_space( + cbb: *mut CBB, + out_data: *mut *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit"] - pub fn EVP_CipherInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_reserve"] + pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit"] - pub fn EVP_EncryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_did_write"] + pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit"] - pub fn EVP_DecryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8"] + pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal"] - pub fn EVP_CipherFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16"] + pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal"] - pub fn EVP_EncryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16le"] + pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal"] - pub fn EVP_DecryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24"] + pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Cipher"] - pub fn EVP_Cipher( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32"] + pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_cipher_alias"] - pub fn EVP_add_cipher_alias( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32le"] + pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbyname"] - pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64"] + pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_gcm"] - pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64le"] + pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_gcm"] - pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_discard_child"] + pub fn CBB_discard_child(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ecb"] - pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64"] + pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cbc"] - pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64_with_tag"] + pub fn CBB_add_asn1_uint64_with_tag( + cbb: *mut CBB, + value: u64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ctr"] - pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64"] + pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_gcm"] - pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64_with_tag"] + pub fn CBB_add_asn1_int64_with_tag( + cbb: *mut CBB, + value: i64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ofb"] - pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_octet_string"] + pub fn CBB_add_asn1_octet_string( + cbb: *mut CBB, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_ecb"] - pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_bool"] + pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb128"] - pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_oid_from_text"] + pub fn CBB_add_asn1_oid_from_text( + cbb: *mut CBB, + text: *const ::std::os::raw::c_char, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb"] - pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush_asn1_set_of"] + pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb1"] - pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_chacha_20"] + pub fn CRYPTO_chacha_20( + out: *mut u8, + in_: *const u8, + in_len: usize, + key: *const u8, + nonce: *const u8, + counter: u32, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb8"] - pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc4"] + pub fn EVP_rc4() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb128"] - pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_cbc"] + pub fn EVP_des_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb"] - pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ecb"] + pub fn EVP_des_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb1"] - pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede"] + pub fn EVP_des_ede() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb8"] - pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3"] + pub fn EVP_des_ede3() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb128"] - pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede_cbc"] + pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb"] - pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_cbc"] + pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb1"] - pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ecb"] + pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb8"] - pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc"] + pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_ecb"] - pub fn EVP_bf_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ctr"] + pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cbc"] - pub fn EVP_bf_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ofb"] + pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cfb"] - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ecb"] + pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_ecb"] - pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc"] + pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_cbc"] - pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ctr"] + pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_flags"] - pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_ctx_st { - pub cipher: *const EVP_CIPHER, - pub app_data: *mut ::std::os::raw::c_void, - pub cipher_data: *mut ::std::os::raw::c_void, - pub key_len: ::std::os::raw::c_uint, - pub encrypt: ::std::os::raw::c_int, - pub flags: u32, - pub oiv: [u8; 16usize], - pub iv: [u8; 16usize], - pub buf: [u8; 32usize], - pub buf_len: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_uint, - pub final_used: ::std::os::raw::c_int, - pub final_: [u8; 32usize], - pub poisoned: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ofb"] + pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_evp_cipher_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 152usize, - concat!("Size of: ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(key_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(encrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(oiv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(iv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(poisoned) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_xts"] + pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; } -impl Default for evp_cipher_ctx_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_fips_0_13_0_EVP_aes_256_wrap"] + pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_info_st { - pub cipher: *const EVP_CIPHER, - pub iv: [::std::os::raw::c_uchar; 16usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_enc_null"] + pub fn EVP_enc_null() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_evp_cipher_info_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!(evp_cipher_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(iv) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc2_cbc"] + pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; } -impl Default for evp_cipher_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_fips_0_13_0_EVP_rc2_40_cbc"] + pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; } -pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_CMAC"] - pub fn AES_CMAC( - out: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_chacha20_poly1305"] + pub fn EVP_chacha20_poly1305() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbynid"] + pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_init"] + pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_new"] + pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cleanup"] + pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_free"] + pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_copy"] + pub fn EVP_CIPHER_CTX_copy( + out: *mut EVP_CIPHER_CTX, + in_: *const EVP_CIPHER_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_reset"] + pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit_ex"] + pub fn EVP_CipherInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, key: *const u8, - key_len: usize, + iv: *const u8, + enc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit_ex"] + pub fn EVP_EncryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit_ex"] + pub fn EVP_DecryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptUpdate"] + pub fn EVP_EncryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, in_: *const u8, - in_len: usize, + in_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_new"] - pub fn CMAC_CTX_new() -> *mut CMAC_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal_ex"] + pub fn EVP_EncryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_free"] - pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptUpdate"] + pub fn EVP_DecryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal_ex"] + pub fn EVP_DecryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherUpdate"] + pub fn EVP_CipherUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal_ex"] + pub fn EVP_CipherFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cipher"] + pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_nid"] + pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_encrypting"] + pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_block_size"] + pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_key_length"] + pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_iv_length"] + pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_get_app_data"] + pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_app_data"] + pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_flags"] + pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_mode"] + pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_ctrl"] + pub fn EVP_CIPHER_CTX_ctrl( + ctx: *mut EVP_CIPHER_CTX, + command: ::std::os::raw::c_int, + arg: ::std::os::raw::c_int, + ptr: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_padding"] + pub fn EVP_CIPHER_CTX_set_padding( + ctx: *mut EVP_CIPHER_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_key_length"] + pub fn EVP_CIPHER_CTX_set_key_length( + ctx: *mut EVP_CIPHER_CTX, + key_len: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_nid"] + pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_name"] + pub fn EVP_CIPHER_name(cipher: *const EVP_CIPHER) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_block_size"] + pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_key_length"] + pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_iv_length"] + pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_flags"] + pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_mode"] + pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_BytesToKey"] + pub fn EVP_BytesToKey( + type_: *const EVP_CIPHER, + md: *const EVP_MD, + salt: *const u8, + data: *const u8, + data_len: usize, + count: ::std::os::raw::c_uint, + key: *mut u8, + iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha1"] + pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha1"] + pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha256"] + pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha256"] + pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_copy"] - pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit"] + pub fn EVP_CipherInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + enc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Init"] - pub fn CMAC_Init( - ctx: *mut CMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit"] + pub fn EVP_EncryptInit( + ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, - engine: *mut ENGINE, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Reset"] - pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit"] + pub fn EVP_DecryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Update"] - pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal"] + pub fn EVP_CipherFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Final"] - pub fn CMAC_Final( - ctx: *mut CMAC_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal"] + pub fn EVP_EncryptFinal( + ctx: *mut EVP_CIPHER_CTX, out: *mut u8, - out_len: *mut usize, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct conf_value_st { - pub section: *mut ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_conf_value_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!(conf_value_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(conf_value_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(value) - ) - ); -} -impl Default for conf_value_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)] -pub struct stack_st_CONF_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal"] + pub fn EVP_DecryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -pub type sk_CONF_VALUE_free_func = - ::std::option::Option; -pub type sk_CONF_VALUE_copy_func = - ::std::option::Option *mut CONF_VALUE>; -pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const CONF_VALUE, - arg2: *mut *const CONF_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CONF_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lhash_st_CONF_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Cipher"] + pub fn EVP_Cipher( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_new"] - pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbyname"] + pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_free"] - pub fn NCONF_free(conf: *mut CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_gcm"] + pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load"] - pub fn NCONF_load( - conf: *mut CONF, - filename: *const ::std::os::raw::c_char, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_gcm"] + pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load_bio"] - pub fn NCONF_load_bio( - conf: *mut CONF, - bio: *mut BIO, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ccm"] + pub fn EVP_aes_128_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_section"] - pub fn NCONF_get_section( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - ) -> *const stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ccm"] + pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_string"] - pub fn NCONF_get_string( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ccm"] + pub fn EVP_aes_256_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_load_file"] - pub fn CONF_modules_load_file( - filename: *const ::std::os::raw::c_char, - appname: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ecb"] + pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_free"] - pub fn CONF_modules_free(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cbc"] + pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_config"] - pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ctr"] + pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_no_config"] - pub fn OPENSSL_no_config(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_gcm"] + pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Init"] - pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ofb"] + pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Update"] - pub fn SHA1_Update( - sha: *mut SHA_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_ecb"] + pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Final"] - pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb128"] + pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1"] - pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb"] + pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Transform"] - pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb1"] + pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha_state_st { - pub h: [u32; 5usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb8"] + pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_sha_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(sha_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(num) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb128"] + pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; } -impl Default for sha_state_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_fips_0_13_0_EVP_aes_192_cfb"] + pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Init"] - pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb1"] + pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Update"] - pub fn SHA224_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb8"] + pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Final"] - pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb128"] + pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224"] - pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb"] + pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Init"] - pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb1"] + pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Update"] - pub fn SHA256_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb8"] + pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Final"] - pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_ecb"] + pub fn EVP_bf_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256"] - pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cbc"] + pub fn EVP_bf_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Transform"] - pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cfb"] + pub fn EVP_bf_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_TransformBlocks"] - pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_ecb"] + pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_cbc"] + pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_flags"] + pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_cipher_alias"] + pub fn EVP_add_cipher_alias( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha256_state_st { - pub h: [u32; 8usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], +pub struct evp_cipher_ctx_st { + pub cipher: *const EVP_CIPHER, + pub app_data: *mut ::std::os::raw::c_void, + pub cipher_data: *mut ::std::os::raw::c_void, + pub key_len: ::std::os::raw::c_uint, + pub encrypt: ::std::os::raw::c_int, + pub flags: u32, + pub oiv: [u8; 16usize], + pub iv: [u8; 16usize], + pub buf: [u8; 32usize], + pub buf_len: ::std::os::raw::c_int, pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, + pub final_used: ::std::os::raw::c_int, + pub final_: [u8; 32usize], + pub poisoned: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_sha256_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_cipher_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 112usize, - concat!("Size of: ", stringify!(sha256_state_st)) + ::std::mem::size_of::(), + 152usize, + concat!("Size of: ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha256_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(app_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(cipher_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(data) + stringify!(key_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(num) + stringify!(encrypt) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(md_len) + stringify!(flags) ) ); -} -impl Default for sha256_state_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_fips_0_12_15_SHA384_Init"] - pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Update"] - pub fn SHA384_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Final"] - pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384"] - pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Init"] - pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Update"] - pub fn SHA512_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Final"] - pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512"] - pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Transform"] - pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha512_state_st { - pub h: [u64; 8usize], - pub Nl: u64, - pub Nh: u64, - pub p: [u8; 128usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, -} -#[test] -fn bindgen_test_layout_sha512_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(oiv) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(iv) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 68usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(buf) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, + 100usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(buf_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(final_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(final_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(p) + stringify!(poisoned) ) ); +} +impl Default for evp_cipher_ctx_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 evp_cipher_info_st { + pub cipher: *const EVP_CIPHER, + pub iv: [::std::os::raw::c_uchar; 16usize], +} +#[test] +fn bindgen_test_layout_evp_cipher_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 208usize, + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(num) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 212usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(md_len) + stringify!(iv) ) ); } -impl Default for sha512_state_st { +impl Default for evp_cipher_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12309,327 +12773,223 @@ impl Default for sha512_state_st { } } } +pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Init"] - pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Update"] - pub fn SHA512_256_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Final"] - pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256"] - pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_malloc"] - pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_free"] - pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_realloc"] - pub fn OPENSSL_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanse"] - pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_memcmp"] - pub fn CRYPTO_memcmp( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_hash32"] - pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strhash"] - pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strdup"] - pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strnlen"] - pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_tolower"] - pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strcasecmp"] - pub fn OPENSSL_strcasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strncasecmp"] - pub fn OPENSSL_strncasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - n: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_CMAC"] + pub fn AES_CMAC( + out: *mut u8, + key: *const u8, + key_len: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_snprintf"] - pub fn BIO_snprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_new"] + pub fn CMAC_CTX_new() -> *mut CMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vsnprintf"] - pub fn BIO_vsnprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - args: va_list, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_free"] + pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_vasprintf"] - pub fn OPENSSL_vasprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - args: va_list, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_copy"] + pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_asprintf"] - pub fn OPENSSL_asprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Init"] + pub fn CMAC_Init( + ctx: *mut CMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strndup"] - pub fn OPENSSL_strndup( - str_: *const ::std::os::raw::c_char, - size: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_memdup"] - pub fn OPENSSL_memdup( - data: *const ::std::os::raw::c_void, - size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcpy"] - pub fn OPENSSL_strlcpy( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcat"] - pub fn OPENSSL_strlcat( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc"] - pub fn CRYPTO_malloc( - size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_realloc"] - pub fn CRYPTO_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_free"] - pub fn CRYPTO_free( - ptr: *mut ::std::os::raw::c_void, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Reset"] + pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_clear_free"] - pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Update"] + pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_mem_functions"] - pub fn CRYPTO_set_mem_functions( - m: ::std::option::Option< - unsafe extern "C" fn( - arg1: usize, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - r: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: usize, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - f: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Final"] + pub fn CMAC_Final( + ctx: *mut CMAC_CTX, + out: *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_malloc_init"] - pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_malloc_initialized"] - pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_used"] - pub fn CRYPTO_secure_used() -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_secure_malloc"] - pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_secure_clear_free"] - pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_library_init"] - pub fn CRYPTO_library_init(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_is_confidential_build"] - pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_has_asm"] - pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_get0_cipher_ctx"] + pub fn CMAC_CTX_get0_cipher_ctx(ctx: *mut CMAC_CTX) -> *mut EVP_CIPHER_CTX; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_self_test"] - pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct conf_value_st { + pub section: *mut ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_integrity_test"] - pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_conf_value_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!(conf_value_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(conf_value_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(section) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(value) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_pre_sandbox_init"] - pub fn CRYPTO_pre_sandbox_init(); +impl Default for conf_value_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_fips_0_12_15_FIPS_mode"] - pub fn FIPS_mode() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CONF_VALUE { + _unused: [u8; 0], } -pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; -pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; -pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; -pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; -pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; -pub type fips_counter_t = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_read_counter"] - pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; +pub type sk_CONF_VALUE_free_func = + ::std::option::Option; +pub type sk_CONF_VALUE_copy_func = + ::std::option::Option *mut CONF_VALUE>; +pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CONF_VALUE, + arg2: *const *const CONF_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CONF_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lhash_st_CONF_VALUE { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version"] - pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_new"] + pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay_version"] - pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_free"] + pub fn NCONF_free(conf: *mut CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay"] - pub fn SSLeay() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load"] + pub fn NCONF_load( + conf: *mut CONF, + filename: *const ::std::os::raw::c_char, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version_num"] - pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load_bio"] + pub fn NCONF_load_bio( + conf: *mut CONF, + bio: *mut BIO, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_api_version_num"] - pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_section"] + pub fn NCONF_get_section( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + ) -> *const stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc_init"] - pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_string"] + pub fn NCONF_get_string( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_malloc_init"] - pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_load_file"] + pub fn CONF_modules_load_file( + filename: *const ::std::os::raw::c_char, + appname: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_load_builtin_engines"] - pub fn ENGINE_load_builtin_engines(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_get1_default_config_file"] + pub fn CONF_get1_default_config_file() -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_register_all_complete"] - pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_free"] + pub fn CONF_modules_free(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_load_builtin_modules"] - pub fn OPENSSL_load_builtin_modules(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_unload"] + pub fn CONF_modules_unload(all: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_init_crypto"] - pub fn OPENSSL_init_crypto( - opts: u64, - settings: *const OPENSSL_INIT_SETTINGS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_finish"] + pub fn CONF_modules_finish(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanup"] - pub fn OPENSSL_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_config"] + pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_mode_set"] - pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_no_config"] + pub fn OPENSSL_no_config(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_keypair"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_keypair"] pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519"] pub fn X25519( out_shared_key: *mut u8, private_key: *const u8, @@ -12637,15 +12997,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_public_from_private"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_public_from_private"] pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair"] pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_sign"] pub fn ED25519_sign( out_sig: *mut u8, message: *const u8, @@ -12654,7 +13014,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_verify"] pub fn ED25519_verify( message: *const u8, message_len: usize, @@ -12663,7 +13023,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair_from_seed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair_from_seed"] pub fn ED25519_keypair_from_seed( out_public_key: *mut u8, out_private_key: *mut u8, @@ -12674,7 +13034,7 @@ pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_new"] pub fn SPAKE2_CTX_new( my_role: spake2_role_t, my_name: *const u8, @@ -12684,11 +13044,11 @@ extern "C" { ) -> *mut SPAKE2_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_free"] pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_generate_msg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_generate_msg"] pub fn SPAKE2_generate_msg( ctx: *mut SPAKE2_CTX, out: *mut u8, @@ -12699,7 +13059,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_process_msg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_process_msg"] pub fn SPAKE2_process_msg( ctx: *mut SPAKE2_CTX, out_key: *mut u8, @@ -12772,15 +13132,33 @@ fn bindgen_test_layout_DES_ks() { } pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_key"] - pub fn DES_set_key(key: *const DES_cblock, schedule: *mut DES_key_schedule); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_is_weak_key"] + pub fn DES_is_weak_key(key: *const DES_cblock) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key"] + pub fn DES_set_key( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key_unchecked"] + pub fn DES_set_key_unchecked(key: *const DES_cblock, schedule: *mut DES_key_schedule); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_key_sched"] + pub fn DES_key_sched( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_odd_parity"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_odd_parity"] pub fn DES_set_odd_parity(key: *mut DES_cblock); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb_encrypt"] pub fn DES_ecb_encrypt( in_: *const DES_cblock, out: *mut DES_cblock, @@ -12789,7 +13167,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ncbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ncbc_encrypt"] pub fn DES_ncbc_encrypt( in_: *const u8, out: *mut u8, @@ -12800,7 +13178,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb3_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb3_encrypt"] pub fn DES_ecb3_encrypt( input: *const DES_cblock, output: *mut DES_cblock, @@ -12811,7 +13189,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede3_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede3_cbc_encrypt"] pub fn DES_ede3_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -12824,7 +13202,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede2_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede2_cbc_encrypt"] pub fn DES_ede2_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -12836,61 +13214,47 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new"] + pub fn DH_new() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_new"] - pub fn DH_new() -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new_by_nid"] + pub fn DH_new_by_nid(nid: ::std::os::raw::c_int) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_free"] pub fn DH_free(dh: *mut DH); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_up_ref"] pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_bits"] pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pub_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pub_key"] pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_priv_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_priv_key"] pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_p"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_p"] pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_q"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_q"] pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_g"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_g"] pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_key"] pub fn DH_get0_key( dh: *const DH, out_pub_key: *mut *const BIGNUM, @@ -12898,7 +13262,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_key"] pub fn DH_set0_key( dh: *mut DH, pub_key: *mut BIGNUM, @@ -12906,7 +13270,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pqg"] pub fn DH_get0_pqg( dh: *const DH, out_p: *mut *const BIGNUM, @@ -12915,7 +13279,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_pqg"] pub fn DH_set0_pqg( dh: *mut DH, p: *mut BIGNUM, @@ -12924,40 +13288,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set_length"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set_length"] pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_rfc7919_2048"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_2048"] pub fn DH_get_rfc7919_2048() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_1536"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_4096"] + pub fn DH_get_rfc7919_4096() -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_1536"] pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_2048"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_2048"] pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_3072"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_3072"] pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_4096"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_4096"] pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_6144"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_6144"] pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_8192"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_8192"] pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters_ex"] pub fn DH_generate_parameters_ex( dh: *mut DH, prime_bits: ::std::os::raw::c_int, @@ -12966,11 +13334,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_key"] pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_padded"] pub fn DH_compute_key_padded( out: *mut u8, peers_key: *const BIGNUM, @@ -12978,7 +13346,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key_hashed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_hashed"] pub fn DH_compute_key_hashed( dh: *mut DH, out: *mut u8, @@ -12989,19 +13357,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_size"] pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_num_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_num_bits"] pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_check"] pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check_pub_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_check_pub_key"] pub fn DH_check_pub_key( dh: *const DH, pub_key: *const BIGNUM, @@ -13009,19 +13377,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DHparams_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DHparams_dup"] pub fn DHparams_dup(dh: *const DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_parse_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_parse_parameters"] pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_marshal_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_marshal_parameters"] pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters"] pub fn DH_generate_parameters( prime_len: ::std::os::raw::c_int, generator: ::std::os::raw::c_int, @@ -13036,7 +13404,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DHparams"] pub fn d2i_DHparams( ret: *mut *mut DH, inp: *mut *const ::std::os::raw::c_uchar, @@ -13044,14 +13412,14 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams"] pub fn i2d_DHparams( in_: *const DH, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key"] pub fn DH_compute_key( out: *mut u8, peers_key: *const BIGNUM, @@ -13059,114 +13427,130 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_2048_256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_2048_256"] pub fn DH_get_2048_256() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_clear_flags"] + pub fn DH_clear_flags(dh: *mut DH, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md4"] pub fn EVP_md4() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5"] pub fn EVP_md5() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ripemd160"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ripemd160"] pub fn EVP_ripemd160() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha1"] pub fn EVP_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha224"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha224"] pub fn EVP_sha224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha256"] pub fn EVP_sha256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha384"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha384"] pub fn EVP_sha384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512"] pub fn EVP_sha512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512_256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_224"] + pub fn EVP_sha512_224() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_256"] pub fn EVP_sha512_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_224"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_224"] pub fn EVP_sha3_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_256"] pub fn EVP_sha3_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_384"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_384"] pub fn EVP_sha3_384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_512"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_512"] pub fn EVP_sha3_512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_blake2b256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake128"] + pub fn EVP_shake128() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake256"] + pub fn EVP_shake256() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_blake2b256"] pub fn EVP_blake2b256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5_sha1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5_sha1"] pub fn EVP_md5_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbynid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbynid"] pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyobj"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyobj"] pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_init"] pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_new"] pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanup"] pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanse"] pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_free"] pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy_ex"] pub fn EVP_MD_CTX_copy_ex( out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_move"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_move"] pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_reset"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_reset"] pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit_ex"] pub fn EVP_DigestInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -13174,11 +13558,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit"] pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestUpdate"] pub fn EVP_DigestUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -13186,7 +13570,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal_ex"] pub fn EVP_DigestFinal_ex( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13194,7 +13578,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal"] pub fn EVP_DigestFinal( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13202,86 +13586,74 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Digest"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Digest"] pub fn EVP_Digest( data: *const ::std::os::raw::c_void, len: usize, md_out: *mut u8, - md_out_size: *mut ::std::os::raw::c_uint, + out_size: *mut ::std::os::raw::c_uint, type_: *const EVP_MD, impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_type"] pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_flags"] pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_size"] pub fn EVP_MD_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_block_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_block_size"] pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_md"] pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_size"] pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_block_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_block_size"] pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_type"] pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_digest_algorithm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_digest_algorithm"] pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_digest_algorithm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_digest_algorithm"] pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_enable"] - pub fn EVP_MD_unstable_sha3_enable(enable: bool); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_is_enabled"] - pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy"] pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_digest"] - pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyname"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyname"] pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_create"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_create"] pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_destroy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_destroy"] pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinalXOF"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinalXOF"] pub fn EVP_DigestFinalXOF( ctx: *mut EVP_MD_CTX, out: *mut u8, @@ -13289,19 +13661,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_meth_get_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_meth_get_flags"] pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_flags"] - pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_nid"] pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_pkey_ctx"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_pkey_ctx"] pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); } #[repr(C)] @@ -13314,6 +13682,13 @@ pub struct evp_md_pctx_ops { pub struct env_md_ctx_st { pub digest: *const EVP_MD, pub md_data: *mut ::std::os::raw::c_void, + pub update: ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + count: usize, + ), + >, pub pctx: *mut EVP_PKEY_CTX, pub pctx_ops: *const evp_md_pctx_ops, pub flags: ::std::os::raw::c_ulong, @@ -13324,7 +13699,7 @@ fn bindgen_test_layout_env_md_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 40usize, + 48usize, concat!("Size of: ", stringify!(env_md_ctx_st)) ); assert_eq!( @@ -13353,169 +13728,129 @@ fn bindgen_test_layout_env_md_ctx_st() { ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).update) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx) + stringify!(update) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx_ops) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(flags) + stringify!(pctx) ) ); -} -impl Default for env_md_ctx_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_fips_0_12_15_EVP_md_null"] - pub fn EVP_md_null() -> *const EVP_MD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_new"] - pub fn ENGINE_new() -> *mut ENGINE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_free"] - pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_RSA_method"] - pub fn ENGINE_set_RSA_method( - engine: *mut ENGINE, - method: *const RSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_RSA_method"] - pub fn ENGINE_get_RSA_method(engine: *const ENGINE) -> *mut RSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_ECDSA_method"] - pub fn ENGINE_set_ECDSA_method( - engine: *mut ENGINE, - method: *const ECDSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_ECDSA_method"] - pub fn ENGINE_get_ECDSA_method(engine: *const ENGINE) -> *mut ECDSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_ref"] - pub fn METHOD_ref(method: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_unref"] - pub fn METHOD_unref(method: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct openssl_method_common_st { - pub references: ::std::os::raw::c_int, - pub is_static: ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_openssl_method_common_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!(openssl_method_common_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(openssl_method_common_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(references) + stringify!(pctx_ops) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_static) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(is_static) + stringify!(flags) ) ); } +impl Default for env_md_ctx_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_fips_0_13_0_EVP_MD_unstable_sha3_enable"] + pub fn EVP_MD_unstable_sha3_enable(enable: bool); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_is_enabled"] + pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_flags"] + pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_digest"] + pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md_null"] + pub fn EVP_md_null() -> *const EVP_MD; +} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_new"] pub fn DSA_new() -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_free"] pub fn DSA_free(dsa: *mut DSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_up_ref"] pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print"] + pub fn DSA_print( + bio: *mut BIO, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print_fp"] + pub fn DSA_print_fp( + fp: *mut FILE, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_bits"] pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pub_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pub_key"] pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_priv_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_priv_key"] pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_p"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_p"] pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_q"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_q"] pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_g"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_g"] pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_key"] pub fn DSA_get0_key( dsa: *const DSA, out_pub_key: *mut *const BIGNUM, @@ -13523,7 +13858,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pqg"] pub fn DSA_get0_pqg( dsa: *const DSA, out_p: *mut *const BIGNUM, @@ -13532,7 +13867,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_key"] pub fn DSA_set0_key( dsa: *mut DSA, pub_key: *mut BIGNUM, @@ -13540,7 +13875,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_pqg"] pub fn DSA_set0_pqg( dsa: *mut DSA, p: *mut BIGNUM, @@ -13549,7 +13884,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_parameters_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_parameters_ex"] pub fn DSA_generate_parameters_ex( dsa: *mut DSA, bits: ::std::os::raw::c_uint, @@ -13561,11 +13896,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSAparams_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSAparams_dup"] pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_key"] pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; } #[repr(C)] @@ -13619,28 +13954,28 @@ impl Default for DSA_SIG_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_new"] pub fn DSA_SIG_new() -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_free"] pub fn DSA_SIG_free(sig: *mut DSA_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_get0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_get0"] pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_set0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_set0"] pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_sign"] pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_verify"] pub fn DSA_do_verify( digest: *const u8, digest_len: usize, @@ -13649,7 +13984,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_check_signature"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_check_signature"] pub fn DSA_do_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13659,7 +13994,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_sign"] pub fn DSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13670,7 +14005,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_verify"] pub fn DSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13681,7 +14016,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_check_signature"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_check_signature"] pub fn DSA_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13692,47 +14027,47 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_size"] pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_parse"] pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_marshal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_marshal"] pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_public_key"] pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_public_key"] pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_private_key"] pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_private_key"] pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_parameters"] pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_parameters"] pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_dup_DH"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_dup_DH"] pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_new_index"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_new_index"] pub fn DSA_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -13742,7 +14077,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set_ex_data"] pub fn DSA_set_ex_data( dsa: *mut DSA, idx: ::std::os::raw::c_int, @@ -13750,14 +14085,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_data"] pub fn DSA_get_ex_data( dsa: *const DSA, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_SIG"] pub fn d2i_DSA_SIG( out_sig: *mut *mut DSA_SIG, inp: *mut *const u8, @@ -13765,11 +14100,11 @@ extern "C" { ) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_SIG"] pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPublicKey"] pub fn d2i_DSAPublicKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -13777,11 +14112,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPublicKey"] pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPrivateKey"] pub fn d2i_DSAPrivateKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -13789,11 +14124,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPrivateKey"] pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAparams"] pub fn d2i_DSAparams( out: *mut *mut DSA, inp: *mut *const u8, @@ -13801,154 +14136,9 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAparams"] pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct dsa_st { - pub version: ::std::os::raw::c_long, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub g: *mut BIGNUM, - pub pub_key: *mut BIGNUM, - pub priv_key: *mut BIGNUM, - pub flags: ::std::os::raw::c_int, - pub method_mont_lock: CRYPTO_MUTEX, - pub method_mont_p: *mut BN_MONT_CTX, - pub method_mont_q: *mut BN_MONT_CTX, - pub references: CRYPTO_refcount_t, - pub ex_data: CRYPTO_EX_DATA, -} -#[test] -fn bindgen_test_layout_dsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(dsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(dsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(g)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pub_key) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(pub_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).priv_key) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(priv_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_lock) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_p) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_q) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(ex_data) - ) - ); -} -impl Default for dsa_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(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum point_conversion_form_t { @@ -13957,19 +14147,31 @@ pub enum point_conversion_form_t { POINT_CONVERSION_HYBRID = 6, } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_by_curve_name"] - pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p224"] + pub fn EC_group_p224() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_free"] - pub fn EC_GROUP_free(group: *mut EC_GROUP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p256"] + pub fn EC_group_p256() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p384"] + pub fn EC_group_p384() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p521"] + pub fn EC_group_p521() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_secp256k1"] + pub fn EC_group_secp256k1() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_dup"] - pub fn EC_GROUP_dup(a: *const EC_GROUP) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_by_curve_name"] + pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_cmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_cmp"] pub fn EC_GROUP_cmp( a: *const EC_GROUP, b: *const EC_GROUP, @@ -13977,19 +14179,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_generator"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_generator"] pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_order"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_order"] pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_order_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_order_bits"] pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_cofactor"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_cofactor"] pub fn EC_GROUP_get_cofactor( group: *const EC_GROUP, cofactor: *mut BIGNUM, @@ -13997,7 +14199,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_GFp"] pub fn EC_GROUP_get_curve_GFp( group: *const EC_GROUP, out_p: *mut BIGNUM, @@ -14007,53 +14209,53 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_name"] pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_degree"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_degree"] pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_curve_nid2nist"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nid2nist"] pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_curve_nist2nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nist2nid"] pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_new"] pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_free"] pub fn EC_POINT_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_copy"] pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dup"] pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_to_infinity"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_to_infinity"] pub fn EC_POINT_set_to_infinity( group: *const EC_GROUP, point: *mut EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_at_infinity"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_at_infinity"] pub fn EC_POINT_is_at_infinity( group: *const EC_GROUP, point: *const EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_on_curve"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_on_curve"] pub fn EC_POINT_is_on_curve( group: *const EC_GROUP, point: *const EC_POINT, @@ -14061,7 +14263,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_cmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_cmp"] pub fn EC_POINT_cmp( group: *const EC_GROUP, a: *const EC_POINT, @@ -14070,7 +14272,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates_GFp"] pub fn EC_POINT_get_affine_coordinates_GFp( group: *const EC_GROUP, point: *const EC_POINT, @@ -14080,7 +14282,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates"] pub fn EC_POINT_get_affine_coordinates( group: *const EC_GROUP, point: *const EC_POINT, @@ -14090,7 +14292,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates_GFp"] pub fn EC_POINT_set_affine_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14100,7 +14302,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates"] pub fn EC_POINT_set_affine_coordinates( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14110,7 +14312,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2oct"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2oct"] pub fn EC_POINT_point2oct( group: *const EC_GROUP, point: *const EC_POINT, @@ -14121,7 +14323,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2cbb"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2cbb"] pub fn EC_POINT_point2cbb( out: *mut CBB, group: *const EC_GROUP, @@ -14131,7 +14333,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_oct2point"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_oct2point"] pub fn EC_POINT_oct2point( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14141,7 +14343,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_compressed_coordinates_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_compressed_coordinates_GFp"] pub fn EC_POINT_set_compressed_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14151,7 +14353,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_add"] pub fn EC_POINT_add( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14161,7 +14363,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dbl"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dbl"] pub fn EC_POINT_dbl( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14170,7 +14372,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_invert"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_invert"] pub fn EC_POINT_invert( group: *const EC_GROUP, a: *mut EC_POINT, @@ -14178,7 +14380,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_mul"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_mul"] pub fn EC_POINT_mul( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14189,7 +14391,37 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_curve_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p256_xmd_sha256_sswu"] + pub fn EC_hash_to_curve_p256_xmd_sha256_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p384_xmd_sha384_sswu"] + pub fn EC_hash_to_curve_p384_xmd_sha384_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_free"] + pub fn EC_GROUP_free(group: *mut EC_GROUP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_dup"] + pub fn EC_GROUP_dup(group: *const EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_curve_GFp"] pub fn EC_GROUP_new_curve_GFp( p: *const BIGNUM, a: *const BIGNUM, @@ -14198,7 +14430,7 @@ extern "C" { ) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_generator"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_generator"] pub fn EC_GROUP_set_generator( group: *mut EC_GROUP, generator: *const EC_POINT, @@ -14207,38 +14439,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_order"] - pub fn EC_GROUP_get_order( + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2bn"] + pub fn EC_POINT_point2bn( group: *const EC_GROUP, - order: *mut BIGNUM, + point: *const EC_POINT, + form: point_conversion_form_t, + ret: *mut BIGNUM, ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_asn1_flag"] - pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_asn1_flag"] - pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ec_method_st { - _unused: [u8; 0], -} -pub type EC_METHOD = ec_method_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_method_of"] - pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_METHOD_get_field_type"] - pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_bn2point"] + pub fn EC_POINT_bn2point( + group: *const EC_GROUP, + bn: *const BIGNUM, + point: *mut EC_POINT, + ctx: *mut BN_CTX, + ) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_point_conversion_form"] - pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_order"] + pub fn EC_GROUP_get_order( + group: *const EC_GROUP, + order: *mut BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -14291,92 +14516,173 @@ impl Default for EC_builtin_curve { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_get_builtin_curves"] - pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) - -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_get_builtin_curves"] + pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) + -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_clear_free"] + pub fn EC_POINT_clear_free(point: *mut EC_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_asn1_flag"] + pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_asn1_flag"] + pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_point_conversion_form"] + pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_seed"] + pub fn EC_GROUP_set_seed( + group: *mut EC_GROUP, + p: *const ::std::os::raw::c_uchar, + len: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_seed"] + pub fn EC_GROUP_get0_seed(group: *const EC_GROUP) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_seed_len"] + pub fn EC_GROUP_get_seed_len(group: *const EC_GROUP) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECPKParameters_print"] + pub fn ECPKParameters_print( + bio: *mut BIO, + group: *const EC_GROUP, + offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_method_st { + _unused: [u8; 0], +} +pub type EC_METHOD = ec_method_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_method_of"] + pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_METHOD_get_field_type"] + pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_new"] + pub fn ENGINE_new() -> *mut ENGINE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_free"] + pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_RSA"] + pub fn ENGINE_set_RSA(engine: *mut ENGINE, method: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_clear_free"] - pub fn EC_POINT_clear_free(point: *mut EC_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_RSA"] + pub fn ENGINE_get_RSA(engine: *const ENGINE) -> *const RSA_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_EC"] + pub fn ENGINE_set_EC( + engine: *mut ENGINE, + method: *const EC_KEY_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_EC"] + pub fn ENGINE_get_EC(engine: *const ENGINE) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_cleanup"] + pub fn ENGINE_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new"] pub fn EC_KEY_new() -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_method"] pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_by_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_by_curve_name"] pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_free"] pub fn EC_KEY_free(key: *mut EC_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_dup"] pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_up_ref"] pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_is_opaque"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_is_opaque"] pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_group"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_group"] pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_group"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_group"] pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_private_key"] pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_private_key"] pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_public_key"] pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key"] pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_enc_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_enc_flags"] pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_enc_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_enc_flags"] pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_conv_form"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_conv_form"] pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_conv_form"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_conv_form"] pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_key"] pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_fips"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_fips"] pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key_affine_coordinates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key_affine_coordinates"] pub fn EC_KEY_set_public_key_affine_coordinates( key: *mut EC_KEY, x: *const BIGNUM, @@ -14384,7 +14690,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_key2buf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_key2buf"] pub fn EC_KEY_key2buf( key: *const EC_KEY, form: point_conversion_form_t, @@ -14393,15 +14699,15 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key"] pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key_fips"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key_fips"] pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_derive_from_secret"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_derive_from_secret"] pub fn EC_KEY_derive_from_secret( group: *const EC_GROUP, secret: *const u8, @@ -14409,11 +14715,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_private_key"] pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_private_key"] pub fn EC_KEY_marshal_private_key( cbb: *mut CBB, key: *const EC_KEY, @@ -14421,22 +14727,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_curve_name"] pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_curve_name"] pub fn EC_KEY_marshal_curve_name( cbb: *mut CBB, group: *const EC_GROUP, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_parameters"] pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_new_index"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_ex_new_index"] pub fn EC_KEY_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -14446,7 +14752,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_ex_data"] pub fn EC_KEY_set_ex_data( r: *mut EC_KEY, idx: ::std::os::raw::c_int, @@ -14454,133 +14760,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_ex_data"] pub fn EC_KEY_get_ex_data( r: *const EC_KEY, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_method_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: - ::std::option::Option ::std::os::raw::c_int>, - pub finish: - ::std::option::Option ::std::os::raw::c_int>, - pub group_order_size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - eckey: *mut EC_KEY, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_ecdsa_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).group_order_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(group_order_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for ecdsa_method_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_fips_0_12_15_EC_KEY_set_asn1_flag"] - pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); -} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPrivateKey"] pub fn d2i_ECPrivateKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14588,11 +14775,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPrivateKey"] pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECParameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECParameters"] pub fn d2i_ECParameters( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14600,11 +14787,19 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECParameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECParameters"] pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_o2i_ECPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPKParameters_bio"] + pub fn d2i_ECPKParameters_bio(bio: *mut BIO, out_group: *mut *mut EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPKParameters_bio"] + pub fn i2d_ECPKParameters_bio(bio: *mut BIO, group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_o2i_ECPublicKey"] pub fn o2i_ECPublicKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14612,14 +14807,86 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2o_ECPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2o_ECPublicKey"] pub fn i2o_ECPublicKey( key: *const EC_KEY, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_default_method"] + pub fn EC_KEY_get_default_method() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_OpenSSL"] + pub fn EC_KEY_OpenSSL() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_new"] + pub fn EC_KEY_METHOD_new(eckey_meth: *const EC_KEY_METHOD) -> *mut EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_free"] + pub fn EC_KEY_METHOD_free(eckey_meth: *mut EC_KEY_METHOD); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_method"] + pub fn EC_KEY_set_method(ec: *mut EC_KEY, meth: *const EC_KEY_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_method"] + pub fn EC_KEY_get_method(ec: *const EC_KEY) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_sign_awslc"] + pub fn EC_KEY_METHOD_set_sign_awslc( + meth: *mut EC_KEY_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: ::std::os::raw::c_int, + sig: *mut u8, + siglen: *mut ::std::os::raw::c_uint, + k_inv: *const BIGNUM, + r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> ::std::os::raw::c_int, + >, + sign_sig: ::std::option::Option< + unsafe extern "C" fn( + digest: *const u8, + digest_len: ::std::os::raw::c_int, + in_kinv: *const BIGNUM, + in_r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> *mut ECDSA_SIG, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_init_awslc"] + pub fn EC_KEY_METHOD_set_init_awslc( + meth: *mut EC_KEY_METHOD, + init: ::std::option::Option< + unsafe extern "C" fn(key: *mut EC_KEY) -> ::std::os::raw::c_int, + >, + finish: ::std::option::Option, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_flags"] + pub fn EC_KEY_METHOD_set_flags( + meth: *mut EC_KEY_METHOD, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_asn1_flag"] + pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key"] pub fn ECDH_compute_key( out: *mut ::std::os::raw::c_void, outlen: usize, @@ -14636,7 +14903,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key_fips"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key_fips"] pub fn ECDH_compute_key_fips( out: *mut u8, out_len: usize, @@ -14645,7 +14912,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign"] pub fn ECDSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14656,7 +14923,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_verify"] pub fn ECDSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14667,7 +14934,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_size"] pub fn ECDSA_size(key: *const EC_KEY) -> usize; } #[repr(C)] @@ -14721,23 +14988,23 @@ impl Default for ecdsa_sig_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_new"] pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_free"] pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_r"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_r"] pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_s"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_s"] pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0"] pub fn ECDSA_SIG_get0( sig: *const ECDSA_SIG, out_r: *mut *const BIGNUM, @@ -14745,7 +15012,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_set0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_set0"] pub fn ECDSA_SIG_set0( sig: *mut ECDSA_SIG, r: *mut BIGNUM, @@ -14753,7 +15020,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_sign"] pub fn ECDSA_do_sign( digest: *const u8, digest_len: usize, @@ -14761,7 +15028,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_verify"] pub fn ECDSA_do_verify( digest: *const u8, digest_len: usize, @@ -14770,19 +15037,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_parse"] pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_from_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_from_bytes"] pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_marshal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_marshal"] pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_to_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_to_bytes"] pub fn ECDSA_SIG_to_bytes( out_bytes: *mut *mut u8, out_len: *mut usize, @@ -14790,11 +15057,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_max_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_max_len"] pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( digest: *const u8, digest_len: usize, @@ -14804,7 +15071,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECDSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECDSA_SIG"] pub fn d2i_ECDSA_SIG( out: *mut *mut ECDSA_SIG, inp: *mut *const u8, @@ -14812,89 +15079,89 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECDSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECDSA_SIG"] pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm"] pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_192_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_192_gcm"] pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm"] pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_chacha20_poly1305"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_chacha20_poly1305"] pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_xchacha20_poly1305"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_xchacha20_poly1305"] pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ctr_hmac_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ctr_hmac_sha256"] pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_ctr_hmac_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_ctr_hmac_sha256"] pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_siv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_siv"] pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_siv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_siv"] pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_randnonce"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_randnonce"] pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_randnonce"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_randnonce"] pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth"] pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth_8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth_8"] pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_matter"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_matter"] pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_has_aes_hardware"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_has_aes_hardware"] pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_key_length"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_key_length"] pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_nonce_length"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_nonce_length"] pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_overhead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_overhead"] pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_tag_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_tag_len"] pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; } #[repr(C)] #[derive(Copy, Clone)] pub union evp_aead_ctx_st_state { - pub opaque: [u8; 580usize], + pub opaque: [u8; 564usize], pub alignment: u64, pub ptr: *mut ::std::os::raw::c_void, } @@ -14905,7 +15172,7 @@ fn bindgen_test_layout_evp_aead_ctx_st_state() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 584usize, + 568usize, concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( @@ -14967,7 +15234,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 600usize, + 584usize, concat!("Size of: ", stringify!(evp_aead_ctx_st)) ); assert_eq!( @@ -14997,7 +15264,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, - 592usize, + 576usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15007,7 +15274,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, - 593usize, + 577usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15026,11 +15293,11 @@ impl Default for evp_aead_ctx_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_zero"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_zero"] pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_new"] pub fn EVP_AEAD_CTX_new( aead: *const EVP_AEAD, key: *const u8, @@ -15039,11 +15306,11 @@ extern "C" { ) -> *mut EVP_AEAD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_free"] pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init"] pub fn EVP_AEAD_CTX_init( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15054,11 +15321,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_cleanup"] pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal"] pub fn EVP_AEAD_CTX_seal( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15073,7 +15340,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open"] pub fn EVP_AEAD_CTX_open( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15088,7 +15355,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal_scatter"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal_scatter"] pub fn EVP_AEAD_CTX_seal_scatter( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15106,7 +15373,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open_gather"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open_gather"] pub fn EVP_AEAD_CTX_open_gather( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15121,66 +15388,70 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_aead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_aead"] pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls"] pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls"] pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls"] pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha384_tls"] + pub fn EVP_aead_aes_256_cbc_sha384_tls() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls"] pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_null_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_null_sha1_tls"] pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls12"] pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls12"] pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls13"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls13"] pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls13"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls13"] pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; } pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; pub type evp_aead_direction_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init_with_direction"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init_with_direction"] pub fn EVP_AEAD_CTX_init_with_direction( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15190,169 +15461,368 @@ extern "C" { dir: evp_aead_direction_t, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_get_iv"] - pub fn EVP_AEAD_CTX_get_iv( - ctx: *const EVP_AEAD_CTX, - out_iv: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_get_iv"] + pub fn EVP_AEAD_CTX_get_iv( + ctx: *const EVP_AEAD_CTX, + out_iv: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_tag_len"] + pub fn EVP_AEAD_CTX_tag_len( + ctx: *const EVP_AEAD_CTX, + out_tag_len: *mut usize, + in_len: usize, + extra_in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_get_iv_from_ipv4_nanosecs"] + pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( + ipv4_address: u32, + nanosecs: u64, + out_iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_dup"] + pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cmp"] + pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get0_data"] + pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_length"] + pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2nid"] + pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cbs2nid"] + pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_sn2nid"] + pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_ln2nid"] + pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2nid"] + pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2obj"] + pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get_undef"] + pub fn OBJ_get_undef() -> *const ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2sn"] + pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2ln"] + pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2cbb"] + pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2obj"] + pub fn OBJ_txt2obj( + s: *const ::std::os::raw::c_char, + dont_search_names: ::std::os::raw::c_int, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2txt"] + pub fn OBJ_obj2txt( + out: *mut ::std::os::raw::c_char, + out_len: ::std::os::raw::c_int, + obj: *const ASN1_OBJECT, + always_return_oid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_create"] + pub fn OBJ_create( + oid: *const ::std::os::raw::c_char, + short_name: *const ::std::os::raw::c_char, + long_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_algs"] + pub fn OBJ_find_sigid_algs( + sign_nid: ::std::os::raw::c_int, + out_digest_nid: *mut ::std::os::raw::c_int, + out_pkey_nid: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_by_algs"] + pub fn OBJ_find_sigid_by_algs( + out_sign_nid: *mut ::std::os::raw::c_int, + digest_nid: ::std::os::raw::c_int, + pkey_nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct obj_name_st { + pub type_: ::std::os::raw::c_int, + pub alias: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub data: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_obj_name_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!(obj_name_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(obj_name_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(alias) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(data) + ) + ); +} +impl Default for obj_name_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() + } + } } +pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_tag_len"] - pub fn EVP_AEAD_CTX_tag_len( - ctx: *const EVP_AEAD_CTX, - out_tag_len: *mut usize, - in_len: usize, - extra_in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_NAME_do_all_sorted"] + pub fn OBJ_NAME_do_all_sorted( + type_: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn(arg1: *const OBJ_NAME, arg: *mut ::std::os::raw::c_void), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_get_iv_from_ipv4_nanosecs"] - pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( - ipv4_address: u32, - nanosecs: u64, - out_iv: *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cleanup"] + pub fn OBJ_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new"] pub fn EVP_PKEY_new() -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_free"] pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_up_ref"] pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_is_opaque"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_is_opaque"] pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp"] pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_copy_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_copy_parameters"] pub fn EVP_PKEY_copy_parameters( to: *mut EVP_PKEY, from: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_missing_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_missing_parameters"] pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_size"] pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_bits"] pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_id"] pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_type"] pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get0_name"] + pub fn EVP_MD_get0_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_name"] + pub fn EVP_MD_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_RSA"] pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_RSA"] pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_RSA"] pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_RSA"] pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DSA"] pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DSA"] pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DSA"] pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DSA"] pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_EC_KEY"] pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_EC_KEY"] pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_EC_KEY"] pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_EC_KEY"] pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign"] - pub fn EVP_PKEY_assign( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - key: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DH"] + pub fn EVP_PKEY_set1_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DH"] + pub fn EVP_PKEY_assign_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DH"] + pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DH"] + pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set_type"] pub fn EVP_PKEY_set_type( pkey: *mut EVP_PKEY, type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp_parameters"] pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_public_key"] pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_public_key"] pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_private_key"] pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key"] pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key_v2"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key_v2"] pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_private_key"] pub fn EVP_PKEY_new_raw_private_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15361,7 +15831,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_public_key"] pub fn EVP_PKEY_new_raw_public_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15370,7 +15840,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_private_key"] pub fn EVP_PKEY_get_raw_private_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15378,7 +15848,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_public_key"] pub fn EVP_PKEY_get_raw_public_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15386,7 +15856,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignInit"] pub fn EVP_DigestSignInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15396,7 +15866,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignUpdate"] pub fn EVP_DigestSignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15404,7 +15874,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignFinal"] pub fn EVP_DigestSignFinal( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15412,7 +15882,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSign"] pub fn EVP_DigestSign( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15422,7 +15892,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyInit"] pub fn EVP_DigestVerifyInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15432,7 +15902,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyUpdate"] pub fn EVP_DigestVerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15440,7 +15910,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyFinal"] pub fn EVP_DigestVerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15448,7 +15918,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerify"] pub fn EVP_DigestVerify( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15458,7 +15928,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignInit_ex"] pub fn EVP_SignInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15466,11 +15936,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignInit"] pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignUpdate"] pub fn EVP_SignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15478,7 +15948,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignFinal"] pub fn EVP_SignFinal( ctx: *const EVP_MD_CTX, sig: *mut u8, @@ -15487,7 +15957,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit_ex"] pub fn EVP_VerifyInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15495,11 +15965,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit"] pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyUpdate"] pub fn EVP_VerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15507,7 +15977,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyFinal"] pub fn EVP_VerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15516,7 +15986,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_public"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_public"] pub fn EVP_PKEY_print_public( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15525,7 +15995,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_private"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_private"] pub fn EVP_PKEY_print_private( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15534,7 +16004,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_params"] pub fn EVP_PKEY_print_params( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15543,32 +16013,32 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC"] pub fn PKCS5_PBKDF2_HMAC( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, digest: *const EVP_MD, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC_SHA1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC_SHA1"] pub fn PKCS5_PBKDF2_HMAC_SHA1( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PBE_scrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PBE_scrypt"] pub fn EVP_PBE_scrypt( password: *const ::std::os::raw::c_char, password_len: usize, @@ -15583,31 +16053,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new"] pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new_id"] pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_free"] pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_dup"] pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_pkey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_pkey"] pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign_init"] pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign"] pub fn EVP_PKEY_sign( ctx: *mut EVP_PKEY_CTX, sig: *mut u8, @@ -15617,11 +16087,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_init"] pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify"] pub fn EVP_PKEY_verify( ctx: *mut EVP_PKEY_CTX, sig: *const u8, @@ -15631,11 +16101,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt_init"] pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt"] pub fn EVP_PKEY_encrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15645,11 +16115,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt_init"] pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt"] pub fn EVP_PKEY_decrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15659,11 +16129,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover_init"] pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover"] pub fn EVP_PKEY_verify_recover( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15673,18 +16143,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_init"] pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_set_peer"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_set_peer"] pub fn EVP_PKEY_derive_set_peer( ctx: *mut EVP_PKEY_CTX, peer: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive"] pub fn EVP_PKEY_derive( ctx: *mut EVP_PKEY_CTX, key: *mut u8, @@ -15692,18 +16162,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_keygen_init"] pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_keygen"] pub fn EVP_PKEY_keygen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encapsulate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encapsulate"] pub fn EVP_PKEY_encapsulate( ctx: *mut EVP_PKEY_CTX, ciphertext: *mut u8, @@ -15713,112 +16183,112 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decapsulate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decapsulate"] pub fn EVP_PKEY_decapsulate( ctx: *mut EVP_PKEY_CTX, shared_secret: *mut u8, shared_secret_len: *mut usize, - ciphertext: *mut u8, + ciphertext: *const u8, ciphertext_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen_init"] pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen"] pub fn EVP_PKEY_paramgen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_signature_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_signature_md"] pub fn EVP_PKEY_CTX_set_signature_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_signature_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_signature_md"] pub fn EVP_PKEY_CTX_get_signature_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_padding"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_padding"] pub fn EVP_PKEY_CTX_set_rsa_padding( ctx: *mut EVP_PKEY_CTX, padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_padding"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_padding"] pub fn EVP_PKEY_CTX_get_rsa_padding( ctx: *mut EVP_PKEY_CTX, out_padding: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_saltlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_pss_saltlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, out_salt_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_bits"] pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( ctx: *mut EVP_PKEY_CTX, bits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( ctx: *mut EVP_PKEY_CTX, e: *mut BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_oaep_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_oaep_md"] pub fn EVP_PKEY_CTX_set_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_oaep_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_oaep_md"] pub fn EVP_PKEY_CTX_get_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_mgf1_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_mgf1_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set0_rsa_oaep_label"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, label: *mut u8, @@ -15826,28 +16296,28 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_rsa_oaep_label"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, out_label: *mut *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_kem_set_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_kem_set_params"] pub fn EVP_PKEY_CTX_kem_set_params( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_public_key"] pub fn EVP_PKEY_kem_new_raw_public_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -15855,7 +16325,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_secret_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_secret_key"] pub fn EVP_PKEY_kem_new_raw_secret_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -15863,7 +16333,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_key"] pub fn EVP_PKEY_kem_new_raw_key( nid: ::std::os::raw::c_int, in_public: *const u8, @@ -15873,31 +16343,60 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0"] - pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_check_key"] + pub fn EVP_PKEY_kem_check_key(key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_algorithms"] - pub fn OpenSSL_add_all_algorithms(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dh_pad"] + pub fn EVP_PKEY_CTX_set_dh_pad( + ctx: *mut EVP_PKEY_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_add_all_algorithms_conf"] - pub fn OPENSSL_add_all_algorithms_conf(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get_count"] + pub fn EVP_PKEY_asn1_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_ciphers"] - pub fn OpenSSL_add_all_ciphers(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0"] + pub fn EVP_PKEY_asn1_get0(idx: ::std::os::raw::c_int) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_digests"] - pub fn OpenSSL_add_all_digests(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find"] + pub fn EVP_PKEY_asn1_find( + _pe: *mut *mut ENGINE, + type_: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cleanup"] - pub fn EVP_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find_str"] + pub fn EVP_PKEY_asn1_find_str( + _pe: *mut *mut ENGINE, + name: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0_info"] + pub fn EVP_PKEY_asn1_get0_info( + ppkey_id: *mut ::std::os::raw::c_int, + pkey_base_id: *mut ::std::os::raw::c_int, + ppkey_flags: *mut ::std::os::raw::c_int, + pinfo: *mut *const ::std::os::raw::c_char, + ppem_str: *mut *const ::std::os::raw::c_char, + ameth: *const EVP_PKEY_ASN1_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get_pkey_type"] + pub fn EVP_MD_get_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_do_all_sorted"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_pkey_type"] + pub fn EVP_MD_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_do_all_sorted"] pub fn EVP_CIPHER_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -15911,7 +16410,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_do_all_sorted"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all_sorted"] pub fn EVP_MD_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -15925,15 +16424,29 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all"] + pub fn EVP_MD_do_all( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PrivateKey"] pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PublicKey"] pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PrivateKey"] pub fn d2i_PrivateKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -15942,7 +16455,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AutoPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AutoPrivateKey"] pub fn d2i_AutoPrivateKey( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -15950,7 +16463,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PublicKey"] pub fn d2i_PublicKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -15959,22 +16472,14 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DH"] - pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DH"] - pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_param_enc"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_param_enc"] pub fn EVP_PKEY_CTX_set_ec_param_enc( ctx: *mut EVP_PKEY_CTX, encoding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_tls_encodedpoint"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_tls_encodedpoint"] pub fn EVP_PKEY_set1_tls_encodedpoint( pkey: *mut EVP_PKEY, in_: *const u8, @@ -15982,40 +16487,40 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_tls_encodedpoint"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_tls_encodedpoint"] pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_base_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_base_id"] pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PUBKEY"] pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PUBKEY"] pub fn d2i_PUBKEY( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -16023,11 +16528,11 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSA_PUBKEY"] pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSA_PUBKEY"] pub fn d2i_RSA_PUBKEY( out: *mut *mut RSA, inp: *mut *const u8, @@ -16035,11 +16540,11 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_PUBKEY"] pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_PUBKEY"] pub fn d2i_DSA_PUBKEY( out: *mut *mut DSA, inp: *mut *const u8, @@ -16047,11 +16552,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EC_PUBKEY"] pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EC_PUBKEY"] pub fn d2i_EC_PUBKEY( out: *mut *mut EC_KEY, inp: *mut *const u8, @@ -16059,188 +16564,91 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( - ctx: *mut EVP_PKEY_CTX, - nbits: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign"] + pub fn EVP_PKEY_assign( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, + key: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( - ctx: *mut EVP_PKEY_CTX, - qbits: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_pkey_st { - pub references: CRYPTO_refcount_t, - pub type_: ::std::os::raw::c_int, - pub pkey: evp_pkey_st__bindgen_ty_1, - pub ameth: *const EVP_PKEY_ASN1_METHOD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union evp_pkey_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_void, - pub rsa: *mut RSA, - pub dsa: *mut DSA, - pub dh: *mut DH, - pub ec: *mut EC_KEY, - pub kem_key: *mut KEM_KEY, -} -#[test] -fn bindgen_test_layout_evp_pkey_st__bindgen_ty_1() { - 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!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(rsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dh) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ec) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem_key) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(kem_key) - ) - ); -} -impl Default for evp_pkey_st__bindgen_ty_1 { - 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_fips_0_13_0_EVP_PKEY_new_mac_key"] + pub fn EVP_PKEY_new_mac_key( + type_: ::std::os::raw::c_int, + engine: *mut ENGINE, + mac_key: *const u8, + mac_key_len: usize, + ) -> *mut EVP_PKEY; } -#[test] -fn bindgen_test_layout_evp_pkey_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!(evp_pkey_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ameth) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(ameth) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0"] + pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; } -impl Default for evp_pkey_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_fips_0_13_0_OpenSSL_add_all_algorithms"] + pub fn OpenSSL_add_all_algorithms(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_add_all_algorithms_conf"] + pub fn OPENSSL_add_all_algorithms_conf(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_ciphers"] + pub fn OpenSSL_add_all_ciphers(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_digests"] + pub fn OpenSSL_add_all_digests(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cleanup"] + pub fn EVP_cleanup(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( + ctx: *mut EVP_PKEY_CTX, + nbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( + ctx: *mut EVP_PKEY_CTX, + qbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_ctrl_str"] + pub fn EVP_PKEY_CTX_ctrl_str( + ctx: *mut EVP_PKEY_CTX, + type_: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +pub type EVP_PKEY_gen_cb = + ::std::option::Option ::std::os::raw::c_int>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_cb"] + pub fn EVP_PKEY_CTX_set_cb(ctx: *mut EVP_PKEY_CTX, cb: EVP_PKEY_gen_cb); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_app_data"] + pub fn EVP_PKEY_CTX_set_app_data(ctx: *mut EVP_PKEY_CTX, data: *mut ::std::os::raw::c_void); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_app_data"] + pub fn EVP_PKEY_CTX_get_app_data(ctx: *mut EVP_PKEY_CTX) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_keygen_info"] + pub fn EVP_PKEY_CTX_get_keygen_info( + ctx: *mut EVP_PKEY_CTX, + idx: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF"] pub fn HKDF( out_key: *mut u8, out_len: usize, @@ -16254,7 +16662,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_extract"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_extract"] pub fn HKDF_extract( out_key: *mut u8, out_len: *mut usize, @@ -16266,7 +16674,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_expand"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_expand"] pub fn HKDF_expand( out_key: *mut u8, out_len: usize, @@ -16278,11 +16686,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Init"] pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Update"] pub fn MD5_Update( md5: *mut MD5_CTX, data: *const ::std::os::raw::c_void, @@ -16290,15 +16698,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Final"] pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5"] pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Transform"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Transform"] pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); } #[repr(C)] @@ -16385,7 +16793,7 @@ impl Default for md5_state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC"] pub fn HMAC( evp_md: *const EVP_MD, key: *const ::std::os::raw::c_void, @@ -16397,27 +16805,27 @@ extern "C" { ) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_init"] pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_new"] pub fn HMAC_CTX_new() -> *mut HMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanup"] pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanse"] pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_free"] pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_ex"] pub fn HMAC_Init_ex( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16427,7 +16835,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Update"] pub fn HMAC_Update( ctx: *mut HMAC_CTX, data: *const u8, @@ -16435,7 +16843,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Final"] pub fn HMAC_Final( ctx: *mut HMAC_CTX, out: *mut u8, @@ -16443,23 +16851,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_size"] pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_get_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_get_md"] pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy_ex"] pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_reset"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_reset"] pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_set_precomputed_key_export"] + pub fn HMAC_set_precomputed_key_export(ctx: *mut HMAC_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_get_precomputed_key"] + pub fn HMAC_get_precomputed_key( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_from_precomputed_key"] + pub fn HMAC_Init_from_precomputed_key( + ctx: *mut HMAC_CTX, + precomputed_key: *const u8, + precompute_key_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init"] pub fn HMAC_Init( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16468,7 +16897,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy"] pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } #[repr(C)] @@ -16644,82 +17073,86 @@ impl Default for hmac_ctx_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_x25519_hkdf_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_x25519_hkdf_sha256"] pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_id"] pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_public_key_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_public_key_len"] pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_private_key_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_private_key_len"] pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_enc_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_enc_len"] pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_hkdf_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_hkdf_sha256"] pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_id"] pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_hkdf_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_hkdf_md"] pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_128_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_128_gcm"] pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_256_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_256_gcm"] pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_chacha20_poly1305"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_chacha20_poly1305"] pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_id"] pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_aead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_aead"] pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_zero"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_zero"] pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_cleanup"] pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_new"] pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_free"] pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_copy"] pub fn EVP_HPKE_KEY_copy( dst: *mut EVP_HPKE_KEY, src: *const EVP_HPKE_KEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_move"] + pub fn EVP_HPKE_KEY_move(out: *mut EVP_HPKE_KEY, in_: *mut EVP_HPKE_KEY); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_init"] pub fn EVP_HPKE_KEY_init( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, @@ -16728,18 +17161,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_generate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_generate"] pub fn EVP_HPKE_KEY_generate( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_kem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_kem"] pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_public_key"] pub fn EVP_HPKE_KEY_public_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -16748,7 +17181,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_private_key"] pub fn EVP_HPKE_KEY_private_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -16757,23 +17190,23 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_zero"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_zero"] pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_cleanup"] pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_new"] pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_free"] pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender"] pub fn EVP_HPKE_CTX_setup_sender( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -16789,7 +17222,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -16807,7 +17240,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_recipient"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_recipient"] pub fn EVP_HPKE_CTX_setup_recipient( ctx: *mut EVP_HPKE_CTX, key: *const EVP_HPKE_KEY, @@ -16820,7 +17253,56 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_open"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender"] + pub fn EVP_HPKE_CTX_setup_auth_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_recipient"] + pub fn EVP_HPKE_CTX_setup_auth_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, + peer_public_key: *const u8, + peer_public_key_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_open"] pub fn EVP_HPKE_CTX_open( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -16833,7 +17315,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_seal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_seal"] pub fn EVP_HPKE_CTX_seal( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -16846,7 +17328,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_export"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_export"] pub fn EVP_HPKE_CTX_export( ctx: *const EVP_HPKE_CTX, out: *mut u8, @@ -16856,19 +17338,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_max_overhead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_max_overhead"] pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kem"] pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_aead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_aead"] pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kdf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kdf"] pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; } #[repr(C)] @@ -16889,7 +17371,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 728usize, + 712usize, concat!("Size of: ", stringify!(evp_hpke_ctx_st)) ); assert_eq!( @@ -16939,7 +17421,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, - 624usize, + 608usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -16949,7 +17431,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, - 648usize, + 632usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -16959,7 +17441,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, - 712usize, + 696usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -16969,7 +17451,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, - 720usize, + 704usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17127,7 +17609,7 @@ impl Default for HRSS_public_key { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_generate_key"] pub fn HRSS_generate_key( out_pub: *mut HRSS_public_key, out_priv: *mut HRSS_private_key, @@ -17135,7 +17617,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_encap"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_encap"] pub fn HRSS_encap( out_ciphertext: *mut u8, out_shared_key: *mut u8, @@ -17144,7 +17626,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_decap"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_decap"] pub fn HRSS_decap( out_shared_key: *mut u8, in_priv: *const HRSS_private_key, @@ -17153,22 +17635,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_marshal_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_marshal_public_key"] pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_parse_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_parse_public_key"] pub fn HRSS_parse_public_key( out: *mut HRSS_public_key, in_: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Init"] pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Update"] pub fn MD4_Update( md4: *mut MD4_CTX, data: *const ::std::os::raw::c_void, @@ -17176,15 +17658,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Final"] pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4"] pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Transform"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Transform"] pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); } #[repr(C)] @@ -17261,171 +17743,7 @@ fn bindgen_test_layout_md4_state_st() { ) ); } -impl Default for md4_state_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_fips_0_12_15_OBJ_dup"] - pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cmp"] - pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_get0_data"] - pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_length"] - pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2nid"] - pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cbs2nid"] - pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_sn2nid"] - pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_ln2nid"] - pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2nid"] - pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2obj"] - pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2sn"] - pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2ln"] - pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2cbb"] - pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2obj"] - pub fn OBJ_txt2obj( - s: *const ::std::os::raw::c_char, - dont_search_names: ::std::os::raw::c_int, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2txt"] - pub fn OBJ_obj2txt( - out: *mut ::std::os::raw::c_char, - out_len: ::std::os::raw::c_int, - obj: *const ASN1_OBJECT, - always_return_oid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_create"] - pub fn OBJ_create( - oid: *const ::std::os::raw::c_char, - short_name: *const ::std::os::raw::c_char, - long_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_algs"] - pub fn OBJ_find_sigid_algs( - sign_nid: ::std::os::raw::c_int, - out_digest_nid: *mut ::std::os::raw::c_int, - out_pkey_nid: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_by_algs"] - pub fn OBJ_find_sigid_by_algs( - out_sign_nid: *mut ::std::os::raw::c_int, - digest_nid: ::std::os::raw::c_int, - pkey_nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct obj_name_st { - pub type_: ::std::os::raw::c_int, - pub alias: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub data: *const ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_obj_name_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!(obj_name_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(obj_name_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(alias) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(data) - ) - ); -} -impl Default for obj_name_st { +impl Default for md4_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17434,11 +17752,6 @@ impl Default for obj_name_st { } } } -pub type OBJ_NAME = obj_name_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cleanup"] - pub fn OBJ_cleanup(); -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct stack_st_CRYPTO_BUFFER { @@ -17455,7 +17768,7 @@ pub struct stack_st_X509_CRL { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_raw_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_raw_certificates"] pub fn PKCS7_get_raw_certificates( out_certs: *mut stack_st_CRYPTO_BUFFER, cbs: *mut CBS, @@ -17463,167 +17776,61 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_certificates"] pub fn PKCS7_get_certificates( out_certs: *mut stack_st_X509, cbs: *mut CBS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_raw_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_raw_certificates"] pub fn PKCS7_bundle_raw_certificates( out: *mut CBB, certs: *const stack_st_CRYPTO_BUFFER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_certificates"] pub fn PKCS7_bundle_certificates( out: *mut CBB, certs: *const stack_st_X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_CRLs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_CRLs"] pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_CRLs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_CRLs"] pub fn PKCS7_bundle_CRLs( out: *mut CBB, crls: *const stack_st_X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_certificates"] pub fn PKCS7_get_PEM_certificates( out_certs: *mut stack_st_X509, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_CRLs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_CRLs"] pub fn PKCS7_get_PEM_CRLs( out_crls: *mut stack_st_X509_CRL, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGNED { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGNED() { - 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!(PKCS7_SIGNED)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGNED)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGNED { - 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 PKCS7_SIGN_ENVELOPE { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGN_ENVELOPE() { - 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!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGN_ENVELOPE { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type PKCS7_ENVELOPE = ::std::os::raw::c_void; -pub type PKCS7_DIGEST = ::std::os::raw::c_void; -pub type PKCS7_ENCRYPT = ::std::os::raw::c_void; -pub type PKCS7_SIGNER_INFO = ::std::os::raw::c_void; -#[repr(C)] #[derive(Copy, Clone)] -pub struct PKCS7 { - pub ber_bytes: *mut u8, - pub ber_len: usize, +pub struct pkcs7_st { pub type_: *mut ASN1_OBJECT, - pub d: PKCS7__bindgen_ty_1, + pub d: pkcs7_st__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] -pub union PKCS7__bindgen_ty_1 { +pub union pkcs7_st__bindgen_ty_1 { pub ptr: *mut ::std::os::raw::c_char, pub data: *mut ASN1_OCTET_STRING, pub sign: *mut PKCS7_SIGNED, @@ -17634,25 +17841,26 @@ pub union PKCS7__bindgen_ty_1 { pub other: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_PKCS7__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Size of: ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Alignment of ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(ptr) ) @@ -17662,7 +17870,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(data) ) @@ -17672,7 +17880,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(sign) ) @@ -17682,7 +17890,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(enveloped) ) @@ -17692,7 +17900,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(signed_and_enveloped) ) @@ -17702,7 +17910,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(digest) ) @@ -17712,7 +17920,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(encrypted) ) @@ -17722,13 +17930,13 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(other) ) ); } -impl Default for PKCS7__bindgen_ty_1 { +impl Default for pkcs7_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17738,56 +17946,135 @@ impl Default for PKCS7__bindgen_ty_1 { } } #[test] -fn bindgen_test_layout_PKCS7() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(PKCS7)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(pkcs7_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7)) + concat!("Alignment of ", stringify!(pkcs7_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_bytes) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), "::", - stringify!(ber_bytes) + stringify!(d) ) ); +} +impl Default for pkcs7_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 pkcs7_signed_st { + pub version: *mut ASN1_INTEGER, + pub md_algs: *mut stack_st_X509_ALGOR, + pub contents: *mut PKCS7, + pub cert: *mut stack_st_X509, + pub crl: *mut stack_st_X509_CRL, + pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO, +} +#[test] +fn bindgen_test_layout_pkcs7_signed_st() { + 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!(pkcs7_signed_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_len) as usize - ptr as usize }, + ::std::mem::align_of::(), 8usize, + concat!("Alignment of ", stringify!(pkcs7_signed_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(ber_len) + stringify!(version) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md_algs) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(md_algs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).contents) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(type_) + stringify!(contents) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, 24usize, - concat!("Offset of field: ", stringify!(PKCS7), "::", stringify!(d)) + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signer_info) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(signer_info) + ) ); } -impl Default for PKCS7 { +impl Default for pkcs7_signed_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17797,51 +18084,243 @@ impl Default for PKCS7 { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7"] - pub fn d2i_PKCS7(out: *mut *mut PKCS7, inp: *mut *const u8, len: usize) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_new"] + pub fn PKCS7_new() -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_free"] + pub fn PKCS7_free(a: *mut PKCS7); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7"] + pub fn d2i_PKCS7( + a: *mut *mut PKCS7, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7"] + pub fn i2d_PKCS7( + a: *mut PKCS7, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_it"] + pub static PKCS7_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_new"] + pub fn PKCS7_RECIP_INFO_new() -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_free"] + pub fn PKCS7_RECIP_INFO_free(a: *mut PKCS7_RECIP_INFO); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_RECIP_INFO"] + pub fn d2i_PKCS7_RECIP_INFO( + a: *mut *mut PKCS7_RECIP_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_RECIP_INFO"] + pub fn i2d_PKCS7_RECIP_INFO( + a: *mut PKCS7_RECIP_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_it"] + pub static PKCS7_RECIP_INFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_new"] + pub fn PKCS7_SIGNER_INFO_new() -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_free"] + pub fn PKCS7_SIGNER_INFO_free(a: *mut PKCS7_SIGNER_INFO); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_SIGNER_INFO"] + pub fn d2i_PKCS7_SIGNER_INFO( + a: *mut *mut PKCS7_SIGNER_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_SIGNER_INFO"] + pub fn i2d_PKCS7_SIGNER_INFO( + a: *mut PKCS7_SIGNER_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_it"] + pub static PKCS7_SIGNER_INFO_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_RECIP_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_RECIP_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_RECIP_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_RECIP_INFO) -> *mut PKCS7_RECIP_INFO, +>; +pub type sk_PKCS7_RECIP_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_RECIP_INFO, + arg2: *const *const PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_RECIP_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_RECIP_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_SIGNER_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_SIGNER_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_SIGNER_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_SIGNER_INFO) -> *mut PKCS7_SIGNER_INFO, +>; +pub type sk_PKCS7_SIGNER_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_SIGNER_INFO, + arg2: *const *const PKCS7_SIGNER_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_SIGNER_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_SIGNER_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_dup"] + pub fn PKCS7_dup(p7: *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_bio"] + pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_bio"] + pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signed_attribute"] + pub fn PKCS7_get_signed_attribute( + si: *const PKCS7_SIGNER_INFO, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signer_info"] + pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_set"] + pub fn PKCS7_RECIP_INFO_set( + p7i: *mut PKCS7_RECIP_INFO, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_set"] + pub fn PKCS7_SIGNER_INFO_set( + p7i: *mut PKCS7_SIGNER_INFO, + x509: *mut X509, + pkey: *mut EVP_PKEY, + dgst: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_certificate"] + pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_crl"] + pub fn PKCS7_add_crl(p7: *mut PKCS7, x509: *mut X509_CRL) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_recipient_info"] + pub fn PKCS7_add_recipient_info( + p7: *mut PKCS7, + ri: *mut PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_signer"] + pub fn PKCS7_add_signer(p7: *mut PKCS7, p7i: *mut PKCS7_SIGNER_INFO) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_content_new"] + pub fn PKCS7_content_new(p7: *mut PKCS7, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7_bio"] - pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_cipher"] + pub fn PKCS7_set_cipher(p7: *mut PKCS7, cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7"] - pub fn i2d_PKCS7(p7: *const PKCS7, out: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_content"] + pub fn PKCS7_set_content(p7: *mut PKCS7, p7_data: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7_bio"] - pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_type"] + pub fn PKCS7_set_type(p7: *mut PKCS7, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_get0_alg"] + pub fn PKCS7_RECIP_INFO_get0_alg(ri: *mut PKCS7_RECIP_INFO, penc: *mut *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_free"] - pub fn PKCS7_free(p7: *mut PKCS7); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_get0_algs"] + pub fn PKCS7_SIGNER_INFO_get0_algs( + si: *mut PKCS7_SIGNER_INFO, + pk: *mut *mut EVP_PKEY, + pdig: *mut *mut X509_ALGOR, + psig: *mut *mut X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_data"] pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_digest"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_digest"] pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_encrypted"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_encrypted"] pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_enveloped"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_enveloped"] pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signed"] pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signedAndEnveloped"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signedAndEnveloped"] pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_sign"] pub fn PKCS7_sign( sign_cert: *mut X509, pkey: *mut EVP_PKEY, @@ -17856,8 +18335,8 @@ pub type sk_CRYPTO_BUFFER_copy_func = ::std::option::Option *mut CRYPTO_BUFFER>; pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const CRYPTO_BUFFER, - arg2: *mut *const CRYPTO_BUFFER, + arg1: *const *const CRYPTO_BUFFER, + arg2: *const *const CRYPTO_BUFFER, ) -> ::std::os::raw::c_int, >; pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< @@ -17867,15 +18346,15 @@ pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_new"] pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_free"] pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new"] pub fn CRYPTO_BUFFER_new( data: *const u8, len: usize, @@ -17883,18 +18362,18 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_alloc"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_alloc"] pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_CBS"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_CBS"] pub fn CRYPTO_BUFFER_new_from_CBS( cbs: *const CBS, pool: *mut CRYPTO_BUFFER_POOL, ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_static_data_unsafe"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_static_data_unsafe"] pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( data: *const u8, len: usize, @@ -17902,79 +18381,96 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_free"] pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_up_ref"] pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_data"] pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_len"] pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_init_CBS"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_init_CBS"] pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_public_key"] + pub fn RSA_new_public_key(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key"] + pub fn RSA_new_private_key( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new"] pub fn RSA_new() -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_method"] pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_free"] pub fn RSA_free(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_up_ref"] pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_bits"] pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_n"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_n"] pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_e"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_e"] pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_d"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_d"] pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_p"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_p"] pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_q"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_q"] pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmp1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmp1"] pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmq1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmq1"] pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_iqmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_iqmp"] pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_key"] pub fn RSA_get0_key( rsa: *const RSA, out_n: *mut *const BIGNUM, @@ -17983,11 +18479,11 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_factors"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_factors"] pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_crt_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_crt_params"] pub fn RSA_get0_crt_params( rsa: *const RSA, out_dmp1: *mut *const BIGNUM, @@ -17996,7 +18492,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_key"] pub fn RSA_set0_key( rsa: *mut RSA, n: *mut BIGNUM, @@ -18005,12 +18501,12 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_factors"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_factors"] pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_crt_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_crt_params"] pub fn RSA_set0_crt_params( rsa: *mut RSA, dmp1: *mut BIGNUM, @@ -18019,2550 +18515,2127 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_ex"] - pub fn RSA_generate_key_ex( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - e: *const BIGNUM, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_default_method"] + pub fn RSA_get_default_method() -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_fips"] - pub fn RSA_generate_key_fips( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_new"] + pub fn RSA_meth_new( + name: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_encrypt"] - pub fn RSA_encrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_method"] + pub fn RSA_set_method(rsa: *mut RSA, meth: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_decrypt"] - pub fn RSA_decrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_method"] + pub fn RSA_get_method(rsa: *const RSA) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_encrypt"] - pub fn RSA_public_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_free"] + pub fn RSA_meth_free(meth: *mut RSA_METHOD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_decrypt"] - pub fn RSA_private_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_init"] + pub fn RSA_meth_set_init( + meth: *mut RSA_METHOD, + init: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign"] - pub fn RSA_sign( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_finish"] + pub fn RSA_meth_set_finish( + meth: *mut RSA_METHOD, + finish: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_pss_mgf1"] - pub fn RSA_sign_pss_mgf1( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_dec"] + pub fn RSA_meth_set_priv_dec( + meth: *mut RSA_METHOD, + priv_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_raw"] - pub fn RSA_sign_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_enc"] + pub fn RSA_meth_set_priv_enc( + meth: *mut RSA_METHOD, + priv_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify"] - pub fn RSA_verify( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_pub_dec"] + pub fn RSA_meth_set_pub_dec( + meth: *mut RSA_METHOD, + pub_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_pss_mgf1"] - pub fn RSA_verify_pss_mgf1( - rsa: *mut RSA, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_pub_enc"] + pub fn RSA_meth_set_pub_enc( + meth: *mut RSA_METHOD, + pub_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_raw"] - pub fn RSA_verify_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set0_app_data"] + pub fn RSA_meth_set0_app_data( + meth: *mut RSA_METHOD, + app_data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_encrypt"] - pub fn RSA_private_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_sign"] + pub fn RSA_meth_set_sign( + meth: *mut RSA_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + m: *const ::std::os::raw::c_uchar, + m_length: ::std::os::raw::c_uint, + sigret: *mut ::std::os::raw::c_uchar, + siglen: *mut ::std::os::raw::c_uint, + rsa: *const RSA, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_decrypt"] - pub fn RSA_public_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_ex"] + pub fn RSA_generate_key_ex( rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_size"] - pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_is_opaque"] - pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPublicKey_dup"] - pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPrivateKey_dup"] - pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_key"] - pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_fips"] - pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS_mgf1"] - pub fn RSA_verify_PKCS1_PSS_mgf1( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS_mgf1"] - pub fn RSA_padding_add_PKCS1_PSS_mgf1( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP_mgf1"] - pub fn RSA_padding_add_PKCS1_OAEP_mgf1( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, - md: *const EVP_MD, - mgf1md: *const EVP_MD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_add_pkcs1_prefix"] - pub fn RSA_add_pkcs1_prefix( - out_msg: *mut *mut u8, - out_msg_len: *mut usize, - is_alloced: *mut ::std::os::raw::c_int, - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_public_key"] - pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_key_from_bytes"] - pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_public_key"] - pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_key_to_bytes"] - pub fn RSA_public_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_private_key"] - pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_from_bytes"] - pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_private_key"] - pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_to_bytes"] - pub fn RSA_private_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_new_index"] - pub fn RSA_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, + bits: ::std::os::raw::c_int, + e: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set_ex_data"] - pub fn RSA_set_ex_data( + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_fips"] + pub fn RSA_generate_key_fips( rsa: *mut RSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + bits: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_data"] - pub fn RSA_get_ex_data( - rsa: *const RSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_flags"] - pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_encrypt"] + pub fn RSA_encrypt( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_test_flags"] - pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_decrypt"] + pub fn RSA_decrypt( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_blinding_on"] - pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_encrypt"] + pub fn RSA_public_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key"] - pub fn RSA_generate_key( - bits: ::std::os::raw::c_int, - e: u64, - callback: *mut ::std::os::raw::c_void, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_decrypt"] + pub fn RSA_private_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey"] - pub fn d2i_RSAPublicKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign"] + pub fn RSA_sign( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPublicKey"] - pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign_pss_mgf1"] + pub fn RSA_sign_pss_mgf1( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey"] - pub fn d2i_RSAPrivateKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign_raw"] + pub fn RSA_sign_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPrivateKey"] - pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify"] + pub fn RSA_verify( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS"] - pub fn RSA_padding_add_PKCS1_PSS( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_pss_mgf1"] + pub fn RSA_verify_pss_mgf1( + rsa: *mut RSA, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS"] - pub fn RSA_verify_PKCS1_PSS( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_raw"] + pub fn RSA_verify_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP"] - pub fn RSA_padding_add_PKCS1_OAEP( - to: *mut u8, - to_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_encrypt"] + pub fn RSA_private_encrypt( + flen: usize, from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_print"] - pub fn RSA_print( - bio: *mut BIO, - rsa: *const RSA, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_decrypt"] + pub fn RSA_public_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_pss_params"] - pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_size"] + pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_meth_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: ::std::option::Option ::std::os::raw::c_int>, - pub finish: ::std::option::Option ::std::os::raw::c_int>, - pub size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - type_: ::std::os::raw::c_int, - m: *const u8, - m_length: ::std::os::raw::c_uint, - sigret: *mut u8, - siglen: *mut ::std::os::raw::c_uint, - rsa: *const RSA, - ) -> ::std::os::raw::c_int, - >, - pub sign_raw: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub decrypt: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub private_transform: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out: *mut u8, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_is_opaque"] + pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_meth_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(rsa_meth_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_meth_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign_raw) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign_raw) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).decrypt) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(decrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_transform) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(private_transform) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(flags) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSAPublicKey_dup"] + pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; } -impl Default for rsa_meth_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_fips_0_13_0_RSAPrivateKey_dup"] + pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct bn_blinding_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_check_key"] + pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; } -pub type BN_BLINDING = bn_blinding_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rsa_st { - pub meth: *mut RSA_METHOD, - pub n: *mut BIGNUM, - pub e: *mut BIGNUM, - pub d: *mut BIGNUM, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub dmp1: *mut BIGNUM, - pub dmq1: *mut BIGNUM, - pub iqmp: *mut BIGNUM, - pub pss: *mut RSASSA_PSS_PARAMS, - pub ex_data: CRYPTO_EX_DATA, - pub references: CRYPTO_refcount_t, - pub flags: ::std::os::raw::c_int, - pub lock: CRYPTO_MUTEX, - pub mont_n: *mut BN_MONT_CTX, - pub mont_p: *mut BN_MONT_CTX, - pub mont_q: *mut BN_MONT_CTX, - pub d_fixed: *mut BIGNUM, - pub dmp1_fixed: *mut BIGNUM, - pub dmq1_fixed: *mut BIGNUM, - pub inv_small_mod_large_mont: *mut BIGNUM, - pub num_blindings: usize, - pub blindings: *mut *mut BN_BLINDING, - pub blindings_inuse: *mut ::std::os::raw::c_uchar, - pub blinding_fork_generation: u64, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_check_fips"] + pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 248usize, - concat!("Size of: ", stringify!(rsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).meth) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(meth) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(n)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).e) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(e)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(d)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 32usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 40usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iqmp) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(iqmp) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pss) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(pss) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).lock) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_n) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_n) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_p) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_q) as usize - ptr as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d_fixed) as usize - ptr as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(d_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1_fixed) as usize - ptr as usize }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1_fixed) as usize - ptr as usize }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inv_small_mod_large_mont) as usize - ptr as usize }, - 200usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(inv_small_mod_large_mont) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_blindings) as usize - ptr as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(num_blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings) as usize - ptr as usize }, - 216usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings_inuse) as usize - ptr as usize }, - 224usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings_inuse) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blinding_fork_generation) as usize - ptr as usize }, - 232usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blinding_fork_generation) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS_mgf1"] + pub fn RSA_verify_PKCS1_PSS_mgf1( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl Default for rsa_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_fips_0_13_0_RSA_padding_add_PKCS1_PSS_mgf1"] + pub fn RSA_padding_add_PKCS1_PSS_mgf1( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl rsa_st { - #[inline] - pub fn private_key_frozen(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_private_key_frozen(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - private_key_frozen: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let private_key_frozen: u32 = unsafe { ::std::mem::transmute(private_key_frozen) }; - private_key_frozen as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP_mgf1"] + pub fn RSA_padding_add_PKCS1_OAEP_mgf1( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + md: *const EVP_MD, + mgf1md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -pub type sk_X509_free_func = ::std::option::Option; -pub type sk_X509_copy_func = - ::std::option::Option *mut X509>; -pub type sk_X509_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const X509, arg2: *mut *const X509) -> ::std::os::raw::c_int, ->; -pub type sk_X509_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_it"] - pub static X509_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS1_MGF1"] + pub fn PKCS1_MGF1( + out: *mut u8, + len: usize, + seed: *const u8, + seed_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_add_pkcs1_prefix"] + pub fn RSA_add_pkcs1_prefix( + out_msg: *mut *mut u8, + out_msg_len: *mut usize, + is_alloced: *mut ::std::os::raw::c_int, + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_up_ref"] - pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_parse_public_key"] + pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_chain_up_ref"] - pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_key_from_bytes"] + pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_dup"] - pub fn X509_dup(x509: *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_marshal_public_key"] + pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_free"] - pub fn X509_free(x509: *mut X509); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_key_to_bytes"] + pub fn RSA_public_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509"] - pub fn d2i_X509( - out: *mut *mut X509, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_parse_private_key"] + pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_parse_from_buffer"] - pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_key_from_bytes"] + pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509"] - pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_marshal_private_key"] + pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_version"] - pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_key_to_bytes"] + pub fn RSA_private_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_serialNumber"] - pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_crt"] + pub fn RSA_new_private_key_no_crt( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notBefore"] - pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_e"] + pub fn RSA_new_private_key_no_e(n: *const BIGNUM, d: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notAfter"] - pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_public_key_large_e"] + pub fn RSA_new_public_key_large_e(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_issuer_name"] - pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_large_e"] + pub fn RSA_new_private_key_large_e( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_subject_name"] - pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_ex_new_index"] + pub fn RSA_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_fips_0_12_15_X509_get_X509_PUBKEY"] - pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_ex_data"] + pub fn RSA_set_ex_data( + rsa: *mut RSA, + 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_fips_0_12_15_X509_get_pubkey"] - pub fn X509_get_pubkey(x509: *mut X509) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_ex_data"] + pub fn RSA_get_ex_data( + rsa: *const RSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_pubkey_bitstr"] - pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_flags"] + pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_uids"] - pub fn X509_get0_uids( - x509: *const X509, - out_issuer_uid: *mut *const ASN1_BIT_STRING, - out_subject_uid: *mut *const ASN1_BIT_STRING, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_flags"] + pub fn RSA_set_flags(rsa: *mut RSA, flags: ::std::os::raw::c_int); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_EXTENSION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_test_flags"] + pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_extensions"] - pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_blinding_on"] + pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_count"] - pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_blinding_off_temp_for_accp_compatibility"] + pub fn RSA_blinding_off_temp_for_accp_compatibility(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_NID"] - pub fn X509_get_ext_by_NID( - x: *const X509, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_pkey_ctx_ctrl"] + pub fn RSA_pkey_ctx_ctrl( + ctx: *mut EVP_PKEY_CTX, + optype: ::std::os::raw::c_int, + cmd: ::std::os::raw::c_int, + p1: ::std::os::raw::c_int, + p2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_OBJ"] - pub fn X509_get_ext_by_OBJ( - x: *const X509, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key"] + pub fn RSA_generate_key( + bits: ::std::os::raw::c_int, + e: u64, + callback: *mut ::std::os::raw::c_void, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_critical"] - pub fn X509_get_ext_by_critical( - x: *const X509, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPublicKey"] + pub fn d2i_RSAPublicKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext"] - pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSAPublicKey"] + pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_tbs_sigalg"] - pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPrivateKey"] + pub fn d2i_RSAPrivateKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_signature"] - pub fn X509_get0_signature( - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - x509: *const X509, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSAPrivateKey"] + pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_signature_nid"] - pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_PSS"] + pub fn RSA_padding_add_PKCS1_PSS( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_tbs"] - pub fn i2d_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS"] + pub fn RSA_verify_PKCS1_PSS( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_new"] - pub fn X509_new() -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP"] + pub fn RSA_padding_add_PKCS1_OAEP( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_version"] - pub fn X509_set_version( - x509: *mut X509, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_print"] + pub fn RSA_print( + bio: *mut BIO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_serialNumber"] - pub fn X509_set_serialNumber( - x509: *mut X509, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_print_fp"] + pub fn RSA_print_fp( + fp: *mut FILE, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notBefore"] - pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_pss_params"] + pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notAfter"] - pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_method_no_e"] + pub fn RSA_new_method_no_e(engine: *const ENGINE, n: *const BIGNUM) -> *mut RSA; } +pub type sk_X509_free_func = ::std::option::Option; +pub type sk_X509_copy_func = + ::std::option::Option *mut X509>; +pub type sk_X509_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509, + arg2: *const *const X509, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notBefore"] - pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_it"] + pub static X509_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notAfter"] - pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_up_ref"] + pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_issuer_name"] - pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_chain_up_ref"] + pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_subject_name"] - pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_dup"] + pub fn X509_dup(x509: *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_pubkey"] - pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_free"] + pub fn X509_free(x509: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_delete_ext"] - pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509"] + pub fn d2i_X509( + out: *mut *mut X509, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add_ext"] - pub fn X509_add_ext( - x: *mut X509, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_parse_from_buffer"] + pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign"] - pub fn X509_sign( - x509: *mut X509, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509"] + pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign_ctx"] - pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_version"] + pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_tbs"] - pub fn i2d_re_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_serialNumber"] + pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_algo"] - pub fn X509_set1_signature_algo( - x509: *mut X509, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_notBefore"] + pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_value"] - pub fn X509_set1_signature_value( - x509: *mut X509, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_notAfter"] + pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_AUX"] - pub fn i2d_X509_AUX( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_issuer_name"] + pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_AUX"] - pub fn d2i_X509_AUX( - x509: *mut *mut X509, - inp: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_subject_name"] + pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_set1"] - pub fn X509_alias_set1( - x509: *mut X509, - name: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_X509_PUBKEY"] + pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_keyid_set1"] - pub fn X509_keyid_set1( - x509: *mut X509, - id: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_pubkey"] + pub fn X509_get0_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_get0"] - pub fn X509_alias_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_pubkey"] + pub fn X509_get_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_keyid_get0"] - pub fn X509_keyid_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_pubkey_bitstr"] + pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; } -pub type sk_X509_CRL_free_func = ::std::option::Option; -pub type sk_X509_CRL_copy_func = - ::std::option::Option *mut X509_CRL>; -pub type sk_X509_CRL_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_CRL, - arg2: *mut *const X509_CRL, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_CRL_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_CRL, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_it"] - pub static X509_CRL_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_check_private_key"] + pub fn X509_check_private_key( + x509: *const X509, + pkey: *const EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_up_ref"] - pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_uids"] + pub fn X509_get0_uids( + x509: *const X509, + out_issuer_uid: *mut *const ASN1_BIT_STRING, + out_subject_uid: *mut *const ASN1_BIT_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_dup"] - pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_extension_flags"] + pub fn X509_get_extension_flags(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_free"] - pub fn X509_CRL_free(crl: *mut X509_CRL); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_pathlen"] + pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_CRL"] - pub fn d2i_X509_CRL( - out: *mut *mut X509_CRL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_key_usage"] + pub fn X509_get_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_CRL"] - pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_extended_key_usage"] + pub fn X509_get_extended_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_version"] - pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_subject_key_id"] + pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_lastUpdate"] - pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_key_id"] + pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_NAME { + _unused: [u8; 0], } +pub type sk_GENERAL_NAME_free_func = + ::std::option::Option; +pub type sk_GENERAL_NAME_copy_func = + ::std::option::Option *mut GENERAL_NAME>; +pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_NAME, + arg2: *const *const GENERAL_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type GENERAL_NAMES = stack_st_GENERAL_NAME; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_nextUpdate"] - pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_issuer"] + pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_issuer"] - pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_serial"] + pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_REVOKED { +pub struct stack_st_X509_EXTENSION { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_REVOKED"] - pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_extensions"] - pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_extensions"] + pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_count"] - pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_count"] + pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_NID"] - pub fn X509_CRL_get_ext_by_NID( - x: *const X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_NID"] + pub fn X509_get_ext_by_NID( + x: *const X509, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_OBJ"] - pub fn X509_CRL_get_ext_by_OBJ( - x: *const X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_OBJ"] + pub fn X509_get_ext_by_OBJ( + x: *const X509, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_critical"] - pub fn X509_CRL_get_ext_by_critical( - x: *const X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_critical"] + pub fn X509_get_ext_by_critical( + x: *const X509, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext"] - pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext"] + pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_signature"] - pub fn X509_CRL_get0_signature( - crl: *const X509_CRL, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_d2i"] + pub fn X509_get_ext_d2i( + x509: *const X509, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_signature_nid"] - pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_tbs_sigalg"] + pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_CRL_tbs"] - pub fn i2d_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_signature_info"] + pub fn X509_get_signature_info( + x509: *mut X509, + digest_nid: *mut ::std::os::raw::c_int, + pubkey_nid: *mut ::std::os::raw::c_int, + sec_bits: *mut ::std::os::raw::c_int, + flags: *mut u32, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_new"] - pub fn X509_CRL_new() -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_signature"] + pub fn X509_get0_signature( + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + x509: *const X509, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_version"] - pub fn X509_CRL_set_version( - crl: *mut X509_CRL, - version: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_signature_nid"] + pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_issuer_name"] - pub fn X509_CRL_set_issuer_name( - crl: *mut X509_CRL, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_tbs"] + pub fn i2d_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_lastUpdate"] - pub fn X509_CRL_set1_lastUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify"] + pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_nextUpdate"] - pub fn X509_CRL_set1_nextUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_email"] + pub fn X509_get1_email(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_delete_ext"] - pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) - -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_ocsp"] + pub fn X509_get1_ocsp(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add_ext"] - pub fn X509_CRL_add_ext( - x: *mut X509_CRL, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_email_free"] + pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign"] - pub fn X509_CRL_sign( - crl: *mut X509_CRL, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_new"] + pub fn X509_new() -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign_ctx"] - pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_version"] + pub fn X509_set_version( + x509: *mut X509, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_CRL_tbs"] - pub fn i2d_re_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_serialNumber"] + pub fn X509_set_serialNumber( + x509: *mut X509, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_signature_algo"] - pub fn X509_CRL_set1_signature_algo( - crl: *mut X509_CRL, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notBefore"] + pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_signature_value"] - pub fn X509_CRL_set1_signature_value( - crl: *mut X509_CRL, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notAfter"] + pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_it"] - pub static X509_REQ_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notBefore"] + pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_dup"] - pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notAfter"] + pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_free"] - pub fn X509_REQ_free(req: *mut X509_REQ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_issuer_name"] + pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REQ"] - pub fn d2i_X509_REQ( - out: *mut *mut X509_REQ, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_subject_name"] + pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REQ"] - pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_pubkey"] + pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_version"] - pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_delete_ext"] + pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_subject_name"] - pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add_ext"] + pub fn X509_add_ext( + x: *mut X509, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_pubkey"] - pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_ext_i2d"] + pub fn X509_add1_ext_i2d( + x: *mut X509, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get0_signature"] - pub fn X509_REQ_get0_signature( - req: *const X509_REQ, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign"] + pub fn X509_sign( + x509: *mut X509, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_signature_nid"] - pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign_ctx"] + pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_new"] - pub fn X509_REQ_new() -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_tbs"] + pub fn i2d_re_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_version"] - pub fn X509_REQ_set_version( - req: *mut X509_REQ, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_algo"] + pub fn X509_set1_signature_algo( + x509: *mut X509, + algo: *const X509_ALGOR, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_subject_name"] - pub fn X509_REQ_set_subject_name( - req: *mut X509_REQ, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_value"] + pub fn X509_set1_signature_value( + x509: *mut X509, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_pubkey"] - pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_AUX"] + pub fn i2d_X509_AUX(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign"] - pub fn X509_REQ_sign( - req: *mut X509_REQ, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_AUX"] + pub fn d2i_X509_AUX( + x509: *mut *mut X509, + inp: *mut *const u8, + length: ::std::os::raw::c_long, + ) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_set1"] + pub fn X509_alias_set1( + x509: *mut X509, + name: *const u8, + len: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign_ctx"] - pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_set1"] + pub fn X509_keyid_set1( + x509: *mut X509, + id: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_REQ_tbs"] - pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_get0"] + pub fn X509_alias_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_algo"] - pub fn X509_REQ_set1_signature_algo( - req: *mut X509_REQ, - algo: *const X509_ALGOR, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_get0"] + pub fn X509_keyid_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_trust_object"] + pub fn X509_add1_trust_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_value"] - pub fn X509_REQ_set1_signature_value( - req: *mut X509_REQ, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_reject_object"] + pub fn X509_add1_reject_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME_ENTRY { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_trust_clear"] + pub fn X509_trust_clear(x509: *mut X509); } -pub type sk_X509_NAME_ENTRY_free_func = - ::std::option::Option; -pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, ->; -pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_reject_clear"] + pub fn X509_reject_clear(x509: *mut X509); +} +pub type sk_X509_CRL_free_func = ::std::option::Option; +pub type sk_X509_CRL_copy_func = + ::std::option::Option *mut X509_CRL>; +pub type sk_X509_CRL_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME_ENTRY, - arg2: *mut *const X509_NAME_ENTRY, + arg1: *const *const X509_CRL, + arg2: *const *const X509_CRL, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< +pub type sk_X509_CRL_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME_ENTRY, + arg1: *mut X509_CRL, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME { +pub struct stack_st_X509_REVOKED { _unused: [u8; 0], } -pub type sk_X509_NAME_free_func = ::std::option::Option; -pub type sk_X509_NAME_copy_func = - ::std::option::Option *mut X509_NAME>; -pub type sk_X509_NAME_cmp_func = ::std::option::Option< +pub type sk_X509_REVOKED_free_func = + ::std::option::Option; +pub type sk_X509_REVOKED_copy_func = + ::std::option::Option *mut X509_REVOKED>; +pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME, - arg2: *mut *const X509_NAME, + arg1: *const *const X509_REVOKED, + arg2: *const *const X509_REVOKED, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_delete_if_func = ::std::option::Option< +pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME, + arg1: *mut X509_REVOKED, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_it"] - pub static X509_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_it"] + pub static X509_CRL_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_new"] - pub fn X509_NAME_new() -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_up_ref"] + pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_free"] - pub fn X509_NAME_free(name: *mut X509_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_dup"] + pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME"] - pub fn d2i_X509_NAME( - out: *mut *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_free"] + pub fn X509_CRL_free(crl: *mut X509_CRL); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_CRL"] + pub fn d2i_X509_CRL( + out: *mut *mut X509_CRL, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_NAME; + ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME"] - pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_CRL"] + pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_dup"] - pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_version"] + pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get0_der"] - pub fn X509_NAME_get0_der( - name: *mut X509_NAME, - out_der: *mut *const u8, - out_der_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_lastUpdate"] + pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_set"] - pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_nextUpdate"] + pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_entry_count"] - pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_issuer"] + pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_NID"] - pub fn X509_NAME_get_index_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_by_serial"] + pub fn X509_CRL_get0_by_serial( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_OBJ"] - pub fn X509_NAME_get_index_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_by_cert"] + pub fn X509_CRL_get0_by_cert( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + x509: *mut X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_entry"] - pub fn X509_NAME_get_entry( - name: *const X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_REVOKED"] + pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_delete_entry"] - pub fn X509_NAME_delete_entry( - name: *mut X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_extensions"] + pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry"] - pub fn X509_NAME_add_entry( - name: *mut X509_NAME, - entry: *const X509_NAME_ENTRY, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_count"] + pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_OBJ"] - pub fn X509_NAME_add_entry_by_OBJ( - name: *mut X509_NAME, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_NID"] + pub fn X509_CRL_get_ext_by_NID( + x: *const X509_CRL, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_NID"] - pub fn X509_NAME_add_entry_by_NID( - name: *mut X509_NAME, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_OBJ"] + pub fn X509_CRL_get_ext_by_OBJ( + x: *const X509_CRL, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_txt"] - pub fn X509_NAME_add_entry_by_txt( - name: *mut X509_NAME, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_critical"] + pub fn X509_CRL_get_ext_by_critical( + x: *const X509_CRL, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_it"] - pub static X509_NAME_ENTRY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext"] + pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_new"] - pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_d2i"] + pub fn X509_CRL_get_ext_d2i( + crl: *const X509_CRL, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_free"] - pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_signature"] + pub fn X509_CRL_get0_signature( + crl: *const X509_CRL, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME_ENTRY"] - pub fn d2i_X509_NAME_ENTRY( - out: *mut *mut X509_NAME_ENTRY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_signature_nid"] + pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME_ENTRY"] - pub fn i2d_X509_NAME_ENTRY( - in_: *const X509_NAME_ENTRY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_CRL_tbs"] + pub fn i2d_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_dup"] - pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_verify"] + pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_object"] - pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_new"] + pub fn X509_CRL_new() -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_object"] - pub fn X509_NAME_ENTRY_set_object( - entry: *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set_version"] + pub fn X509_CRL_set_version( + crl: *mut X509_CRL, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_data"] - pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set_issuer_name"] + pub fn X509_CRL_set_issuer_name( + crl: *mut X509_CRL, + name: *mut X509_NAME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_data"] - pub fn X509_NAME_ENTRY_set_data( - entry: *mut X509_NAME_ENTRY, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_lastUpdate"] + pub fn X509_CRL_set1_lastUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set"] - pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_nextUpdate"] + pub fn X509_CRL_set1_nextUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_OBJ"] - pub fn X509_NAME_ENTRY_create_by_OBJ( - out: *mut *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add0_revoked"] + pub fn X509_CRL_add0_revoked( + crl: *mut X509_CRL, + rev: *mut X509_REVOKED, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_NID"] - pub fn X509_NAME_ENTRY_create_by_NID( - out: *mut *mut X509_NAME_ENTRY, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_sort"] + pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_txt"] - pub fn X509_NAME_ENTRY_create_by_txt( - out: *mut *mut X509_NAME_ENTRY, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_delete_ext"] + pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) + -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_it"] - pub static X509_EXTENSION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add_ext"] + pub fn X509_CRL_add_ext( + x: *mut X509_CRL, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_new"] - pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add1_ext_i2d"] + pub fn X509_CRL_add1_ext_i2d( + x: *mut X509_CRL, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_free"] - pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_sign"] + pub fn X509_CRL_sign( + crl: *mut X509_CRL, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSION"] - pub fn d2i_X509_EXTENSION( - out: *mut *mut X509_EXTENSION, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_sign_ctx"] + pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSION"] - pub fn i2d_X509_EXTENSION( - alg: *const X509_EXTENSION, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_CRL_tbs"] + pub fn i2d_re_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_dup"] - pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_algo"] + pub fn X509_CRL_set1_signature_algo( + crl: *mut X509_CRL, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_NID"] - pub fn X509_EXTENSION_create_by_NID( - ex: *mut *mut X509_EXTENSION, - nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_value"] + pub fn X509_CRL_set1_signature_value( + crl: *mut X509_CRL, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_OBJ"] - pub fn X509_EXTENSION_create_by_OBJ( - ex: *mut *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_http_nbio"] + pub fn X509_CRL_http_nbio( + rctx: *mut OCSP_REQ_CTX, + pcrl: *mut *mut X509_CRL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_it"] + pub static X509_REVOKED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_new"] + pub fn X509_REVOKED_new() -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_object"] - pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_free"] + pub fn X509_REVOKED_free(rev: *mut X509_REVOKED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_data"] - pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REVOKED"] + pub fn d2i_X509_REVOKED( + out: *mut *mut X509_REVOKED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_critical"] - pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REVOKED"] + pub fn i2d_X509_REVOKED(alg: *const X509_REVOKED, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_object"] - pub fn X509_EXTENSION_set_object( - ex: *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_dup"] + pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_critical"] - pub fn X509_EXTENSION_set_critical( - ex: *mut X509_EXTENSION, - crit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_serialNumber"] + pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_data"] - pub fn X509_EXTENSION_set_data( - ex: *mut X509_EXTENSION, - data: *const ASN1_OCTET_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_serialNumber"] + pub fn X509_REVOKED_set_serialNumber( + revoked: *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } -pub type sk_X509_EXTENSION_free_func = - ::std::option::Option; -pub type sk_X509_EXTENSION_copy_func = - ::std::option::Option *mut X509_EXTENSION>; -pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_EXTENSION, - arg2: *mut *const X509_EXTENSION, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_EXTENSION, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSIONS_it"] - pub static X509_EXTENSIONS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_revocationDate"] + pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSIONS"] - pub fn d2i_X509_EXTENSIONS( - out: *mut *mut X509_EXTENSIONS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSIONS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_revocationDate"] + pub fn X509_REVOKED_set_revocationDate( + revoked: *mut X509_REVOKED, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSIONS"] - pub fn i2d_X509_EXTENSIONS( - alg: *const X509_EXTENSIONS, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_extensions"] + pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_count"] - pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_count"] + pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_NID"] - pub fn X509v3_get_ext_by_NID( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_NID"] + pub fn X509_REVOKED_get_ext_by_NID( + x: *const X509_REVOKED, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_OBJ"] - pub fn X509v3_get_ext_by_OBJ( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_OBJ"] + pub fn X509_REVOKED_get_ext_by_OBJ( + x: *const X509_REVOKED, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_critical"] - pub fn X509v3_get_ext_by_critical( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_critical"] + pub fn X509_REVOKED_get_ext_by_critical( + x: *const X509_REVOKED, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext"] - pub fn X509v3_get_ext( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext"] + pub fn X509_REVOKED_get_ext( + x: *const X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_delete_ext"] - pub fn X509v3_delete_ext( - x: *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_delete_ext"] + pub fn X509_REVOKED_delete_ext( + x: *mut X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_add_ext"] - pub fn X509v3_add_ext( - x: *mut *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add_ext"] + pub fn X509_REVOKED_add_ext( + x: *mut X509_REVOKED, ex: *const X509_EXTENSION, loc: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_EXTENSION; + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ALGOR { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_d2i"] + pub fn X509_REVOKED_get_ext_d2i( + revoked: *const X509_REVOKED, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -pub type sk_X509_ALGOR_free_func = - ::std::option::Option; -pub type sk_X509_ALGOR_copy_func = - ::std::option::Option *mut X509_ALGOR>; -pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ALGOR, - arg2: *mut *const X509_ALGOR, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ALGOR, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_it"] - pub static X509_ALGOR_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add1_ext_i2d"] + pub fn X509_REVOKED_add1_ext_i2d( + x: *mut X509_REVOKED, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_new"] - pub fn X509_ALGOR_new() -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_it"] + pub static X509_REQ_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_dup"] - pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_dup"] + pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_free"] - pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_free"] + pub fn X509_REQ_free(req: *mut X509_REQ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ALGOR"] - pub fn d2i_X509_ALGOR( - out: *mut *mut X509_ALGOR, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REQ"] + pub fn d2i_X509_REQ( + out: *mut *mut X509_REQ, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_ALGOR; + ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ALGOR"] - pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REQ"] + pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set0"] - pub fn X509_ALGOR_set0( - alg: *mut X509_ALGOR, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_version"] + pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_get0"] - pub fn X509_ALGOR_get0( - out_obj: *mut *const ASN1_OBJECT, - out_param_type: *mut ::std::os::raw::c_int, - out_param_value: *mut *const ::std::os::raw::c_void, - alg: *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_subject_name"] + pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set_md"] - pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_pubkey"] + pub fn X509_REQ_get0_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_cmp"] - pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_pubkey"] + pub fn X509_REQ_get_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_check_private_key"] + pub fn X509_REQ_check_private_key( + req: *const X509_REQ, + pkey: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_count"] + pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr"] + pub fn X509_REQ_get_attr( + req: *const X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_by_NID"] + pub fn X509_REQ_get_attr_by_NID( + req: *const X509_REQ, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_attr_by_OBJ"] + pub fn X509_REQ_get_attr_by_OBJ( + req: *const X509_REQ, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_extension_nid"] + pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_extensions"] + pub fn X509_REQ_get_extensions(req: *const X509_REQ) -> *mut stack_st_X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_signature"] + pub fn X509_REQ_get0_signature( + req: *const X509_REQ, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_signature_nid"] + pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_verify"] + pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get1_email"] + pub fn X509_REQ_get1_email(req: *const X509_REQ) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_new"] + pub fn X509_REQ_new() -> *mut X509_REQ; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_version"] + pub fn X509_REQ_set_version( + req: *mut X509_REQ, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_subject_name"] + pub fn X509_REQ_set_subject_name( + req: *mut X509_REQ, + name: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_pubkey"] + pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_delete_attr"] + pub fn X509_REQ_delete_attr( + req: *mut X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr"] + pub fn X509_REQ_add1_attr( + req: *mut X509_REQ, + attr: *const X509_ATTRIBUTE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_OBJ"] + pub fn X509_REQ_add1_attr_by_OBJ( + req: *mut X509_REQ, + obj: *const ASN1_OBJECT, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_NID"] + pub fn X509_REQ_add1_attr_by_NID( + req: *mut X509_REQ, + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_txt"] + pub fn X509_REQ_add1_attr_by_txt( + req: *mut X509_REQ, + attrname: *const ::std::os::raw::c_char, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_add_extensions_nid"] + pub fn X509_REQ_add_extensions_nid( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add_extensions"] + pub fn X509_REQ_add_extensions( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_sign"] + pub fn X509_REQ_sign( + req: *mut X509_REQ, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_sign_ctx"] + pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_re_X509_REQ_tbs"] + pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set1_signature_algo"] + pub fn X509_REQ_set1_signature_algo( + req: *mut X509_REQ, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_set1_signature_value"] + pub fn X509_REQ_set1_signature_value( + req: *mut X509_REQ, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME_ENTRY { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; +pub type sk_X509_NAME_ENTRY_free_func = + ::std::option::Option; +pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +>; +pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME_ENTRY, + arg2: *const *const X509_NAME_ENTRY, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME_ENTRY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME { + _unused: [u8; 0], } +pub type sk_X509_NAME_free_func = ::std::option::Option; +pub type sk_X509_NAME_copy_func = + ::std::option::Option *mut X509_NAME>; +pub type sk_X509_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME, + arg2: *const *const X509_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_it"] + pub static X509_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_new"] + pub fn X509_NAME_new() -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_free"] + pub fn X509_NAME_free(name: *mut X509_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_NAME"] + pub fn d2i_X509_NAME( + out: *mut *mut X509_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_NAME"] + pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_dup"] + pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_cmp"] + pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get0_der"] + pub fn X509_NAME_get0_der( + name: *mut X509_NAME, + out_der: *mut *const u8, + out_der_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_set"] + pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_entry_count"] + pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get_index_by_NID"] + pub fn X509_NAME_get_index_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_index_by_OBJ"] + pub fn X509_NAME_get_index_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_entry"] + pub fn X509_NAME_get_entry( + name: *const X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_delete_entry"] + pub fn X509_NAME_delete_entry( + name: *mut X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry"] + pub fn X509_NAME_add_entry( + name: *mut X509_NAME, + entry: *const X509_NAME_ENTRY, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry_by_OBJ"] + pub fn X509_NAME_add_entry_by_OBJ( + name: *mut X509_NAME, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_NID"] + pub fn X509_NAME_add_entry_by_NID( + name: *mut X509_NAME, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_txt"] + pub fn X509_NAME_add_entry_by_txt( + name: *mut X509_NAME, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_it"] + pub static X509_NAME_ENTRY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_new"] + pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_free"] + pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_NAME_ENTRY"] + pub fn d2i_X509_NAME_ENTRY( + out: *mut *mut X509_NAME_ENTRY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_NAME_ENTRY"] + pub fn i2d_X509_NAME_ENTRY( + in_: *const X509_NAME_ENTRY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_dup"] + pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_object"] + pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set_object"] + pub fn X509_NAME_ENTRY_set_object( + entry: *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_get_data"] + pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_data"] + pub fn X509_NAME_ENTRY_set_data( + entry: *mut X509_NAME_ENTRY, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set"] + pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_OBJ"] + pub fn X509_NAME_ENTRY_create_by_OBJ( + out: *mut *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_NID"] + pub fn X509_NAME_ENTRY_create_by_NID( + out: *mut *mut X509_NAME_ENTRY, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_txt"] + pub fn X509_NAME_ENTRY_create_by_txt( + out: *mut *mut X509_NAME_ENTRY, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_it"] + pub static X509_PUBKEY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_new"] + pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_free"] + pub fn X509_PUBKEY_free(key: *mut X509_PUBKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_PUBKEY"] + pub fn d2i_X509_PUBKEY( + out: *mut *mut X509_PUBKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_PUBKEY"] + pub fn i2d_X509_PUBKEY(key: *const X509_PUBKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set"] + pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0"] + pub fn X509_PUBKEY_get0(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get"] + pub fn X509_PUBKEY_get(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set0_param"] + pub fn X509_PUBKEY_set0_param( + pub_: *mut X509_PUBKEY, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + key: *mut u8, + key_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_param"] + pub fn X509_PUBKEY_get0_param( + out_obj: *mut *mut ASN1_OBJECT, + out_key: *mut *const u8, + out_key_len: *mut ::std::os::raw::c_int, + out_alg: *mut *mut X509_ALGOR, + pub_: *mut X509_PUBKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_public_key"] + pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_it"] + pub static X509_EXTENSION_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_new"] + pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_free"] + pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSION"] + pub fn d2i_X509_EXTENSION( + out: *mut *mut X509_EXTENSION, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_EXTENSION"] + pub fn i2d_X509_EXTENSION( + ex: *const X509_EXTENSION, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_dup"] + pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_NID"] + pub fn X509_EXTENSION_create_by_NID( + ex: *mut *mut X509_EXTENSION, + nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_OBJ"] + pub fn X509_EXTENSION_create_by_OBJ( + ex: *mut *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_object"] + pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_data"] + pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_critical"] + pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_object"] + pub fn X509_EXTENSION_set_object( + ex: *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_critical"] + pub fn X509_EXTENSION_set_critical( + ex: *mut X509_EXTENSION, + crit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_data"] + pub fn X509_EXTENSION_set_data( + ex: *mut X509_EXTENSION, + data: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } +pub type sk_X509_EXTENSION_free_func = + ::std::option::Option; +pub type sk_X509_EXTENSION_copy_func = + ::std::option::Option *mut X509_EXTENSION>; +pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_EXTENSION, + arg2: *const *const X509_EXTENSION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_EXTENSION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSIONS_it"] + pub static X509_EXTENSIONS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSIONS"] + pub fn d2i_X509_EXTENSIONS( + out: *mut *mut X509_EXTENSIONS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSIONS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_EXTENSIONS"] + pub fn i2d_X509_EXTENSIONS( + alg: *const X509_EXTENSIONS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_count"] + pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_NID"] + pub fn X509v3_get_ext_by_NID( + x: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_OBJ"] + pub fn X509v3_get_ext_by_OBJ( + x: *const stack_st_X509_EXTENSION, obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_critical"] + pub fn X509v3_get_ext_by_critical( + x: *const stack_st_X509_EXTENSION, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::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, -} -#[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) - ) - ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ATTRIBUTE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext"] + pub fn X509v3_get_ext( + x: *const stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -pub type sk_X509_ATTRIBUTE_free_func = - ::std::option::Option; -pub type sk_X509_ATTRIBUTE_copy_func = - ::std::option::Option *mut X509_ATTRIBUTE>; -pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ATTRIBUTE, - arg2: *mut *const X509_ATTRIBUTE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ATTRIBUTE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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_fips_0_13_0_X509v3_delete_ext"] + pub fn X509v3_delete_ext( + x: *mut stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAME { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_add_ext"] + pub fn X509v3_add_ext( + x: *mut *mut stack_st_X509_EXTENSION, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut stack_st_X509_EXTENSION; } #[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: *mut x509_trust_st, - 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, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct otherName_st { + pub type_id: *mut ASN1_OBJECT, + pub value: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_otherName_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)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(otherName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) + concat!("Alignment of ", stringify!(otherName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_id) 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!(otherName_st), "::", - stringify!(flags) + stringify!(type_id) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) 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!(otherName_st), "::", - stringify!(arg2) + stringify!(value) ) ); } -impl Default for x509_trust_st { +impl Default for otherName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20571,156 +20644,49 @@ impl Default for x509_trust_st { } } } -#[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: *mut *const X509_TRUST, - arg2: *mut *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, ->; -pub type sk_X509_REVOKED_free_func = - ::std::option::Option; -pub type sk_X509_REVOKED_copy_func = - ::std::option::Option *mut X509_REVOKED>; -pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_REVOKED, - arg2: *mut *const X509_REVOKED, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_REVOKED, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAMES { - _unused: [u8; 0], -} +pub type OTHERNAME = otherName_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub version: ::std::os::raw::c_int, - pub enc_algor: *mut X509_ALGOR, - pub enc_pkey: *mut ASN1_OCTET_STRING, - pub dec_pkey: *mut EVP_PKEY, - pub key_length: ::std::os::raw::c_int, - pub key_data: *mut ::std::os::raw::c_char, - pub key_free: ::std::os::raw::c_int, - pub cipher: EVP_CIPHER_INFO, +pub struct EDIPartyName_st { + pub nameAssigner: *mut ASN1_STRING, + pub partyName: *mut ASN1_STRING, } #[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_EDIPartyName_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(private_key_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(EDIPartyName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(private_key_st)) + concat!("Alignment of ", stringify!(EDIPartyName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(version) + stringify!(nameAssigner) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_algor) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_length) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_data) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_free) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(cipher) + stringify!(partyName) ) ); } -impl Default for private_key_st { +impl Default for EDIPartyName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20729,1307 +20695,1066 @@ impl Default for private_key_st { } } } +pub type EDIPARTYNAME = EDIPartyName_st; #[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, +#[derive(Copy, Clone)] +pub struct GENERAL_NAME_st { + pub type_: ::std::os::raw::c_int, + pub d: GENERAL_NAME_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union GENERAL_NAME_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub otherName: *mut OTHERNAME, + pub rfc822Name: *mut ASN1_IA5STRING, + pub dNSName: *mut ASN1_IA5STRING, + pub x400Address: *mut ASN1_STRING, + pub directoryName: *mut X509_NAME, + pub ediPartyName: *mut EDIPARTYNAME, + pub uniformResourceIdentifier: *mut ASN1_IA5STRING, + pub iPAddress: *mut ASN1_OCTET_STRING, + pub registeredID: *mut ASN1_OBJECT, + pub ip: *mut ASN1_OCTET_STRING, + pub dirn: *mut X509_NAME, + pub ia5: *mut ASN1_IA5STRING, + pub rid: *mut ASN1_OBJECT, } #[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_GENERAL_NAME_st__bindgen_ty_1() { + 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)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) + concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x509) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(crl) + stringify!(otherName) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x_pkey) + stringify!(rfc822Name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_cipher) + stringify!(dNSName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_len) + stringify!(x400Address) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_data) + stringify!(directoryName) ) ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], -} -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: *mut *const X509_INFO, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).ediPartyName) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(pubkey) + stringify!(ediPartyName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(challenge) + stringify!(uniformResourceIdentifier) ) ); -} -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() - } - } -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(spkac) + stringify!(iPAddress) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(sig_algor) + stringify!(registeredID) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(signature) + stringify!(ip) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dirn) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ia5) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rid) ) ); } -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_fips_0_12_15_X509_get_pathlen"] - pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_verify"] - pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_verify"] - pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_verify"] - pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *mut NETSCAPE_SPKI) -> *mut EVP_PKEY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_ATTRIBUTE_dup"] - pub fn X509_ATTRIBUTE_dup(xa: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_dup"] - pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_st__bindgen_ty_1 { + 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_fips_0_12_15_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_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_fips_0_12_15_X509_PUBKEY_new"] - pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_new"] + pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_free"] - pub fn X509_PUBKEY_free(a: *mut X509_PUBKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_free"] + pub fn GENERAL_NAME_free(gen: *mut GENERAL_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_PUBKEY"] - pub fn d2i_X509_PUBKEY( - a: *mut *mut X509_PUBKEY, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAME"] + pub fn d2i_GENERAL_NAME( + out: *mut *mut GENERAL_NAME, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_PUBKEY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_PUBKEY"] - pub fn i2d_X509_PUBKEY( - a: *const X509_PUBKEY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_it"] - pub static X509_PUBKEY_it: ASN1_ITEM; + ) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_set"] - pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAME"] + pub fn i2d_GENERAL_NAME(in_: *mut GENERAL_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get"] - pub fn X509_PUBKEY_get(key: *mut X509_PUBKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_dup"] + pub fn GENERAL_NAME_dup(gen: *mut GENERAL_NAME) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_new"] + pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_free"] - pub fn X509_SIG_free(a: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_free"] + pub fn GENERAL_NAMES_free(gens: *mut GENERAL_NAMES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - a: *mut *mut X509_SIG, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAMES"] + pub fn d2i_GENERAL_NAMES( + out: *mut *mut GENERAL_NAMES, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_SIG"] - pub fn i2d_X509_SIG( - a: *const X509_SIG, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + ) -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_new"] - pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAMES"] + pub fn i2d_GENERAL_NAMES(in_: *mut GENERAL_NAMES, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_free"] - pub fn X509_ATTRIBUTE_free(a: *mut X509_ATTRIBUTE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_new"] + pub fn OTHERNAME_new() -> *mut OTHERNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ATTRIBUTE"] - pub fn d2i_X509_ATTRIBUTE( - a: *mut *mut X509_ATTRIBUTE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_free"] + pub fn OTHERNAME_free(name: *mut OTHERNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ATTRIBUTE"] - pub fn i2d_X509_ATTRIBUTE( - a: *const X509_ATTRIBUTE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_new"] + pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_it"] - pub static X509_ATTRIBUTE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_free"] + pub fn EDIPARTYNAME_free(name: *mut EDIPARTYNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create"] - pub fn X509_ATTRIBUTE_create( - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_set0_value"] + pub fn GENERAL_NAME_set0_value( + gen: *mut GENERAL_NAME, + type_: ::std::os::raw::c_int, value: *mut ::std::os::raw::c_void, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_trust_object"] - pub fn X509_add1_trust_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_reject_object"] - pub fn X509_add1_reject_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_trust_clear"] - pub fn X509_trust_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_reject_clear"] - pub fn X509_reject_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_REVOKED_new"] - pub fn X509_REVOKED_new() -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_free"] - pub fn X509_REVOKED_free(a: *mut X509_REVOKED); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REVOKED"] - pub fn d2i_X509_REVOKED( - a: *mut *mut X509_REVOKED, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REVOKED"] - pub fn i2d_X509_REVOKED( - a: *const X509_REVOKED, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_it"] - pub static X509_REVOKED_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_value"] + pub fn GENERAL_NAME_get0_value( + gen: *const GENERAL_NAME, + out_type: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add0_revoked"] - pub fn X509_CRL_add0_revoked( - crl: *mut X509_CRL, - rev: *mut X509_REVOKED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_set0_othername"] + pub fn GENERAL_NAME_set0_othername( + gen: *mut GENERAL_NAME, + oid: *mut ASN1_OBJECT, + value: *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_serial"] - pub fn X509_CRL_get0_by_serial( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - serial: *mut ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_otherName"] + pub fn GENERAL_NAME_get0_otherName( + gen: *const GENERAL_NAME, + out_oid: *mut *mut ASN1_OBJECT, + out_value: *mut *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_cert"] - pub fn X509_CRL_get0_by_cert( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - x: *mut X509, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ALGOR { + _unused: [u8; 0], } +pub type sk_X509_ALGOR_free_func = + ::std::option::Option; +pub type sk_X509_ALGOR_copy_func = + ::std::option::Option *mut X509_ALGOR>; +pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ALGOR, + arg2: *const *const X509_ALGOR, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ALGOR, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_new"] - pub fn X509_PKEY_new() -> *mut X509_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_it"] + pub static X509_ALGOR_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_free"] - pub fn X509_PKEY_free(a: *mut X509_PKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_new"] + pub fn X509_ALGOR_new() -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_dup"] + pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(a: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_free"] + pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - a: *mut *mut NETSCAPE_SPKI, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ALGOR"] + pub fn d2i_X509_ALGOR( + out: *mut *mut X509_ALGOR, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - a: *const NETSCAPE_SPKI, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(a: *mut NETSCAPE_SPKAC); + ) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - a: *mut *mut NETSCAPE_SPKAC, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ALGOR"] + pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - a: *const NETSCAPE_SPKAC, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_set0"] + pub fn X509_ALGOR_set0( + alg: *mut X509_ALGOR, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_new"] - pub fn X509_INFO_new() -> *mut X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_free"] - pub fn X509_INFO_free(a: *mut X509_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - a: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_get0"] + pub fn X509_ALGOR_get0( + out_obj: *mut *const ASN1_OBJECT, + out_param_type: *mut ::std::os::raw::c_int, + out_param_value: *mut *const ::std::os::raw::c_void, + alg: *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_set_md"] + pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_cmp"] + pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ATTRIBUTE { + _unused: [u8; 0], } +pub type sk_X509_ATTRIBUTE_free_func = + ::std::option::Option; +pub type sk_X509_ATTRIBUTE_copy_func = + ::std::option::Option *mut X509_ATTRIBUTE>; +pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ATTRIBUTE, + arg2: *const *const X509_ATTRIBUTE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ATTRIBUTE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_it"] + pub static X509_ATTRIBUTE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_new"] + pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_extension_nid"] - pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_dup"] + pub fn X509_ATTRIBUTE_dup(attr: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_extensions"] - pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_free"] + pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions_nid"] - pub fn X509_REQ_add_extensions_nid( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ATTRIBUTE"] + pub fn d2i_X509_ATTRIBUTE( + out: *mut *mut X509_ATTRIBUTE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions"] - pub fn X509_REQ_add_extensions( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ATTRIBUTE"] + pub fn i2d_X509_ATTRIBUTE( + alg: *const X509_ATTRIBUTE, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_count"] - pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create"] + pub fn X509_ATTRIBUTE_create( + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_NID"] - pub fn X509_REQ_get_attr_by_NID( - req: *const X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_NID"] + pub fn X509_ATTRIBUTE_create_by_NID( + attr: *mut *mut X509_ATTRIBUTE, nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_OBJ"] - pub fn X509_REQ_get_attr_by_OBJ( - req: *const X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_OBJ"] + pub fn X509_ATTRIBUTE_create_by_OBJ( + attr: *mut *mut X509_ATTRIBUTE, obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr"] - pub fn X509_REQ_get_attr( - req: *const X509_REQ, - loc: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_delete_attr"] - pub fn X509_REQ_delete_attr( - req: *mut X509_REQ, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_txt"] + pub fn X509_ATTRIBUTE_create_by_txt( + attr: *mut *mut X509_ATTRIBUTE, + attrname: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr"] - pub fn X509_REQ_add1_attr( - req: *mut X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_object"] + pub fn X509_ATTRIBUTE_set1_object( attr: *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_OBJ"] - pub fn X509_REQ_add1_attr_by_OBJ( - req: *mut X509_REQ, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_data"] + pub fn X509_ATTRIBUTE_set1_data( + attr: *mut X509_ATTRIBUTE, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, + data: *const ::std::os::raw::c_void, len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_NID"] - pub fn X509_REQ_add1_attr_by_NID( - req: *mut X509_REQ, - nid: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_data"] + pub fn X509_ATTRIBUTE_get0_data( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + unused: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_txt"] - pub fn X509_REQ_add1_attr_by_txt( - req: *mut X509_REQ, - attrname: *const ::std::os::raw::c_char, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_count"] + pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sort"] - pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_object"] + pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_serialNumber"] - pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_type"] + pub fn X509_ATTRIBUTE_get0_type( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_set_serialNumber"] - pub fn X509_REVOKED_set_serialNumber( - revoked: *mut X509_REVOKED, - serial: *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_revocationDate"] - pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_set_revocationDate"] - pub fn X509_REVOKED_set_revocationDate( - revoked: *mut X509_REVOKED, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_extensions"] - pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_diff"] - pub fn X509_CRL_diff( - base: *mut X509_CRL, - newer: *mut X509_CRL, - skey: *mut EVP_PKEY, - md: *const EVP_MD, - flags: ::std::os::raw::c_uint, - ) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_check_private_key"] - pub fn X509_REQ_check_private_key( - x509: *mut X509_REQ, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_check_private_key"] - pub fn X509_check_private_key(x509: *mut X509, pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_cmp"] - pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash"] - pub fn X509_NAME_hash(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - bp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_print_fp"] - pub fn X509_print_fp(bp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(bp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(bp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_get_ext_d2i"] - pub fn X509_get_ext_d2i( - x509: *const X509, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_add1_ext_i2d"] - pub fn X509_add1_ext_i2d( - x: *mut X509, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_get_ext_d2i"] - pub fn X509_CRL_get_ext_d2i( - crl: *const X509_CRL, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_add1_ext_i2d"] - pub fn X509_CRL_add1_ext_i2d( - x: *mut X509_CRL, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_count"] - pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_NID"] - pub fn X509_REVOKED_get_ext_by_NID( - x: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_OBJ"] - pub fn X509_REVOKED_get_ext_by_OBJ( - x: *const X509_REVOKED, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_critical"] - pub fn X509_REVOKED_get_ext_by_critical( - x: *const X509_REVOKED, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext"] - pub fn X509_REVOKED_get_ext( - x: *const X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_delete_ext"] - pub fn X509_REVOKED_delete_ext( - x: *mut X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_add_ext"] - pub fn X509_REVOKED_add_ext( - x: *mut X509_REVOKED, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_d2i"] - pub fn X509_REVOKED_get_ext_d2i( - revoked: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_add1_ext_i2d"] - pub fn X509_REVOKED_add1_ext_i2d( - x: *mut X509_REVOKED, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_count"] - pub fn X509at_get_attr_count(x: *const stack_st_X509_ATTRIBUTE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_by_NID"] - pub fn X509at_get_attr_by_NID( - x: *const stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_by_OBJ"] - pub fn X509at_get_attr_by_OBJ( - sk: *const stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr"] - pub fn X509at_get_attr( - x: *const stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_delete_attr"] - pub fn X509at_delete_attr( - x: *mut stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr"] - pub fn X509at_add1_attr( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attr: *mut X509_ATTRIBUTE, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_OBJ"] - pub fn X509at_add1_attr_by_OBJ( - x: *mut *mut stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_NID"] - pub fn X509at_add1_attr_by_NID( - x: *mut *mut stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_txt"] - pub fn X509at_add1_attr_by_txt( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_NID"] - pub fn X509_ATTRIBUTE_create_by_NID( - attr: *mut *mut X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_OBJ"] - pub fn X509_ATTRIBUTE_create_by_OBJ( - attr: *mut *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_txt"] - pub fn X509_ATTRIBUTE_create_by_txt( - attr: *mut *mut X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_object"] - pub fn X509_ATTRIBUTE_set1_object( - attr: *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_data"] - pub fn X509_ATTRIBUTE_set1_data( - attr: *mut X509_ATTRIBUTE, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_data"] - pub fn X509_ATTRIBUTE_get0_data( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - unused: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_count"] - pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_object"] - pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_type"] - pub fn X509_ATTRIBUTE_get0_type( - attr: *mut X509_ATTRIBUTE, - 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) + ) + ); +} +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_fips_0_12_15_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(a: *mut PKCS8_PRIV_KEY_INFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - a: *mut *mut PKCS8_PRIV_KEY_INFO, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_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 PKCS8_PRIV_KEY_INFO; + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - a: *const PKCS8_PRIV_KEY_INFO, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_set0_param"] - pub fn X509_PUBKEY_set0_param( - pub_: *mut X509_PUBKEY, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - key: *mut u8, - key_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_param"] - pub fn X509_PUBKEY_get0_param( - out_obj: *mut *mut ASN1_OBJECT, - out_key: *mut *const u8, - out_key_len: *mut ::std::os::raw::c_int, - out_alg: *mut *mut X509_ALGOR, - pub_: *mut X509_PUBKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_public_key"] - pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::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_fips_0_12_15_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *mut X509_TRUST; +#[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) + ) + ); +} +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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_add"] - pub fn X509_TRUST_add( - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_cleanup"] - pub fn X509_TRUST_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -22091,1435 +21816,967 @@ fn bindgen_test_layout_rsa_pss_params_st() { "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) - ) - ); -} -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_fips_0_12_15_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(a: *mut RSA_PSS_PARAMS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - a: *mut *mut RSA_PSS_PARAMS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - a: *const RSA_PSS_PARAMS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_LOOKUP { - _unused: [u8; 0], -} -pub type sk_X509_LOOKUP_free_func = - ::std::option::Option; -pub type sk_X509_LOOKUP_copy_func = - ::std::option::Option *mut X509_LOOKUP>; -pub type sk_X509_LOOKUP_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_LOOKUP, - arg2: *mut *const X509_LOOKUP, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_LOOKUP_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_LOOKUP, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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: *mut *const X509_OBJECT, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_VERIFY_PARAM { - _unused: [u8; 0], -} -pub type sk_X509_VERIFY_PARAM_free_func = - ::std::option::Option; -pub type sk_X509_VERIFY_PARAM_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_VERIFY_PARAM) -> *mut X509_VERIFY_PARAM, ->; -pub type sk_X509_VERIFY_PARAM_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_VERIFY_PARAM, - arg2: *mut *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_VERIFY_PARAM_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_VERIFY_PARAM, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -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, ->; -pub type X509_STORE_CTX_verify_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_get_issuer_fn = ::std::option::Option< - unsafe extern "C" fn( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_issued_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - x: *mut X509, - issuer: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_revocation_fn = - ::std::option::Option ::std::os::raw::c_int>; -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, ->; -pub type X509_STORE_CTX_cert_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_policy_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_lookup_certs_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509, ->; -pub type X509_STORE_CTX_lookup_crls_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509_CRL, ->; -pub type X509_STORE_CTX_cleanup_fn = - ::std::option::Option ::std::os::raw::c_int>; + 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) + ) + ); +} +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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_idx_by_subject"] - pub fn X509_OBJECT_idx_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_OBJECT_retrieve_by_subject"] - pub fn X509_OBJECT_retrieve_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_retrieve_match"] - pub fn X509_OBJECT_retrieve_match( - h: *mut stack_st_X509_OBJECT, - x: *mut X509_OBJECT, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_up_ref_count"] - pub fn X509_OBJECT_up_ref_count(a: *mut X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_free_contents"] - pub fn X509_OBJECT_free_contents(a: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(a: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(a: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_free"] - pub fn X509_STORE_free(v: *mut X509_STORE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get1_certs"] - pub fn X509_STORE_get1_certs(st: *mut X509_STORE_CTX, nm: *mut X509_NAME) - -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get1_crls"] - pub fn X509_STORE_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - ctx: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - ctx: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - ctx: *mut X509_STORE, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - ctx: *mut X509_STORE, - pm: *mut X509_VERIFY_PARAM, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(ctx: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify"] - pub fn X509_STORE_set_verify(ctx: *mut X509_STORE, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - pub fn X509_STORE_CTX_set_verify(ctx: *mut X509_STORE_CTX, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify"] - pub fn X509_STORE_get_verify(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(ctx: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify_cb"] - pub fn X509_STORE_get_verify_cb(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_cb; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_issuer"] - pub fn X509_STORE_set_get_issuer( - ctx: *mut X509_STORE, - get_issuer: X509_STORE_CTX_get_issuer_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_issuer"] - pub fn X509_STORE_get_get_issuer(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_issuer_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_issued"] - pub fn X509_STORE_set_check_issued( - ctx: *mut X509_STORE, - check_issued: X509_STORE_CTX_check_issued_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_issued"] - pub fn X509_STORE_get_check_issued(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_issued_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_revocation"] - pub fn X509_STORE_set_check_revocation( - ctx: *mut X509_STORE, - check_revocation: X509_STORE_CTX_check_revocation_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_revocation"] - pub fn X509_STORE_get_check_revocation( - ctx: *mut X509_STORE, - ) -> X509_STORE_CTX_check_revocation_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(ctx: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_crl"] - pub fn X509_STORE_get_get_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(ctx: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_crl"] - pub fn X509_STORE_get_check_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cert_crl"] - pub fn X509_STORE_set_cert_crl(ctx: *mut X509_STORE, cert_crl: X509_STORE_CTX_cert_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cert_crl"] - pub fn X509_STORE_get_cert_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_cert_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_certs"] - pub fn X509_STORE_set_lookup_certs( - ctx: *mut X509_STORE, - lookup_certs: X509_STORE_CTX_lookup_certs_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_certs"] - pub fn X509_STORE_get_lookup_certs(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_certs_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_crls"] - pub fn X509_STORE_set_lookup_crls( - ctx: *mut X509_STORE, - lookup_crls: X509_STORE_CTX_lookup_crls_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_crls"] - pub fn X509_STORE_get_lookup_crls(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_crls_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cleanup"] - pub fn X509_STORE_set_cleanup(ctx: *mut X509_STORE, cleanup: X509_STORE_CTX_cleanup_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cleanup"] - pub fn X509_STORE_get_cleanup(ctx: *mut X509_STORE) -> X509_STORE_CTX_cleanup_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_zero"] - pub fn X509_STORE_CTX_zero(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *mut X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_get_by_subject"] - pub fn X509_STORE_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_new"] - pub fn X509_LOOKUP_new(method: *mut X509_LOOKUP_METHOD) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_init"] - pub fn X509_LOOKUP_init(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_by_subject"] - pub fn X509_LOOKUP_by_subject( - ctx: *mut X509_LOOKUP, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_shutdown"] - pub fn X509_LOOKUP_shutdown(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_name"] - pub fn X509_VERIFY_PARAM_set1_name( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_peername"] - pub fn X509_VERIFY_PARAM_get0_peername( - arg1: *mut X509_VERIFY_PARAM, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_13_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_name"] - pub fn X509_VERIFY_PARAM_get0_name( - param: *const X509_VERIFY_PARAM, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add0_table"] - pub fn X509_VERIFY_PARAM_add0_table(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get_count"] - pub fn X509_VERIFY_PARAM_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0"] - pub fn X509_VERIFY_PARAM_get0(id: ::std::os::raw::c_int) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_lookup"] - pub fn X509_VERIFY_PARAM_lookup( - name: *const ::std::os::raw::c_char, - ) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_table_cleanup"] - pub fn X509_VERIFY_PARAM_table_cleanup(); -} -pub type X509V3_EXT_METHOD = v3_ext_method; -pub type X509V3_EXT_NEW = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type X509V3_EXT_FREE = - ::std::option::Option; -pub type X509V3_EXT_D2I = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2D = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_I2V = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE, ->; -pub type X509V3_EXT_V2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - values: *const stack_st_CONF_VALUE, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2S = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; -pub type X509V3_EXT_S2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2R = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - out: *mut BIO, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_R2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_method { - pub ext_nid: ::std::os::raw::c_int, - pub ext_flags: ::std::os::raw::c_int, - pub it: *const ASN1_ITEM_st, - pub ext_new: X509V3_EXT_NEW, - pub ext_free: X509V3_EXT_FREE, - pub d2i: X509V3_EXT_D2I, - pub i2d: X509V3_EXT_I2D, - pub i2s: X509V3_EXT_I2S, - pub s2i: X509V3_EXT_S2I, - pub i2v: X509V3_EXT_I2V, - pub v2i: X509V3_EXT_V2I, - pub i2r: X509V3_EXT_I2R, - pub r2i: X509V3_EXT_R2I, - pub usr_data: *mut ::std::os::raw::c_void, -} -#[test] -fn bindgen_test_layout_v3_ext_method() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 104usize, - concat!("Size of: ", stringify!(v3_ext_method)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_method)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_nid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(it) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2s) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(s2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2v) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(v2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(r2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(usr_data) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -impl Default for v3_ext_method { - 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_fips_0_13_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; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509V3_EXT_METHOD { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -pub type sk_X509V3_EXT_METHOD_free_func = - ::std::option::Option; -pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, ->; -pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509V3_EXT_METHOD, - arg2: *mut *const X509V3_EXT_METHOD, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509V3_EXT_METHOD, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct BASIC_CONSTRAINTS_st { - pub ca: ::std::os::raw::c_int, - pub pathlen: *mut ASN1_INTEGER, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_BASIC_CONSTRAINTS_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!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(ca) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(pathlen) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } -impl Default for BASIC_CONSTRAINTS_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_fips_0_13_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct otherName_st { - pub type_id: *mut ASN1_OBJECT, - pub value: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_otherName_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!(otherName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(otherName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(type_id) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; } -impl Default for otherName_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_fips_0_13_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; } -pub type OTHERNAME = otherName_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EDIPartyName_st { - pub nameAssigner: *mut ASN1_STRING, - pub partyName: *mut ASN1_STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_EDIPartyName_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!(EDIPartyName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EDIPartyName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(nameAssigner) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(partyName) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -impl Default for EDIPartyName_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_fips_0_13_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; } -pub type EDIPARTYNAME = EDIPartyName_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct GENERAL_NAME_st { - pub type_: ::std::os::raw::c_int, - pub d: GENERAL_NAME_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union GENERAL_NAME_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub otherName: *mut OTHERNAME, - pub rfc822Name: *mut ASN1_IA5STRING, - pub dNSName: *mut ASN1_IA5STRING, - pub x400Address: *mut ASN1_STRING, - pub directoryName: *mut X509_NAME, - pub ediPartyName: *mut EDIPARTYNAME, - pub uniformResourceIdentifier: *mut ASN1_IA5STRING, - pub iPAddress: *mut ASN1_OCTET_STRING, - pub registeredID: *mut ASN1_OBJECT, - pub ip: *mut ASN1_OCTET_STRING, - pub dirn: *mut X509_NAME, - pub ia5: *mut ASN1_IA5STRING, - pub rid: *mut ASN1_OBJECT, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_GENERAL_NAME_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + concat!("Size of: ", stringify!(private_key_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(otherName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(rfc822Name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(dNSName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(x400Address) - ) + concat!("Alignment of ", stringify!(private_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(private_key_st), "::", - stringify!(directoryName) + 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).ediPartyName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ediPartyName) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(uniformResourceIdentifier) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(iPAddress) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(registeredID) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ip) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(dirn) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ia5) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(rid) + stringify!(enc_data) ) ); } -impl Default for GENERAL_NAME_st__bindgen_ty_1 { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23528,127 +22785,116 @@ impl Default for GENERAL_NAME_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(d) - ) - ); -} -impl Default for GENERAL_NAME_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)] +pub struct stack_st_X509_INFO { + _unused: [u8; 0], } -pub type GENERAL_NAME = GENERAL_NAME_st; -pub type sk_GENERAL_NAME_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAME_copy_func = - ::std::option::Option *mut GENERAL_NAME>; -pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const GENERAL_NAME, - arg2: *mut *const GENERAL_NAME, - ) -> ::std::os::raw::c_int, ->; -pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut GENERAL_NAME, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type GENERAL_NAMES = stack_st_GENERAL_NAME; -pub type sk_GENERAL_NAMES_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAMES_copy_func = - ::std::option::Option *mut GENERAL_NAMES>; -pub type sk_GENERAL_NAMES_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: *mut *const GENERAL_NAMES, - arg2: *mut *const GENERAL_NAMES, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_NAMES_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_NAMES, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ACCESS_DESCRIPTION_st { - pub method: *mut ASN1_OBJECT, - pub location: *mut GENERAL_NAME, +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_ACCESS_DESCRIPTION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), - 16usize, - concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) + concat!("Alignment of ", stringify!(v3_ext_ctx)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(method) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(location) + 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 ACCESS_DESCRIPTION_st { +impl Default for v3_ext_ctx { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23657,138 +22903,317 @@ impl Default for ACCESS_DESCRIPTION_st { } } } -pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ACCESS_DESCRIPTION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -pub type sk_ACCESS_DESCRIPTION_free_func = - ::std::option::Option; -pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, ->; -pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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: *mut *const ACCESS_DESCRIPTION, - arg2: *mut *const ACCESS_DESCRIPTION, + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, ) -> ::std::os::raw::c_int, >; -pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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( - arg1: *mut ACCESS_DESCRIPTION, - arg2: *mut ::std::os::raw::c_void, + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, ) -> ::std::os::raw::c_int, >; -pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; -pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DIST_POINT_NAME_st { - pub type_: ::std::os::raw::c_int, - pub name: DIST_POINT_NAME_st__bindgen_ty_1, - pub dpname: *mut X509_NAME, +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_fips_0_13_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); } -#[repr(C)] -#[derive(Copy, Clone)] -pub union DIST_POINT_NAME_st__bindgen_ty_1 { - pub fullname: *mut GENERAL_NAMES, - pub relativename: *mut stack_st_X509_NAME_ENTRY, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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); } -#[test] -fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { - 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!(DIST_POINT_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!( - "Alignment of ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(fullname) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(relativename) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { - 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_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_DIST_POINT_NAME_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 24usize, - concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) + concat!("Alignment of ", stringify!(X509_algor_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(type_) + stringify!(algorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(dpname) + stringify!(parameter) ) ); } -impl Default for DIST_POINT_NAME_st { +impl Default for X509_algor_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23797,199 +23222,103 @@ impl Default for DIST_POINT_NAME_st { } } } -pub type DIST_POINT_NAME = DIST_POINT_NAME_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DIST_POINT_st { - pub distpoint: *mut DIST_POINT_NAME, - pub reasons: *mut ASN1_BIT_STRING, - pub CRLissuer: *mut GENERAL_NAMES, - pub dp_reasons: ::std::os::raw::c_int, +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, } #[test] -fn bindgen_test_layout_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 32usize, - concat!("Size of: ", stringify!(DIST_POINT_st)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_st)) + concat!("Alignment of ", stringify!(x509_trust_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(distpoint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(reasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(CRLissuer) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dp_reasons) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), + stringify!(x509_trust_st), "::", - stringify!(dp_reasons) + stringify!(trust) ) ); -} -impl Default for DIST_POINT_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() - } - } -} -pub type CRL_DIST_POINTS = stack_st_DIST_POINT; -pub type sk_DIST_POINT_free_func = - ::std::option::Option; -pub type sk_DIST_POINT_copy_func = - ::std::option::Option *mut DIST_POINT>; -pub type sk_DIST_POINT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const DIST_POINT, - arg2: *mut *const DIST_POINT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut DIST_POINT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct AUTHORITY_KEYID_st { - pub keyid: *mut ASN1_OCTET_STRING, - pub issuer: *mut GENERAL_NAMES, - pub serial: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_AUTHORITY_KEYID_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!(AUTHORITY_KEYID_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(keyid) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(issuer) + stringify!(check_trust) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(serial) + stringify!(name) ) ); -} -impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { - pub organization: *mut ASN1_STRING, - pub noticenos: *mut stack_st_ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_NOTICEREF_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!(NOTICEREF_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NOTICEREF_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(organization) + stringify!(arg1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(noticenos) + stringify!(arg2) ) ); } -impl Default for NOTICEREF_st { +impl Default for x509_trust_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23998,391 +23327,495 @@ impl Default for NOTICEREF_st { } } } -pub type NOTICEREF = NOTICEREF_st; +#[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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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>; +pub type X509V3_EXT_FREE = + ::std::option::Option; +pub type X509V3_EXT_D2I = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2D = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_I2V = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE, +>; +pub type X509V3_EXT_V2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + values: *const stack_st_CONF_VALUE, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2S = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; +pub type X509V3_EXT_S2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2R = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + out: *mut BIO, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_R2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct USERNOTICE_st { - pub noticeref: *mut NOTICEREF, - pub exptext: *mut ASN1_STRING, +pub struct v3_ext_method { + pub ext_nid: ::std::os::raw::c_int, + pub ext_flags: ::std::os::raw::c_int, + pub it: *const ASN1_ITEM_st, + pub ext_new: X509V3_EXT_NEW, + pub ext_free: X509V3_EXT_FREE, + pub d2i: X509V3_EXT_D2I, + pub i2d: X509V3_EXT_I2D, + pub i2s: X509V3_EXT_I2S, + pub s2i: X509V3_EXT_S2I, + pub i2v: X509V3_EXT_I2V, + pub v2i: X509V3_EXT_V2I, + pub i2r: X509V3_EXT_I2R, + pub r2i: X509V3_EXT_R2I, + pub usr_data: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_USERNOTICE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_v3_ext_method() { + 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!(USERNOTICE_st)) + ::std::mem::size_of::(), + 104usize, + concat!("Size of: ", stringify!(v3_ext_method)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(USERNOTICE_st)) + concat!("Alignment of ", stringify!(v3_ext_method)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(noticeref) + stringify!(ext_nid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(exptext) + stringify!(ext_flags) ) ); -} -impl Default for USERNOTICE_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() - } - } -} -pub type USERNOTICE = USERNOTICE_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct POLICYQUALINFO_st { - pub pqualid: *mut ASN1_OBJECT, - pub d: POLICYQUALINFO_st__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union POLICYQUALINFO_st__bindgen_ty_1 { - pub cpsuri: *mut ASN1_IA5STRING, - pub usernotice: *mut USERNOTICE, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { - 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!(POLICYQUALINFO_st__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(cpsuri) + stringify!(it) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(usernotice) + stringify!(ext_new) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(other) + stringify!(ext_free) ) ); -} -impl Default for POLICYQUALINFO_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(pqualid) + stringify!(d2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(d) + stringify!(i2d) ) ); -} -impl Default for POLICYQUALINFO_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() - } - } -} -pub type POLICYQUALINFO = POLICYQUALINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYQUALINFO { - _unused: [u8; 0], -} -pub type sk_POLICYQUALINFO_free_func = - ::std::option::Option; -pub type sk_POLICYQUALINFO_copy_func = - ::std::option::Option *mut POLICYQUALINFO>; -pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYQUALINFO, - arg2: *mut *const POLICYQUALINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYQUALINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICYINFO_st { - pub policyid: *mut ASN1_OBJECT, - pub qualifiers: *mut stack_st_POLICYQUALINFO, -} -#[test] -fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYINFO_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, - 0usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(policyid) + stringify!(i2s) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(qualifiers) + stringify!(s2i) ) ); -} -impl Default for POLICYINFO_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() - } - } -} -pub type POLICYINFO = POLICYINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYINFO { - _unused: [u8; 0], -} -pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; -pub type sk_POLICYINFO_free_func = - ::std::option::Option; -pub type sk_POLICYINFO_copy_func = - ::std::option::Option *mut POLICYINFO>; -pub type sk_POLICYINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYINFO, - arg2: *mut *const POLICYINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_MAPPING_st { - pub issuerDomainPolicy: *mut ASN1_OBJECT, - pub subjectDomainPolicy: *mut ASN1_OBJECT, -} -#[test] -fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(issuerDomainPolicy) + stringify!(i2v) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(subjectDomainPolicy) + stringify!(v2i) ) ); -} -impl Default for POLICY_MAPPING_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() - } - } -} -pub type POLICY_MAPPING = POLICY_MAPPING_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICY_MAPPING { - _unused: [u8; 0], -} -pub type sk_POLICY_MAPPING_free_func = - ::std::option::Option; -pub type sk_POLICY_MAPPING_copy_func = - ::std::option::Option *mut POLICY_MAPPING>; -pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICY_MAPPING, - arg2: *mut *const POLICY_MAPPING, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICY_MAPPING, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct GENERAL_SUBTREE_st { - pub base: *mut GENERAL_NAME, - pub minimum: *mut ASN1_INTEGER, - pub maximum: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(base) + stringify!(i2r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(minimum) + stringify!(r2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(maximum) + stringify!(usr_data) ) ); } -impl Default for GENERAL_SUBTREE_st { +impl Default for v3_ext_method { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24391,71 +23824,70 @@ impl Default for GENERAL_SUBTREE_st { } } } -pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_SUBTREE { +pub struct stack_st_X509V3_EXT_METHOD { _unused: [u8; 0], } -pub type sk_GENERAL_SUBTREE_free_func = - ::std::option::Option; -pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +pub type sk_X509V3_EXT_METHOD_free_func = + ::std::option::Option; +pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, >; -pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const GENERAL_SUBTREE, - arg2: *mut *const GENERAL_SUBTREE, + arg1: *const *const X509V3_EXT_METHOD, + arg2: *const *const X509V3_EXT_METHOD, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_SUBTREE, + arg1: *mut X509V3_EXT_METHOD, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct NAME_CONSTRAINTS_st { - pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, - pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, +pub struct BASIC_CONSTRAINTS_st { + pub ca: ::std::os::raw::c_int, + pub pathlen: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_NAME_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_BASIC_CONSTRAINTS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(permittedSubtrees) + stringify!(ca) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(excludedSubtrees) + stringify!(pathlen) ) ); } -impl Default for NAME_CONSTRAINTS_st { +impl Default for BASIC_CONSTRAINTS_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24466,47 +23898,47 @@ impl Default for NAME_CONSTRAINTS_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_CONSTRAINTS_st { - pub requireExplicitPolicy: *mut ASN1_INTEGER, - pub inhibitPolicyMapping: *mut ASN1_INTEGER, +pub struct ACCESS_DESCRIPTION_st { + pub method: *mut ASN1_OBJECT, + pub location: *mut GENERAL_NAME, } #[test] -fn bindgen_test_layout_POLICY_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = +fn bindgen_test_layout_ACCESS_DESCRIPTION_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(requireExplicitPolicy) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(inhibitPolicyMapping) + stringify!(location) ) ); } -impl Default for POLICY_CONSTRAINTS_st { +impl Default for ACCESS_DESCRIPTION_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24515,49 +23947,84 @@ impl Default for POLICY_CONSTRAINTS_st { } } } -pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ACCESS_DESCRIPTION { + _unused: [u8; 0], +} +pub type sk_ACCESS_DESCRIPTION_free_func = + ::std::option::Option; +pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, +>; +pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ACCESS_DESCRIPTION, + arg2: *const *const ACCESS_DESCRIPTION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ACCESS_DESCRIPTION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; +pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DIST_POINT_NAME_st { + pub type_: ::std::os::raw::c_int, + pub name: DIST_POINT_NAME_st__bindgen_ty_1, + pub dpname: *mut X509_NAME, +} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_POLICY_st { - pub policyLanguage: *mut ASN1_OBJECT, - pub policy: *mut ASN1_OCTET_STRING, +#[derive(Copy, Clone)] +pub union DIST_POINT_NAME_st__bindgen_ty_1 { + pub fullname: *mut GENERAL_NAMES, + pub relativename: *mut stack_st_X509_NAME_ENTRY, } #[test] -fn bindgen_test_layout_PROXY_POLICY_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { + 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!(PROXY_POLICY_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_POLICY_st)) + concat!( + "Alignment of ", + stringify!(DIST_POINT_NAME_st__bindgen_ty_1) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyLanguage) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policyLanguage) + stringify!(fullname) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policy) + stringify!(relativename) ) ); } -impl Default for PROXY_POLICY_st { +impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24566,50 +24033,52 @@ impl Default for PROXY_POLICY_st { } } } -pub type PROXY_POLICY = PROXY_POLICY_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_CERT_INFO_EXTENSION_st { - pub pcPathLengthConstraint: *mut ASN1_INTEGER, - pub proxyPolicy: *mut PROXY_POLICY, -} #[test] -fn bindgen_test_layout_PROXY_CERT_INFO_EXTENSION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_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!(PROXY_CERT_INFO_EXTENSION_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_CERT_INFO_EXTENSION_st)) + concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pcPathLengthConstraint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), "::", - stringify!(pcPathLengthConstraint) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).proxyPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(DIST_POINT_NAME_st), "::", - stringify!(proxyPolicy) + stringify!(dpname) ) ); } -impl Default for PROXY_CERT_INFO_EXTENSION_st { +impl Default for DIST_POINT_NAME_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24618,148 +24087,60 @@ impl Default for PROXY_CERT_INFO_EXTENSION_st { } } } -pub type PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_new"] - pub fn PROXY_POLICY_new() -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_free"] - pub fn PROXY_POLICY_free(a: *mut PROXY_POLICY); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_POLICY"] - pub fn d2i_PROXY_POLICY( - a: *mut *mut PROXY_POLICY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_POLICY"] - pub fn i2d_PROXY_POLICY( - a: *const PROXY_POLICY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_it"] - pub static PROXY_POLICY_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_new"] - pub fn PROXY_CERT_INFO_EXTENSION_new() -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_free"] - pub fn PROXY_CERT_INFO_EXTENSION_free(a: *mut PROXY_CERT_INFO_EXTENSION); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_CERT_INFO_EXTENSION"] - pub fn d2i_PROXY_CERT_INFO_EXTENSION( - a: *mut *mut PROXY_CERT_INFO_EXTENSION, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_CERT_INFO_EXTENSION"] - pub fn i2d_PROXY_CERT_INFO_EXTENSION( - a: *const PROXY_CERT_INFO_EXTENSION, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_it"] - pub static PROXY_CERT_INFO_EXTENSION_it: ASN1_ITEM; -} +pub type DIST_POINT_NAME = DIST_POINT_NAME_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ISSUING_DIST_POINT_st { +pub struct DIST_POINT_st { pub distpoint: *mut DIST_POINT_NAME, - pub onlyuser: ::std::os::raw::c_int, - pub onlyCA: ::std::os::raw::c_int, - pub onlysomereasons: *mut ASN1_BIT_STRING, - pub indirectCRL: ::std::os::raw::c_int, - pub onlyattr: ::std::os::raw::c_int, + pub reasons: *mut ASN1_BIT_STRING, + pub CRLissuer: *mut GENERAL_NAMES, } #[test] -fn bindgen_test_layout_ISSUING_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + concat!("Alignment of ", stringify!(DIST_POINT_st)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", stringify!(distpoint) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlyuser) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyCA) + stringify!(reasons) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlysomereasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(indirectCRL) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyattr) + stringify!(CRLissuer) ) ); } -impl Default for ISSUING_DIST_POINT_st { +impl Default for DIST_POINT_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24768,109 +24149,126 @@ impl Default for ISSUING_DIST_POINT_st { } } } +pub type CRL_DIST_POINTS = stack_st_DIST_POINT; +pub type sk_DIST_POINT_free_func = + ::std::option::Option; +pub type sk_DIST_POINT_copy_func = + ::std::option::Option *mut DIST_POINT>; +pub type sk_DIST_POINT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const DIST_POINT, + arg2: *const *const DIST_POINT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut DIST_POINT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_purpose_st { - pub purpose: ::std::os::raw::c_int, - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_purpose: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const x509_purpose_st, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub sname: *mut ::std::os::raw::c_char, - pub usr_data: *mut ::std::os::raw::c_void, +pub struct AUTHORITY_KEYID_st { + pub keyid: *mut ASN1_OCTET_STRING, + pub issuer: *mut GENERAL_NAMES, + pub serial: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_x509_purpose_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_AUTHORITY_KEYID_st() { + 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!(x509_purpose_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_purpose_st)) + concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(purpose) + stringify!(keyid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(trust) + stringify!(issuer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(flags) + stringify!(serial) ) ); +} +impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { + pub organization: *mut ASN1_STRING, + pub noticenos: *mut stack_st_ASN1_INTEGER, +} +#[test] +fn bindgen_test_layout_NOTICEREF_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(check_purpose) - ) + concat!("Size of: ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(name) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(sname) + stringify!(organization) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(usr_data) + stringify!(noticenos) ) ); } -impl Default for x509_purpose_st { +impl Default for NOTICEREF_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24879,1182 +24277,1291 @@ impl Default for x509_purpose_st { } } } -pub type X509_PURPOSE = x509_purpose_st; +pub type NOTICEREF = NOTICEREF_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_PURPOSE { - _unused: [u8; 0], -} -pub type sk_X509_PURPOSE_free_func = - ::std::option::Option; -pub type sk_X509_PURPOSE_copy_func = - ::std::option::Option *mut X509_PURPOSE>; -pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_PURPOSE, - arg2: *mut *const X509_PURPOSE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_PURPOSE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_new"] - pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_free"] - pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_BASIC_CONSTRAINTS"] - pub fn d2i_BASIC_CONSTRAINTS( - a: *mut *mut BASIC_CONSTRAINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_BASIC_CONSTRAINTS"] - pub fn i2d_BASIC_CONSTRAINTS( - a: *const BASIC_CONSTRAINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_it"] - pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_new"] - pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_free"] - pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_KEYID"] - pub fn d2i_AUTHORITY_KEYID( - a: *mut *mut AUTHORITY_KEYID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_KEYID"] - pub fn i2d_AUTHORITY_KEYID( - a: *mut AUTHORITY_KEYID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_it"] - pub static AUTHORITY_KEYID_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_new"] - pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_free"] - pub fn GENERAL_NAME_free(a: *mut GENERAL_NAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAME"] - pub fn d2i_GENERAL_NAME( - a: *mut *mut GENERAL_NAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAME"] - pub fn i2d_GENERAL_NAME( - a: *mut GENERAL_NAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_it"] - pub static GENERAL_NAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_dup"] - pub fn GENERAL_NAME_dup(a: *mut GENERAL_NAME) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_cmp"] - pub fn GENERAL_NAME_cmp( - a: *const GENERAL_NAME, - b: *const GENERAL_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *mut GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_new"] - pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_free"] - pub fn GENERAL_NAMES_free(a: *mut GENERAL_NAMES); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAMES"] - pub fn d2i_GENERAL_NAMES( - a: *mut *mut GENERAL_NAMES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAMES"] - pub fn i2d_GENERAL_NAMES( - a: *mut GENERAL_NAMES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_it"] - pub static GENERAL_NAMES_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAMES"] - pub fn v2i_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - nval: *const stack_st_CONF_VALUE, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_new"] - pub fn OTHERNAME_new() -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_free"] - pub fn OTHERNAME_free(a: *mut OTHERNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OTHERNAME"] - pub fn d2i_OTHERNAME( - a: *mut *mut OTHERNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OTHERNAME"] - pub fn i2d_OTHERNAME( - a: *const OTHERNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_it"] - pub static OTHERNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_new"] - pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_free"] - pub fn EDIPARTYNAME_free(a: *mut EDIPARTYNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EDIPARTYNAME"] - pub fn d2i_EDIPARTYNAME( - a: *mut *mut EDIPARTYNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EDIPARTYNAME"] - pub fn i2d_EDIPARTYNAME( - a: *const EDIPARTYNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_it"] - pub static EDIPARTYNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_cmp"] - pub fn OTHERNAME_cmp(a: *mut OTHERNAME, b: *mut OTHERNAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_value"] - pub fn GENERAL_NAME_set0_value( - a: *mut GENERAL_NAME, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_value"] - pub fn GENERAL_NAME_get0_value( - a: *const GENERAL_NAME, - ptype: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_othername"] - pub fn GENERAL_NAME_set0_othername( - gen: *mut GENERAL_NAME, - oid: *mut ASN1_OBJECT, - value: *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_otherName"] - pub fn GENERAL_NAME_get0_otherName( - gen: *const GENERAL_NAME, - poid: *mut *mut ASN1_OBJECT, - pvalue: *mut *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ia5: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_EXTENDED_KEY_USAGE_new"] - pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_free"] - pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EXTENDED_KEY_USAGE"] - pub fn d2i_EXTENDED_KEY_USAGE( - a: *mut *mut EXTENDED_KEY_USAGE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EXTENDED_KEY_USAGE"] - pub fn i2d_EXTENDED_KEY_USAGE( - a: *const EXTENDED_KEY_USAGE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_it"] - pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ACCESS_DESCRIPTION"] - pub fn i2a_ACCESS_DESCRIPTION( - bp: *mut BIO, - a: *const ACCESS_DESCRIPTION, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_new"] - pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct USERNOTICE_st { + pub noticeref: *mut NOTICEREF, + pub exptext: *mut ASN1_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_free"] - pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); +#[test] +fn bindgen_test_layout_USERNOTICE_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!(USERNOTICE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(USERNOTICE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(noticeref) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(exptext) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CERTIFICATEPOLICIES"] - pub fn d2i_CERTIFICATEPOLICIES( - a: *mut *mut CERTIFICATEPOLICIES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CERTIFICATEPOLICIES; +impl Default for USERNOTICE_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_fips_0_12_15_i2d_CERTIFICATEPOLICIES"] - pub fn i2d_CERTIFICATEPOLICIES( - a: *const CERTIFICATEPOLICIES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type USERNOTICE = USERNOTICE_st; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct POLICYQUALINFO_st { + pub pqualid: *mut ASN1_OBJECT, + pub d: POLICYQUALINFO_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_it"] - pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; +#[repr(C)] +#[derive(Copy, Clone)] +pub union POLICYQUALINFO_st__bindgen_ty_1 { + pub cpsuri: *mut ASN1_IA5STRING, + pub usernotice: *mut USERNOTICE, + pub other: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_new"] - pub fn POLICYINFO_new() -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { + 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!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(cpsuri) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(usernotice) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_free"] - pub fn POLICYINFO_free(a: *mut POLICYINFO); +impl Default for POLICYQUALINFO_st__bindgen_ty_1 { + 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_fips_0_12_15_d2i_POLICYINFO"] - pub fn d2i_POLICYINFO( - a: *mut *mut POLICYINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(pqualid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_POLICYINFO"] - pub fn i2d_POLICYINFO( - a: *const POLICYINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for POLICYQUALINFO_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_fips_0_12_15_POLICYINFO_it"] - pub static POLICYINFO_it: ASN1_ITEM; +pub type POLICYQUALINFO = POLICYQUALINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYQUALINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_new"] - pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; +pub type sk_POLICYQUALINFO_free_func = + ::std::option::Option; +pub type sk_POLICYQUALINFO_copy_func = + ::std::option::Option *mut POLICYQUALINFO>; +pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYQUALINFO, + arg2: *const *const POLICYQUALINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYQUALINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICYINFO_st { + pub policyid: *mut ASN1_OBJECT, + pub qualifiers: *mut stack_st_POLICYQUALINFO, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_free"] - pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); +#[test] +fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(policyid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(qualifiers) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_POLICYQUALINFO"] - pub fn d2i_POLICYQUALINFO( - a: *mut *mut POLICYQUALINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYQUALINFO; +impl Default for POLICYINFO_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_fips_0_12_15_i2d_POLICYQUALINFO"] - pub fn i2d_POLICYQUALINFO( - a: *const POLICYQUALINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICYINFO = POLICYINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_it"] - pub static POLICYQUALINFO_it: ASN1_ITEM; +pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; +pub type sk_POLICYINFO_free_func = + ::std::option::Option; +pub type sk_POLICYINFO_copy_func = + ::std::option::Option *mut POLICYINFO>; +pub type sk_POLICYINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYINFO, + arg2: *const *const POLICYINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_MAPPING_st { + pub issuerDomainPolicy: *mut ASN1_OBJECT, + pub subjectDomainPolicy: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_new"] - pub fn USERNOTICE_new() -> *mut USERNOTICE; +#[test] +fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(issuerDomainPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(subjectDomainPolicy) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_free"] - pub fn USERNOTICE_free(a: *mut USERNOTICE); +impl Default for POLICY_MAPPING_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_fips_0_12_15_d2i_USERNOTICE"] - pub fn d2i_USERNOTICE( - a: *mut *mut USERNOTICE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut USERNOTICE; +pub type POLICY_MAPPING = POLICY_MAPPING_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICY_MAPPING { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_USERNOTICE"] - pub fn i2d_USERNOTICE( - a: *const USERNOTICE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type sk_POLICY_MAPPING_free_func = + ::std::option::Option; +pub type sk_POLICY_MAPPING_copy_func = + ::std::option::Option *mut POLICY_MAPPING>; +pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICY_MAPPING, + arg2: *const *const POLICY_MAPPING, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICY_MAPPING, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct GENERAL_SUBTREE_st { + pub base: *mut GENERAL_NAME, + pub minimum: *mut ASN1_INTEGER, + pub maximum: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_it"] - pub static USERNOTICE_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(minimum) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(maximum) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_new"] - pub fn NOTICEREF_new() -> *mut NOTICEREF; +impl Default for GENERAL_SUBTREE_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_fips_0_12_15_NOTICEREF_free"] - pub fn NOTICEREF_free(a: *mut NOTICEREF); +pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_SUBTREE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NOTICEREF"] - pub fn d2i_NOTICEREF( - a: *mut *mut NOTICEREF, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NOTICEREF; +pub type sk_GENERAL_SUBTREE_free_func = + ::std::option::Option; +pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +>; +pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_SUBTREE, + arg2: *const *const GENERAL_SUBTREE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_SUBTREE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct NAME_CONSTRAINTS_st { + pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, + pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NOTICEREF"] - pub fn i2d_NOTICEREF( - a: *const NOTICEREF, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_NAME_CONSTRAINTS_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!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(permittedSubtrees) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(excludedSubtrees) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_it"] - pub static NOTICEREF_it: ASN1_ITEM; +impl Default for NAME_CONSTRAINTS_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_fips_0_12_15_CRL_DIST_POINTS_new"] - pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_CONSTRAINTS_st { + pub requireExplicitPolicy: *mut ASN1_INTEGER, + pub inhibitPolicyMapping: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_free"] - pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); +#[test] +fn bindgen_test_layout_POLICY_CONSTRAINTS_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!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(requireExplicitPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(inhibitPolicyMapping) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CRL_DIST_POINTS"] - pub fn d2i_CRL_DIST_POINTS( - a: *mut *mut CRL_DIST_POINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CRL_DIST_POINTS; +impl Default for POLICY_CONSTRAINTS_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_fips_0_12_15_i2d_CRL_DIST_POINTS"] - pub fn i2d_CRL_DIST_POINTS( - a: *mut CRL_DIST_POINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ISSUING_DIST_POINT_st { + pub distpoint: *mut DIST_POINT_NAME, + pub onlyuser: ASN1_BOOLEAN, + pub onlyCA: ASN1_BOOLEAN, + pub onlysomereasons: *mut ASN1_BIT_STRING, + pub indirectCRL: ASN1_BOOLEAN, + pub onlyattr: ASN1_BOOLEAN, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_it"] - pub static CRL_DIST_POINTS_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_ISSUING_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(distpoint) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyuser) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyCA) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlysomereasons) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(indirectCRL) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyattr) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_new"] - pub fn DIST_POINT_new() -> *mut DIST_POINT; +impl Default for ISSUING_DIST_POINT_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_fips_0_12_15_DIST_POINT_free"] - pub fn DIST_POINT_free(a: *mut DIST_POINT); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_purpose_st { + pub purpose: ::std::os::raw::c_int, + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_purpose: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const x509_purpose_st, + arg2: *const X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub sname: *mut ::std::os::raw::c_char, + pub usr_data: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT"] - pub fn d2i_DIST_POINT( - a: *mut *mut DIST_POINT, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT; +#[test] +fn bindgen_test_layout_x509_purpose_st() { + 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!(x509_purpose_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_purpose_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(check_purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(sname) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(usr_data) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT"] - pub fn i2d_DIST_POINT( - a: *mut DIST_POINT, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for x509_purpose_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_fips_0_12_15_DIST_POINT_it"] - pub static DIST_POINT_it: ASN1_ITEM; +pub type X509_PURPOSE = x509_purpose_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_PURPOSE { + _unused: [u8; 0], } +pub type sk_X509_PURPOSE_free_func = + ::std::option::Option; +pub type sk_X509_PURPOSE_copy_func = + ::std::option::Option *mut X509_PURPOSE>; +pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_PURPOSE, + arg2: *const *const X509_PURPOSE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_PURPOSE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_new"] - pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_new"] + pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_free"] - pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_free"] + pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT_NAME"] - pub fn d2i_DIST_POINT_NAME( - a: *mut *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_BASIC_CONSTRAINTS"] + pub fn d2i_BASIC_CONSTRAINTS( + a: *mut *mut BASIC_CONSTRAINTS, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT_NAME; + ) -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT_NAME"] - pub fn i2d_DIST_POINT_NAME( - a: *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_BASIC_CONSTRAINTS"] + pub fn i2d_BASIC_CONSTRAINTS( + a: *const BASIC_CONSTRAINTS, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_it"] - pub static DIST_POINT_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_it"] + pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_new"] - pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_new"] + pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_free"] - pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_free"] + pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ISSUING_DIST_POINT"] - pub fn d2i_ISSUING_DIST_POINT( - a: *mut *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_KEYID"] + pub fn d2i_AUTHORITY_KEYID( + a: *mut *mut AUTHORITY_KEYID, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ISSUING_DIST_POINT; + ) -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ISSUING_DIST_POINT"] - pub fn i2d_ISSUING_DIST_POINT( - a: *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_KEYID"] + pub fn i2d_AUTHORITY_KEYID( + a: *mut AUTHORITY_KEYID, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_it"] - pub static ISSUING_DIST_POINT_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_set_dpname"] - pub fn DIST_POINT_set_dpname( - dpn: *mut DIST_POINT_NAME, - iname: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check(x: *mut X509, nc: *mut NAME_CONSTRAINTS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_it"] + pub static AUTHORITY_KEYID_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_new"] - pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_new"] + pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_free"] - pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_free"] + pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ACCESS_DESCRIPTION"] - pub fn d2i_ACCESS_DESCRIPTION( - a: *mut *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EXTENDED_KEY_USAGE"] + pub fn d2i_EXTENDED_KEY_USAGE( + a: *mut *mut EXTENDED_KEY_USAGE, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ACCESS_DESCRIPTION; + ) -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ACCESS_DESCRIPTION"] - pub fn i2d_ACCESS_DESCRIPTION( - a: *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EXTENDED_KEY_USAGE"] + pub fn i2d_EXTENDED_KEY_USAGE( + a: *const EXTENDED_KEY_USAGE, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_it"] - pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_it"] + pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_new"] - pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_new"] + pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_free"] - pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_free"] + pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_INFO_ACCESS"] - pub fn d2i_AUTHORITY_INFO_ACCESS( - a: *mut *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CERTIFICATEPOLICIES"] + pub fn d2i_CERTIFICATEPOLICIES( + a: *mut *mut CERTIFICATEPOLICIES, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_INFO_ACCESS; + ) -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_INFO_ACCESS"] - pub fn i2d_AUTHORITY_INFO_ACCESS( - a: *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CERTIFICATEPOLICIES"] + pub fn i2d_CERTIFICATEPOLICIES( + a: *const CERTIFICATEPOLICIES, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_it"] - pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_it"] - pub static POLICY_MAPPING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_new"] - pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_free"] - pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPINGS_it"] - pub static POLICY_MAPPINGS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_it"] - pub static GENERAL_SUBTREE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_new"] - pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_free"] - pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_it"] - pub static NAME_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_new"] - pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_free"] - pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_new"] - pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_free"] - pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_it"] - pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_GENERAL_NAME"] - pub fn a2i_GENERAL_NAME( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - gen_type: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME"] - pub fn v2i_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME_ex"] - pub fn v2i_GENERAL_NAME_ex( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_it"] + pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); -} -#[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) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYINFO_new"] + pub fn POLICYINFO_new() -> *mut POLICYINFO; } -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_fips_0_13_0_POLICYINFO_free"] + pub fn POLICYINFO_free(a: *mut POLICYINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYINFO"] + pub fn d2i_POLICYINFO( + a: *mut *mut POLICYINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYINFO"] + pub fn i2d_POLICYINFO( + a: *const POLICYINFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYINFO_it"] + pub static POLICYINFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_new"] + pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_free"] + pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYQUALINFO"] + pub fn d2i_POLICYQUALINFO( + a: *mut *mut POLICYQUALINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYQUALINFO"] + pub fn i2d_POLICYQUALINFO( + a: *const POLICYQUALINFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYQUALINFO_it"] + pub static POLICYQUALINFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_new"] + pub fn USERNOTICE_new() -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_free"] + pub fn USERNOTICE_free(a: *mut USERNOTICE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_USERNOTICE"] + pub fn d2i_USERNOTICE( + a: *mut *mut USERNOTICE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_USERNOTICE"] + pub fn i2d_USERNOTICE( + a: *const USERNOTICE, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_it"] + pub static USERNOTICE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_new"] + pub fn NOTICEREF_new() -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_free"] + pub fn NOTICEREF_free(a: *mut NOTICEREF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_NOTICEREF"] + pub fn d2i_NOTICEREF( + a: *mut *mut NOTICEREF, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_NOTICEREF"] + pub fn i2d_NOTICEREF( + a: *const NOTICEREF, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_it"] + pub static NOTICEREF_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_new"] + pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_free"] + pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add"] - pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CRL_DIST_POINTS"] + pub fn d2i_CRL_DIST_POINTS( + a: *mut *mut CRL_DIST_POINTS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_list"] - pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CRL_DIST_POINTS"] + pub fn i2d_CRL_DIST_POINTS( + a: *mut CRL_DIST_POINTS, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_alias"] - pub fn X509V3_EXT_add_alias( - nid_to: ::std::os::raw::c_int, - nid_from: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_it"] + pub static CRL_DIST_POINTS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_new"] + pub fn DIST_POINT_new() -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_free"] + pub fn DIST_POINT_free(a: *mut DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT"] + pub fn d2i_DIST_POINT( + a: *mut *mut DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIST_POINT"] + pub fn i2d_DIST_POINT( + a: *mut DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_cleanup"] - pub fn X509V3_EXT_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_it"] + pub static DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get"] - pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_new"] + pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get_nid"] - pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_free"] + pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT_NAME"] + pub fn d2i_DIST_POINT_NAME( + a: *mut *mut DIST_POINT_NAME, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_DIST_POINT_NAME"] + pub fn i2d_DIST_POINT_NAME( + a: *mut DIST_POINT_NAME, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_d2i"] - pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_it"] + pub static DIST_POINT_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_get_d2i"] - pub fn X509V3_get_d2i( - extensions: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_new"] + pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_free"] - pub fn X509V3_EXT_free( - nid: ::std::os::raw::c_int, - ext_data: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_free"] + pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ISSUING_DIST_POINT"] + pub fn d2i_ISSUING_DIST_POINT( + a: *mut *mut ISSUING_DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ISSUING_DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ISSUING_DIST_POINT"] + pub fn i2d_ISSUING_DIST_POINT( + a: *mut ISSUING_DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_i2d"] - pub fn X509V3_EXT_i2d( - ext_nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - ext_struc: *mut ::std::os::raw::c_void, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_it"] + pub static ISSUING_DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add1_i2d"] - pub fn X509V3_add1_i2d( - x: *mut *mut stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_set_dpname"] + pub fn DIST_POINT_set_dpname( + dpn: *mut DIST_POINT_NAME, + iname: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_val_prn"] - pub fn X509V3_EXT_val_prn( - out: *mut BIO, - val: *const stack_st_CONF_VALUE, - indent: ::std::os::raw::c_int, - ml: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ACCESS_DESCRIPTION_new"] + pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_free"] + pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ACCESS_DESCRIPTION"] + pub fn d2i_ACCESS_DESCRIPTION( + a: *mut *mut ACCESS_DESCRIPTION, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ACCESS_DESCRIPTION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ACCESS_DESCRIPTION"] + pub fn i2d_ACCESS_DESCRIPTION( + a: *mut ACCESS_DESCRIPTION, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_it"] + pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_new"] + pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_free"] + pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_INFO_ACCESS"] + pub fn d2i_AUTHORITY_INFO_ACCESS( + a: *mut *mut AUTHORITY_INFO_ACCESS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_INFO_ACCESS"] + pub fn i2d_AUTHORITY_INFO_ACCESS( + a: *mut AUTHORITY_INFO_ACCESS, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_it"] + pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ca"] - pub fn X509_check_ca(x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_it"] + pub static POLICY_MAPPING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_new"] + pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_free"] + pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_set"] - pub fn X509_PURPOSE_set( - p: *mut ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPINGS_it"] + pub static POLICY_MAPPINGS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_SUBTREE_it"] + pub static GENERAL_SUBTREE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_akid"] - pub fn X509_check_akid(issuer: *mut X509, akid: *mut AUTHORITY_KEYID) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_new"] + pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extension_flags"] - pub fn X509_get_extension_flags(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_free"] + pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_key_usage"] - pub fn X509_get_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_it"] + pub static NAME_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extended_key_usage"] - pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_new"] + pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_subject_key_id"] - pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_free"] + pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_key_id"] - pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_new"] + pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_issuer"] - pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_free"] + pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_serial"] - pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_it"] + pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_count"] - pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add"] + pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0"] - pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *mut X509_PURPOSE; + pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_sname"] - pub fn X509_PURPOSE_get_by_sname(sname: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add_alias"] + pub fn X509V3_EXT_add_alias( + nid_to: ::std::os::raw::c_int, + nid_from: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_id"] - pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn X509V3_EXT_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_add"] - pub fn X509_PURPOSE_add( - id: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_PURPOSE, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - sname: *mut ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get"] + pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_name"] - pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get_nid"] + pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_sname"] - pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_d2i"] + pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_trust"] - pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_get_d2i"] + pub fn X509V3_get_d2i( + extensions: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_cleanup"] - pub fn X509_PURPOSE_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_free"] + pub fn X509V3_EXT_free( + nid: ::std::os::raw::c_int, + ext_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_id"] - pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_i2d"] + pub fn X509V3_EXT_i2d( + ext_nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + ext_struc: *mut ::std::os::raw::c_void, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_email"] - pub fn X509_get1_email(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add1_i2d"] + pub fn X509V3_add1_i2d( + x: *mut *mut stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get1_email"] - pub fn X509_REQ_get1_email(x: *mut X509_REQ) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_set"] + pub fn X509_PURPOSE_set( + p: *mut ::std::os::raw::c_int, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_email_free"] - pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_count"] + pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_ocsp"] - pub fn X509_get1_ocsp(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0"] + pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *const X509_PURPOSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_host"] - pub fn X509_check_host( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_sname"] + pub fn X509_PURPOSE_get_by_sname(sname: *const ::std::os::raw::c_char) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_email"] - pub fn X509_check_email( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_id"] + pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip"] - pub fn X509_check_ip( - x: *mut X509, - chk: *const ::std::os::raw::c_uchar, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0_name"] + pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x: *mut 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_fips_0_13_0_X509_PURPOSE_get0_sname"] + pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_trust"] + pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PURPOSE_get_id"] + pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -26064,10 +25571,16 @@ pub struct ocsp_cert_id_st { pub type OCSP_CERTID = ocsp_cert_id_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ocsp_responder_id_st { +pub struct ocsp_one_request_st { _unused: [u8; 0], } -pub type OCSP_RESPID = ocsp_responder_id_st; +pub type OCSP_ONEREQ = ocsp_one_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ocsp_req_info_st { + _unused: [u8; 0], +} +pub type OCSP_REQINFO = ocsp_req_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ocsp_signature_st { @@ -26076,6 +25589,12 @@ pub struct ocsp_signature_st { pub type OCSP_SIGNATURE = ocsp_signature_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_request_st { + _unused: [u8; 0], +} +pub type OCSP_REQUEST = ocsp_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_resp_bytes_st { _unused: [u8; 0], } @@ -26112,6 +25631,12 @@ pub struct ocsp_response_st { pub type OCSP_RESPONSE = ocsp_response_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_responder_id_st { + _unused: [u8; 0], +} +pub type OCSP_RESPID = ocsp_responder_id_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_basic_response_st { _unused: [u8; 0], } @@ -26127,8 +25652,8 @@ pub type sk_OCSP_CERTID_copy_func = ::std::option::Option *mut OCSP_CERTID>; pub type sk_OCSP_CERTID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_CERTID, - arg2: *mut *const OCSP_CERTID, + arg1: *const *const OCSP_CERTID, + arg2: *const *const OCSP_CERTID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< @@ -26139,6 +25664,27 @@ pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct stack_st_OCSP_ONEREQ { + _unused: [u8; 0], +} +pub type sk_OCSP_ONEREQ_free_func = + ::std::option::Option; +pub type sk_OCSP_ONEREQ_copy_func = + ::std::option::Option *mut OCSP_ONEREQ>; +pub type sk_OCSP_ONEREQ_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const OCSP_ONEREQ, + arg2: *const *const OCSP_ONEREQ, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OCSP_ONEREQ_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut OCSP_ONEREQ, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct stack_st_OCSP_RESPID { _unused: [u8; 0], } @@ -26148,8 +25694,8 @@ pub type sk_OCSP_RESPID_copy_func = ::std::option::Option *mut OCSP_RESPID>; pub type sk_OCSP_RESPID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_RESPID, - arg2: *mut *const OCSP_RESPID, + arg1: *const *const OCSP_RESPID, + arg2: *const *const OCSP_RESPID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_RESPID_delete_if_func = ::std::option::Option< @@ -26170,8 +25716,8 @@ pub type sk_OCSP_SINGLERESP_copy_func = ::std::option::Option< >; pub type sk_OCSP_SINGLERESP_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_SINGLERESP, - arg2: *mut *const OCSP_SINGLERESP, + arg1: *const *const OCSP_SINGLERESP, + arg2: *const *const OCSP_SINGLERESP, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< @@ -26181,15 +25727,123 @@ pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_new"] + pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_free"] + pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_BASICRESP"] + pub fn d2i_OCSP_BASICRESP( + a: *mut *mut OCSP_BASICRESP, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_BASICRESP"] + pub fn i2d_OCSP_BASICRESP( + a: *mut OCSP_BASICRESP, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_it"] + pub static OCSP_BASICRESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_new"] + pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_free"] + pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE"] + pub fn d2i_OCSP_RESPONSE( + a: *mut *mut OCSP_RESPONSE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE"] + pub fn i2d_OCSP_RESPONSE( + a: *mut OCSP_RESPONSE, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_it"] + pub static OCSP_RESPONSE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_new"] + pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_free"] + pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_CERTID"] + pub fn d2i_OCSP_CERTID( + a: *mut *mut OCSP_CERTID, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_CERTID"] + pub fn i2d_OCSP_CERTID( + a: *mut OCSP_CERTID, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_it"] + pub static OCSP_CERTID_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_new"] + pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_free"] + pub fn OCSP_REQUEST_free(a: *mut OCSP_REQUEST); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST"] + pub fn d2i_OCSP_REQUEST( + a: *mut *mut OCSP_REQUEST, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST"] + pub fn i2d_OCSP_REQUEST( + a: *mut OCSP_REQUEST, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_it"] + pub static OCSP_REQUEST_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_new"] pub fn OCSP_SINGLERESP_new() -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_free"] pub fn OCSP_SINGLERESP_free(a: *mut OCSP_SINGLERESP); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_SINGLERESP"] pub fn d2i_OCSP_SINGLERESP( a: *mut *mut OCSP_SINGLERESP, in_: *mut *const ::std::os::raw::c_uchar, @@ -26197,290 +25851,418 @@ extern "C" { ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_SINGLERESP"] pub fn i2d_OCSP_SINGLERESP( a: *mut OCSP_SINGLERESP, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_it"] - pub static OCSP_SINGLERESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_it"] + pub static OCSP_SINGLERESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST_bio"] + pub fn d2i_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut *mut OCSP_REQUEST) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE_bio"] + pub fn d2i_OCSP_RESPONSE_bio( + bp: *mut BIO, + presp: *mut *mut OCSP_RESPONSE, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE_bio"] + pub fn i2d_OCSP_RESPONSE_bio(bp: *mut BIO, presp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST_bio"] + pub fn i2d_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_dup"] + pub fn OCSP_CERTID_dup(id: *mut OCSP_CERTID) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_bio"] + pub fn OCSP_sendreq_bio( + b: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_new"] + pub fn OCSP_sendreq_new( + io: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + maxline: ::std::os::raw::c_int, + ) -> *mut OCSP_REQ_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_nbio"] + pub fn OCSP_sendreq_nbio( + presp: *mut *mut OCSP_RESPONSE, + rctx: *mut OCSP_REQ_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_new"] - pub fn OCSP_CERTSTATUS_new() -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_new"] + pub fn OCSP_REQ_CTX_new(io: *mut BIO, maxline: ::std::os::raw::c_int) -> *mut OCSP_REQ_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_free"] - pub fn OCSP_CERTSTATUS_free(a: *mut OCSP_CERTSTATUS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_free"] + pub fn OCSP_REQ_CTX_free(rctx: *mut OCSP_REQ_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTSTATUS"] - pub fn d2i_OCSP_CERTSTATUS( - a: *mut *mut OCSP_CERTSTATUS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_set_max_response_length"] + pub fn OCSP_set_max_response_length(rctx: *mut OCSP_REQ_CTX, len: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTSTATUS"] - pub fn i2d_OCSP_CERTSTATUS( - a: *mut OCSP_CERTSTATUS, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_http"] + pub fn OCSP_REQ_CTX_http( + rctx: *mut OCSP_REQ_CTX, + op: *const ::std::os::raw::c_char, + path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_it"] - pub static OCSP_CERTSTATUS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_set1_req"] + pub fn OCSP_REQ_CTX_set1_req( + rctx: *mut OCSP_REQ_CTX, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_new"] - pub fn OCSP_REVOKEDINFO_new() -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_add1_header"] + pub fn OCSP_REQ_CTX_add1_header( + rctx: *mut OCSP_REQ_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_free"] - pub fn OCSP_REVOKEDINFO_free(a: *mut OCSP_REVOKEDINFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_i2d"] + pub fn OCSP_REQ_CTX_i2d( + rctx: *mut OCSP_REQ_CTX, + it: *const ASN1_ITEM, + val: *mut ASN1_VALUE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_REVOKEDINFO"] - pub fn d2i_OCSP_REVOKEDINFO( - a: *mut *mut OCSP_REVOKEDINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add0_id"] + pub fn OCSP_request_add0_id(req: *mut OCSP_REQUEST, cid: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_REVOKEDINFO"] - pub fn i2d_OCSP_REVOKEDINFO( - a: *mut OCSP_REVOKEDINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_onereq_get0_id"] + pub fn OCSP_onereq_get0_id(one: *mut OCSP_ONEREQ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_it"] - pub static OCSP_REVOKEDINFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_nonce"] + pub fn OCSP_request_add1_nonce( + req: *mut OCSP_REQUEST, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_new"] - pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_nonce"] + pub fn OCSP_basic_add1_nonce( + resp: *mut OCSP_BASICRESP, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_free"] - pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_nonce"] + pub fn OCSP_check_nonce( + req: *mut OCSP_REQUEST, + bs: *mut OCSP_BASICRESP, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_BASICRESP"] - pub fn d2i_OCSP_BASICRESP( - a: *mut *mut OCSP_BASICRESP, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_copy_nonce"] + pub fn OCSP_copy_nonce( + resp: *mut OCSP_BASICRESP, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_BASICRESP"] - pub fn i2d_OCSP_BASICRESP( - a: *mut OCSP_BASICRESP, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_set1_name"] + pub fn OCSP_request_set1_name( + req: *mut OCSP_REQUEST, + nm: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_it"] - pub static OCSP_BASICRESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_cert"] + pub fn OCSP_request_add1_cert(req: *mut OCSP_REQUEST, cert: *mut X509) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_new"] - pub fn OCSP_RESPDATA_new() -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_is_signed"] + pub fn OCSP_request_is_signed(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_free"] - pub fn OCSP_RESPDATA_free(a: *mut OCSP_RESPDATA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_count"] + pub fn OCSP_request_onereq_count(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPDATA"] - pub fn d2i_OCSP_RESPDATA( - a: *mut *mut OCSP_RESPDATA, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_get0"] + pub fn OCSP_request_onereq_get0( + req: *mut OCSP_REQUEST, + i: ::std::os::raw::c_int, + ) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPDATA"] - pub fn i2d_OCSP_RESPDATA( - a: *mut OCSP_RESPDATA, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_sign"] + pub fn OCSP_request_sign( + req: *mut OCSP_REQUEST, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_it"] - pub static OCSP_RESPDATA_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status"] + pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_new"] - pub fn OCSP_RESPID_new() -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_get1_basic"] + pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_free"] - pub fn OCSP_RESPID_free(a: *mut OCSP_RESPID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_count"] + pub fn OCSP_resp_count(bs: *mut OCSP_BASICRESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPID"] - pub fn d2i_OCSP_RESPID( - a: *mut *mut OCSP_RESPID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_get0"] + pub fn OCSP_resp_get0(bs: *mut OCSP_BASICRESP, idx: usize) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPID"] - pub fn i2d_OCSP_RESPID( - a: *mut OCSP_RESPID, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_single_get0_status"] + pub fn OCSP_single_get0_status( + single: *mut OCSP_SINGLERESP, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_it"] - pub static OCSP_RESPID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find"] + pub fn OCSP_resp_find( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + last: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_new"] - pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find_status"] + pub fn OCSP_resp_find_status( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + status: *mut ::std::os::raw::c_int, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_free"] - pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_validity"] + pub fn OCSP_check_validity( + thisUpdate: *mut ASN1_GENERALIZEDTIME, + nextUpdate: *mut ASN1_GENERALIZEDTIME, + drift_num_seconds: ::std::os::raw::c_long, + max_age_seconds: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPONSE"] - pub fn d2i_OCSP_RESPONSE( - a: *mut *mut OCSP_RESPONSE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_verify"] + pub fn OCSP_basic_verify( + bs: *mut OCSP_BASICRESP, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPONSE"] - pub fn i2d_OCSP_RESPONSE( - a: *mut OCSP_RESPONSE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_verify"] + pub fn OCSP_request_verify( + req: *mut OCSP_REQUEST, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_it"] - pub static OCSP_RESPONSE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_id_new"] + pub fn OCSP_cert_id_new( + dgst: *const EVP_MD, + issuerName: *const X509_NAME, + issuerKey: *const ASN1_BIT_STRING, + serialNumber: *const ASN1_INTEGER, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_new"] - pub fn OCSP_RESPBYTES_new() -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_to_id"] + pub fn OCSP_cert_to_id( + dgst: *const EVP_MD, + subject: *const X509, + issuer: *const X509, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_free"] - pub fn OCSP_RESPBYTES_free(a: *mut OCSP_RESPBYTES); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_parse_url"] + pub fn OCSP_parse_url( + url: *const ::std::os::raw::c_char, + phost: *mut *mut ::std::os::raw::c_char, + pport: *mut *mut ::std::os::raw::c_char, + ppath: *mut *mut ::std::os::raw::c_char, + pssl: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPBYTES"] - pub fn d2i_OCSP_RESPBYTES( - a: *mut *mut OCSP_RESPBYTES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_issuer_cmp"] + pub fn OCSP_id_issuer_cmp( + a: *const OCSP_CERTID, + b: *const OCSP_CERTID, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPBYTES"] - pub fn i2d_OCSP_RESPBYTES( - a: *mut OCSP_RESPBYTES, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_cmp"] + pub fn OCSP_id_cmp(a: *const OCSP_CERTID, b: *const OCSP_CERTID) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_get0_info"] + pub fn OCSP_id_get0_info( + nameHash: *mut *mut ASN1_OCTET_STRING, + algor: *mut *mut ASN1_OBJECT, + keyHash: *mut *mut ASN1_OCTET_STRING, + serial: *mut *mut ASN1_INTEGER, + cid: *mut OCSP_CERTID, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_it"] - pub static OCSP_RESPBYTES_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_cert"] + pub fn OCSP_basic_add1_cert( + resp: *mut OCSP_BASICRESP, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_new"] - pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_status"] + pub fn OCSP_basic_add1_status( + resp: *mut OCSP_BASICRESP, + cid: *mut OCSP_CERTID, + status: ::std::os::raw::c_int, + revoked_reason: ::std::os::raw::c_int, + revoked_time: *mut ASN1_TIME, + this_update: *mut ASN1_TIME, + next_update: *mut ASN1_TIME, + ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_free"] - pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_sign"] + pub fn OCSP_basic_sign( + resp: *mut OCSP_BASICRESP, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTID"] - pub fn d2i_OCSP_CERTID( - a: *mut *mut OCSP_CERTID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_create"] + pub fn OCSP_response_create( + status: ::std::os::raw::c_int, + bs: *mut OCSP_BASICRESP, + ) -> *mut OCSP_RESPONSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTID"] - pub fn i2d_OCSP_CERTID( - a: *mut OCSP_CERTID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get0_id"] + pub fn OCSP_SINGLERESP_get0_id(x: *const OCSP_SINGLERESP) -> *const OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_it"] - pub static OCSP_CERTID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status_str"] + pub fn OCSP_response_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_new() -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_status_str"] + pub fn OCSP_cert_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_free(a: *mut OCSP_SIGNATURE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_crl_reason_str"] + pub fn OCSP_crl_reason_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn d2i_OCSP_SIGNATURE( - a: *mut *mut OCSP_SIGNATURE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_print"] + pub fn OCSP_REQUEST_print( + bp: *mut BIO, + req: *mut OCSP_REQUEST, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn i2d_OCSP_SIGNATURE( - a: *mut OCSP_SIGNATURE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_print"] + pub fn OCSP_RESPONSE_print( + bp: *mut BIO, + resp: *mut OCSP_RESPONSE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub static OCSP_SIGNATURE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext_by_NID"] + pub fn OCSP_BASICRESP_get_ext_by_NID( + bs: *mut OCSP_BASICRESP, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_status"] - pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext"] + pub fn OCSP_BASICRESP_get_ext( + bs: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_get1_basic"] - pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_delete_ext"] + pub fn OCSP_BASICRESP_delete_ext( + x: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_resp_find_status"] - pub fn OCSP_resp_find_status( - bs: *mut OCSP_BASICRESP, - id: *mut OCSP_CERTID, - status: *mut ::std::os::raw::c_int, - reason: *mut ::std::os::raw::c_int, - revtime: *mut *mut ASN1_GENERALIZEDTIME, - thisupd: *mut *mut ASN1_GENERALIZEDTIME, - nextupd: *mut *mut ASN1_GENERALIZEDTIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_add_ext"] + pub fn OCSP_SINGLERESP_add_ext( + sresp: *mut OCSP_SINGLERESP, + ex: *mut X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_basic_verify"] - pub fn OCSP_basic_verify( - bs: *mut OCSP_BASICRESP, - certs: *mut stack_st_X509, - st: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext_count"] + pub fn OCSP_SINGLERESP_get_ext_count(sresp: *mut OCSP_SINGLERESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_cert_to_id"] - pub fn OCSP_cert_to_id( - dgst: *const EVP_MD, - subject: *const X509, - issuer: *const X509, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext"] + pub fn OCSP_SINGLERESP_get_ext( + sresp: *mut OCSP_SINGLERESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } pub type pem_password_cb = ::std::option::Option< unsafe extern "C" fn( @@ -26491,14 +26273,14 @@ pub type pem_password_cb = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_get_EVP_CIPHER_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_get_EVP_CIPHER_INFO"] pub fn PEM_get_EVP_CIPHER_INFO( header: *mut ::std::os::raw::c_char, cipher: *mut EVP_CIPHER_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_do_header"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_do_header"] pub fn PEM_do_header( cipher: *mut EVP_CIPHER_INFO, data: *mut ::std::os::raw::c_uchar, @@ -26508,7 +26290,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio"] pub fn PEM_read_bio( bp: *mut BIO, name: *mut *mut ::std::os::raw::c_char, @@ -26518,7 +26300,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio"] pub fn PEM_write_bio( bp: *mut BIO, name: *const ::std::os::raw::c_char, @@ -26528,7 +26310,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_bytes_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_bytes_read_bio"] pub fn PEM_bytes_read_bio( pdata: *mut *mut ::std::os::raw::c_uchar, plen: *mut ::std::os::raw::c_long, @@ -26540,7 +26322,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read_bio"] pub fn PEM_ASN1_read_bio( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26551,7 +26333,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write_bio"] pub fn PEM_ASN1_write_bio( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26565,7 +26347,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read_bio"] pub fn PEM_X509_INFO_read_bio( bp: *mut BIO, sk: *mut stack_st_X509_INFO, @@ -26574,7 +26356,16 @@ extern "C" { ) -> *mut stack_st_X509_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read"] + pub fn PEM_X509_INFO_read( + fp: *mut FILE, + sk: *mut stack_st_X509_INFO, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut stack_st_X509_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read"] pub fn PEM_read( fp: *mut FILE, name: *mut *mut ::std::os::raw::c_char, @@ -26584,7 +26375,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write"] pub fn PEM_write( fp: *mut FILE, name: *const ::std::os::raw::c_char, @@ -26594,7 +26385,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read"] pub fn PEM_ASN1_read( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26605,7 +26396,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write"] pub fn PEM_ASN1_write( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26619,16 +26410,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read"] - pub fn PEM_X509_INFO_read( - fp: *mut FILE, - sk: *mut stack_st_X509_INFO, - cb: pem_password_cb, - u: *mut ::std::os::raw::c_void, - ) -> *mut stack_st_X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_def_callback"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_def_callback"] pub fn PEM_def_callback( buf: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, @@ -26637,20 +26419,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_proc_type"] - pub fn PEM_proc_type(buf: *mut ::std::os::raw::c_char, type_: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_dek_info"] - pub fn PEM_dek_info( - buf: *mut ::std::os::raw::c_char, - type_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - str_: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509"] pub fn PEM_read_bio_X509( bp: *mut BIO, x: *mut *mut X509, @@ -26659,7 +26428,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509"] pub fn PEM_read_X509( fp: *mut FILE, x: *mut *mut X509, @@ -26668,15 +26437,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509"] pub fn PEM_write_bio_X509(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509"] pub fn PEM_write_X509(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_AUX"] pub fn PEM_read_bio_X509_AUX( bp: *mut BIO, x: *mut *mut X509, @@ -26685,7 +26454,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_AUX"] pub fn PEM_read_X509_AUX( fp: *mut FILE, x: *mut *mut X509, @@ -26694,15 +26463,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_AUX"] pub fn PEM_write_bio_X509_AUX(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_AUX"] pub fn PEM_write_X509_AUX(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_REQ"] pub fn PEM_read_bio_X509_REQ( bp: *mut BIO, x: *mut *mut X509_REQ, @@ -26711,7 +26480,7 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_REQ"] pub fn PEM_read_X509_REQ( fp: *mut FILE, x: *mut *mut X509_REQ, @@ -26720,23 +26489,23 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ"] pub fn PEM_write_bio_X509_REQ(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ"] pub fn PEM_write_X509_REQ(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ_NEW"] pub fn PEM_write_bio_X509_REQ_NEW(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ_NEW"] pub fn PEM_write_X509_REQ_NEW(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_CRL"] pub fn PEM_read_bio_X509_CRL( bp: *mut BIO, x: *mut *mut X509_CRL, @@ -26745,7 +26514,7 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_CRL"] pub fn PEM_read_X509_CRL( fp: *mut FILE, x: *mut *mut X509_CRL, @@ -26754,15 +26523,15 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_CRL"] pub fn PEM_write_bio_X509_CRL(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_CRL"] pub fn PEM_write_X509_CRL(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS7"] pub fn PEM_read_bio_PKCS7( bp: *mut BIO, x: *mut *mut PKCS7, @@ -26771,7 +26540,7 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS7"] pub fn PEM_read_PKCS7( fp: *mut FILE, x: *mut *mut PKCS7, @@ -26780,15 +26549,15 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS7"] pub fn PEM_write_bio_PKCS7(bp: *mut BIO, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS7"] pub fn PEM_write_PKCS7(fp: *mut FILE, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8"] pub fn PEM_read_bio_PKCS8( bp: *mut BIO, x: *mut *mut X509_SIG, @@ -26797,7 +26566,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8"] pub fn PEM_read_PKCS8( fp: *mut FILE, x: *mut *mut X509_SIG, @@ -26806,15 +26575,15 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8"] pub fn PEM_write_bio_PKCS8(bp: *mut BIO, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8"] pub fn PEM_write_PKCS8(fp: *mut FILE, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -26823,7 +26592,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -26832,21 +26601,21 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPrivateKey"] pub fn PEM_read_bio_RSAPrivateKey( bp: *mut BIO, x: *mut *mut RSA, @@ -26855,7 +26624,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPrivateKey"] pub fn PEM_read_RSAPrivateKey( fp: *mut FILE, x: *mut *mut RSA, @@ -26864,7 +26633,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPrivateKey"] pub fn PEM_write_bio_RSAPrivateKey( bp: *mut BIO, x: *mut RSA, @@ -26876,7 +26645,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPrivateKey"] pub fn PEM_write_RSAPrivateKey( fp: *mut FILE, x: *mut RSA, @@ -26888,7 +26657,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPublicKey"] pub fn PEM_read_bio_RSAPublicKey( bp: *mut BIO, x: *mut *mut RSA, @@ -26897,7 +26666,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPublicKey"] pub fn PEM_read_RSAPublicKey( fp: *mut FILE, x: *mut *mut RSA, @@ -26906,15 +26675,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPublicKey"] pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPublicKey"] pub fn PEM_write_RSAPublicKey(fp: *mut FILE, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSA_PUBKEY"] pub fn PEM_read_bio_RSA_PUBKEY( bp: *mut BIO, x: *mut *mut RSA, @@ -26923,7 +26692,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSA_PUBKEY"] pub fn PEM_read_RSA_PUBKEY( fp: *mut FILE, x: *mut *mut RSA, @@ -26932,15 +26701,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSA_PUBKEY"] pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSA_PUBKEY"] pub fn PEM_write_RSA_PUBKEY(fp: *mut FILE, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAPrivateKey"] pub fn PEM_read_bio_DSAPrivateKey( bp: *mut BIO, x: *mut *mut DSA, @@ -26949,7 +26718,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAPrivateKey"] pub fn PEM_read_DSAPrivateKey( fp: *mut FILE, x: *mut *mut DSA, @@ -26958,7 +26727,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAPrivateKey"] pub fn PEM_write_bio_DSAPrivateKey( bp: *mut BIO, x: *mut DSA, @@ -26970,7 +26739,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAPrivateKey"] pub fn PEM_write_DSAPrivateKey( fp: *mut FILE, x: *mut DSA, @@ -26982,7 +26751,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSA_PUBKEY"] pub fn PEM_read_bio_DSA_PUBKEY( bp: *mut BIO, x: *mut *mut DSA, @@ -26991,7 +26760,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSA_PUBKEY"] pub fn PEM_read_DSA_PUBKEY( fp: *mut FILE, x: *mut *mut DSA, @@ -27000,15 +26769,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSA_PUBKEY"] pub fn PEM_write_bio_DSA_PUBKEY(bp: *mut BIO, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSA_PUBKEY"] pub fn PEM_write_DSA_PUBKEY(fp: *mut FILE, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAparams"] pub fn PEM_read_bio_DSAparams( bp: *mut BIO, x: *mut *mut DSA, @@ -27017,7 +26786,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAparams"] pub fn PEM_read_DSAparams( fp: *mut FILE, x: *mut *mut DSA, @@ -27026,15 +26795,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAparams"] pub fn PEM_write_bio_DSAparams(bp: *mut BIO, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAparams"] pub fn PEM_write_DSAparams(fp: *mut FILE, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPrivateKey"] pub fn PEM_read_bio_ECPrivateKey( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27043,7 +26812,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_ECPrivateKey"] pub fn PEM_read_ECPrivateKey( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27052,7 +26821,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPrivateKey"] pub fn PEM_write_bio_ECPrivateKey( bp: *mut BIO, x: *mut EC_KEY, @@ -27064,7 +26833,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_ECPrivateKey"] pub fn PEM_write_ECPrivateKey( fp: *mut FILE, x: *mut EC_KEY, @@ -27076,7 +26845,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_EC_PUBKEY"] pub fn PEM_read_bio_EC_PUBKEY( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27085,7 +26854,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_EC_PUBKEY"] pub fn PEM_read_EC_PUBKEY( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27094,15 +26863,15 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_EC_PUBKEY"] pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_EC_PUBKEY"] pub fn PEM_write_EC_PUBKEY(fp: *mut FILE, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DHparams"] pub fn PEM_read_bio_DHparams( bp: *mut BIO, x: *mut *mut DH, @@ -27111,7 +26880,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DHparams"] pub fn PEM_read_DHparams( fp: *mut FILE, x: *mut *mut DH, @@ -27120,15 +26889,15 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DHparams"] pub fn PEM_write_bio_DHparams(bp: *mut BIO, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DHparams"] pub fn PEM_write_DHparams(fp: *mut FILE, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PrivateKey"] pub fn PEM_read_bio_PrivateKey( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27137,7 +26906,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PrivateKey"] pub fn PEM_read_PrivateKey( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27146,7 +26915,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey"] pub fn PEM_write_bio_PrivateKey( bp: *mut BIO, x: *mut EVP_PKEY, @@ -27158,7 +26927,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PrivateKey"] pub fn PEM_write_PrivateKey( fp: *mut FILE, x: *mut EVP_PKEY, @@ -27170,7 +26939,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PUBKEY"] pub fn PEM_read_bio_PUBKEY( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27179,7 +26948,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PUBKEY"] pub fn PEM_read_PUBKEY( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27188,18 +26957,18 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PUBKEY"] pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PUBKEY"] pub fn PEM_write_PUBKEY(fp: *mut FILE, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey_nid"] pub fn PEM_write_bio_PKCS8PrivateKey_nid( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27208,10 +26977,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey"] pub fn PEM_write_bio_PKCS8PrivateKey( arg1: *mut BIO, - arg2: *mut EVP_PKEY, + arg2: *const EVP_PKEY, arg3: *const EVP_CIPHER, arg4: *mut ::std::os::raw::c_char, arg5: ::std::os::raw::c_int, @@ -27220,10 +26989,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_bio"] pub fn i2d_PKCS8PrivateKey_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27232,10 +27001,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_bio"] pub fn i2d_PKCS8PrivateKey_nid_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27244,7 +27013,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_bio"] pub fn d2i_PKCS8PrivateKey_bio( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27253,10 +27022,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_fp"] pub fn i2d_PKCS8PrivateKey_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27265,10 +27034,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_fp"] pub fn i2d_PKCS8PrivateKey_nid_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27277,10 +27046,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey_nid"] pub fn PEM_write_PKCS8PrivateKey_nid( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27289,7 +27058,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_fp"] pub fn d2i_PKCS8PrivateKey_fp( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27298,10 +27067,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey"] pub fn PEM_write_PKCS8PrivateKey( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27310,7 +27079,43 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_Parameters"] + pub fn PEM_read_bio_Parameters(bio: *mut BIO, pkey: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_Parameters"] + pub fn PEM_write_bio_Parameters(bio: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPKParameters"] + pub fn PEM_read_bio_ECPKParameters( + bio: *mut BIO, + out_group: *mut *mut EC_GROUP, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPKParameters"] + pub fn PEM_write_bio_ECPKParameters( + out: *mut BIO, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey_traditional"] + pub fn PEM_write_bio_PrivateKey_traditional( + bp: *mut BIO, + x: *mut EVP_PKEY, + enc: *const EVP_CIPHER, + kstr: *mut ::std::os::raw::c_uchar, + klen: ::std::os::raw::c_int, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_encrypt"] pub fn PKCS8_encrypt( pbe_nid: ::std::os::raw::c_int, cipher: *const EVP_CIPHER, @@ -27323,7 +27128,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_marshal_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_marshal_encrypted_private_key"] pub fn PKCS8_marshal_encrypted_private_key( out: *mut CBB, pbe_nid: ::std::os::raw::c_int, @@ -27337,7 +27142,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_decrypt"] pub fn PKCS8_decrypt( pkcs8: *mut X509_SIG, pass: *const ::std::os::raw::c_char, @@ -27345,7 +27150,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_parse_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_parse_encrypted_private_key"] pub fn PKCS8_parse_encrypted_private_key( cbs: *mut CBS, pass: *const ::std::os::raw::c_char, @@ -27353,7 +27158,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_get_key_and_certs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_get_key_and_certs"] pub fn PKCS12_get_key_and_certs( out_key: *mut *mut EVP_PKEY, out_certs: *mut stack_st_X509, @@ -27362,11 +27167,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_PBE_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_PBE_add"] pub fn PKCS12_PBE_add(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12"] pub fn d2i_PKCS12( out_p12: *mut *mut PKCS12, ber_bytes: *mut *const u8, @@ -27374,27 +27179,27 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_bio"] pub fn d2i_PKCS12_bio(bio: *mut BIO, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_fp"] pub fn d2i_PKCS12_fp(fp: *mut FILE, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12"] pub fn i2d_PKCS12(p12: *const PKCS12, out: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_bio"] pub fn i2d_PKCS12_bio(bio: *mut BIO, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_fp"] pub fn i2d_PKCS12_fp(fp: *mut FILE, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_parse"] pub fn PKCS12_parse( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27404,7 +27209,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_verify_mac"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_verify_mac"] pub fn PKCS12_verify_mac( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27412,7 +27217,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_create"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_create"] pub fn PKCS12_create( password: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, @@ -27427,76 +27232,95 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_new"] + pub fn PKCS12_new() -> *mut PKCS12; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_free"] pub fn PKCS12_free(p12: *mut PKCS12); } pub type poly1305_state = [u8; 512usize]; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_init"] pub fn CRYPTO_poly1305_init(state: *mut poly1305_state, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_update"] pub fn CRYPTO_poly1305_update(state: *mut poly1305_state, in_: *const u8, in_len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_finish"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_finish"] pub fn CRYPTO_poly1305_finish(state: *mut poly1305_state, mac: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_bytes"] pub fn RAND_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_system_entropy_for_custom_prng"] - pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_priv_bytes"] + pub fn RAND_priv_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_cleanup"] - pub fn RAND_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_enable_fork_unsafe_buffering"] + pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_enable_fork_unsafe_buffering"] - pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_system_entropy_for_custom_prng"] + pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_pseudo_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_pseudo_bytes"] pub fn RAND_pseudo_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_seed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_seed"] pub fn RAND_seed(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_load_file"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_load_file"] pub fn RAND_load_file( path: *const ::std::os::raw::c_char, num: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_file_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_write_file"] + pub fn RAND_write_file(file: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_file_name"] pub fn RAND_file_name( buf: *mut ::std::os::raw::c_char, num: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_add"] pub fn RAND_add(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int, entropy: f64); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_egd"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd"] pub fn RAND_egd(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_poll"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd_bytes"] + pub fn RAND_egd_bytes( + arg1: *const ::std::os::raw::c_char, + bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_poll"] pub fn RAND_poll() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_status"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_status"] pub fn RAND_status() -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_cleanup"] + pub fn RAND_cleanup(); +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] pub struct rand_meth_st { @@ -27595,21 +27419,25 @@ fn bindgen_test_layout_rand_meth_st() { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_SSLeay"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_SSLeay"] pub fn RAND_SSLeay() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_OpenSSL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_OpenSSL"] pub fn RAND_OpenSSL() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_rand_method"] pub fn RAND_get_rand_method() -> *const RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_set_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_set_rand_method"] pub fn RAND_set_rand_method(arg1: *const RAND_METHOD) -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_keep_random_devices_open"] + pub fn RAND_keep_random_devices_open(a: ::std::os::raw::c_int); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct rc4_key_st { @@ -27672,11 +27500,11 @@ impl Default for rc4_key_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4_set_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4_set_key"] pub fn RC4_set_key(rc4key: *mut RC4_KEY, len: ::std::os::raw::c_uint, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4"] pub fn RC4(key: *mut RC4_KEY, len: usize, in_: *const u8, out: *mut u8); } #[repr(C)] @@ -27763,11 +27591,11 @@ impl Default for RIPEMD160state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Init"] pub fn RIPEMD160_Init(ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Update"] pub fn RIPEMD160_Update( ctx: *mut RIPEMD160_CTX, data: *const ::std::os::raw::c_void, @@ -27775,44 +27603,52 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Final"] pub fn RIPEMD160_Final(out: *mut u8, ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160"] pub fn RIPEMD160(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_before_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_before_call"] pub fn FIPS_service_indicator_before_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_after_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_after_call"] pub fn FIPS_service_indicator_after_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_version_string"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_version_string"] pub fn awslc_version_string() -> *const ::std::os::raw::c_char; } pub const FIPSStatus_AWSLC_NOT_APPROVED: FIPSStatus = 0; pub const FIPSStatus_AWSLC_APPROVED: FIPSStatus = 1; pub type FIPSStatus = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SIPHASH_24"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SIPHASH_24"] pub fn SIPHASH_24(key: *const u64, input: *const u8, input_len: usize) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v1"] pub fn TRUST_TOKEN_experiment_v1() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_voprf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_voprf"] pub fn TRUST_TOKEN_experiment_v2_voprf() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_pmb"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_pmb"] pub fn TRUST_TOKEN_experiment_v2_pmb() -> *const TRUST_TOKEN_METHOD; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_voprf"] + pub fn TRUST_TOKEN_pst_v1_voprf() -> *const TRUST_TOKEN_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_pmb"] + pub fn TRUST_TOKEN_pst_v1_pmb() -> *const TRUST_TOKEN_METHOD; +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct trust_token_st { @@ -27874,8 +27710,8 @@ pub type sk_TRUST_TOKEN_copy_func = ::std::option::Option *mut TRUST_TOKEN>; pub type sk_TRUST_TOKEN_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const TRUST_TOKEN, - arg2: *mut *const TRUST_TOKEN, + arg1: *const *const TRUST_TOKEN, + arg2: *const *const TRUST_TOKEN, ) -> ::std::os::raw::c_int, >; pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< @@ -27885,15 +27721,15 @@ pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_new"] pub fn TRUST_TOKEN_new(data: *const u8, len: usize) -> *mut TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_free"] pub fn TRUST_TOKEN_free(token: *mut TRUST_TOKEN); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_generate_key"] pub fn TRUST_TOKEN_generate_key( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -27906,7 +27742,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_derive_key_from_secret"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_derive_key_from_secret"] pub fn TRUST_TOKEN_derive_key_from_secret( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -27921,18 +27757,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_new"] pub fn TRUST_TOKEN_CLIENT_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_CLIENT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_free"] pub fn TRUST_TOKEN_CLIENT_free(ctx: *mut TRUST_TOKEN_CLIENT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_add_key"] pub fn TRUST_TOKEN_CLIENT_add_key( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -27941,14 +27777,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_set_srr_key"] pub fn TRUST_TOKEN_CLIENT_set_srr_key( ctx: *mut TRUST_TOKEN_CLIENT, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance"] pub fn TRUST_TOKEN_CLIENT_begin_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -27957,7 +27793,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] pub fn TRUST_TOKEN_CLIENT_begin_issuance_over_message( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -27968,7 +27804,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_issuance"] pub fn TRUST_TOKEN_CLIENT_finish_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -27977,7 +27813,7 @@ extern "C" { ) -> *mut stack_st_TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_redemption"] pub fn TRUST_TOKEN_CLIENT_begin_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -27989,7 +27825,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_redemption"] pub fn TRUST_TOKEN_CLIENT_finish_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out_rr: *mut *mut u8, @@ -28001,18 +27837,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_new"] pub fn TRUST_TOKEN_ISSUER_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_ISSUER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_free"] pub fn TRUST_TOKEN_ISSUER_free(ctx: *mut TRUST_TOKEN_ISSUER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_add_key"] pub fn TRUST_TOKEN_ISSUER_add_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28020,14 +27856,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_srr_key"] pub fn TRUST_TOKEN_ISSUER_set_srr_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_metadata_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_metadata_key"] pub fn TRUST_TOKEN_ISSUER_set_metadata_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28035,7 +27871,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_issue"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_issue"] pub fn TRUST_TOKEN_ISSUER_issue( ctx: *const TRUST_TOKEN_ISSUER, out: *mut *mut u8, @@ -28049,23 +27885,8 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem"] pub fn TRUST_TOKEN_ISSUER_redeem( - ctx: *const TRUST_TOKEN_ISSUER, - out: *mut *mut u8, - out_len: *mut usize, - out_token: *mut *mut TRUST_TOKEN, - out_client_data: *mut *mut u8, - out_client_data_len: *mut usize, - out_redemption_time: *mut u64, - request: *const u8, - request_len: usize, - lifetime: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_raw"] - pub fn TRUST_TOKEN_ISSUER_redeem_raw( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, out_private: *mut u8, @@ -28077,7 +27898,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem_over_message"] pub fn TRUST_TOKEN_ISSUER_redeem_over_message( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, @@ -28092,7 +27913,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_decode_private_metadata"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_decode_private_metadata"] pub fn TRUST_TOKEN_decode_private_metadata( method: *const TRUST_TOKEN_METHOD, out_value: *mut u8, @@ -28104,7 +27925,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_tls1_prf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_tls1_prf"] pub fn CRYPTO_tls1_prf( digest: *const EVP_MD, out: *mut u8, @@ -28120,15 +27941,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_LIB_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_LIB_RUST"] pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_REASON_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_REASON_RUST"] pub fn ERR_GET_REASON_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_FUNC_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_FUNC_RUST"] pub fn ERR_GET_FUNC_RUST(packed_error: u32) -> ::std::os::raw::c_int; } #[repr(C)] diff --git a/aws-lc-fips-sys/src/x86_64_apple_darwin_crypto.rs b/aws-lc-fips-sys/src/x86_64_apple_darwin_crypto.rs index 594803f890f..3f91233746b 100644 --- a/aws-lc-fips-sys/src/x86_64_apple_darwin_crypto.rs +++ b/aws-lc-fips-sys/src/x86_64_apple_darwin_crypto.rs @@ -110,14 +110,130 @@ where 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 = 20; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"2.0.15\0"; +pub const AWSLC_API_VERSION: i32 = 30; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 6] = b"3.0.0\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; pub const AES_BLOCK_SIZE: i32 = 16; +pub const SHA_CBLOCK: i32 = 64; +pub const SHA_DIGEST_LENGTH: i32 = 20; +pub const SHA224_CBLOCK: i32 = 64; +pub const SHA224_DIGEST_LENGTH: i32 = 28; +pub const SHA256_CBLOCK: i32 = 64; +pub const SHA256_DIGEST_LENGTH: i32 = 32; +pub const SHA384_CBLOCK: i32 = 128; +pub const SHA384_DIGEST_LENGTH: i32 = 48; +pub const SHA512_CBLOCK: i32 = 128; +pub const SHA512_DIGEST_LENGTH: i32 = 64; +pub const SHA512_224_DIGEST_LENGTH: i32 = 28; +pub const SHA512_256_DIGEST_LENGTH: i32 = 32; +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; 41] = b"OpenSSL 1.1.1 (compatible; AWS-LC 3.0.0)\0"; +pub const OPENSSL_VERSION: i32 = 0; +pub const OPENSSL_CFLAGS: i32 = 1; +pub const OPENSSL_BUILT_ON: i32 = 2; +pub const OPENSSL_PLATFORM: i32 = 3; +pub const OPENSSL_DIR: i32 = 4; +pub const SSLEAY_VERSION: i32 = 0; +pub const SSLEAY_CFLAGS: i32 = 1; +pub const SSLEAY_BUILT_ON: i32 = 2; +pub const SSLEAY_PLATFORM: i32 = 3; +pub const SSLEAY_DIR: i32 = 4; +pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_ENGINE_ALL_BUILTIN: i32 = 0; pub const ERR_FLAG_STRING: i32 = 1; pub const ERR_FLAG_MALLOCED: i32 = 2; +pub const ERR_LIB_NONE: i32 = 1; +pub const ERR_LIB_SYS: i32 = 2; +pub const ERR_LIB_BN: i32 = 3; +pub const ERR_LIB_RSA: i32 = 4; +pub const ERR_LIB_DH: i32 = 5; +pub const ERR_LIB_EVP: i32 = 6; +pub const ERR_LIB_BUF: i32 = 7; +pub const ERR_LIB_OBJ: i32 = 8; +pub const ERR_LIB_PEM: i32 = 9; +pub const ERR_LIB_DSA: i32 = 10; +pub const ERR_LIB_X509: i32 = 11; +pub const ERR_LIB_ASN1: i32 = 12; +pub const ERR_LIB_CONF: i32 = 13; +pub const ERR_LIB_CRYPTO: i32 = 14; +pub const ERR_LIB_EC: i32 = 15; +pub const ERR_LIB_SSL: i32 = 16; +pub const ERR_LIB_BIO: i32 = 17; +pub const ERR_LIB_PKCS7: i32 = 18; +pub const ERR_LIB_PKCS8: i32 = 19; +pub const ERR_LIB_X509V3: i32 = 20; +pub const ERR_LIB_RAND: i32 = 21; +pub const ERR_LIB_ENGINE: i32 = 22; +pub const ERR_LIB_OCSP: i32 = 23; +pub const ERR_LIB_UI: i32 = 24; +pub const ERR_LIB_COMP: i32 = 25; +pub const ERR_LIB_ECDSA: i32 = 26; +pub const ERR_LIB_ECDH: i32 = 27; +pub const ERR_LIB_HMAC: i32 = 28; +pub const ERR_LIB_DIGEST: i32 = 29; +pub const ERR_LIB_CIPHER: i32 = 30; +pub const ERR_LIB_HKDF: i32 = 31; +pub const ERR_LIB_TRUST_TOKEN: i32 = 32; +pub const ERR_LIB_USER: i32 = 33; +pub const ERR_NUM_LIBS: i32 = 34; +pub const ERR_LIB_PKCS12: i32 = 35; +pub const ERR_LIB_DSO: i32 = 36; +pub const ERR_LIB_OSSL_STORE: i32 = 37; +pub const ERR_LIB_FIPS: i32 = 38; +pub const ERR_LIB_CMS: i32 = 39; +pub const ERR_LIB_TS: i32 = 40; +pub const ERR_LIB_CT: i32 = 41; +pub const ERR_LIB_ASYNC: i32 = 42; +pub const ERR_LIB_KDF: i32 = 43; +pub const ERR_LIB_SM2: i32 = 44; +pub const ERR_R_SYS_LIB: i32 = 2; +pub const ERR_R_BN_LIB: i32 = 3; +pub const ERR_R_RSA_LIB: i32 = 4; +pub const ERR_R_DH_LIB: i32 = 5; +pub const ERR_R_EVP_LIB: i32 = 6; +pub const ERR_R_BUF_LIB: i32 = 7; +pub const ERR_R_OBJ_LIB: i32 = 8; +pub const ERR_R_PEM_LIB: i32 = 9; +pub const ERR_R_DSA_LIB: i32 = 10; +pub const ERR_R_X509_LIB: i32 = 11; +pub const ERR_R_ASN1_LIB: i32 = 12; +pub const ERR_R_CONF_LIB: i32 = 13; +pub const ERR_R_CRYPTO_LIB: i32 = 14; +pub const ERR_R_EC_LIB: i32 = 15; +pub const ERR_R_SSL_LIB: i32 = 16; +pub const ERR_R_BIO_LIB: i32 = 17; +pub const ERR_R_PKCS7_LIB: i32 = 18; +pub const ERR_R_PKCS8_LIB: i32 = 19; +pub const ERR_R_X509V3_LIB: i32 = 20; +pub const ERR_R_RAND_LIB: i32 = 21; +pub const ERR_R_DSO_LIB: i32 = 36; +pub const ERR_R_ENGINE_LIB: i32 = 22; +pub const ERR_R_OCSP_LIB: i32 = 23; +pub const ERR_R_UI_LIB: i32 = 24; +pub const ERR_R_COMP_LIB: i32 = 25; +pub const ERR_R_ECDSA_LIB: i32 = 26; +pub const ERR_R_ECDH_LIB: i32 = 27; +pub const ERR_R_FIPS_LIB: i32 = 38; +pub const ERR_R_CMS_LIB: i32 = 39; +pub const ERR_R_TS_LIB: i32 = 40; +pub const ERR_R_HMAC_LIB: i32 = 28; +pub const ERR_R_USER_LIB: i32 = 33; +pub const ERR_R_DIGEST_LIB: i32 = 29; +pub const ERR_R_CIPHER_LIB: i32 = 30; +pub const ERR_R_HKDF_LIB: i32 = 31; +pub const ERR_R_TRUST_TOKEN_LIB: i32 = 32; pub const ERR_R_FATAL: i32 = 64; pub const ERR_R_MALLOC_FAILURE: i32 = 65; pub const ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED: i32 = 66; @@ -128,10 +244,6 @@ pub const ERR_ERROR_STRING_BUF_LEN: i32 = 120; pub const ERR_TXT_STRING: i32 = 1; pub const ERR_TXT_MALLOCED: i32 = 2; pub const ERR_NUM_ERRORS: i32 = 16; -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 BIO_RR_CONNECT: i32 = 2; pub const BIO_RR_ACCEPT: i32 = 3; pub const BIO_CB_FREE: i32 = 1; @@ -143,6 +255,7 @@ pub const BIO_CB_CTRL: i32 = 6; pub const BIO_CB_RETURN: i32 = 128; pub const BIO_NOCLOSE: i32 = 0; pub const BIO_CLOSE: i32 = 1; +pub const BIO_FP_TEXT: i32 = 16; pub const BIO_CTRL_DGRAM_QUERY_MTU: i32 = 40; pub const BIO_CTRL_DGRAM_SET_MTU: i32 = 42; pub const BIO_CTRL_DGRAM_MTU_EXCEEDED: i32 = 43; @@ -208,7 +321,6 @@ pub const BIO_C_SET_FILE_PTR: i32 = 106; pub const BIO_C_GET_FILE_PTR: i32 = 107; pub const BIO_C_SET_FILENAME: i32 = 108; pub const BIO_C_SET_SSL: i32 = 109; -pub const BIO_C_GET_SSL: i32 = 110; pub const BIO_C_SET_MD: i32 = 111; pub const BIO_C_GET_MD: i32 = 112; pub const BIO_C_GET_CIPHER_STATUS: i32 = 113; @@ -222,9 +334,6 @@ pub const BIO_C_GET_MD_CTX: i32 = 120; pub const BIO_C_GET_PROXY_PARAM: i32 = 121; pub const BIO_C_SET_BUFF_READ_DATA: i32 = 122; pub const BIO_C_GET_ACCEPT: i32 = 124; -pub const BIO_C_SET_SSL_RENEGOTIATE_BYTES: i32 = 125; -pub const BIO_C_GET_SSL_NUM_RENEGOTIATES: i32 = 126; -pub const BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT: i32 = 127; pub const BIO_C_FILE_SEEK: i32 = 128; pub const BIO_C_GET_CIPHER_CTX: i32 = 129; pub const BIO_C_SET_BUF_MEM_EOF_RETURN: i32 = 130; @@ -269,7 +378,6 @@ pub const BIO_R_UNSUPPORTED_METHOD: i32 = 115; pub const BIO_R_WRITE_TO_READ_ONLY_BIO: i32 = 116; pub const BN_BITS2: i32 = 64; pub const BN_DEC_FMT1: &[u8; 5] = b"%llu\0"; -pub const BN_DEC_FMT2: &[u8; 8] = b"%019llu\0"; pub const BN_HEX_FMT1: &[u8; 5] = b"%llx\0"; pub const BN_HEX_FMT2: &[u8; 8] = b"%016llx\0"; pub const BN_RAND_TOP_ANY: i32 = -1; @@ -304,6 +412,7 @@ pub const BN_R_TOO_MANY_TEMPORARY_VARIABLES: i32 = 116; pub const BN_R_BAD_ENCODING: i32 = 117; pub const BN_R_ENCODE_ERROR: i32 = 118; pub const BN_R_INVALID_INPUT: i32 = 119; +pub const BN_F_BN_GENERATE_PRIME_EX: i32 = 0; pub const V_ASN1_UNIVERSAL: i32 = 0; pub const V_ASN1_APPLICATION: i32 = 64; pub const V_ASN1_CONTEXT_SPECIFIC: i32 = 128; @@ -364,6 +473,9 @@ pub const B_ASN1_UTF8STRING: i32 = 8192; pub const B_ASN1_UTCTIME: i32 = 16384; pub const B_ASN1_GENERALIZEDTIME: i32 = 32768; pub const B_ASN1_SEQUENCE: i32 = 65536; +pub const ASN1_BOOLEAN_FALSE: i32 = 0; +pub const ASN1_BOOLEAN_TRUE: i32 = 255; +pub const ASN1_BOOLEAN_NONE: i32 = -1; pub const ASN1_STRING_FLAG_BITS_LEFT: i32 = 8; pub const MBSTRING_FLAG: i32 = 4096; pub const MBSTRING_UTF8: i32 = 4096; @@ -563,7 +675,10 @@ pub const EVP_CIPH_OFB_MODE: i32 = 4; pub const EVP_CIPH_CTR_MODE: i32 = 5; pub const EVP_CIPH_GCM_MODE: i32 = 6; pub const EVP_CIPH_XTS_MODE: i32 = 7; +pub const EVP_CIPH_CCM_MODE: i32 = 8; pub const EVP_CIPH_FLAG_LENGTH_BITS: i32 = 8192; +pub const EVP_CIPH_OCB_MODE: i32 = 9; +pub const EVP_CIPH_WRAP_MODE: i32 = 10; pub const EVP_CIPH_VARIABLE_LENGTH: i32 = 64; pub const EVP_CIPH_ALWAYS_CALL_INIT: i32 = 128; pub const EVP_CIPH_CUSTOM_IV: i32 = 256; @@ -572,9 +687,6 @@ pub const EVP_CIPH_FLAG_CUSTOM_CIPHER: i32 = 1024; pub const EVP_CIPH_FLAG_AEAD_CIPHER: i32 = 2048; pub const EVP_CIPH_CUSTOM_COPY: i32 = 4096; pub const EVP_CIPH_FLAG_NON_FIPS_ALLOW: i32 = 0; -pub const EVP_CIPH_CCM_MODE: i32 = -1; -pub const EVP_CIPH_OCB_MODE: i32 = -2; -pub const EVP_CIPH_WRAP_MODE: i32 = -3; pub const EVP_CIPHER_CTX_FLAG_WRAP_ALLOW: i32 = 0; pub const EVP_CIPH_NO_PADDING: i32 = 2048; pub const EVP_CTRL_INIT: i32 = 0; @@ -591,8 +703,10 @@ pub const EVP_CTRL_AEAD_GET_TAG: i32 = 16; pub const EVP_CTRL_AEAD_SET_TAG: i32 = 17; pub const EVP_CTRL_AEAD_SET_IV_FIXED: i32 = 18; pub const EVP_CTRL_GCM_IV_GEN: i32 = 19; +pub const EVP_CTRL_CCM_SET_L: i32 = 20; pub const EVP_CTRL_AEAD_SET_MAC_KEY: i32 = 23; pub const EVP_CTRL_GCM_SET_IV_INV: i32 = 24; +pub const EVP_CTRL_GET_IVLEN: i32 = 25; pub const EVP_GCM_TLS_FIXED_IV_LEN: i32 = 4; pub const EVP_GCM_TLS_EXPLICIT_IV_LEN: i32 = 8; pub const EVP_GCM_TLS_TAG_LEN: i32 = 16; @@ -636,6 +750,8 @@ pub const CIPHER_R_XTS_DATA_UNIT_IS_TOO_LARGE: i32 = 139; pub const CIPHER_R_CTRL_OPERATION_NOT_PERFORMED: i32 = 140; pub const CIPHER_R_SERIALIZATION_INVALID_EVP_AEAD_CTX: i32 = 141; pub const CIPHER_R_ALIGNMENT_CHANGED: i32 = 142; +pub const CIPHER_R_SERIALIZATION_INVALID_SERDE_VERSION: i32 = 143; +pub const CIPHER_R_SERIALIZATION_INVALID_CIPHER_ID: i32 = 144; pub const CONF_MFLAGS_DEFAULT_SECTION: i32 = 0; pub const CONF_MFLAGS_IGNORE_MISSING_FILE: i32 = 0; pub const CONF_R_LIST_CANNOT_BE_NULL: i32 = 100; @@ -645,36 +761,7 @@ pub const CONF_R_NO_CLOSE_BRACE: i32 = 103; pub const CONF_R_UNABLE_TO_CREATE_NEW_SECTION: i32 = 104; pub const CONF_R_VARIABLE_HAS_NO_VALUE: i32 = 105; pub const CONF_R_VARIABLE_EXPANSION_TOO_LONG: i32 = 106; -pub const SHA_CBLOCK: i32 = 64; -pub const SHA_DIGEST_LENGTH: i32 = 20; -pub const SHA224_CBLOCK: i32 = 64; -pub const SHA224_DIGEST_LENGTH: i32 = 28; -pub const SHA256_CBLOCK: i32 = 64; -pub const SHA256_DIGEST_LENGTH: i32 = 32; -pub const SHA384_CBLOCK: i32 = 128; -pub const SHA384_DIGEST_LENGTH: i32 = 48; -pub const SHA512_CBLOCK: i32 = 128; -pub const SHA512_DIGEST_LENGTH: i32 = 64; -pub const SHA512_256_DIGEST_LENGTH: i32 = 32; -pub const OPENSSL_VERSION_TEXT: &[u8; 35] = b"OpenSSL 1.1.1 (compatible; AWS-LC)\0"; -pub const OPENSSL_VERSION: i32 = 0; -pub const OPENSSL_CFLAGS: i32 = 1; -pub const OPENSSL_BUILT_ON: i32 = 2; -pub const OPENSSL_PLATFORM: i32 = 3; -pub const OPENSSL_DIR: i32 = 4; -pub const SSLEAY_VERSION: i32 = 0; -pub const SSLEAY_CFLAGS: i32 = 1; -pub const SSLEAY_BUILT_ON: i32 = 2; -pub const SSLEAY_PLATFORM: i32 = 3; -pub const SSLEAY_DIR: i32 = 4; -pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; -pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const CONF_R_VARIABLE_EXPANSION_NOT_SUPPORTED: i32 = 107; pub const X25519_PRIVATE_KEY_LEN: i32 = 32; pub const X25519_PUBLIC_VALUE_LEN: i32 = 32; pub const X25519_SHARED_KEY_LEN: i32 = 32; @@ -702,13 +789,18 @@ pub const DH_UNABLE_TO_CHECK_GENERATOR: i32 = 4; pub const DH_CHECK_PUBKEY_TOO_SMALL: i32 = 1; pub const DH_CHECK_PUBKEY_TOO_LARGE: i32 = 2; pub const DH_CHECK_PUBKEY_INVALID: i32 = 4; +pub const DH_FLAG_CACHE_MONT_P: i32 = 0; pub const DH_R_BAD_GENERATOR: i32 = 100; pub const DH_R_INVALID_PUBKEY: i32 = 101; pub const DH_R_MODULUS_TOO_LARGE: i32 = 102; pub const DH_R_NO_PRIVATE_VALUE: i32 = 103; pub const DH_R_DECODE_ERROR: i32 = 104; pub const DH_R_ENCODE_ERROR: i32 = 105; +pub const DH_R_INVALID_NID: i32 = 106; +pub const DH_R_INVALID_PARAMETERS: i32 = 107; +pub const DH_F_DH_BUILTIN_GENPARAMS: i32 = 0; pub const EVP_MAX_MD_SIZE: i32 = 64; +pub const EVP_MAX_MD_CHAINING_LENGTH: i32 = 64; pub const EVP_MAX_MD_BLOCK_SIZE: i32 = 128; pub const EVP_MD_FLAG_DIGALGID_ABSENT: i32 = 2; pub const EVP_MD_FLAG_XOF: i32 = 4; @@ -716,7 +808,6 @@ pub const EVP_MD_CTX_FLAG_NON_FIPS_ALLOW: i32 = 0; pub const DIGEST_R_INPUT_NOT_INITIALIZED: i32 = 100; pub const DIGEST_R_DECODE_ERROR: i32 = 101; pub const DIGEST_R_UNKNOWN_HASH: i32 = 102; -pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const DSA_R_BAD_Q_VALUE: i32 = 100; pub const DSA_R_MISSING_PARAMETERS: i32 = 101; pub const DSA_R_MODULUS_TOO_LARGE: i32 = 102; @@ -725,8 +816,10 @@ pub const DSA_R_BAD_VERSION: i32 = 104; pub const DSA_R_DECODE_ERROR: i32 = 105; pub const DSA_R_ENCODE_ERROR: i32 = 106; pub const DSA_R_INVALID_PARAMETERS: i32 = 107; +pub const DSA_R_TOO_MANY_ITERATIONS: i32 = 108; pub const OPENSSL_EC_EXPLICIT_CURVE: i32 = 0; pub const OPENSSL_EC_NAMED_CURVE: i32 = 1; +pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const EC_PKEY_NO_PARAMETERS: i32 = 1; pub const EC_PKEY_NO_PUBKEY: i32 = 2; pub const ECDSA_FLAG_OPAQUE: i32 = 1; @@ -775,6 +868,7 @@ pub const ECDSA_R_NOT_IMPLEMENTED: i32 = 103; pub const ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED: i32 = 104; pub const ECDSA_R_ENCODE_ERROR: i32 = 105; pub const ECDSA_R_MISMATCHED_SIGNATURE: i32 = 205; +pub const ECDSA_R_TOO_MANY_ITERATIONS: i32 = 106; pub const EVP_R_BUFFER_TOO_SMALL: i32 = 100; pub const EVP_R_COMMAND_NOT_SUPPORTED: i32 = 101; pub const EVP_R_DECODE_ERROR: i32 = 102; @@ -813,6 +907,8 @@ pub const EVP_R_INVALID_PEER_KEY: i32 = 134; pub const EVP_R_NOT_XOF_OR_INVALID_LENGTH: i32 = 135; pub const EVP_R_EMPTY_PSK: i32 = 136; pub const EVP_R_INVALID_BUFFER_SIZE: i32 = 137; +pub const EVP_R_BAD_DECRYPT: i32 = 138; +pub const EVP_R_EXPECTING_A_DH_KEY: i32 = 139; pub const EVP_R_INVALID_PSS_MD: i32 = 500; pub const EVP_R_INVALID_PSS_SALT_LEN: i32 = 501; pub const EVP_R_INVALID_PSS_TRAILER_FIELD: i32 = 502; @@ -3096,8 +3192,6 @@ pub const NID_kx_any: i32 = 957; pub const SN_auth_any: &[u8; 8] = b"AuthANY\0"; pub const LN_auth_any: &[u8; 9] = b"auth-any\0"; pub const NID_auth_any: i32 = 958; -pub const SN_CECPQ2: &[u8; 7] = b"CECPQ2\0"; -pub const NID_CECPQ2: i32 = 959; pub const SN_ED448: &[u8; 6] = b"ED448\0"; pub const NID_ED448: i32 = 960; pub const SN_X448: &[u8; 5] = b"X448\0"; @@ -3137,23 +3231,80 @@ pub const SN_KYBER768_R3: &[u8; 12] = b"KYBER768_R3\0"; pub const NID_KYBER768_R3: i32 = 973; pub const SN_KYBER1024_R3: &[u8; 13] = b"KYBER1024_R3\0"; pub const NID_KYBER1024_R3: i32 = 974; +pub const SN_DILITHIUM3_R3: &[u8; 14] = b"DILITHIUM3_R3\0"; +pub const NID_DILITHIUM3_R3: i32 = 975; +pub const SN_ffdhe2048: &[u8; 10] = b"ffdhe2048\0"; +pub const NID_ffdhe2048: i32 = 976; +pub const SN_ffdhe4096: &[u8; 10] = b"ffdhe4096\0"; +pub const NID_ffdhe4096: i32 = 977; +pub const SN_sha512_224: &[u8; 11] = b"SHA512-224\0"; +pub const LN_sha512_224: &[u8; 11] = b"sha512-224\0"; +pub const NID_sha512_224: i32 = 978; +pub const SN_shake128: &[u8; 9] = b"SHAKE128\0"; +pub const LN_shake128: &[u8; 9] = b"shake128\0"; +pub const NID_shake128: i32 = 979; +pub const SN_shake256: &[u8; 9] = b"SHAKE256\0"; +pub const LN_shake256: &[u8; 9] = b"shake256\0"; +pub const NID_shake256: i32 = 980; +pub const SN_SecP256r1Kyber768Draft00: &[u8; 25] = b"SecP256r1Kyber768Draft00\0"; +pub const NID_SecP256r1Kyber768Draft00: i32 = 981; +pub const SN_X25519Kyber768Draft00: &[u8; 22] = b"X25519Kyber768Draft00\0"; +pub const NID_X25519Kyber768Draft00: i32 = 982; +pub const SN_ffdhe3072: &[u8; 10] = b"ffdhe3072\0"; +pub const NID_ffdhe3072: i32 = 983; +pub const SN_ffdhe8192: &[u8; 10] = b"ffdhe8192\0"; +pub const NID_ffdhe8192: i32 = 984; +pub const SN_MLKEM512IPD: &[u8; 12] = b"MLKEM512IPD\0"; +pub const NID_MLKEM512IPD: i32 = 985; +pub const SN_MLKEM768IPD: &[u8; 12] = b"MLKEM768IPD\0"; +pub const NID_MLKEM768IPD: i32 = 986; +pub const SN_MLKEM1024IPD: &[u8; 13] = b"MLKEM1024IPD\0"; +pub const NID_MLKEM1024IPD: i32 = 987; +pub const SN_MLKEM512: &[u8; 9] = b"MLKEM512\0"; +pub const NID_MLKEM512: i32 = 988; +pub const SN_MLKEM768: &[u8; 9] = b"MLKEM768\0"; +pub const NID_MLKEM768: i32 = 989; +pub const SN_MLKEM1024: &[u8; 10] = b"MLKEM1024\0"; +pub const NID_MLKEM1024: i32 = 990; +pub const SN_X25519MLKEM768: &[u8; 15] = b"X25519MLKEM768\0"; +pub const NID_X25519MLKEM768: i32 = 991; +pub const SN_SecP256r1MLKEM768: &[u8; 18] = b"SecP256r1MLKEM768\0"; +pub const NID_SecP256r1MLKEM768: i32 = 992; +pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; +pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; +pub const OBJ_R_UNKNOWN_NID: i32 = 100; +pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const EVP_PKEY_NONE: i32 = 0; pub const EVP_PKEY_RSA: i32 = 6; pub const EVP_PKEY_RSA_PSS: i32 = 912; -pub const EVP_PKEY_DSA: i32 = 116; pub const EVP_PKEY_EC: i32 = 408; pub const EVP_PKEY_ED25519: i32 = 949; pub const EVP_PKEY_X25519: i32 = 948; -pub const EVP_PKEY_KYBER512: i32 = 971; pub const EVP_PKEY_HKDF: i32 = 969; -pub const EVP_PKEY_KEM: i32 = 970; +pub const EVP_PKEY_HMAC: i32 = 855; pub const EVP_PKEY_DH: i32 = 28; +pub const EVP_PKEY_KEM: i32 = 970; +pub const PKCS5_SALT_LEN: i32 = 8; pub const EVP_PKEY_RSA2: i32 = 19; pub const EVP_PKEY_X448: i32 = 961; pub const EVP_PKEY_ED448: i32 = 960; +pub const EVP_PKEY_DSA: i32 = 116; 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; +pub const HMAC_R_SET_PRECOMPUTED_KEY_EXPORT_NOT_CALLED: i32 = 103; +pub const HMAC_R_NOT_CALLED_JUST_AFTER_INIT: i32 = 104; pub const EVP_HPKE_DHKEM_X25519_HKDF_SHA256: i32 = 32; pub const EVP_HPKE_MAX_PUBLIC_KEY_LENGTH: i32 = 32; pub const EVP_HPKE_MAX_PRIVATE_KEY_LENGTH: i32 = 32; @@ -3173,26 +3324,26 @@ pub const HRSS_POLY3_BYTES: i32 = 140; pub const HRSS_PRIVATE_KEY_BYTES: i32 = 1452; pub const MD4_CBLOCK: i32 = 64; pub const MD4_DIGEST_LENGTH: i32 = 16; -pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; -pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; -pub const OBJ_R_UNKNOWN_NID: i32 = 100; -pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const PKCS7_DETACHED: i32 = 64; +pub const PKCS7_BINARY: i32 = 128; +pub const PKCS7_NOATTR: i32 = 256; +pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_TEXT: i32 = 1; pub const PKCS7_NOCERTS: i32 = 2; +pub const PKCS7_NOSMIMECAP: i32 = 512; +pub const PKCS7_STREAM: i32 = 4096; pub const PKCS7_NOSIGS: i32 = 4; pub const PKCS7_NOCHAIN: i32 = 8; pub const PKCS7_NOINTERN: i32 = 16; pub const PKCS7_NOVERIFY: i32 = 32; -pub const PKCS7_BINARY: i32 = 128; -pub const PKCS7_NOATTR: i32 = 256; -pub const PKCS7_NOSMIMECAP: i32 = 512; -pub const PKCS7_STREAM: i32 = 4096; -pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_R_BAD_PKCS7_VERSION: i32 = 100; pub const PKCS7_R_NOT_PKCS7_SIGNED_DATA: i32 = 101; pub const PKCS7_R_NO_CERTIFICATES_INCLUDED: i32 = 102; pub const PKCS7_R_NO_CRLS_INCLUDED: i32 = 103; +pub const PKCS7_R_UNSUPPORTED_CONTENT_TYPE: i32 = 104; +pub const PKCS7_R_WRONG_CONTENT_TYPE: i32 = 105; +pub const PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER: i32 = 106; +pub const PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE: i32 = 107; pub const RSA_PKCS1_PADDING: i32 = 1; pub const RSA_NO_PADDING: i32 = 3; pub const RSA_PKCS1_OAEP_PADDING: i32 = 4; @@ -3201,6 +3352,8 @@ pub const RSA_PSS_SALTLEN_DIGEST: i32 = -1; pub const RSA_FLAG_OPAQUE: i32 = 1; pub const RSA_FLAG_NO_BLINDING: i32 = 8; pub const RSA_FLAG_EXT_PKEY: i32 = 32; +pub const RSA_FLAG_NO_PUBLIC_EXPONENT: i32 = 64; +pub const RSA_FLAG_LARGE_PUBLIC_EXPONENT: i32 = 128; pub const RSA_3: i32 = 3; pub const RSA_F4: i32 = 65537; pub const RSA_METHOD_FLAG_NO_CHECK: i32 = 1; @@ -3254,15 +3407,86 @@ pub const RSA_R_PUBLIC_KEY_VALIDATION_FAILED: i32 = 146; pub const RSA_R_D_OUT_OF_RANGE: i32 = 147; pub const RSA_R_BLOCK_TYPE_IS_NOT_02: i32 = 148; pub const RSA_R_MISMATCHED_SIGNATURE: i32 = 248; +pub const RSA_F_RSA_OSSL_PRIVATE_ENCRYPT: i32 = 0; +pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; +pub const X509V3_R_BAD_OBJECT: i32 = 101; +pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; +pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; +pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; +pub const X509V3_R_DIRNAME_ERROR: i32 = 105; +pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; +pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; +pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; +pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; +pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; +pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; +pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; +pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; +pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; +pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; +pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; +pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; +pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; +pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; +pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; +pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; +pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; +pub const X509V3_R_INVALID_NAME: i32 = 123; +pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; +pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; +pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; +pub const X509V3_R_INVALID_NUMBER: i32 = 127; +pub const X509V3_R_INVALID_NUMBERS: i32 = 128; +pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; +pub const X509V3_R_INVALID_OPTION: i32 = 130; +pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; +pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; +pub const X509V3_R_INVALID_PURPOSE: i32 = 133; +pub const X509V3_R_INVALID_SECTION: i32 = 134; +pub const X509V3_R_INVALID_SYNTAX: i32 = 135; +pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; +pub const X509V3_R_MISSING_VALUE: i32 = 137; +pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; +pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; +pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; +pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; +pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; +pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; +pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; +pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; +pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; +pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; +pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; +pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; +pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; +pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; +pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; +pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; +pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; +pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; +pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; +pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; +pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; +pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; +pub const X509V3_R_USER_TOO_LONG: i32 = 162; +pub const X509V3_R_INVALID_VALUE: i32 = 163; +pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; pub const X509_VERSION_1: i32 = 0; pub const X509_VERSION_2: i32 = 1; pub const X509_VERSION_3: i32 = 2; -pub const X509_CRL_VERSION_1: i32 = 0; -pub const X509_CRL_VERSION_2: i32 = 1; -pub const X509_REQ_VERSION_1: i32 = 0; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; +pub const EXFLAG_BCONS: i32 = 1; +pub const EXFLAG_KUSAGE: i32 = 2; +pub const EXFLAG_XKUSAGE: i32 = 4; +pub const EXFLAG_NSCERT: i32 = 8; +pub const EXFLAG_CA: i32 = 16; +pub const EXFLAG_SI: i32 = 32; +pub const EXFLAG_V1: i32 = 64; +pub const EXFLAG_INVALID: i32 = 128; +pub const EXFLAG_SET: i32 = 256; +pub const EXFLAG_CRITICAL: i32 = 512; +pub const EXFLAG_SS: i32 = 8192; pub const X509v3_KU_DIGITAL_SIGNATURE: i32 = 128; pub const X509v3_KU_NON_REPUDIATION: i32 = 64; pub const X509v3_KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3272,60 +3496,29 @@ pub const X509v3_KU_KEY_CERT_SIGN: i32 = 4; pub const X509v3_KU_CRL_SIGN: i32 = 2; pub const X509v3_KU_ENCIPHER_ONLY: i32 = 1; pub const X509v3_KU_DECIPHER_ONLY: i32 = 32768; -pub const X509v3_KU_UNDEF: i32 = 65535; -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_OCSP_SIGN: i32 = 6; -pub const X509_TRUST_OCSP_REQUEST: i32 = 7; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_MIN: i32 = 1; -pub const X509_TRUST_MAX: i32 = 8; -pub const X509_TRUST_DYNAMIC: i32 = 1; -pub const X509_TRUST_DYNAMIC_NAME: i32 = 2; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -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 XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_COMPAT: i32 = 0; -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_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 XKU_SSL_SERVER: i32 = 1; +pub const XKU_SSL_CLIENT: i32 = 2; +pub const XKU_SMIME: i32 = 4; +pub const XKU_CODE_SIGN: i32 = 8; +pub const XKU_SGC: i32 = 16; +pub const XKU_OCSP_SIGN: i32 = 32; +pub const XKU_TIMESTAMP: i32 = 64; +pub const XKU_DVCS: i32 = 128; +pub const XKU_ANYEKU: i32 = 256; +pub const X509_SIG_INFO_VALID: i32 = 1; +pub const X509_SIG_INFO_TLS: i32 = 2; +pub const X509_CRL_VERSION_1: i32 = 0; +pub const X509_CRL_VERSION_2: i32 = 1; +pub const X509_REQ_VERSION_1: i32 = 0; +pub const GEN_OTHERNAME: i32 = 0; +pub const GEN_EMAIL: i32 = 1; +pub const GEN_DNS: i32 = 2; +pub const GEN_X400: i32 = 3; +pub const GEN_DIRNAME: i32 = 4; +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_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3387,31 +3580,117 @@ 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_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; -pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; -pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; -pub const X509_V_FLAG_X509_STRICT: i32 = 0; -pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; -pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; -pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; -pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; -pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; -pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; -pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; -pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; -pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; -pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; +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; +pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; +pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; +pub const X509_V_FLAG_X509_STRICT: i32 = 0; +pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; +pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; +pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; +pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; +pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; +pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; +pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; +pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; +pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; +pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; pub const X509_V_FLAG_PARTIAL_CHAIN: i32 = 524288; pub const X509_V_FLAG_NO_ALT_CHAINS: i32 = 1048576; pub const X509_V_FLAG_NO_CHECK_TIME: i32 = 2097152; -pub const X509_VP_FLAG_DEFAULT: i32 = 1; -pub const X509_VP_FLAG_OVERWRITE: i32 = 2; -pub const X509_VP_FLAG_RESET_FLAGS: i32 = 4; -pub const X509_VP_FLAG_LOCKED: i32 = 8; -pub const X509_VP_FLAG_ONCE: i32 = 16; pub const X509_V_FLAG_POLICY_MASK: i32 = 1920; +pub const X509V3_EXT_CTX_DEP: i32 = 2; +pub const X509V3_EXT_MULTILINE: i32 = 4; +pub const CRLDP_ALL_REASONS: i32 = 32895; +pub const NS_SSL_CLIENT: i32 = 128; +pub const NS_SSL_SERVER: i32 = 64; +pub const NS_SMIME: i32 = 32; +pub const NS_OBJSIGN: i32 = 16; +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 X509V3_ADD_OP_MASK: i32 = 15; +pub const X509V3_ADD_DEFAULT: i32 = 0; +pub const X509V3_ADD_APPEND: i32 = 1; +pub const X509V3_ADD_REPLACE: i32 = 2; +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_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -3457,19 +3736,7 @@ pub const X509_R_NO_CERTIFICATE_FOUND: i32 = 141; pub const X509_R_NO_CERTIFICATE_OR_CRL_FOUND: i32 = 142; pub const X509_R_NO_CRL_FOUND: i32 = 143; pub const X509_R_INVALID_POLICY_EXTENSION: i32 = 144; -pub const X509V3_EXT_DYNAMIC: i32 = 1; -pub const X509V3_EXT_CTX_DEP: i32 = 2; -pub const X509V3_EXT_MULTILINE: i32 = 4; -pub const GEN_OTHERNAME: i32 = 0; -pub const GEN_EMAIL: i32 = 1; -pub const GEN_DNS: i32 = 2; -pub const GEN_X400: i32 = 3; -pub const GEN_DIRNAME: i32 = 4; -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 CRLDP_ALL_REASONS: i32 = 32895; +pub const X509_R_UNKNOWN_SIGID_ALGS: i32 = 145; pub const CRL_REASON_NONE: i32 = -1; pub const CRL_REASON_UNSPECIFIED: i32 = 0; pub const CRL_REASON_KEY_COMPROMISE: i32 = 1; @@ -3481,26 +3748,6 @@ pub const CRL_REASON_CERTIFICATE_HOLD: i32 = 6; pub const CRL_REASON_REMOVE_FROM_CRL: i32 = 8; pub const CRL_REASON_PRIVILEGE_WITHDRAWN: i32 = 9; pub const CRL_REASON_AA_COMPROMISE: i32 = 10; -pub const IDP_PRESENT: i32 = 1; -pub const IDP_INVALID: i32 = 2; -pub const IDP_ONLYUSER: i32 = 4; -pub const IDP_ONLYCA: i32 = 8; -pub const IDP_ONLYATTR: i32 = 16; -pub const IDP_INDIRECT: i32 = 32; -pub const IDP_REASONS: i32 = 64; -pub const EXFLAG_BCONS: i32 = 1; -pub const EXFLAG_KUSAGE: i32 = 2; -pub const EXFLAG_XKUSAGE: i32 = 4; -pub const EXFLAG_NSCERT: i32 = 8; -pub const EXFLAG_CA: i32 = 16; -pub const EXFLAG_SI: i32 = 32; -pub const EXFLAG_V1: i32 = 64; -pub const EXFLAG_INVALID: i32 = 128; -pub const EXFLAG_SET: i32 = 256; -pub const EXFLAG_CRITICAL: i32 = 512; -pub const EXFLAG_PROXY: i32 = 1024; -pub const EXFLAG_FRESHEST: i32 = 4096; -pub const EXFLAG_SS: i32 = 8192; pub const KU_DIGITAL_SIGNATURE: i32 = 128; pub const KU_NON_REPUDIATION: i32 = 64; pub const KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3510,124 +3757,24 @@ pub const KU_KEY_CERT_SIGN: i32 = 4; pub const KU_CRL_SIGN: i32 = 2; pub const KU_ENCIPHER_ONLY: i32 = 1; pub const KU_DECIPHER_ONLY: i32 = 32768; -pub const NS_SSL_CLIENT: i32 = 128; -pub const NS_SSL_SERVER: i32 = 64; -pub const NS_SMIME: i32 = 32; -pub const NS_OBJSIGN: i32 = 16; -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 XKU_SSL_SERVER: i32 = 1; -pub const XKU_SSL_CLIENT: i32 = 2; -pub const XKU_SMIME: i32 = 4; -pub const XKU_CODE_SIGN: i32 = 8; -pub const XKU_SGC: i32 = 16; -pub const XKU_OCSP_SIGN: i32 = 32; -pub const XKU_TIMESTAMP: i32 = 64; -pub const XKU_DVCS: i32 = 128; -pub const XKU_ANYEKU: i32 = 256; -pub const X509_PURPOSE_DYNAMIC: i32 = 1; -pub const X509_PURPOSE_DYNAMIC_NAME: i32 = 2; -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_PURPOSE_MIN: i32 = 1; -pub const X509_PURPOSE_MAX: i32 = 9; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509V3_ADD_OP_MASK: i32 = 15; -pub const X509V3_ADD_DEFAULT: i32 = 0; -pub const X509V3_ADD_APPEND: i32 = 1; -pub const X509V3_ADD_REPLACE: i32 = 2; -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 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 X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: 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_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; -pub const X509V3_R_BAD_OBJECT: i32 = 101; -pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; -pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; -pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; -pub const X509V3_R_DIRNAME_ERROR: i32 = 105; -pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; -pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; -pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; -pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; -pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; -pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; -pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; -pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; -pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; -pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; -pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; -pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; -pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; -pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; -pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; -pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; -pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; -pub const X509V3_R_INVALID_NAME: i32 = 123; -pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; -pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; -pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; -pub const X509V3_R_INVALID_NUMBER: i32 = 127; -pub const X509V3_R_INVALID_NUMBERS: i32 = 128; -pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; -pub const X509V3_R_INVALID_OPTION: i32 = 130; -pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; -pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; -pub const X509V3_R_INVALID_PURPOSE: i32 = 133; -pub const X509V3_R_INVALID_SECTION: i32 = 134; -pub const X509V3_R_INVALID_SYNTAX: i32 = 135; -pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; -pub const X509V3_R_MISSING_VALUE: i32 = 137; -pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; -pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; -pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; -pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; -pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; -pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; -pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; -pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; -pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; -pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; -pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; -pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; -pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; -pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; -pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; -pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; -pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; -pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; -pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; -pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; -pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; -pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; -pub const X509V3_R_USER_TOO_LONG: i32 = 162; -pub const X509V3_R_INVALID_VALUE: i32 = 163; -pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; +pub const OCSP_REVOKED_STATUS_UNSPECIFIED: i32 = 0; +pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: i32 = 1; +pub const OCSP_REVOKED_STATUS_CACOMPROMISE: i32 = 2; +pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: i32 = 3; +pub const OCSP_REVOKED_STATUS_SUPERSEDED: i32 = 4; +pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: i32 = 5; +pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: i32 = 6; +pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: i32 = 8; +pub const OCSP_REVOKED_STATUS_PRIVILEGEWITHDRAWN: i32 = 9; +pub const OCSP_REVOKED_STATUS_AACOMPROMISE: i32 = 10; +pub const OCSP_NOCERTS: i32 = 1; pub const OCSP_NOINTERN: i32 = 2; pub const OCSP_NOCHAIN: i32 = 8; +pub const OCSP_NOVERIFY: i32 = 16; pub const OCSP_NOEXPLICIT: i32 = 32; +pub const OCSP_TRUSTOTHER: i32 = 512; +pub const OCSP_RESPID_KEY: i32 = 1024; +pub const OCSP_NOTIME: i32 = 2048; pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: i32 = 0; pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: i32 = 1; pub const OCSP_RESPONSE_STATUS_INTERNALERROR: i32 = 2; @@ -3639,19 +3786,38 @@ pub const V_OCSP_RESPID_KEY: i32 = 1; pub const V_OCSP_CERTSTATUS_GOOD: i32 = 0; pub const V_OCSP_CERTSTATUS_REVOKED: i32 = 1; pub const V_OCSP_CERTSTATUS_UNKNOWN: i32 = 2; +pub const OCSP_NONCE_EQUAL: i32 = 1; +pub const OCSP_NONCE_BOTH_ABSENT: i32 = 2; +pub const OCSP_NONCE_RESPONSE_ONLY: i32 = 3; +pub const OCSP_NONCE_NOT_EQUAL: i32 = 0; +pub const OCSP_NONCE_REQUEST_ONLY: i32 = -1; pub const OCSP_R_CERTIFICATE_VERIFY_ERROR: i32 = 101; pub const OCSP_R_DIGEST_ERR: i32 = 102; pub const OCSP_R_MISSING_OCSPSIGNING_USAGE: i32 = 103; pub const OCSP_R_NOT_BASIC_RESPONSE: i32 = 104; pub const OCSP_R_NO_CERTIFICATES_IN_CHAIN: i32 = 105; pub const OCSP_R_NO_RESPONSE_DATA: i32 = 108; +pub const OCSP_R_NO_REVOKED_TIME: i32 = 109; +pub const OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE: i32 = 110; pub const OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA: i32 = 111; pub const OCSP_R_ROOT_CA_NOT_TRUSTED: i32 = 112; +pub const OCSP_R_SERVER_RESPONSE_PARSE_ERROR: i32 = 115; pub const OCSP_R_SIGNATURE_FAILURE: i32 = 117; pub const OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND: i32 = 118; pub const OCSP_R_UNKNOWN_MESSAGE_DIGEST: i32 = 119; pub const OCSP_R_UNKNOWN_NID: i32 = 120; +pub const OCSP_R_ERROR_PARSING_URL: i32 = 121; +pub const OCSP_R_ERROR_IN_NEXTUPDATE_FIELD: i32 = 122; +pub const OCSP_R_ERROR_IN_THISUPDATE_FIELD: i32 = 123; +pub const OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE: i32 = 124; +pub const OCSP_R_STATUS_EXPIRED: i32 = 125; +pub const OCSP_R_STATUS_NOT_YET_VALID: i32 = 126; +pub const OCSP_R_STATUS_TOO_OLD: i32 = 127; +pub const OCSP_R_REQUEST_NOT_SIGNED: i32 = 128; +pub const OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE: i32 = 129; pub const OCSP_R_NO_SIGNER_KEY: i32 = 130; +pub const OCSP_R_OCSP_REQUEST_DUPLICATE_SIGNATURE: i32 = 131; +pub const OCSP_R_UNKNOWN_FIELD_VALUE: i32 = 132; pub const PEM_BUFSIZE: i32 = 1024; pub const PEM_STRING_X509_OLD: &[u8; 17] = b"X509 CERTIFICATE\0"; pub const PEM_STRING_X509: &[u8; 12] = b"CERTIFICATE\0"; @@ -3675,7 +3841,9 @@ pub const PEM_STRING_DHPARAMS: &[u8; 14] = b"DH PARAMETERS\0"; pub const PEM_STRING_SSL_SESSION: &[u8; 23] = b"SSL SESSION PARAMETERS\0"; pub const PEM_STRING_DSAPARAMS: &[u8; 15] = b"DSA PARAMETERS\0"; pub const PEM_STRING_ECDSA_PUBLIC: &[u8; 17] = b"ECDSA PUBLIC KEY\0"; +pub const PEM_STRING_ECPARAMETERS: &[u8; 14] = b"EC PARAMETERS\0"; pub const PEM_STRING_ECPRIVATEKEY: &[u8; 15] = b"EC PRIVATE KEY\0"; +pub const PEM_STRING_PARAMETERS: &[u8; 11] = b"PARAMETERS\0"; pub const PEM_STRING_CMS: &[u8; 4] = b"CMS\0"; pub const PEM_TYPE_ENCRYPTED: i32 = 10; pub const PEM_TYPE_MIC_ONLY: i32 = 20; @@ -3696,6 +3864,7 @@ pub const PEM_R_READ_KEY: i32 = 111; pub const PEM_R_SHORT_HEADER: i32 = 112; pub const PEM_R_UNSUPPORTED_CIPHER: i32 = 113; pub const PEM_R_UNSUPPORTED_ENCRYPTION: i32 = 114; +pub const PEM_R_PROBLEMS_GETTING_PASSWORD: i32 = 115; pub const PKCS12_DEFAULT_ITER: i32 = 2048; pub const PKCS8_R_BAD_PKCS12_DATA: i32 = 100; pub const PKCS8_R_BAD_PKCS12_VERSION: i32 = 101; @@ -3731,11 +3900,12 @@ pub const PKCS8_R_UNSUPPORTED_PRF: i32 = 130; pub const PKCS8_R_INVALID_CHARACTERS: i32 = 131; pub const PKCS8_R_UNSUPPORTED_OPTIONS: i32 = 132; pub const PKCS8_R_AMBIGUOUS_FRIENDLY_NAME: i32 = 133; +pub const PKCS12_R_MAC_VERIFY_FAILURE: i32 = 108; pub const RIPEMD160_CBLOCK: i32 = 64; pub const RIPEMD160_LBLOCK: i32 = 16; pub const RIPEMD160_DIGEST_LENGTH: i32 = 20; pub const AWSLC_MODE_STRING: &[u8; 8] = b"AWS-LC \0"; -pub const AWSLC_VERSION_STRING: &[u8; 14] = b"AWS-LC 2.0.15\0"; +pub const AWSLC_VERSION_STRING: &[u8; 13] = b"AWS-LC 3.0.0\0"; pub const TRUST_TOKEN_MAX_PRIVATE_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_MAX_PUBLIC_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_R_KEYGEN_FAILURE: i32 = 100; @@ -3855,6 +4025,7 @@ pub type AUTHORITY_KEYID = AUTHORITY_KEYID_st; pub type BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; pub type DIST_POINT = DIST_POINT_st; pub type DSA_SIG = DSA_SIG_st; +pub type GENERAL_NAME = GENERAL_NAME_st; pub type ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; pub type NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; pub type NETSCAPE_SPKAC = Netscape_spkac_st; @@ -3906,6 +4077,12 @@ pub struct X509_req_st { pub type X509_REQ = X509_req_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct x509_sig_info_st { + _unused: [u8; 0], +} +pub type X509_SIG_INFO = x509_sig_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct X509_sig_st { _unused: [u8; 0], } @@ -3968,6 +4145,11 @@ pub struct dh_st { _unused: [u8; 0], } pub type DH = dh_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_st { + _unused: [u8; 0], +} pub type DSA = dsa_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3987,7 +4169,12 @@ pub struct ec_point_st { _unused: [u8; 0], } pub type EC_POINT = ec_point_st; -pub type ECDSA_METHOD = ecdsa_method_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_key_method_st { + _unused: [u8; 0], +} +pub type EC_KEY_METHOD = ec_key_method_st; pub type ECDSA_SIG = ecdsa_sig_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4051,32 +4238,75 @@ pub struct kem_key_st { pub type KEM_KEY = kem_key_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_asn1_method_st { +pub struct evp_pkey_ctx_st { _unused: [u8; 0], } -pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; +pub type EVP_PKEY_CTX = evp_pkey_ctx_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_ctx_st { +pub struct evp_pkey_asn1_method_st { _unused: [u8; 0], } -pub type EVP_PKEY_CTX = evp_pkey_ctx_st; +pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_method_st { +pub struct evp_pkey_st { _unused: [u8; 0], } -pub type EVP_PKEY_METHOD = evp_pkey_method_st; pub type EVP_PKEY = evp_pkey_st; pub type HMAC_CTX = hmac_ctx_st; pub type MD4_CTX = md4_state_st; pub type MD5_CTX = md5_state_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_req_ctx_st { + _unused: [u8; 0], +} +pub type OCSP_REQ_CTX = ocsp_req_ctx_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ossl_init_settings_st { _unused: [u8; 0], } pub type OPENSSL_INIT_SETTINGS = ossl_init_settings_st; +pub type PKCS7 = pkcs7_st; +pub type PKCS7_SIGNED = pkcs7_signed_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_ENVELOPE = pkcs7_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_sign_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGN_ENVELOPE = pkcs7_sign_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_digest_st { + _unused: [u8; 0], +} +pub type PKCS7_DIGEST = pkcs7_digest_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_encrypt_st { + _unused: [u8; 0], +} +pub type PKCS7_ENCRYPT = pkcs7_encrypt_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_recip_info_st { + _unused: [u8; 0], +} +pub type PKCS7_RECIP_INFO = pkcs7_recip_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_signer_info_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGNER_INFO = pkcs7_signer_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pkcs12_st { @@ -4092,6 +4322,11 @@ pub type PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; pub type X509_PKEY = private_key_st; pub type RAND_METHOD = rand_meth_st; pub type RC4_KEY = rc4_key_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_meth_st { + _unused: [u8; 0], +} pub type RSA_METHOD = rsa_meth_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4100,6 +4335,11 @@ pub struct rsassa_pss_params_st { } pub type RSASSA_PSS_PARAMS = rsassa_pss_params_st; pub type RSA_PSS_PARAMS = rsa_pss_params_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_st { + _unused: [u8; 0], +} pub type RSA = rsa_st; pub type SHA256_CTX = sha256_state_st; pub type SHA512_CTX = sha512_state_st; @@ -4202,6 +4442,7 @@ pub struct trust_token_method_st { } pub type TRUST_TOKEN_METHOD = trust_token_method_st; pub type X509V3_CTX = v3_ext_ctx; +pub type X509V3_EXT_METHOD = v3_ext_method; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x509_attributes_st { @@ -4304,7 +4545,7 @@ impl Default for aes_key_st { } pub type AES_KEY = aes_key_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_set_encrypt_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_set_encrypt_key"] pub fn AES_set_encrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4312,7 +4553,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_set_decrypt_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_set_decrypt_key"] pub fn AES_set_decrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4320,15 +4561,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_encrypt"] pub fn AES_encrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_decrypt"] pub fn AES_decrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_ctr128_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_ctr128_encrypt"] pub fn AES_ctr128_encrypt( in_: *const u8, out: *mut u8, @@ -4340,7 +4581,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_ecb_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_ecb_encrypt"] pub fn AES_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -4349,7 +4590,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_cbc_encrypt"] pub fn AES_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -4360,7 +4601,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_ofb128_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_ofb128_encrypt"] pub fn AES_ofb128_encrypt( in_: *const u8, out: *mut u8, @@ -4371,7 +4612,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_cfb128_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_cfb128_encrypt"] pub fn AES_cfb128_encrypt( in_: *const u8, out: *mut u8, @@ -4383,7 +4624,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_wrap_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_wrap_key"] pub fn AES_wrap_key( key: *const AES_KEY, iv: *const u8, @@ -4393,7 +4634,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_unwrap_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_unwrap_key"] pub fn AES_unwrap_key( key: *const AES_KEY, iv: *const u8, @@ -4403,7 +4644,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_wrap_key_padded"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_wrap_key_padded"] pub fn AES_wrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4414,7 +4655,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_unwrap_key_padded"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_unwrap_key_padded"] pub fn AES_unwrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4961,27 +5202,27 @@ impl Default for buf_mem_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_new"] pub fn BUF_MEM_new() -> *mut BUF_MEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_free"] pub fn BUF_MEM_free(buf: *mut BUF_MEM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_reserve"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_reserve"] pub fn BUF_MEM_reserve(buf: *mut BUF_MEM, cap: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_grow"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_grow"] pub fn BUF_MEM_grow(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_grow_clean"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_grow_clean"] pub fn BUF_MEM_grow_clean(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_MEM_append"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_MEM_append"] pub fn BUF_MEM_append( buf: *mut BUF_MEM, in_: *const ::std::os::raw::c_void, @@ -4989,29 +5230,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strdup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strdup"] pub fn BUF_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strnlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strnlen"] pub fn BUF_strnlen(str_: *const ::std::os::raw::c_char, max_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strndup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strndup"] pub fn BUF_strndup( str_: *const ::std::os::raw::c_char, size: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_memdup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_memdup"] pub fn BUF_memdup( data: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strlcpy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strlcpy"] pub fn BUF_strlcpy( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5019,7 +5260,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BUF_strlcat"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BUF_strlcat"] pub fn BUF_strlcat( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5027,330 +5268,104 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_BIO_strings"] - pub fn ERR_load_BIO_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_ERR_strings"] - pub fn ERR_load_ERR_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_crypto_strings"] - pub fn ERR_load_crypto_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_load_RAND_strings"] - pub fn ERR_load_RAND_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_free_strings"] - pub fn ERR_free_strings(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_error"] - pub fn ERR_get_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_error_line"] - pub fn ERR_get_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_error_line_data"] - pub fn ERR_get_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_error"] - pub fn ERR_peek_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_error_line"] - pub fn ERR_peek_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_error_line_data"] - pub fn ERR_peek_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_last_error"] - pub fn ERR_peek_last_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_last_error_line"] - pub fn ERR_peek_last_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_peek_last_error_line_data"] - pub fn ERR_peek_last_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_error_string_n"] - pub fn ERR_error_string_n( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - len: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_lib_error_string"] - pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Init"] + pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_reason_error_string"] - pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -pub type ERR_print_errors_callback_t = ::std::option::Option< - unsafe extern "C" fn( - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Update"] + pub fn SHA1_Update( + sha: *mut SHA_CTX, + data: *const ::std::os::raw::c_void, len: usize, - ctx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_print_errors_cb"] - pub fn ERR_print_errors_cb( - callback: ERR_print_errors_callback_t, - ctx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_print_errors_fp"] - pub fn ERR_print_errors_fp(file: *mut FILE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_clear_error"] - pub fn ERR_clear_error(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_set_mark"] - pub fn ERR_set_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_pop_to_mark"] - pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_get_next_error_library"] - pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; -} -pub const ERR_LIB_NONE: _bindgen_ty_1 = 1; -pub const ERR_LIB_SYS: _bindgen_ty_1 = 2; -pub const ERR_LIB_BN: _bindgen_ty_1 = 3; -pub const ERR_LIB_RSA: _bindgen_ty_1 = 4; -pub const ERR_LIB_DH: _bindgen_ty_1 = 5; -pub const ERR_LIB_EVP: _bindgen_ty_1 = 6; -pub const ERR_LIB_BUF: _bindgen_ty_1 = 7; -pub const ERR_LIB_OBJ: _bindgen_ty_1 = 8; -pub const ERR_LIB_PEM: _bindgen_ty_1 = 9; -pub const ERR_LIB_DSA: _bindgen_ty_1 = 10; -pub const ERR_LIB_X509: _bindgen_ty_1 = 11; -pub const ERR_LIB_ASN1: _bindgen_ty_1 = 12; -pub const ERR_LIB_CONF: _bindgen_ty_1 = 13; -pub const ERR_LIB_CRYPTO: _bindgen_ty_1 = 14; -pub const ERR_LIB_EC: _bindgen_ty_1 = 15; -pub const ERR_LIB_SSL: _bindgen_ty_1 = 16; -pub const ERR_LIB_BIO: _bindgen_ty_1 = 17; -pub const ERR_LIB_PKCS7: _bindgen_ty_1 = 18; -pub const ERR_LIB_PKCS8: _bindgen_ty_1 = 19; -pub const ERR_LIB_X509V3: _bindgen_ty_1 = 20; -pub const ERR_LIB_RAND: _bindgen_ty_1 = 21; -pub const ERR_LIB_ENGINE: _bindgen_ty_1 = 22; -pub const ERR_LIB_OCSP: _bindgen_ty_1 = 23; -pub const ERR_LIB_UI: _bindgen_ty_1 = 24; -pub const ERR_LIB_COMP: _bindgen_ty_1 = 25; -pub const ERR_LIB_ECDSA: _bindgen_ty_1 = 26; -pub const ERR_LIB_ECDH: _bindgen_ty_1 = 27; -pub const ERR_LIB_HMAC: _bindgen_ty_1 = 28; -pub const ERR_LIB_DIGEST: _bindgen_ty_1 = 29; -pub const ERR_LIB_CIPHER: _bindgen_ty_1 = 30; -pub const ERR_LIB_HKDF: _bindgen_ty_1 = 31; -pub const ERR_LIB_TRUST_TOKEN: _bindgen_ty_1 = 32; -pub const ERR_LIB_USER: _bindgen_ty_1 = 33; -pub const ERR_NUM_LIBS: _bindgen_ty_1 = 34; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_remove_state"] - pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_remove_thread_state"] - pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_func_error_string"] - pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_error_string"] - pub fn ERR_error_string( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_clear_system_error"] - pub fn ERR_clear_system_error(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_put_error"] - pub fn ERR_put_error( - library: ::std::os::raw::c_int, - unused: ::std::os::raw::c_int, - reason: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_uint, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_add_error_data"] - pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Final"] + pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_add_error_dataf"] - pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1"] + pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_set_error_data"] - pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA1_Transform"] + pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); } -pub type OPENSSL_sk_free_func = - ::std::option::Option; -pub type OPENSSL_sk_copy_func = ::std::option::Option< - unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *const ::std::os::raw::c_void, - b: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - obj: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_free_func = ::std::option::Option< - unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), ->; -pub type OPENSSL_sk_call_copy_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_copy_func, - arg2: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_cmp_func, - arg2: *const *const ::std::os::raw::c_void, - arg3: *const *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_delete_if_func, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct stack_st { - pub num: usize, - pub data: *mut *mut ::std::os::raw::c_void, - pub sorted: ::std::os::raw::c_int, - pub num_alloc: usize, - pub comp: OPENSSL_sk_cmp_func, +pub struct sha_state_st { + pub h: [u32; 5usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_stack_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha_state_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!(stack_st)) + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(sha_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stack_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(data) + stringify!(Nl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sorted) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(sorted) + stringify!(Nh) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_alloc) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num_alloc) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 92usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(comp) + stringify!(num) ) ); } -impl Default for stack_st { +impl Default for sha_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5359,354 +5374,278 @@ impl Default for stack_st { } } } -pub type _STACK = stack_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_new"] - pub fn sk_new(comp: OPENSSL_sk_cmp_func) -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224_Init"] + pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_new_null"] - pub fn sk_new_null() -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224_Update"] + pub fn SHA224_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_num"] - pub fn sk_num(sk: *const _STACK) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224_Final"] + pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_zero"] - pub fn sk_zero(sk: *mut _STACK); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA224"] + pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_value"] - pub fn sk_value(sk: *const _STACK, i: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Init"] + pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_set"] - pub fn sk_set( - sk: *mut _STACK, - i: usize, - p: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Update"] + pub fn SHA256_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_free"] - pub fn sk_free(sk: *mut _STACK); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Final"] + pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_pop_free_ex"] - pub fn sk_pop_free_ex( - sk: *mut _STACK, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256"] + pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_insert"] - pub fn sk_insert(sk: *mut _STACK, p: *mut ::std::os::raw::c_void, where_: usize) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_Transform"] + pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_delete"] - pub fn sk_delete(sk: *mut _STACK, where_: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA256_TransformBlocks"] + pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_delete_ptr"] - pub fn sk_delete_ptr( - sk: *mut _STACK, - p: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct sha256_state_st { + pub h: [u32; 8usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_delete_if"] - pub fn sk_delete_if( - sk: *mut _STACK, - call_func: OPENSSL_sk_call_delete_if_func, - func: OPENSSL_sk_delete_if_func, - data: *mut ::std::os::raw::c_void, +#[test] +fn bindgen_test_layout_sha256_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 112usize, + concat!("Size of: ", stringify!(sha256_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha256_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(md_len) + ) ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_find"] - pub fn sk_find( - sk: *const _STACK, - out_index: *mut usize, - p: *const ::std::os::raw::c_void, - call_cmp_func: OPENSSL_sk_call_cmp_func, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_shift"] - pub fn sk_shift(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; +impl Default for sha256_state_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_fips_0_12_15_sk_push"] - pub fn sk_push(sk: *mut _STACK, p: *mut ::std::os::raw::c_void) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384_Init"] + pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_pop"] - pub fn sk_pop(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384_Update"] + pub fn SHA384_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_dup"] - pub fn sk_dup(sk: *const _STACK) -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384_Final"] + pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_sort"] - pub fn sk_sort(sk: *mut _STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA384"] + pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_is_sorted"] - pub fn sk_is_sorted(sk: *const _STACK) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Init"] + pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_set_cmp_func"] - pub fn sk_set_cmp_func(sk: *mut _STACK, comp: OPENSSL_sk_cmp_func) -> OPENSSL_sk_cmp_func; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Update"] + pub fn SHA512_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_deep_copy"] - pub fn sk_deep_copy( - sk: *const _STACK, - call_copy_func: OPENSSL_sk_call_copy_func, - copy_func: OPENSSL_sk_copy_func, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ) -> *mut _STACK; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Final"] + pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_sk_pop_free"] - pub fn sk_pop_free(sk: *mut _STACK, free_func: OPENSSL_sk_free_func); -} -pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_void { - _unused: [u8; 0], -} -pub type sk_void_free_func = - ::std::option::Option; -pub type sk_void_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type sk_void_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type sk_void_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_OPENSSL_STRING { - _unused: [u8; 0], + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512"] + pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } -pub type sk_OPENSSL_STRING_free_func = - ::std::option::Option; -pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, ->; -pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_char, - arg2: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_DATA = crypto_ex_data_st; -pub type CRYPTO_EX_free = ::std::option::Option< - unsafe extern "C" fn( - parent: *mut ::std::os::raw::c_void, - ptr: *mut ::std::os::raw::c_void, - ad: *mut CRYPTO_EX_DATA, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ), ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_cleanup_all_ex_data"] - pub fn CRYPTO_cleanup_all_ex_data(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_Transform"] + pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); } -pub type CRYPTO_EX_dup = ::std::option::Option< - unsafe extern "C" fn( - to: *mut CRYPTO_EX_DATA, - from: *const CRYPTO_EX_DATA, - from_d: *mut *mut ::std::os::raw::c_void, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_unused = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct crypto_ex_data_st { - pub sk: *mut stack_st_void, +pub struct sha512_state_st { + pub h: [u64; 8usize], + pub Nl: u64, + pub Nh: u64, + pub p: [u8; 128usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_crypto_ex_data_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha512_state_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!(crypto_ex_data_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(sha512_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(crypto_ex_data_st)) + concat!("Alignment of ", stringify!(sha512_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(crypto_ex_data_st), + stringify!(sha512_state_st), "::", - stringify!(sk) + stringify!(h) ) ); -} -impl Default for crypto_ex_data_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() - } - } -} -pub type CRYPTO_MUTEX = pthread_rwlock_t; -pub type CRYPTO_refcount_t = u32; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AWSLC_thread_local_clear"] - pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AWSLC_thread_local_shutdown"] - pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_num_locks"] - pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_locking_callback"] - pub fn CRYPTO_set_locking_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_add_lock_callback"] - pub fn CRYPTO_set_add_lock_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - num: *mut ::std::os::raw::c_int, - amount: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_locking_callback"] - pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_lock_name"] - pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_set_callback"] - pub fn CRYPTO_THREADID_set_callback( - threadid_func: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_set_numeric"] - pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_set_pointer"] - pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_THREADID_current"] - pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_id_callback"] - pub fn CRYPTO_set_id_callback( - func: ::std::option::Option ::std::os::raw::c_ulong>, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nl) + ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct CRYPTO_dynlock { - pub references: ::std::os::raw::c_int, - pub data: *mut CRYPTO_dynlock_value, -} -#[test] -fn bindgen_test_layout_CRYPTO_dynlock() { - 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!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nh) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(p) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 208usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(references) + stringify!(num) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 212usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(data) + stringify!(md_len) ) ); } -impl Default for CRYPTO_dynlock { +impl Default for sha512_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5716,951 +5655,1036 @@ impl Default for CRYPTO_dynlock { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_dynlock_create_callback"] - pub fn CRYPTO_set_dynlock_create_callback( - dyn_create_function: ::std::option::Option< - unsafe extern "C" fn( - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224_Init"] + pub fn SHA512_224_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_dynlock_lock_callback"] - pub fn CRYPTO_set_dynlock_lock_callback( - dyn_lock_function: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224_Update"] + pub fn SHA512_224_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_dynlock_destroy_callback"] - pub fn CRYPTO_set_dynlock_destroy_callback( - dyn_destroy_function: ::std::option::Option< - unsafe extern "C" fn( - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224_Final"] + pub fn SHA512_224_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_dynlock_create_callback"] - pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_224"] + pub fn SHA512_224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_dynlock_lock_callback"] - pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut CRYPTO_dynlock_value, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256_Init"] + pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_get_dynlock_destroy_callback"] - pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_dynlock_value, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256_Update"] + pub fn SHA512_256_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_BIO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256_Final"] + pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } -pub type sk_BIO_free_func = ::std::option::Option; -pub type sk_BIO_copy_func = - ::std::option::Option *mut BIO>; -pub type sk_BIO_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const BIO, arg2: *mut *const BIO) -> ::std::os::raw::c_int, ->; -pub type sk_BIO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new"] - pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SHA512_256"] + pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_free"] - pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_malloc"] + pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_vfree"] - pub fn BIO_vfree(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_zalloc"] + pub fn OPENSSL_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_up_ref"] - pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_calloc"] + pub fn OPENSSL_calloc(num: usize, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_read"] - pub fn BIO_read( - bio: *mut BIO, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_realloc"] + pub fn OPENSSL_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_gets"] - pub fn BIO_gets( - bio: *mut BIO, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_free"] + pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_write"] - pub fn BIO_write( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_cleanse"] + pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_write_all"] - pub fn BIO_write_all( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_memcmp"] + pub fn CRYPTO_memcmp( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_puts"] - pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_hash32"] + pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_flush"] - pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strhash"] + pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl"] - pub fn BIO_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - parg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strdup"] + pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ptr_ctrl"] - pub fn BIO_ptr_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_int_ctrl"] - pub fn BIO_int_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - iarg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strnlen"] + pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_reset"] - pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isalpha"] + pub fn OPENSSL_isalpha(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_eof"] - pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isdigit"] + pub fn OPENSSL_isdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_flags"] - pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isxdigit"] + pub fn OPENSSL_isxdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_test_flags"] - pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_fromxdigit"] + pub fn OPENSSL_fromxdigit(out: *mut u8, c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_read"] - pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_hexstr2buf"] + pub fn OPENSSL_hexstr2buf(str_: *const ::std::os::raw::c_char, len: *mut usize) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_write"] - pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isalnum"] + pub fn OPENSSL_isalnum(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_retry"] - pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_tolower"] + pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_should_io_special"] - pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_isspace"] + pub fn OPENSSL_isspace(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_retry_reason"] - pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strcasecmp"] + pub fn OPENSSL_strcasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_reason"] - pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strncasecmp"] + pub fn OPENSSL_strncasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + n: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_clear_flags"] - pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_snprintf"] + pub fn BIO_snprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_read"] - pub fn BIO_set_retry_read(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_vsnprintf"] + pub fn BIO_vsnprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_write"] - pub fn BIO_set_retry_write(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_vasprintf"] + pub fn OPENSSL_vasprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_retry_flags"] - pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_asprintf"] + pub fn OPENSSL_asprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_clear_retry_flags"] - pub fn BIO_clear_retry_flags(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strndup"] + pub fn OPENSSL_strndup( + str_: *const ::std::os::raw::c_char, + size: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_method_type"] - pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_memdup"] + pub fn OPENSSL_memdup( + data: *const ::std::os::raw::c_void, + size: usize, + ) -> *mut ::std::os::raw::c_void; } -pub type bio_info_cb = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - event: ::std::os::raw::c_int, - parg: *const ::std::os::raw::c_char, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - return_value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long, ->; -pub type BIO_callback_fn_ex = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - oper: ::std::os::raw::c_int, - argp: *const ::std::os::raw::c_char, - len: usize, - argi: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - bio_ret: ::std::os::raw::c_int, - processed: *mut usize, - ) -> ::std::os::raw::c_long, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_callback_ctrl"] - pub fn BIO_callback_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - fp: bio_info_cb, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strlcpy"] + pub fn OPENSSL_strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_pending"] - pub fn BIO_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_strlcat"] + pub fn OPENSSL_strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl_pending"] - pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_malloc"] + pub fn CRYPTO_malloc( + size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_wpending"] - pub fn BIO_wpending(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_realloc"] + pub fn CRYPTO_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_close"] - pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_free"] + pub fn CRYPTO_free( + ptr: *mut ::std::os::raw::c_void, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_number_read"] - pub fn BIO_number_read(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_clear_free"] + pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_number_written"] - pub fn BIO_number_written(bio: *const BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_mem_functions"] + pub fn CRYPTO_set_mem_functions( + m: ::std::option::Option< + unsafe extern "C" fn( + arg1: usize, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + r: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: usize, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_callback_ex"] - pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_secure_malloc_init"] + pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_callback_arg"] - pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_secure_malloc_initialized"] + pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_callback_arg"] - pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_secure_used"] + pub fn CRYPTO_secure_used() -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_push"] - pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_secure_malloc"] + pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_pop"] - pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_secure_zalloc"] + pub fn OPENSSL_secure_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_next"] - pub fn BIO_next(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_secure_clear_free"] + pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } +pub type CRYPTO_MUTEX = pthread_rwlock_t; +pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_free_all"] - pub fn BIO_free_all(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AWSLC_thread_local_clear"] + pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_find_type"] - pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AWSLC_thread_local_shutdown"] + pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_copy_next_retry"] - pub fn BIO_copy_next_retry(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_num_locks"] + pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_printf"] - pub fn BIO_printf( - bio: *mut BIO, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_locking_callback"] + pub fn CRYPTO_set_locking_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_indent"] - pub fn BIO_indent( - bio: *mut BIO, - indent: ::std::os::raw::c_uint, - max_indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_add_lock_callback"] + pub fn CRYPTO_set_add_lock_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + num: *mut ::std::os::raw::c_int, + amount: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_hexdump"] - pub fn BIO_hexdump( - bio: *mut BIO, - data: *const u8, - len: usize, - indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_locking_callback"] + pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_print_errors"] - pub fn ERR_print_errors(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_lock_name"] + pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_read_asn1"] - pub fn BIO_read_asn1( - bio: *mut BIO, - out: *mut *mut u8, - out_len: *mut usize, - max_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_set_callback"] + pub fn CRYPTO_THREADID_set_callback( + threadid_func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_mem"] - pub fn BIO_s_mem() -> *const BIO_METHOD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_mem_buf"] - pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_mem_contents"] - pub fn BIO_mem_contents( - bio: *const BIO, - out_contents: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_set_numeric"] + pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_mem_ptr"] - pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_set_pointer"] + pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_mem_buf"] - pub fn BIO_set_mem_buf( - bio: *mut BIO, - b: *mut BUF_MEM, - take_ownership: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_THREADID_current"] + pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_mem_eof_return"] - pub fn BIO_set_mem_eof_return( - bio: *mut BIO, - eof_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_id_callback"] + pub fn CRYPTO_set_id_callback( + func: ::std::option::Option ::std::os::raw::c_ulong>, + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_fd"] - pub fn BIO_s_fd() -> *const BIO_METHOD; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct CRYPTO_dynlock { + pub references: ::std::os::raw::c_int, + pub data: *mut CRYPTO_dynlock_value, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_fd"] - pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; +#[test] +fn bindgen_test_layout_CRYPTO_dynlock() { + 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!(CRYPTO_dynlock)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(data) + ) + ); +} +impl Default for CRYPTO_dynlock { + 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_fips_0_12_15_BIO_set_fd"] - pub fn BIO_set_fd( - bio: *mut BIO, - fd: ::std::os::raw::c_int, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_dynlock_create_callback"] + pub fn CRYPTO_set_dynlock_create_callback( + dyn_create_function: ::std::option::Option< + unsafe extern "C" fn( + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_fd"] - pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_dynlock_lock_callback"] + pub fn CRYPTO_set_dynlock_lock_callback( + dyn_lock_function: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_file"] - pub fn BIO_s_file() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_set_dynlock_destroy_callback"] + pub fn CRYPTO_set_dynlock_destroy_callback( + dyn_destroy_function: ::std::option::Option< + unsafe extern "C" fn( + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_file"] - pub fn BIO_new_file( - filename: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_dynlock_create_callback"] + pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_fp"] - pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_dynlock_lock_callback"] + pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut CRYPTO_dynlock_value, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_fp"] - pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_get_dynlock_destroy_callback"] + pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_dynlock_value, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_fp"] - pub fn BIO_set_fp( - bio: *mut BIO, - file: *mut FILE, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_library_init"] + pub fn CRYPTO_library_init(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_read_filename"] - pub fn BIO_read_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_is_confidential_build"] + pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_write_filename"] - pub fn BIO_write_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_has_asm"] + pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_append_filename"] - pub fn BIO_append_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BORINGSSL_self_test"] + pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_rw_filename"] - pub fn BIO_rw_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_tell"] - pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_pre_sandbox_init"] + pub fn CRYPTO_pre_sandbox_init(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_seek"] - pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_mode"] + pub fn FIPS_mode() -> ::std::os::raw::c_int; } +pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; +pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; +pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; +pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; +pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; +pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_socket"] - pub fn BIO_s_socket() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_read_counter"] + pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_socket"] - pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) - -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_version"] + pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_s_connect"] - pub fn BIO_s_connect() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SSLeay_version"] + pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_connect"] - pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SSLeay"] + pub fn SSLeay() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_conn_hostname"] - pub fn BIO_set_conn_hostname( - bio: *mut BIO, - host_and_optional_port: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_version_num"] + pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_conn_port"] - pub fn BIO_set_conn_port( - bio: *mut BIO, - port_str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_awslc_api_version_num"] + pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_conn_int_port"] - pub fn BIO_set_conn_int_port( - bio: *mut BIO, - port: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_malloc_init"] + pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_nbio"] - pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_malloc_init"] + pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_do_connect"] - pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_load_builtin_engines"] + pub fn ENGINE_load_builtin_engines(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_new_bio_pair"] - pub fn BIO_new_bio_pair( - out1: *mut *mut BIO, - writebuf1: usize, - out2: *mut *mut BIO, - writebuf2: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_register_all_complete"] + pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl_get_read_request"] - pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_load_builtin_modules"] + pub fn OPENSSL_load_builtin_modules(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_ctrl_get_write_guarantee"] - pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_init_crypto"] + pub fn OPENSSL_init_crypto( + opts: u64, + settings: *const OPENSSL_INIT_SETTINGS, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_shutdown_wr"] - pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_init"] + pub fn OPENSSL_init(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_new_index"] - pub fn BIO_get_new_index() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_cleanup"] + pub fn OPENSSL_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_new"] - pub fn BIO_meth_new( - type_: ::std::os::raw::c_int, - name: *const ::std::os::raw::c_char, - ) -> *mut BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_mode_set"] + pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_free"] - pub fn BIO_meth_free(method: *mut BIO_METHOD); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_BIO_strings"] + pub fn ERR_load_BIO_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_create"] - pub fn BIO_meth_set_create( - method: *mut BIO_METHOD, - create: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_ERR_strings"] + pub fn ERR_load_ERR_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_create"] - pub fn BIO_meth_get_create( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_CRYPTO_strings"] + pub fn ERR_load_CRYPTO_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_destroy"] - pub fn BIO_meth_set_destroy( - method: *mut BIO_METHOD, - destroy: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_crypto_strings"] + pub fn ERR_load_crypto_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_destroy"] - pub fn BIO_meth_get_destroy( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_load_RAND_strings"] + pub fn ERR_load_RAND_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_write"] - pub fn BIO_meth_set_write( - method: *mut BIO_METHOD, - write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_free_strings"] + pub fn ERR_free_strings(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_read"] - pub fn BIO_meth_set_read( - method: *mut BIO_METHOD, - read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_error"] + pub fn ERR_get_error() -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_gets"] - pub fn BIO_meth_set_gets( - method: *mut BIO_METHOD, - gets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_error_line"] + pub fn ERR_get_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_gets"] - pub fn BIO_meth_get_gets( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_error_line_data"] + pub fn ERR_get_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_ctrl"] - pub fn BIO_meth_set_ctrl( - method: *mut BIO_METHOD, - ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_error"] + pub fn ERR_peek_error() -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_ctrl"] - pub fn BIO_meth_get_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_long, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_error_line"] + pub fn ERR_peek_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_callback_ctrl"] - pub fn BIO_meth_set_callback_ctrl( - method: *mut BIO_METHOD, - callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_error_line_data"] + pub fn ERR_peek_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_callback_ctrl"] - pub fn BIO_meth_get_callback_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: bio_info_cb, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_last_error"] + pub fn ERR_peek_last_error() -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_data"] - pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_last_error_line"] + pub fn ERR_peek_last_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_data"] - pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_peek_last_error_line_data"] + pub fn ERR_peek_last_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_init"] - pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_error_string_n"] + pub fn ERR_error_string_n( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + len: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_init"] - pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_lib_error_string"] + pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_ex_new_index"] - pub fn BIO_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_fips_0_13_0_ERR_reason_error_string"] + pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } +pub type ERR_print_errors_callback_t = ::std::option::Option< + unsafe extern "C" fn( + str_: *const ::std::os::raw::c_char, + len: usize, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_ex_data"] - pub fn BIO_set_ex_data( - bio: *mut BIO, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_print_errors_cb"] + pub fn ERR_print_errors_cb( + callback: ERR_print_errors_callback_t, + ctx: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_ex_data"] - pub fn BIO_get_ex_data( - bio: *const BIO, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_print_errors_fp"] + pub fn ERR_print_errors_fp(file: *mut FILE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_f_base64"] - pub fn BIO_f_base64() -> *const BIO_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_clear_error"] + pub fn ERR_clear_error(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_retry_special"] - pub fn BIO_set_retry_special(bio: *mut BIO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_set_mark"] + pub fn ERR_set_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_write_buffer_size"] - pub fn BIO_set_write_buffer_size( - bio: *mut BIO, - buffer_size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_pop_to_mark"] + pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_set_shutdown"] - pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_get_next_error_library"] + pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_get_shutdown"] - pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_remove_state"] + pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_set_puts"] - pub fn BIO_meth_set_puts( - method: *mut BIO_METHOD, - puts: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_remove_thread_state"] + pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_meth_get_puts"] - pub fn BIO_meth_get_puts( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_func_error_string"] + pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_method_st { - pub type_: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub bwrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bread: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bputs: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub bgets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - pub create: - ::std::option::Option ::std::os::raw::c_int>, - pub destroy: - ::std::option::Option ::std::os::raw::c_int>, - pub callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_error_string"] + pub fn ERR_error_string( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -#[test] -fn bindgen_test_layout_bio_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(bio_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bwrite) - ) +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_clear_system_error"] + pub fn ERR_clear_system_error(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_put_error"] + pub fn ERR_put_error( + library: ::std::os::raw::c_int, + unused: ::std::os::raw::c_int, + reason: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_uint, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bread) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bputs) - ) +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_add_error_data"] + pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_add_error_dataf"] + pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_set_error_data"] + pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); +} +pub type OPENSSL_sk_free_func = + ::std::option::Option; +pub type OPENSSL_sk_copy_func = ::std::option::Option< + unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + a: *const *const ::std::os::raw::c_void, + b: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + obj: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_free_func = ::std::option::Option< + unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), +>; +pub type OPENSSL_sk_call_copy_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_copy_func, + arg2: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_cmp_func, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_delete_if_func, + arg2: *mut ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st { + _unused: [u8; 0], +} +pub type OPENSSL_STACK = stack_st; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_new"] + pub fn OPENSSL_sk_new(comp: OPENSSL_sk_cmp_func) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_new_null"] + pub fn OPENSSL_sk_new_null() -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_num"] + pub fn OPENSSL_sk_num(sk: *const OPENSSL_STACK) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_zero"] + pub fn OPENSSL_sk_zero(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_value"] + pub fn OPENSSL_sk_value(sk: *const OPENSSL_STACK, i: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_set"] + pub fn OPENSSL_sk_set( + sk: *mut OPENSSL_STACK, + i: usize, + p: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_free"] + pub fn OPENSSL_sk_free(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_pop_free_ex"] + pub fn OPENSSL_sk_pop_free_ex( + sk: *mut OPENSSL_STACK, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bgets) - ) +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_insert"] + pub fn OPENSSL_sk_insert( + sk: *mut OPENSSL_STACK, + p: *mut ::std::os::raw::c_void, + where_: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_delete"] + pub fn OPENSSL_sk_delete(sk: *mut OPENSSL_STACK, where_: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_delete_ptr"] + pub fn OPENSSL_sk_delete_ptr( + sk: *mut OPENSSL_STACK, + p: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_delete_if"] + pub fn OPENSSL_sk_delete_if( + sk: *mut OPENSSL_STACK, + call_func: OPENSSL_sk_call_delete_if_func, + func: OPENSSL_sk_delete_if_func, + data: *mut ::std::os::raw::c_void, ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_find"] + pub fn OPENSSL_sk_find( + sk: *const OPENSSL_STACK, + out_index: *mut usize, + p: *const ::std::os::raw::c_void, + call_cmp_func: OPENSSL_sk_call_cmp_func, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_unshift"] + pub fn OPENSSL_sk_unshift( + sk: *mut OPENSSL_STACK, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_shift"] + pub fn OPENSSL_sk_shift(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_push"] + pub fn OPENSSL_sk_push(sk: *mut OPENSSL_STACK, p: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_pop"] + pub fn OPENSSL_sk_pop(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_dup"] + pub fn OPENSSL_sk_dup(sk: *const OPENSSL_STACK) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_sort"] + pub fn OPENSSL_sk_sort(sk: *mut OPENSSL_STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_is_sorted"] + pub fn OPENSSL_sk_is_sorted(sk: *const OPENSSL_STACK) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_set_cmp_func"] + pub fn OPENSSL_sk_set_cmp_func( + sk: *mut OPENSSL_STACK, + comp: OPENSSL_sk_cmp_func, + ) -> OPENSSL_sk_cmp_func; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_sk_deep_copy"] + pub fn OPENSSL_sk_deep_copy( + sk: *const OPENSSL_STACK, + call_copy_func: OPENSSL_sk_call_copy_func, + copy_func: OPENSSL_sk_copy_func, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, + ) -> *mut OPENSSL_STACK; +} +pub type _STACK = OPENSSL_STACK; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_sk_pop_free"] + pub fn sk_pop_free(sk: *mut OPENSSL_STACK, free_func: OPENSSL_sk_free_func); +} +pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_void { + _unused: [u8; 0], +} +pub type sk_void_free_func = + ::std::option::Option; +pub type sk_void_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type sk_void_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_void, + arg2: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type sk_void_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_OPENSSL_STRING { + _unused: [u8; 0], +} +pub type sk_OPENSSL_STRING_free_func = + ::std::option::Option; +pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, +>; +pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_char, + arg2: *const *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_DATA = crypto_ex_data_st; +pub type CRYPTO_EX_free = ::std::option::Option< + unsafe extern "C" fn( + parent: *mut ::std::os::raw::c_void, + ptr: *mut ::std::os::raw::c_void, + ad: *mut CRYPTO_EX_DATA, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_cleanup_all_ex_data"] + pub fn CRYPTO_cleanup_all_ex_data(); +} +pub type CRYPTO_EX_dup = ::std::option::Option< + unsafe extern "C" fn( + to: *mut CRYPTO_EX_DATA, + from: *const CRYPTO_EX_DATA, + from_d: *mut *mut ::std::os::raw::c_void, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_unused = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct crypto_ex_data_st { + pub sk: *mut stack_st_void, +} +#[test] +fn bindgen_test_layout_crypto_ex_data_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(ctrl) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(create) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bio_method_st), + stringify!(crypto_ex_data_st), "::", - stringify!(destroy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(callback_ctrl) + stringify!(sk) ) ); } -impl Default for bio_method_st { +impl Default for crypto_ex_data_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6670,1053 +6694,908 @@ impl Default for bio_method_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_st { - pub method: *const BIO_METHOD, - pub ex_data: CRYPTO_EX_DATA, - pub callback_ex: BIO_callback_fn_ex, - pub cb_arg: *mut ::std::os::raw::c_char, - pub init: ::std::os::raw::c_int, - pub shutdown: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub retry_reason: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_int, - pub references: CRYPTO_refcount_t, - pub ptr: *mut ::std::os::raw::c_void, - pub next_bio: *mut BIO, - pub num_read: usize, - pub num_write: usize, -} -#[test] -fn bindgen_test_layout_bio_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(bio_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(method) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(callback_ex) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(cb_arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(shutdown) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(retry_reason) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(next_bio) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_read) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_write) - ) - ); -} -impl Default for bio_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() - } - } +#[derive(Debug, Copy, Clone)] +pub struct stack_st_BIO { + _unused: [u8; 0], } -pub type BN_ULONG = u64; +pub type sk_BIO_free_func = ::std::option::Option; +pub type sk_BIO_copy_func = + ::std::option::Option *mut BIO>; +pub type sk_BIO_cmp_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const *const BIO, arg2: *const *const BIO) -> ::std::os::raw::c_int, +>; +pub type sk_BIO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_new"] - pub fn BN_new() -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new"] + pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_init"] - pub fn BN_init(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_free"] + pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_free"] - pub fn BN_free(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_vfree"] + pub fn BIO_vfree(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_clear_free"] - pub fn BN_clear_free(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_up_ref"] + pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_dup"] - pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read"] + pub fn BIO_read( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_copy"] - pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read_ex"] + pub fn BIO_read_ex( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + data_len: usize, + read_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_clear"] - pub fn BN_clear(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_gets"] + pub fn BIO_gets( + bio: *mut BIO, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_value_one"] - pub fn BN_value_one() -> *const BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write"] + pub fn BIO_write( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_num_bits"] - pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write_ex"] + pub fn BIO_write_ex( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + data_len: usize, + written_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_num_bytes"] - pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write_all"] + pub fn BIO_write_all( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_zero"] - pub fn BN_zero(bn: *mut BIGNUM); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_puts"] + pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_one"] - pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_flush"] + pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_word"] - pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl"] + pub fn BIO_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + parg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_u64"] - pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ptr_ctrl"] + pub fn BIO_ptr_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_negative"] - pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_int_ctrl"] + pub fn BIO_int_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + iarg: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_negative"] - pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_reset"] + pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bin2bn"] - pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_eof"] + pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2bin"] - pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_flags"] + pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_le2bn"] - pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_test_flags"] + pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2le_padded"] - pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_read"] + pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2bin_padded"] - pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_write"] + pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2cbb_padded"] - pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_retry"] + pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2hex"] - pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_should_io_special"] + pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_hex2bn"] - pub fn BN_hex2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_retry_reason"] + pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2dec"] - pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_reason"] + pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_dec2bn"] - pub fn BN_dec2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_clear_flags"] + pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_asc2bn"] - pub fn BN_asc2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_read"] + pub fn BIO_set_retry_read(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_print"] - pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_write"] + pub fn BIO_set_retry_write(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_print_fp"] - pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_retry_flags"] + pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_word"] - pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_clear_retry_flags"] + pub fn BIO_clear_retry_flags(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_u64"] - pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_method_type"] + pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_parse_asn1_unsigned"] - pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_method_name"] + pub fn BIO_method_name(b: *const BIO) -> *const ::std::os::raw::c_char; +} +pub type bio_info_cb = ::std::option::Option< + unsafe extern "C" fn( + b: *mut BIO, + state: ::std::os::raw::c_int, + res: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long, +>; +pub type BIO_callback_fn_ex = ::std::option::Option< + unsafe extern "C" fn( + bio: *mut BIO, + oper: ::std::os::raw::c_int, + argp: *const ::std::os::raw::c_char, + len: usize, + argi: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + bio_ret: ::std::os::raw::c_int, + processed: *mut usize, + ) -> ::std::os::raw::c_long, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_callback_ctrl"] + pub fn BIO_callback_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + fp: bio_info_cb, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_marshal_asn1"] - pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_pending"] + pub fn BIO_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_new"] - pub fn BN_CTX_new() -> *mut BN_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl_pending"] + pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_free"] - pub fn BN_CTX_free(ctx: *mut BN_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_wpending"] + pub fn BIO_wpending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_start"] - pub fn BN_CTX_start(ctx: *mut BN_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_close"] + pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_get"] - pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_number_read"] + pub fn BIO_number_read(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_CTX_end"] - pub fn BN_CTX_end(ctx: *mut BN_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_number_written"] + pub fn BIO_number_written(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_add"] - pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_callback_ex"] + pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_uadd"] - pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_callback_arg"] + pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_add_word"] - pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_callback_arg"] + pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sub"] - pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_push"] + pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_usub"] - pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_pop"] + pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sub_word"] - pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_next"] + pub fn BIO_next(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mul"] - pub fn BN_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_free_all"] + pub fn BIO_free_all(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mul_word"] - pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_find_type"] + pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sqr"] - pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_copy_next_retry"] + pub fn BIO_copy_next_retry(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_div"] - pub fn BN_div( - quotient: *mut BIGNUM, - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_printf"] + pub fn BIO_printf( + bio: *mut BIO, + format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_div_word"] - pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_indent"] + pub fn BIO_indent( + bio: *mut BIO, + indent: ::std::os::raw::c_uint, + max_indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_sqrt"] - pub fn BN_sqrt( - out_sqrt: *mut BIGNUM, - in_: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_hexdump"] + pub fn BIO_hexdump( + bio: *mut BIO, + data: *const u8, + len: usize, + indent: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_cmp"] - pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_print_errors"] + pub fn ERR_print_errors(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_cmp_word"] - pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read_asn1"] + pub fn BIO_read_asn1( + bio: *mut BIO, + out: *mut *mut u8, + out_len: *mut usize, + max_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_ucmp"] - pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_mem"] + pub fn BIO_s_mem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_equal_consttime"] - pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_mem_buf"] + pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_abs_is_word"] - pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_mem_contents"] + pub fn BIO_mem_contents( + bio: *const BIO, + out_contents: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_zero"] - pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_mem_ptr"] + pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_one"] - pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_mem_buf"] + pub fn BIO_set_mem_buf( + bio: *mut BIO, + b: *mut BUF_MEM, + take_ownership: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_word"] - pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_mem_eof_return"] + pub fn BIO_set_mem_eof_return( + bio: *mut BIO, + eof_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_odd"] - pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_fd"] + pub fn BIO_s_fd() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_pow2"] - pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_fd"] + pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_lshift"] - pub fn BN_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_fd"] + pub fn BIO_set_fd( + bio: *mut BIO, + fd: ::std::os::raw::c_int, + close_flag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_lshift1"] - pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_fd"] + pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rshift"] - pub fn BN_rshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_file"] + pub fn BIO_s_file() -> *const BIO_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_file"] + pub fn BIO_new_file( + filename: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut BIO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_fp"] + pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_fp"] + pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_fp"] + pub fn BIO_set_fp( + bio: *mut BIO, + file: *mut FILE, + close_flag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rshift1"] - pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_read_filename"] + pub fn BIO_read_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_set_bit"] - pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_write_filename"] + pub fn BIO_write_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_clear_bit"] - pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_append_filename"] + pub fn BIO_append_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_bit_set"] - pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_rw_filename"] + pub fn BIO_rw_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mask_bits"] - pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_tell"] + pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_count_low_zero_bits"] - pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_seek"] + pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_word"] - pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_socket"] + pub fn BIO_s_socket() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_pow2"] - pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_socket"] + pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) + -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_nnmod_pow2"] - pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_connect"] + pub fn BIO_s_connect() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_nnmod"] - pub fn BN_nnmod( - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_connect"] + pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_add"] - pub fn BN_mod_add( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_conn_hostname"] + pub fn BIO_set_conn_hostname( + bio: *mut BIO, + host_and_optional_port: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_add_quick"] - pub fn BN_mod_add_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_conn_port"] + pub fn BIO_set_conn_port( + bio: *mut BIO, + port_str: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sub"] - pub fn BN_mod_sub( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_conn_int_port"] + pub fn BIO_set_conn_int_port( + bio: *mut BIO, + port: *const ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sub_quick"] - pub fn BN_mod_sub_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_nbio"] + pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_mul"] - pub fn BN_mod_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_do_connect"] + pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sqr"] - pub fn BN_mod_sqr( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_new_bio_pair"] + pub fn BIO_new_bio_pair( + out1: *mut *mut BIO, + writebuf1: usize, + out2: *mut *mut BIO, + writebuf2: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift"] - pub fn BN_mod_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl_get_read_request"] + pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift_quick"] - pub fn BN_mod_lshift_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_ctrl_get_write_guarantee"] + pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift1"] - pub fn BN_mod_lshift1( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_shutdown_wr"] + pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_lshift1_quick"] - pub fn BN_mod_lshift1_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_new_index"] + pub fn BIO_get_new_index() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_sqrt"] - pub fn BN_mod_sqrt( - in_: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_new"] + pub fn BIO_meth_new( + type_: ::std::os::raw::c_int, + name: *const ::std::os::raw::c_char, + ) -> *mut BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rand"] - pub fn BN_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_free"] + pub fn BIO_meth_free(method: *mut BIO_METHOD); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_pseudo_rand"] - pub fn BN_pseudo_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_create"] + pub fn BIO_meth_set_create( + method: *mut BIO_METHOD, + create: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rand_range"] - pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_create"] + pub fn BIO_meth_get_create( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_rand_range_ex"] - pub fn BN_rand_range_ex( - r: *mut BIGNUM, - min_inclusive: BN_ULONG, - max_exclusive: *const BIGNUM, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_destroy"] + pub fn BIO_meth_set_destroy( + method: *mut BIO_METHOD, + destroy: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_pseudo_rand_range"] - pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_gencb_st { - pub arg: *mut ::std::os::raw::c_void, - pub callback: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut bn_gencb_st, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bn_gencb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(callback) - ) - ); -} -impl Default for bn_gencb_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_fips_0_12_15_BN_GENCB_new"] - pub fn BN_GENCB_new() -> *mut BN_GENCB; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_destroy"] + pub fn BIO_meth_get_destroy( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_free"] - pub fn BN_GENCB_free(callback: *mut BN_GENCB); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_write"] + pub fn BIO_meth_set_write( + method: *mut BIO_METHOD, + write: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_set"] - pub fn BN_GENCB_set( - callback: *mut BN_GENCB, - f: ::std::option::Option< + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_read"] + pub fn BIO_meth_set_read( + method: *mut BIO_METHOD, + read: ::std::option::Option< unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut BN_GENCB, + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, ) -> ::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_fips_0_12_15_BN_GENCB_call"] - pub fn BN_GENCB_call( - callback: *mut BN_GENCB, - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_gets"] + pub fn BIO_meth_set_gets( + method: *mut BIO_METHOD, + gets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_GENCB_get_arg"] - pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_gets"] + pub fn BIO_meth_get_gets( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_generate_prime_ex"] - pub fn BN_generate_prime_ex( - ret: *mut BIGNUM, - bits: ::std::os::raw::c_int, - safe: ::std::os::raw::c_int, - add: *const BIGNUM, - rem: *const BIGNUM, - cb: *mut BN_GENCB, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_ctrl"] + pub fn BIO_meth_set_ctrl( + method: *mut BIO_METHOD, + ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } -pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; -pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; -pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; -pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_enhanced_miller_rabin_primality_test"] - pub fn BN_enhanced_miller_rabin_primality_test( - out_result: *mut bn_primality_result_t, - w: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_ctrl"] + pub fn BIO_meth_get_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_long, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_primality_test"] - pub fn BN_primality_test( - is_probably_prime: *mut ::std::os::raw::c_int, - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_prime_fasttest_ex"] - pub fn BN_is_prime_fasttest_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_is_prime_ex"] - pub fn BN_is_prime_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_gcd"] - pub fn BN_gcd( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_inverse"] - pub fn BN_mod_inverse( - out: *mut BIGNUM, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_inverse_blinded"] - pub fn BN_mod_inverse_blinded( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_inverse_odd"] - pub fn BN_mod_inverse_odd( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_callback_ctrl"] + pub fn BIO_meth_set_callback_ctrl( + method: *mut BIO_METHOD, + callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_new_for_modulus"] - pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_new_consttime"] - pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_free"] - pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_callback_ctrl"] + pub fn BIO_meth_get_callback_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: bio_info_cb, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_copy"] - pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_data"] + pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_to_montgomery"] - pub fn BN_to_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_data"] + pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_from_montgomery"] - pub fn BN_from_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_init"] + pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_mul_montgomery"] - pub fn BN_mod_mul_montgomery( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_init"] + pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_exp"] - pub fn BN_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_ex_new_index"] + pub fn BIO_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_fips_0_12_15_BN_mod_exp"] - pub fn BN_mod_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_ex_data"] + pub fn BIO_set_ex_data( + bio: *mut BIO, + 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_fips_0_12_15_BN_mod_exp_mont"] - pub fn BN_mod_exp_mont( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_ex_data"] + pub fn BIO_get_ex_data( + bio: *const BIO, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_exp_mont_consttime"] - pub fn BN_mod_exp_mont_consttime( - rr: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_f_base64"] + pub fn BIO_f_base64() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2mpi"] - pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_retry_special"] + pub fn BIO_set_retry_special(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mpi2bn"] - pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_shutdown"] + pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_exp_mont_word"] - pub fn BN_mod_exp_mont_word( - r: *mut BIGNUM, - a: BN_ULONG, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_get_shutdown"] + pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_mod_exp2_mont"] - pub fn BN_mod_exp2_mont( - r: *mut BIGNUM, - a1: *const BIGNUM, - p1: *const BIGNUM, - a2: *const BIGNUM, - p2: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_set_puts"] + pub fn BIO_meth_set_puts( + method: *mut BIO_METHOD, + puts: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_new"] - pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_meth_get_puts"] + pub fn BIO_meth_get_puts( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_MONT_CTX_set"] - pub fn BN_MONT_CTX_set( - mont: *mut BN_MONT_CTX, - mod_: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_s_secmem"] + pub fn BIO_s_secmem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_bn2binpad"] - pub fn BN_bn2binpad( - in_: *const BIGNUM, - out: *mut u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BIO_set_write_buffer_size"] + pub fn BIO_set_write_buffer_size( + bio: *mut BIO, + buffer_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_secure_new"] - pub fn BN_secure_new() -> *mut BIGNUM; -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bignum_st { - pub d: *mut BN_ULONG, - pub width: ::std::os::raw::c_int, - pub dmax: ::std::os::raw::c_int, - pub neg: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, +pub struct bio_method_st { + pub type_: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub bwrite: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bread: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bputs: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, + pub bgets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, + pub create: + ::std::option::Option ::std::os::raw::c_int>, + pub destroy: + ::std::option::Option ::std::os::raw::c_int>, + pub callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, } #[test] -fn bindgen_test_layout_bignum_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); +fn bindgen_test_layout_bio_method_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!(bignum_st)) + ::std::mem::size_of::(), + 80usize, + concat!("Size of: ", stringify!(bio_method_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bignum_st)) + concat!("Alignment of ", stringify!(bio_method_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(d) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(width) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(dmax) + stringify!(bwrite) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(neg) + stringify!(bread) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(flags) + stringify!(bputs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bgets) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(ctrl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(create) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(destroy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(callback_ctrl) ) ); } -impl Default for bignum_st { +impl Default for bio_method_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7727,267 +7606,178 @@ impl Default for bignum_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_mont_ctx_st { - pub RR: BIGNUM, - pub N: BIGNUM, - pub n0: [BN_ULONG; 2usize], +pub struct bio_st { + pub method: *const BIO_METHOD, + pub ex_data: CRYPTO_EX_DATA, + pub callback_ex: BIO_callback_fn_ex, + pub cb_arg: *mut ::std::os::raw::c_char, + pub init: ::std::os::raw::c_int, + pub shutdown: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub retry_reason: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_int, + pub references: CRYPTO_refcount_t, + pub ptr: *mut ::std::os::raw::c_void, + pub next_bio: *mut BIO, + pub num_read: u64, + pub num_write: u64, } #[test] -fn bindgen_test_layout_bn_mont_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_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!(bn_mont_ctx_st)) + ::std::mem::size_of::(), + 88usize, + concat!("Size of: ", stringify!(bio_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + concat!("Alignment of ", stringify!(bio_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(RR) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ex_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(callback_ex) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(N) + stringify!(cb_arg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(init) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(shutdown) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(retry_reason) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(n0) + stringify!(num) ) ); -} -impl Default for bn_mont_ctx_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_fips_0_12_15_BN_num_bits_word"] - pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_tag2bit"] - pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_tag2str"] - pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -pub type d2i_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type i2d_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ITEM_EXP = ASN1_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_VALUE_st { - _unused: [u8; 0], -} -pub type ASN1_VALUE = ASN1_VALUE_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_new"] - pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_free"] - pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_d2i"] - pub fn ASN1_item_d2i( - out: *mut *mut ASN1_VALUE, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - ) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_i2d"] - pub fn ASN1_item_i2d( - val: *mut ASN1_VALUE, - outp: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_dup"] - pub fn ASN1_item_dup( - it: *const ASN1_ITEM, - x: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_d2i_fp"] - pub fn ASN1_item_d2i_fp( - it: *const ASN1_ITEM, - in_: *mut FILE, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_d2i_bio"] - pub fn ASN1_item_d2i_bio( - it: *const ASN1_ITEM, - in_: *mut BIO, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_i2d_fp"] - pub fn ASN1_item_i2d_fp( - it: *const ASN1_ITEM, - out: *mut FILE, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_i2d_bio"] - pub fn ASN1_item_i2d_bio( - it: *const ASN1_ITEM, - out: *mut BIO, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_unpack"] - pub fn ASN1_item_unpack( - oct: *const ASN1_STRING, - it: *const ASN1_ITEM, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_item_pack"] - pub fn ASN1_item_pack( - obj: *mut ::std::os::raw::c_void, - it: *const ASN1_ITEM, - out: *mut *mut ASN1_STRING, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_BOOLEAN"] - pub fn d2i_ASN1_BOOLEAN( - out: *mut ASN1_BOOLEAN, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> ASN1_BOOLEAN; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_BOOLEAN"] - pub fn i2d_ASN1_BOOLEAN( - a: ASN1_BOOLEAN, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BOOLEAN_it"] - pub static ASN1_BOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TBOOLEAN_it"] - pub static ASN1_TBOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_FBOOLEAN_it"] - pub static ASN1_FBOOLEAN_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct asn1_string_st { - pub length: ::std::os::raw::c_int, - pub type_: ::std::os::raw::c_int, - pub data: *mut ::std::os::raw::c_uchar, - pub flags: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_string_st)) + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(references) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(length) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(type_) + stringify!(next_bio) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(data) + stringify!(num_read) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(flags) + stringify!(num_write) ) ); } -impl Default for asn1_string_st { +impl Default for bio_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7996,1186 +7786,1039 @@ impl Default for asn1_string_st { } } } +pub type BN_ULONG = u64; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_type_new"] - pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_new"] + pub fn BN_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_new"] - pub fn ASN1_STRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_init"] + pub fn BN_init(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_free"] - pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_free"] + pub fn BN_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_clear_free"] - pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_clear_free"] + pub fn BN_clear_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_copy"] - pub fn ASN1_STRING_copy( - dst: *mut ASN1_STRING, - str_: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_dup"] + pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_dup"] - pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_copy"] + pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_type"] - pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_clear"] + pub fn BN_clear(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_get0_data"] - pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_value_one"] + pub fn BN_value_one() -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_data"] - pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_num_bits"] + pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_length"] - pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_num_bytes"] + pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_cmp"] - pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_zero"] + pub fn BN_zero(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set"] - pub fn ASN1_STRING_set( - str_: *mut ASN1_STRING, - data: *const ::std::os::raw::c_void, - len: ossl_ssize_t, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_one"] + pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set0"] - pub fn ASN1_STRING_set0( - str_: *mut ASN1_STRING, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_word"] + pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BMPSTRING_new"] - pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_u64"] + pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALSTRING_new"] - pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_negative"] + pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_IA5STRING_new"] - pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_negative"] + pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_new"] - pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bin2bn"] + pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_new"] - pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2bin"] + pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_T61STRING_new"] - pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_le2bn"] + pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_new"] - pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2le_padded"] + pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTF8STRING_new"] - pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2bin_padded"] + pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_new"] - pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2cbb_padded"] + pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BMPSTRING_free"] - pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2hex"] + pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALSTRING_free"] - pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_hex2bn"] + pub fn BN_hex2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_IA5STRING_free"] - pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2dec"] + pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_free"] - pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_dec2bn"] + pub fn BN_dec2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_free"] - pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_asc2bn"] + pub fn BN_asc2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_T61STRING_free"] - pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_print"] + pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_free"] - pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_print_fp"] + pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTF8STRING_free"] - pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_word"] + pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_free"] - pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_u64"] + pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_BMPSTRING"] - pub fn d2i_ASN1_BMPSTRING( - out: *mut *mut ASN1_BMPSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_flags"] + pub fn BN_get_flags(bn: *const BIGNUM, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_GENERALSTRING"] - pub fn d2i_ASN1_GENERALSTRING( - out: *mut *mut ASN1_GENERALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_parse_asn1_unsigned"] + pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_IA5STRING"] - pub fn d2i_ASN1_IA5STRING( - out: *mut *mut ASN1_IA5STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_marshal_asn1"] + pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_OCTET_STRING"] - pub fn d2i_ASN1_OCTET_STRING( - out: *mut *mut ASN1_OCTET_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_new"] + pub fn BN_CTX_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLESTRING"] - pub fn d2i_ASN1_PRINTABLESTRING( - out: *mut *mut ASN1_PRINTABLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_free"] + pub fn BN_CTX_free(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_T61STRING"] - pub fn d2i_ASN1_T61STRING( - out: *mut *mut ASN1_T61STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_T61STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_start"] + pub fn BN_CTX_start(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_UNIVERSALSTRING"] - pub fn d2i_ASN1_UNIVERSALSTRING( - out: *mut *mut ASN1_UNIVERSALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_get"] + pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_UTF8STRING"] - pub fn d2i_ASN1_UTF8STRING( - out: *mut *mut ASN1_UTF8STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_end"] + pub fn BN_CTX_end(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_VISIBLESTRING"] - pub fn d2i_ASN1_VISIBLESTRING( - out: *mut *mut ASN1_VISIBLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_add"] + pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_BMPSTRING"] - pub fn i2d_ASN1_BMPSTRING( - in_: *const ASN1_BMPSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_uadd"] + pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_GENERALSTRING"] - pub fn i2d_ASN1_GENERALSTRING( - in_: *const ASN1_GENERALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_add_word"] + pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_IA5STRING"] - pub fn i2d_ASN1_IA5STRING( - in_: *const ASN1_IA5STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sub"] + pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_OCTET_STRING"] - pub fn i2d_ASN1_OCTET_STRING( - in_: *const ASN1_OCTET_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_usub"] + pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLESTRING"] - pub fn i2d_ASN1_PRINTABLESTRING( - in_: *const ASN1_PRINTABLESTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sub_word"] + pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_T61STRING"] - pub fn i2d_ASN1_T61STRING( - in_: *const ASN1_T61STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mul"] + pub fn BN_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_UNIVERSALSTRING"] - pub fn i2d_ASN1_UNIVERSALSTRING( - in_: *const ASN1_UNIVERSALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mul_word"] + pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_UTF8STRING"] - pub fn i2d_ASN1_UTF8STRING( - in_: *const ASN1_UTF8STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sqr"] + pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_VISIBLESTRING"] - pub fn i2d_ASN1_VISIBLESTRING( - in_: *const ASN1_VISIBLESTRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_div"] + pub fn BN_div( + quotient: *mut BIGNUM, + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BMPSTRING_it"] - pub static ASN1_BMPSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_div_word"] + pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALSTRING_it"] - pub static ASN1_GENERALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_sqrt"] + pub fn BN_sqrt( + out_sqrt: *mut BIGNUM, + in_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_IA5STRING_it"] - pub static ASN1_IA5STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_cmp"] + pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_it"] - pub static ASN1_OCTET_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_cmp_word"] + pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_it"] - pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_ucmp"] + pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_T61STRING_it"] - pub static ASN1_T61STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_equal_consttime"] + pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_it"] - pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_abs_is_word"] + pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTF8STRING_it"] - pub static ASN1_UTF8STRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_zero"] + pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_it"] - pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_one"] + pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_dup"] - pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_word"] + pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_cmp"] - pub fn ASN1_OCTET_STRING_cmp( - a: *const ASN1_OCTET_STRING, - b: *const ASN1_OCTET_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_odd"] + pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OCTET_STRING_set"] - pub fn ASN1_OCTET_STRING_set( - str_: *mut ASN1_OCTET_STRING, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_pow2"] + pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_to_UTF8"] - pub fn ASN1_STRING_to_UTF8( - out: *mut *mut ::std::os::raw::c_uchar, - in_: *const ASN1_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_lshift"] + pub fn BN_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_mbstring_copy"] - pub fn ASN1_mbstring_copy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_lshift1"] + pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_mbstring_ncopy"] - pub fn ASN1_mbstring_ncopy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rshift"] + pub fn BN_rshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set_by_NID"] - pub fn ASN1_STRING_set_by_NID( - out: *mut *mut ASN1_STRING, - in_: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - nid: ::std::os::raw::c_int, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_TABLE_add"] - pub fn ASN1_STRING_TABLE_add( - nid: ::std::os::raw::c_int, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, - mask: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rshift1"] + pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIRECTORYSTRING_new"] - pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_set_bit"] + pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIRECTORYSTRING_free"] - pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_clear_bit"] + pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DIRECTORYSTRING"] - pub fn d2i_DIRECTORYSTRING( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_bit_set"] + pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DIRECTORYSTRING"] - pub fn i2d_DIRECTORYSTRING( - in_: *const ASN1_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mask_bits"] + pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIRECTORYSTRING_it"] - pub static DIRECTORYSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_count_low_zero_bits"] + pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DISPLAYTEXT_new"] - pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_word"] + pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DISPLAYTEXT_free"] - pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_pow2"] + pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DISPLAYTEXT"] - pub fn d2i_DISPLAYTEXT( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_nnmod_pow2"] + pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DISPLAYTEXT"] - pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_nnmod"] + pub fn BN_nnmod( + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DISPLAYTEXT_it"] - pub static DISPLAYTEXT_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_add"] + pub fn BN_mod_add( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_new"] - pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_add_quick"] + pub fn BN_mod_add_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_free"] - pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sub"] + pub fn BN_mod_sub( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_BIT_STRING"] - pub fn d2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sub_quick"] + pub fn BN_mod_sub_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_BIT_STRING"] - pub fn i2d_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_mul"] + pub fn BN_mod_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_c2i_ASN1_BIT_STRING"] - pub fn c2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sqr"] + pub fn BN_mod_sqr( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2c_ASN1_BIT_STRING"] - pub fn i2c_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift"] + pub fn BN_mod_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_it"] - pub static ASN1_BIT_STRING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_num_bytes"] - pub fn ASN1_BIT_STRING_num_bytes( - str_: *const ASN1_BIT_STRING, - out: *mut usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift_quick"] + pub fn BN_mod_lshift_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_set"] - pub fn ASN1_BIT_STRING_set( - str_: *mut ASN1_BIT_STRING, - d: *const ::std::os::raw::c_uchar, - length: ossl_ssize_t, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift1"] + pub fn BN_mod_lshift1( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_set_bit"] - pub fn ASN1_BIT_STRING_set_bit( - str_: *mut ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - value: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_lshift1_quick"] + pub fn BN_mod_lshift1_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_get_bit"] - pub fn ASN1_BIT_STRING_get_bit( - str_: *const ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_sqrt"] + pub fn BN_mod_sqrt( + in_: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_BIT_STRING_check"] - pub fn ASN1_BIT_STRING_check( - str_: *const ASN1_BIT_STRING, - flags: *const ::std::os::raw::c_uchar, - flags_len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rand"] + pub fn BN_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_INTEGER { - _unused: [u8; 0], -} -pub type sk_ASN1_INTEGER_free_func = - ::std::option::Option; -pub type sk_ASN1_INTEGER_copy_func = - ::std::option::Option *mut ASN1_INTEGER>; -pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_INTEGER, - arg2: *mut *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_INTEGER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_new"] - pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_pseudo_rand"] + pub fn BN_pseudo_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_free"] - pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rand_range"] + pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_dup"] - pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_rand_range_ex"] + pub fn BN_rand_range_ex( + r: *mut BIGNUM, + min_inclusive: BN_ULONG, + max_exclusive: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_INTEGER"] - pub fn d2i_ASN1_INTEGER( - out: *mut *mut ASN1_INTEGER, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_pseudo_rand_range"] + pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_INTEGER"] - pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct bn_gencb_st { + pub type_: u8, + pub arg: *mut ::std::os::raw::c_void, + pub callback: bn_gencb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_c2i_ASN1_INTEGER"] - pub fn c2i_ASN1_INTEGER( - in_: *mut *mut ASN1_INTEGER, - outp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; +#[repr(C)] +#[derive(Copy, Clone)] +pub union bn_gencb_st__bindgen_ty_1 { + pub new_style: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut bn_gencb_st, + ) -> ::std::os::raw::c_int, + >, + pub old_style: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2c_ASN1_INTEGER"] - pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_bn_gencb_st__bindgen_ty_1() { + 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!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).new_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(new_style) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).old_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(old_style) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_it"] - pub static ASN1_INTEGER_it: ASN1_ITEM; +impl Default for bn_gencb_st__bindgen_ty_1 { + 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_fips_0_12_15_ASN1_INTEGER_set_uint64"] - pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(callback) + ) + ); +} +impl Default for bn_gencb_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_fips_0_12_15_ASN1_INTEGER_set_int64"] - pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_new"] + pub fn BN_GENCB_new() -> *mut BN_GENCB; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_get_uint64"] - pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_free"] + pub fn BN_GENCB_free(callback: *mut BN_GENCB); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_get_int64"] - pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_set"] + pub fn BN_GENCB_set( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut BN_GENCB, + ) -> ::std::os::raw::c_int, + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_to_ASN1_INTEGER"] - pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_call"] + pub fn BN_GENCB_call( + callback: *mut BN_GENCB, + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_to_BN"] - pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_get_arg"] + pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_cmp"] - pub fn ASN1_INTEGER_cmp( - x: *const ASN1_INTEGER, - y: *const ASN1_INTEGER, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_generate_prime_ex"] + pub fn BN_generate_prime_ex( + ret: *mut BIGNUM, + bits: ::std::os::raw::c_int, + safe: ::std::os::raw::c_int, + add: *const BIGNUM, + rem: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } +pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; +pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; +pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; +pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_new"] - pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_enhanced_miller_rabin_primality_test"] + pub fn BN_enhanced_miller_rabin_primality_test( + out_result: *mut bn_primality_result_t, + w: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_free"] - pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_primality_test"] + pub fn BN_primality_test( + is_probably_prime: *mut ::std::os::raw::c_int, + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_ENUMERATED"] - pub fn d2i_ASN1_ENUMERATED( - out: *mut *mut ASN1_ENUMERATED, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_ENUMERATED"] - pub fn i2d_ASN1_ENUMERATED( - in_: *const ASN1_ENUMERATED, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_prime_fasttest_ex"] + pub fn BN_is_prime_fasttest_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_it"] - pub static ASN1_ENUMERATED_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_uint64"] - pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_int64"] - pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_uint64"] - pub fn ASN1_ENUMERATED_get_uint64( - out: *mut u64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_is_prime_ex"] + pub fn BN_is_prime_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_int64"] - pub fn ASN1_ENUMERATED_get_int64( - out: *mut i64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_gcd"] + pub fn BN_gcd( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_to_ASN1_ENUMERATED"] - pub fn BN_to_ASN1_ENUMERATED( - bn: *const BIGNUM, - ai: *mut ASN1_ENUMERATED, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_to_BN"] - pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_new"] - pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_free"] - pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_UTCTIME"] - pub fn d2i_ASN1_UTCTIME( - out: *mut *mut ASN1_UTCTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_UTCTIME"] - pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_it"] - pub static ASN1_UTCTIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_check"] - pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_set"] - pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_inverse"] + pub fn BN_mod_inverse( + out: *mut BIGNUM, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_adj"] - pub fn ASN1_UTCTIME_adj( - s: *mut ASN1_UTCTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_inverse_blinded"] + pub fn BN_mod_inverse_blinded( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_set_string"] - pub fn ASN1_UTCTIME_set_string( - s: *mut ASN1_UTCTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_inverse_odd"] + pub fn BN_mod_inverse_odd( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_cmp_time_t"] - pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_new_for_modulus"] + pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_new"] - pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_new_consttime"] + pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_free"] - pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_free"] + pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_GENERALIZEDTIME"] - pub fn d2i_ASN1_GENERALIZEDTIME( - out: *mut *mut ASN1_GENERALIZEDTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_copy"] + pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_GENERALIZEDTIME"] - pub fn i2d_ASN1_GENERALIZEDTIME( - in_: *const ASN1_GENERALIZEDTIME, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_to_montgomery"] + pub fn BN_to_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_it"] - pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_from_montgomery"] + pub fn BN_from_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_check"] - pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_mul_montgomery"] + pub fn BN_mod_mul_montgomery( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set"] - pub fn ASN1_GENERALIZEDTIME_set( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_exp"] + pub fn BN_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_adj"] - pub fn ASN1_GENERALIZEDTIME_adj( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp"] + pub fn BN_mod_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set_string"] - pub fn ASN1_GENERALIZEDTIME_set_string( - s: *mut ASN1_GENERALIZEDTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont"] + pub fn BN_mod_exp_mont( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_new"] - pub fn ASN1_TIME_new() -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime"] + pub fn BN_mod_exp_mont_consttime( + rr: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_free"] - pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_GENCB_set_old"] + pub fn BN_GENCB_set_old( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_TIME"] - pub fn d2i_ASN1_TIME( - out: *mut *mut ASN1_TIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2mpi"] + pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_TIME"] - pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mpi2bn"] + pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_it"] - pub static ASN1_TIME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont_word"] + pub fn BN_mod_exp_mont_word( + r: *mut BIGNUM, + a: BN_ULONG, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_diff"] - pub fn ASN1_TIME_diff( - out_days: *mut ::std::os::raw::c_int, - out_seconds: *mut ::std::os::raw::c_int, - from: *const ASN1_TIME, - to: *const ASN1_TIME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp2_mont"] + pub fn BN_mod_exp2_mont( + r: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_set_posix"] - pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_new"] + pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_set"] - pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_MONT_CTX_set"] + pub fn BN_MONT_CTX_set( + mont: *mut BN_MONT_CTX, + mod_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_adj"] - pub fn ASN1_TIME_adj( - s: *mut ASN1_TIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_bn2binpad"] + pub fn BN_bn2binpad( + in_: *const BIGNUM, + out: *mut u8, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_check"] - pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_secure_new"] + pub fn BN_secure_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_to_generalizedtime"] - pub fn ASN1_TIME_to_generalizedtime( - t: *const ASN1_TIME, - out: *mut *mut ASN1_GENERALIZEDTIME, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_CTX_secure_new"] + pub fn BN_CTX_secure_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_set_string"] - pub fn ASN1_TIME_set_string( - s: *mut ASN1_TIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime_x2"] + pub fn BN_mod_exp_mont_consttime_x2( + rr1: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + m1: *const BIGNUM, + in_mont1: *const BN_MONT_CTX, + rr2: *mut BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m2: *const BIGNUM, + in_mont2: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_to_time_t"] - pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_to_posix"] - pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_NULL_new"] - pub fn ASN1_NULL_new() -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_NULL_free"] - pub fn ASN1_NULL_free(null: *mut ASN1_NULL); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_NULL"] - pub fn d2i_ASN1_NULL( - out: *mut *mut ASN1_NULL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_NULL"] - pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_NULL_it"] - pub static ASN1_NULL_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_OBJECT { - _unused: [u8; 0], -} -pub type sk_ASN1_OBJECT_free_func = - ::std::option::Option; -pub type sk_ASN1_OBJECT_copy_func = - ::std::option::Option *mut ASN1_OBJECT>; -pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_OBJECT, - arg2: *mut *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OBJECT_create"] - pub fn ASN1_OBJECT_create( - nid: ::std::os::raw::c_int, - data: *const u8, - len: ::std::os::raw::c_int, - sn: *const ::std::os::raw::c_char, - ln: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OBJECT_free"] - pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_OBJECT"] - pub fn d2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_OBJECT"] - pub fn i2d_ASN1_OBJECT(a: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_c2i_ASN1_OBJECT"] - pub fn c2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_OBJECT_it"] - pub static ASN1_OBJECT_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct asn1_type_st { - pub type_: ::std::os::raw::c_int, - pub value: asn1_type_st__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union asn1_type_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub boolean: ASN1_BOOLEAN, - pub asn1_string: *mut ASN1_STRING, - pub object: *mut ASN1_OBJECT, - pub integer: *mut ASN1_INTEGER, - pub enumerated: *mut ASN1_ENUMERATED, - pub bit_string: *mut ASN1_BIT_STRING, - pub octet_string: *mut ASN1_OCTET_STRING, - pub printablestring: *mut ASN1_PRINTABLESTRING, - pub t61string: *mut ASN1_T61STRING, - pub ia5string: *mut ASN1_IA5STRING, - pub generalstring: *mut ASN1_GENERALSTRING, - pub bmpstring: *mut ASN1_BMPSTRING, - pub universalstring: *mut ASN1_UNIVERSALSTRING, - pub utctime: *mut ASN1_UTCTIME, - pub generalizedtime: *mut ASN1_GENERALIZEDTIME, - pub visiblestring: *mut ASN1_VISIBLESTRING, - pub utf8string: *mut ASN1_UTF8STRING, - pub set: *mut ASN1_STRING, - pub sequence: *mut ASN1_STRING, - pub asn1_value: *mut ASN1_VALUE, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bignum_st { + pub d: *mut BN_ULONG, + pub width: ::std::os::raw::c_int, + pub dmax: ::std::os::raw::c_int, + pub neg: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bignum_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!(asn1_type_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(bignum_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(boolean) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(asn1_string) - ) + concat!("Alignment of ", stringify!(bignum_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(object) + stringify!(d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(integer) + stringify!(width) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(enumerated) + stringify!(dmax) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(bit_string) + stringify!(neg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(octet_string) + stringify!(flags) ) ); +} +impl Default for bignum_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 bn_mont_ctx_st { + pub RR: BIGNUM, + pub N: BIGNUM, + pub n0: [BN_ULONG; 2usize], +} +#[test] +fn bindgen_test_layout_bn_mont_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(printablestring) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(t61string) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(ia5string) + stringify!(RR) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(generalstring) + stringify!(N) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(bmpstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(universalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utctime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalizedtime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(visiblestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utf8string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(sequence) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(asn1_value) + stringify!(n0) ) ); } -impl Default for asn1_type_st__bindgen_ty_1 { +impl Default for bn_mont_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9184,391 +8827,224 @@ impl Default for asn1_type_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_type_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_num_bits_word"] + pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; } -impl Default for asn1_type_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_fips_0_13_0_ASN1_tag2bit"] + pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_TYPE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_tag2str"] + pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -pub type sk_ASN1_TYPE_free_func = ::std::option::Option; -pub type sk_ASN1_TYPE_copy_func = - ::std::option::Option *mut ASN1_TYPE>; -pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< +pub type d2i_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_TYPE, - arg2: *mut *const ASN1_TYPE, - ) -> ::std::os::raw::c_int, + arg1: *mut *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, >; -pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< +pub type i2d_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut ASN1_TYPE, - arg2: *mut ::std::os::raw::c_void, + arg1: *const ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int, >; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_new"] - pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_free"] - pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_TYPE"] - pub fn d2i_ASN1_TYPE( - out: *mut *mut ASN1_TYPE, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TYPE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_TYPE"] - pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; +pub type ASN1_ITEM_EXP = ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_VALUE_st { + _unused: [u8; 0], } +pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ANY_it"] - pub static ASN1_ANY_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_new"] + pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_get"] - pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_free"] + pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_set"] - pub fn ASN1_TYPE_set( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_d2i"] + pub fn ASN1_item_d2i( + out: *mut *mut ASN1_VALUE, + inp: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + ) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_set1"] - pub fn ASN1_TYPE_set1( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_void, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_i2d"] + pub fn ASN1_item_i2d( + val: *mut ASN1_VALUE, + outp: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TYPE_cmp"] - pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_dup"] + pub fn ASN1_dup( + i2d: i2d_of_void, + d2i: d2i_of_void, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } -pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_SEQUENCE_ANY"] - pub fn d2i_ASN1_SEQUENCE_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_dup"] + pub fn ASN1_item_dup( + it: *const ASN1_ITEM, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_SEQUENCE_ANY"] - pub fn i2d_ASN1_SEQUENCE_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_d2i_fp"] + pub fn ASN1_item_d2i_fp( + it: *const ASN1_ITEM, + in_: *mut FILE, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_SET_ANY"] - pub fn d2i_ASN1_SET_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_d2i_bio"] + pub fn ASN1_item_d2i_bio( + it: *const ASN1_ITEM, + in_: *mut BIO, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_SET_ANY"] - pub fn i2d_ASN1_SET_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_i2d_fp"] + pub fn ASN1_item_i2d_fp( + it: *const ASN1_ITEM, + out: *mut FILE, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_UTCTIME_print"] - pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_i2d_bio"] + pub fn ASN1_item_i2d_bio( + it: *const ASN1_ITEM, + out: *mut BIO, + in_: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_print"] - pub fn ASN1_GENERALIZEDTIME_print( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_i2d_bio"] + pub fn ASN1_i2d_bio( + i2d: i2d_of_void, out: *mut BIO, - a: *const ASN1_GENERALIZEDTIME, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_TIME_print"] - pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_unpack"] + pub fn ASN1_item_unpack( + oct: *const ASN1_STRING, + it: *const ASN1_ITEM, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_print"] - pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_item_pack"] + pub fn ASN1_item_pack( + obj: *mut ::std::os::raw::c_void, + it: *const ASN1_ITEM, + out: *mut *mut ASN1_STRING, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_print_ex"] - pub fn ASN1_STRING_print_ex( - out: *mut BIO, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_print_ex_fp"] - pub fn ASN1_STRING_print_ex_fp( - fp: *mut FILE, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_INTEGER"] - pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_ENUMERATED"] - pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_OBJECT"] - pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ASN1_STRING"] - pub fn i2a_ASN1_STRING( - bp: *mut BIO, - a: *const ASN1_STRING, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2t_ASN1_OBJECT"] - pub fn i2t_ASN1_OBJECT( - buf: *mut ::std::os::raw::c_char, - buf_len: ::std::os::raw::c_int, - a: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_get_object"] - pub fn ASN1_get_object( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_BOOLEAN"] + pub fn d2i_ASN1_BOOLEAN( + out: *mut ASN1_BOOLEAN, inp: *mut *const ::std::os::raw::c_uchar, - out_length: *mut ::std::os::raw::c_long, - out_tag: *mut ::std::os::raw::c_int, - out_class: *mut ::std::os::raw::c_int, - max_len: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_put_object"] - pub fn ASN1_put_object( - outp: *mut *mut ::std::os::raw::c_uchar, - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - xclass: ::std::os::raw::c_int, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_put_eoc"] - pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_object_size"] - pub fn ASN1_object_size( - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask"] - pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask_asc"] - pub fn ASN1_STRING_set_default_mask_asc( - p: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_get_default_mask"] - pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_STRING_TABLE_cleanup"] - pub fn ASN1_STRING_TABLE_cleanup(); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLE_new"] - pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLE_free"] - pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLE"] - pub fn d2i_ASN1_PRINTABLE( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLE"] - pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) - -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_PRINTABLE_it"] - pub static ASN1_PRINTABLE_it: ASN1_ITEM; + ) -> ASN1_BOOLEAN; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_set"] - pub fn ASN1_INTEGER_set( - a: *mut ASN1_INTEGER, - v: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_BOOLEAN"] + pub fn i2d_ASN1_BOOLEAN( + a: ASN1_BOOLEAN, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_set"] - pub fn ASN1_ENUMERATED_set( - a: *mut ASN1_ENUMERATED, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BOOLEAN_it"] + pub static ASN1_BOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_INTEGER_get"] - pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TBOOLEAN_it"] + pub static ASN1_TBOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_ENUMERATED_get"] - pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; -} -pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_TLC_st { - _unused: [u8; 0], + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_FBOOLEAN_it"] + pub static ASN1_FBOOLEAN_it: ASN1_ITEM; } -pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_TEMPLATE_st { - pub flags: u32, - pub tag: ::std::os::raw::c_int, - pub offset: ::std::os::raw::c_ulong, - pub field_name: *const ::std::os::raw::c_char, - pub item: *const ASN1_ITEM_st, +pub struct asn1_string_st { + pub length: ::std::os::raw::c_int, + pub type_: ::std::os::raw::c_int, + pub data: *mut ::std::os::raw::c_uchar, + pub flags: ::std::os::raw::c_long, } #[test] -fn bindgen_test_layout_ASN1_TEMPLATE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_string_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(asn1_string_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + concat!("Alignment of ", stringify!(asn1_string_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(flags) + stringify!(length) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(tag) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(offset) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(field_name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(item) + stringify!(flags) ) ); } -impl Default for ASN1_TEMPLATE_st { +impl Default for asn1_string_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9577,1824 +9053,3370 @@ impl Default for ASN1_TEMPLATE_st { } } } -pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; -pub type ASN1_ADB = ASN1_ADB_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct asn1_must_be_null_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_type_new"] + pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; } -pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_st { - pub flags: u32, - pub offset: ::std::os::raw::c_ulong, - pub unused: *mut ASN1_MUST_BE_NULL, - pub tbl: *const ASN1_ADB_TABLE, - pub tblcount: ::std::os::raw::c_long, - pub default_tt: *const ASN1_TEMPLATE, - pub null_tt: *const ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_new"] + pub fn ASN1_STRING_new() -> *mut ASN1_STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(unused) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tbl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tblcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(default_tt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(null_tt) - ) +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_free"] + pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_clear_free"] + pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_copy"] + pub fn ASN1_STRING_copy( + dst: *mut ASN1_STRING, + str_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_dup"] + pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_type"] + pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_get0_data"] + pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_data"] + pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_length"] + pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_cmp"] + pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set"] + pub fn ASN1_STRING_set( + str_: *mut ASN1_STRING, + data: *const ::std::os::raw::c_void, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set0"] + pub fn ASN1_STRING_set0( + str_: *mut ASN1_STRING, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ); } -impl Default for ASN1_ADB_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_fips_0_13_0_ASN1_BMPSTRING_new"] + pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_TABLE_st { - pub value: ::std::os::raw::c_int, - pub tt: ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALSTRING_new"] + pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(tt) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_IA5STRING_new"] + pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; } -impl Default for ASN1_ADB_TABLE_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_fips_0_13_0_ASN1_OCTET_STRING_new"] + pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ITEM_st { - pub itype: ::std::os::raw::c_char, - pub utype: ::std::os::raw::c_int, - pub templates: *const ASN1_TEMPLATE, - pub tcount: ::std::os::raw::c_long, - pub funcs: *const ::std::os::raw::c_void, - pub size: ::std::os::raw::c_long, - pub sname: *const ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_new"] + pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; } -#[test] -fn bindgen_test_layout_ASN1_ITEM_st() { - 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!(ASN1_ITEM_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ITEM_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(itype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(utype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(templates) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(tcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(funcs) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(sname) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_T61STRING_new"] + pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; } -impl Default for ASN1_ITEM_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_fips_0_13_0_ASN1_UNIVERSALSTRING_new"] + pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; } -pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; -pub type ASN1_free_func = ::std::option::Option; -pub type ASN1_d2i_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut ASN1_VALUE, ->; -pub type ASN1_i2d_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut ASN1_VALUE, - in_: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_d2i = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - opt: ::std::os::raw::c_char, - ctx: *mut ASN1_TLC, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_i2d = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - out: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_new_func = ::std::option::Option< - unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_free_func = - ::std::option::Option; -pub type ASN1_ex_print_func = ::std::option::Option< - unsafe extern "C" fn( - out: *mut BIO, - pval: *mut *mut ASN1_VALUE, - indent: ::std::os::raw::c_int, - fname: *const ::std::os::raw::c_char, - pctx: *const ASN1_PCTX, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_EXTERN_FUNCS_st { - pub app_data: *mut ::std::os::raw::c_void, - pub asn1_ex_new: ASN1_ex_new_func, - pub asn1_ex_free: ASN1_ex_free_func, - pub asn1_ex_clear: ASN1_ex_free_func, - pub asn1_ex_d2i: ASN1_ex_d2i, - pub asn1_ex_i2d: ASN1_ex_i2d, - pub asn1_ex_print: ASN1_ex_print_func, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTF8STRING_new"] + pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; } -#[test] -fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_clear) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_clear) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_print) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_new"] + pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; } -impl Default for ASN1_EXTERN_FUNCS_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_fips_0_13_0_ASN1_BMPSTRING_free"] + pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); } -pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; -pub type ASN1_aux_cb = ::std::option::Option< - unsafe extern "C" fn( - operation: ::std::os::raw::c_int, - in_: *mut *mut ASN1_VALUE, - it: *const ASN1_ITEM, - exarg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_AUX_st { - pub app_data: *mut ::std::os::raw::c_void, - pub flags: u32, - pub ref_offset: ::std::os::raw::c_int, - pub asn1_cb: ASN1_aux_cb, - pub enc_offset: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALSTRING_free"] + pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); } -#[test] -fn bindgen_test_layout_ASN1_AUX_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(ref_offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(asn1_cb) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(enc_offset) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_IA5STRING_free"] + pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); } -impl Default for ASN1_AUX_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_fips_0_13_0_ASN1_OCTET_STRING_free"] + pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); } -pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ASN1_SEQUENCE_it"] - pub static ASN1_SEQUENCE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_free"] + pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_T61STRING_free"] + pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); } -pub type sk_ASN1_VALUE_free_func = - ::std::option::Option; -pub type sk_ASN1_VALUE_copy_func = - ::std::option::Option *mut ASN1_VALUE>; -pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_VALUE, - arg2: *mut *const ASN1_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeBlock"] - pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_free"] + pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodedLength"] - pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTF8STRING_free"] + pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodedLength"] - pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_free"] + pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeBase64"] - pub fn EVP_DecodeBase64( - out: *mut u8, - out_len: *mut usize, - max_out: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_BMPSTRING"] + pub fn d2i_ASN1_BMPSTRING( + out: *mut *mut ASN1_BMPSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BMPSTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_ENCODE_CTX_new"] - pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_GENERALSTRING"] + pub fn d2i_ASN1_GENERALSTRING( + out: *mut *mut ASN1_GENERALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALSTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_ENCODE_CTX_free"] - pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_IA5STRING"] + pub fn d2i_ASN1_IA5STRING( + out: *mut *mut ASN1_IA5STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_IA5STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeInit"] - pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_OCTET_STRING"] + pub fn d2i_ASN1_OCTET_STRING( + out: *mut *mut ASN1_OCTET_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeUpdate"] - pub fn EVP_EncodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLESTRING"] + pub fn d2i_ASN1_PRINTABLESTRING( + out: *mut *mut ASN1_PRINTABLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_PRINTABLESTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncodeFinal"] - pub fn EVP_EncodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_T61STRING"] + pub fn d2i_ASN1_T61STRING( + out: *mut *mut ASN1_T61STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_T61STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeInit"] - pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_UNIVERSALSTRING"] + pub fn d2i_ASN1_UNIVERSALSTRING( + out: *mut *mut ASN1_UNIVERSALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UNIVERSALSTRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeUpdate"] - pub fn EVP_DecodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_UTF8STRING"] + pub fn d2i_ASN1_UTF8STRING( + out: *mut *mut ASN1_UTF8STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTF8STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_VISIBLESTRING"] + pub fn d2i_ASN1_VISIBLESTRING( + out: *mut *mut ASN1_VISIBLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_VISIBLESTRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_BMPSTRING"] + pub fn i2d_ASN1_BMPSTRING( + in_: *const ASN1_BMPSTRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeFinal"] - pub fn EVP_DecodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_GENERALSTRING"] + pub fn i2d_ASN1_GENERALSTRING( + in_: *const ASN1_GENERALSTRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecodeBlock"] - pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_IA5STRING"] + pub fn i2d_ASN1_IA5STRING( + in_: *const ASN1_IA5STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_encode_ctx_st { - pub data_used: ::std::os::raw::c_uint, - pub data: [u8; 48usize], - pub eof_seen: ::std::os::raw::c_char, - pub error_encountered: ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_OCTET_STRING"] + pub fn i2d_ASN1_OCTET_STRING( + in_: *const ASN1_OCTET_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_evp_encode_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(eof_seen) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, - 53usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(error_encountered) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLESTRING"] + pub fn i2d_ASN1_PRINTABLESTRING( + in_: *const ASN1_PRINTABLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -impl Default for evp_encode_ctx_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_fips_0_13_0_i2d_ASN1_T61STRING"] + pub fn i2d_ASN1_T61STRING( + in_: *const ASN1_T61STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct blake2b_state_st { - pub h: [u64; 8usize], - pub t_low: u64, - pub t_high: u64, - pub block: blake2b_state_st__bindgen_ty_1, - pub block_used: usize, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_UNIVERSALSTRING"] + pub fn i2d_ASN1_UNIVERSALSTRING( + in_: *const ASN1_UNIVERSALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union blake2b_state_st__bindgen_ty_1 { - pub bytes: [u8; 128usize], - pub words: [u64; 16usize], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_UTF8STRING"] + pub fn i2d_ASN1_UTF8STRING( + in_: *const ASN1_UTF8STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_blake2b_state_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).words) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(words) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_VISIBLESTRING"] + pub fn i2d_ASN1_VISIBLESTRING( + in_: *const ASN1_VISIBLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -impl Default for blake2b_state_st__bindgen_ty_1 { - 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_fips_0_13_0_ASN1_BMPSTRING_it"] + pub static ASN1_BMPSTRING_it: ASN1_ITEM; } -#[test] -fn bindgen_test_layout_blake2b_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(blake2b_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_low) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_high) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block_used) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALSTRING_it"] + pub static ASN1_GENERALSTRING_it: ASN1_ITEM; } -impl Default for blake2b_state_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_fips_0_13_0_ASN1_IA5STRING_it"] + pub static ASN1_IA5STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256_Init"] - pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_it"] + pub static ASN1_OCTET_STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256_Update"] - pub fn BLAKE2B256_Update( - b2b: *mut BLAKE2B_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_it"] + pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256_Final"] - pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_T61STRING_it"] + pub static ASN1_T61STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BLAKE2B256"] - pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_it"] + pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bf_key_st { - pub P: [u32; 18usize], - pub S: [u32; 1024usize], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTF8STRING_it"] + pub static ASN1_UTF8STRING_it: ASN1_ITEM; } -#[test] -fn bindgen_test_layout_bf_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 4168usize, - concat!("Size of: ", stringify!(bf_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(bf_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(P) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(S) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_it"] + pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; } -impl Default for bf_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_fips_0_13_0_ASN1_OCTET_STRING_dup"] + pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; } -pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_set_key"] - pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_cmp"] + pub fn ASN1_OCTET_STRING_cmp( + a: *const ASN1_OCTET_STRING, + b: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_encrypt"] - pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OCTET_STRING_set"] + pub fn ASN1_OCTET_STRING_set( + str_: *mut ASN1_OCTET_STRING, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_decrypt"] - pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_to_UTF8"] + pub fn ASN1_STRING_to_UTF8( + out: *mut *mut ::std::os::raw::c_uchar, + in_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_ecb_encrypt"] - pub fn BF_ecb_encrypt( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_mbstring_copy"] + pub fn ASN1_mbstring_copy( + out: *mut *mut ASN1_STRING, in_: *const u8, - out: *mut u8, - key: *const BF_KEY, - enc: ::std::os::raw::c_int, - ); + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BF_cbc_encrypt"] - pub fn BF_cbc_encrypt( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_mbstring_ncopy"] + pub fn ASN1_mbstring_ncopy( + out: *mut *mut ASN1_STRING, in_: *const u8, - out: *mut u8, - length: usize, - schedule: *const BF_KEY, - ivec: *mut u8, - enc: ::std::os::raw::c_int, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbs_st { - pub data: *const u8, - pub len: usize, -} -#[test] -fn bindgen_test_layout_cbs_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!(cbs_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbs_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(len) - ) - ); + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + minsize: ossl_ssize_t, + maxsize: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } -impl Default for cbs_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_fips_0_13_0_ASN1_STRING_set_by_NID"] + pub fn ASN1_STRING_set_by_NID( + out: *mut *mut ASN1_STRING, + in_: *const ::std::os::raw::c_uchar, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_init"] - pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_TABLE_add"] + pub fn ASN1_STRING_TABLE_add( + nid: ::std::os::raw::c_int, + minsize: ::std::os::raw::c_long, + maxsize: ::std::os::raw::c_long, + mask: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_skip"] - pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIRECTORYSTRING_new"] + pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_data"] - pub fn CBS_data(cbs: *const CBS) -> *const u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIRECTORYSTRING_free"] + pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_len"] - pub fn CBS_len(cbs: *const CBS) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DIRECTORYSTRING"] + pub fn d2i_DIRECTORYSTRING( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_stow"] - pub fn CBS_stow( - cbs: *const CBS, - out_ptr: *mut *mut u8, - out_len: *mut usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DIRECTORYSTRING"] + pub fn i2d_DIRECTORYSTRING( + in_: *const ASN1_STRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_strdup"] - pub fn CBS_strdup( - cbs: *const CBS, - out_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIRECTORYSTRING_it"] + pub static DIRECTORYSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_contains_zero_byte"] - pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DISPLAYTEXT_new"] + pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_mem_equal"] - pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DISPLAYTEXT_free"] + pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u8"] - pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DISPLAYTEXT"] + pub fn d2i_DISPLAYTEXT( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u16"] - pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DISPLAYTEXT"] + pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u16le"] - pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DISPLAYTEXT_it"] + pub static DISPLAYTEXT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u24"] - pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_new"] + pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u32"] - pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_free"] + pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u32le"] - pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_BIT_STRING"] + pub fn d2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u64"] - pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_BIT_STRING"] + pub fn i2d_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u64le"] - pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_c2i_ASN1_BIT_STRING"] + pub fn c2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_last_u8"] - pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2c_ASN1_BIT_STRING"] + pub fn i2c_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_bytes"] - pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_it"] + pub static ASN1_BIT_STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_copy_bytes"] - pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_num_bytes"] + pub fn ASN1_BIT_STRING_num_bytes( + str_: *const ASN1_BIT_STRING, + out: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u8_length_prefixed"] - pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_set"] + pub fn ASN1_BIT_STRING_set( + str_: *mut ASN1_BIT_STRING, + d: *const ::std::os::raw::c_uchar, + length: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u16_length_prefixed"] - pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_set_bit"] + pub fn ASN1_BIT_STRING_set_bit( + str_: *mut ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_u24_length_prefixed"] - pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_get_bit"] + pub fn ASN1_BIT_STRING_get_bit( + str_: *const ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_until_first"] - pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_BIT_STRING_check"] + pub fn ASN1_BIT_STRING_check( + str_: *const ASN1_BIT_STRING, + flags: *const ::std::os::raw::c_uchar, + flags_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_INTEGER { + _unused: [u8; 0], } +pub type sk_ASN1_INTEGER_free_func = + ::std::option::Option; +pub type sk_ASN1_INTEGER_copy_func = + ::std::option::Option *mut ASN1_INTEGER>; +pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_INTEGER, + arg2: *const *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_INTEGER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1"] - pub fn CBS_get_asn1( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_new"] + pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_element"] - pub fn CBS_get_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_free"] + pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_peek_asn1_tag"] - pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_dup"] + pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_any_asn1"] - pub fn CBS_get_any_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_INTEGER"] + pub fn d2i_ASN1_INTEGER( + out: *mut *mut ASN1_INTEGER, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_any_asn1_element"] - pub fn CBS_get_any_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_INTEGER"] + pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_any_ber_asn1_element"] - pub fn CBS_get_any_ber_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - out_ber_found: *mut ::std::os::raw::c_int, - out_indefinite: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_c2i_ASN1_INTEGER"] + pub fn c2i_ASN1_INTEGER( + in_: *mut *mut ASN1_INTEGER, + outp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_uint64"] - pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2c_ASN1_INTEGER"] + pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_int64"] - pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_it"] + pub static ASN1_INTEGER_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_asn1_bool"] - pub fn CBS_get_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_set_uint64"] + pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1"] - pub fn CBS_get_optional_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_set_int64"] + pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_octet_string"] - pub fn CBS_get_optional_asn1_octet_string( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_get_uint64"] + pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_uint64"] - pub fn CBS_get_optional_asn1_uint64( - cbs: *mut CBS, - out: *mut u64, - tag: CBS_ASN1_TAG, - default_value: u64, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_get_int64"] + pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_bool"] - pub fn CBS_get_optional_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - default_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_to_ASN1_INTEGER"] + pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_is_valid_asn1_bitstring"] - pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_to_BN"] + pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_asn1_bitstring_has_bit"] - pub fn CBS_asn1_bitstring_has_bit( - cbs: *const CBS, - bit: ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_cmp"] + pub fn ASN1_INTEGER_cmp( + x: *const ASN1_INTEGER, + y: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_is_valid_asn1_integer"] - pub fn CBS_is_valid_asn1_integer( - cbs: *const CBS, - out_is_negative: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_new"] + pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_is_unsigned_asn1_integer"] - pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_free"] + pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_asn1_oid_to_text"] - pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_ENUMERATED"] + pub fn d2i_ASN1_ENUMERATED( + out: *mut *mut ASN1_ENUMERATED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_parse_generalized_time"] - pub fn CBS_parse_generalized_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_ENUMERATED"] + pub fn i2d_ASN1_ENUMERATED( + in_: *const ASN1_ENUMERATED, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_parse_utc_time"] - pub fn CBS_parse_utc_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_it"] + pub static ASN1_ENUMERATED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_uint64"] + pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_int64"] + pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_uint64"] + pub fn ASN1_ENUMERATED_get_uint64( + out: *mut u64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBS_get_optional_asn1_int64"] - pub fn CBS_get_optional_asn1_int64( - cbs: *mut CBS, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_int64"] + pub fn ASN1_ENUMERATED_get_int64( out: *mut i64, - tag: CBS_ASN1_TAG, - default_value: i64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_buffer_st { - pub buf: *mut u8, - pub len: usize, - pub cap: usize, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_to_ASN1_ENUMERATED"] + pub fn BN_to_ASN1_ENUMERATED( + bn: *const BIGNUM, + ai: *mut ASN1_ENUMERATED, + ) -> *mut ASN1_ENUMERATED; } -#[test] -fn bindgen_test_layout_cbb_buffer_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(cap) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_to_BN"] + pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; } -impl Default for cbb_buffer_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_fips_0_13_0_ASN1_UTCTIME_new"] + pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; } -impl cbb_buffer_st { - #[inline] - pub fn can_resize(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn error(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - can_resize: ::std::os::raw::c_uint, - error: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; - can_resize as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let error: u32 = unsafe { ::std::mem::transmute(error) }; - error as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_free"] + pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_child_st { - pub base: *mut cbb_buffer_st, - pub offset: usize, - pub pending_len_len: u8, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u16; 3usize], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_UTCTIME"] + pub fn d2i_ASN1_UTCTIME( + out: *mut *mut ASN1_UTCTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } -#[test] -fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_child_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(pending_len_len) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_UTCTIME"] + pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -impl Default for cbb_child_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_fips_0_13_0_ASN1_UTCTIME_it"] + pub static ASN1_UTCTIME_it: ASN1_ITEM; } -impl cbb_child_st { - #[inline] - pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - pending_is_asn1: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; - pending_is_asn1 as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_check"] + pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct cbb_st { - pub child: *mut CBB, - pub is_child: ::std::os::raw::c_char, - pub u: cbb_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_set"] + pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union cbb_st__bindgen_ty_1 { - pub base: cbb_buffer_st, - pub child: cbb_child_st, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_adj"] + pub fn ASN1_UTCTIME_adj( + s: *mut ASN1_UTCTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } -#[test] -fn bindgen_test_layout_cbb_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(child) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_set_string"] + pub fn ASN1_UTCTIME_set_string( + s: *mut ASN1_UTCTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } -impl Default for cbb_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_cbb_st() { - 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!(cbb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(is_child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) - ); -} -impl Default for cbb_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_fips_0_12_15_CBB_zero"] - pub fn CBB_zero(cbb: *mut CBB); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_init"] - pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_init_fixed"] - pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_cleanup"] - pub fn CBB_cleanup(cbb: *mut CBB); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_finish"] - pub fn CBB_finish( - cbb: *mut CBB, - out_data: *mut *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_cmp_time_t"] + pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_flush"] - pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_data"] - pub fn CBB_data(cbb: *const CBB) -> *const u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_new"] + pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_len"] - pub fn CBB_len(cbb: *const CBB) -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_free"] + pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u8_length_prefixed"] - pub fn CBB_add_u8_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_GENERALIZEDTIME"] + pub fn d2i_ASN1_GENERALIZEDTIME( + out: *mut *mut ASN1_GENERALIZEDTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u16_length_prefixed"] - pub fn CBB_add_u16_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_GENERALIZEDTIME"] + pub fn i2d_ASN1_GENERALIZEDTIME( + in_: *const ASN1_GENERALIZEDTIME, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u24_length_prefixed"] - pub fn CBB_add_u24_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_it"] + pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1"] - pub fn CBB_add_asn1( - cbb: *mut CBB, - out_contents: *mut CBB, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_check"] + pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_bytes"] - pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set"] + pub fn ASN1_GENERALIZEDTIME_set( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_zeros"] - pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_adj"] + pub fn ASN1_GENERALIZEDTIME_adj( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_space"] - pub fn CBB_add_space( - cbb: *mut CBB, - out_data: *mut *mut u8, - len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set_string"] + pub fn ASN1_GENERALIZEDTIME_set_string( + s: *mut ASN1_GENERALIZEDTIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_reserve"] - pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_did_write"] - pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u8"] - pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u16"] - pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u16le"] - pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_new"] + pub fn ASN1_TIME_new() -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u24"] - pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_free"] + pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u32"] - pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_TIME"] + pub fn d2i_ASN1_TIME( + out: *mut *mut ASN1_TIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u32le"] - pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_TIME"] + pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u64"] - pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_it"] + pub static ASN1_TIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_u64le"] - pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_diff"] + pub fn ASN1_TIME_diff( + out_days: *mut ::std::os::raw::c_int, + out_seconds: *mut ::std::os::raw::c_int, + from: *const ASN1_TIME, + to: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_discard_child"] - pub fn CBB_discard_child(cbb: *mut CBB); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set_posix"] + pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_uint64"] - pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set"] + pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_uint64_with_tag"] - pub fn CBB_add_asn1_uint64_with_tag( - cbb: *mut CBB, - value: u64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_adj"] + pub fn ASN1_TIME_adj( + s: *mut ASN1_TIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_int64"] - pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_check"] + pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_int64_with_tag"] - pub fn CBB_add_asn1_int64_with_tag( - cbb: *mut CBB, - value: i64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_generalizedtime"] + pub fn ASN1_TIME_to_generalizedtime( + t: *const ASN1_TIME, + out: *mut *mut ASN1_GENERALIZEDTIME, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_octet_string"] - pub fn CBB_add_asn1_octet_string( - cbb: *mut CBB, - data: *const u8, - data_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set_string"] + pub fn ASN1_TIME_set_string( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_bool"] - pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_tm"] + pub fn ASN1_TIME_to_tm(t: *const ASN1_TIME, out: *mut tm) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_add_asn1_oid_from_text"] - pub fn CBB_add_asn1_oid_from_text( - cbb: *mut CBB, - text: *const ::std::os::raw::c_char, - len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_set_string_X509"] + pub fn ASN1_TIME_set_string_X509( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CBB_flush_asn1_set_of"] - pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_time_t"] + pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_chacha_20"] - pub fn CRYPTO_chacha_20( - out: *mut u8, - in_: *const u8, - in_len: usize, - key: *const u8, - nonce: *const u8, - counter: u32, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_to_posix"] + pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_rc4"] - pub fn EVP_rc4() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_NULL_new"] + pub fn ASN1_NULL_new() -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_cbc"] - pub fn EVP_des_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_NULL_free"] + pub fn ASN1_NULL_free(null: *mut ASN1_NULL); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ecb"] - pub fn EVP_des_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_NULL"] + pub fn d2i_ASN1_NULL( + out: *mut *mut ASN1_NULL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede"] - pub fn EVP_des_ede() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_NULL"] + pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede3"] - pub fn EVP_des_ede3() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_NULL_it"] + pub static ASN1_NULL_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede_cbc"] - pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_OBJECT { + _unused: [u8; 0], } +pub type sk_ASN1_OBJECT_free_func = + ::std::option::Option; +pub type sk_ASN1_OBJECT_copy_func = + ::std::option::Option *mut ASN1_OBJECT>; +pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_OBJECT, + arg2: *const *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede3_cbc"] - pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OBJECT_create"] + pub fn ASN1_OBJECT_create( + nid: ::std::os::raw::c_int, + data: *const u8, + len: usize, + sn: *const ::std::os::raw::c_char, + ln: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_ecb"] - pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OBJECT_free"] + pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cbc"] - pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_OBJECT"] + pub fn d2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_ctr"] - pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_OBJECT"] + pub fn i2d_ASN1_OBJECT(in_: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_ofb"] - pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_c2i_ASN1_OBJECT"] + pub fn c2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_ecb"] - pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_OBJECT_it"] + pub static ASN1_OBJECT_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cbc"] - pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct asn1_type_st { + pub type_: ::std::os::raw::c_int, + pub value: asn1_type_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_ctr"] - pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; +#[repr(C)] +#[derive(Copy, Clone)] +pub union asn1_type_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub boolean: ASN1_BOOLEAN, + pub asn1_string: *mut ASN1_STRING, + pub object: *mut ASN1_OBJECT, + pub integer: *mut ASN1_INTEGER, + pub enumerated: *mut ASN1_ENUMERATED, + pub bit_string: *mut ASN1_BIT_STRING, + pub octet_string: *mut ASN1_OCTET_STRING, + pub printablestring: *mut ASN1_PRINTABLESTRING, + pub t61string: *mut ASN1_T61STRING, + pub ia5string: *mut ASN1_IA5STRING, + pub generalstring: *mut ASN1_GENERALSTRING, + pub bmpstring: *mut ASN1_BMPSTRING, + pub universalstring: *mut ASN1_UNIVERSALSTRING, + pub utctime: *mut ASN1_UTCTIME, + pub generalizedtime: *mut ASN1_GENERALIZEDTIME, + pub visiblestring: *mut ASN1_VISIBLESTRING, + pub utf8string: *mut ASN1_UTF8STRING, + pub set: *mut ASN1_STRING, + pub sequence: *mut ASN1_STRING, + pub asn1_value: *mut ASN1_VALUE, +} +#[test] +fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { + 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!(asn1_type_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(boolean) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(object) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(integer) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(enumerated) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bit_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(octet_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(printablestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(t61string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ia5string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bmpstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(universalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utctime) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalizedtime) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(visiblestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utf8string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(set) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(sequence) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_value) + ) + ); +} +impl Default for asn1_type_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(value) + ) + ); +} +impl Default for asn1_type_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)] +pub struct stack_st_ASN1_TYPE { + _unused: [u8; 0], +} +pub type sk_ASN1_TYPE_free_func = ::std::option::Option; +pub type sk_ASN1_TYPE_copy_func = + ::std::option::Option *mut ASN1_TYPE>; +pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_TYPE, + arg2: *const *const ASN1_TYPE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_TYPE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_new"] + pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_free"] + pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_TYPE"] + pub fn d2i_ASN1_TYPE( + out: *mut *mut ASN1_TYPE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_TYPE"] + pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ANY_it"] + pub static ASN1_ANY_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_get"] + pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_set"] + pub fn ASN1_TYPE_set( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_set1"] + pub fn ASN1_TYPE_set1( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TYPE_cmp"] + pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_SEQUENCE_ANY"] + pub fn d2i_ASN1_SEQUENCE_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_SEQUENCE_ANY"] + pub fn i2d_ASN1_SEQUENCE_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_SET_ANY"] + pub fn d2i_ASN1_SET_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_SET_ANY"] + pub fn i2d_ASN1_SET_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_UTCTIME_print"] + pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_print"] + pub fn ASN1_GENERALIZEDTIME_print( + out: *mut BIO, + a: *const ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_TIME_print"] + pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_print"] + pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_print_ex"] + pub fn ASN1_STRING_print_ex( + out: *mut BIO, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_print_ex_fp"] + pub fn ASN1_STRING_print_ex_fp( + fp: *mut FILE, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_INTEGER"] + pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_ENUMERATED"] + pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_OBJECT"] + pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2a_ASN1_STRING"] + pub fn i2a_ASN1_STRING( + bp: *mut BIO, + a: *const ASN1_STRING, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2t_ASN1_OBJECT"] + pub fn i2t_ASN1_OBJECT( + buf: *mut ::std::os::raw::c_char, + buf_len: ::std::os::raw::c_int, + a: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_get_object"] + pub fn ASN1_get_object( + inp: *mut *const ::std::os::raw::c_uchar, + out_length: *mut ::std::os::raw::c_long, + out_tag: *mut ::std::os::raw::c_int, + out_class: *mut ::std::os::raw::c_int, + max_len: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_put_object"] + pub fn ASN1_put_object( + outp: *mut *mut ::std::os::raw::c_uchar, + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + xclass: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_put_eoc"] + pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_object_size"] + pub fn ASN1_object_size( + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLE_new"] + pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLE_free"] + pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLE"] + pub fn d2i_ASN1_PRINTABLE( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLE"] + pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_PRINTABLE_it"] + pub static ASN1_PRINTABLE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_set"] + pub fn ASN1_INTEGER_set( + a: *mut ASN1_INTEGER, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_set"] + pub fn ASN1_ENUMERATED_set( + a: *mut ASN1_ENUMERATED, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_INTEGER_get"] + pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_ENUMERATED_get"] + pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask"] + pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask_asc"] + pub fn ASN1_STRING_set_default_mask_asc( + p: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_get_default_mask"] + pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_STRING_TABLE_cleanup"] + pub fn ASN1_STRING_TABLE_cleanup(); +} +pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_TLC_st { + _unused: [u8; 0], +} +pub type ASN1_TLC = ASN1_TLC_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_TEMPLATE_st { + pub flags: u32, + pub tag: ::std::os::raw::c_int, + pub offset: ::std::os::raw::c_ulong, + pub field_name: *const ::std::os::raw::c_char, + pub item: *const ASN1_ITEM_st, +} +#[test] +fn bindgen_test_layout_ASN1_TEMPLATE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(tag) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(field_name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(item) + ) + ); +} +impl Default for ASN1_TEMPLATE_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() + } + } +} +pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; +pub type ASN1_ADB = ASN1_ADB_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct asn1_must_be_null_st { + _unused: [u8; 0], +} +pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_st { + pub flags: u32, + pub offset: ::std::os::raw::c_ulong, + pub unused: *mut ASN1_MUST_BE_NULL, + pub tbl: *const ASN1_ADB_TABLE, + pub tblcount: ::std::os::raw::c_long, + pub default_tt: *const ASN1_TEMPLATE, + pub null_tt: *const ASN1_TEMPLATE, +} +#[test] +fn bindgen_test_layout_ASN1_ADB_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(ASN1_ADB_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(unused) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tbl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tblcount) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(default_tt) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(null_tt) + ) + ); +} +impl Default for ASN1_ADB_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 ASN1_ADB_TABLE_st { + pub value: ::std::os::raw::c_int, + pub tt: ASN1_TEMPLATE, +} +#[test] +fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(value) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(tt) + ) + ); +} +impl Default for ASN1_ADB_TABLE_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 ASN1_ITEM_st { + pub itype: ::std::os::raw::c_char, + pub utype: ::std::os::raw::c_int, + pub templates: *const ASN1_TEMPLATE, + pub tcount: ::std::os::raw::c_long, + pub funcs: *const ::std::os::raw::c_void, + pub size: ::std::os::raw::c_long, + pub sname: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_ASN1_ITEM_st() { + 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!(ASN1_ITEM_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ITEM_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(itype) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(utype) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(templates) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(tcount) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(funcs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(sname) + ) + ); +} +impl Default for ASN1_ITEM_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() + } + } +} +pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; +pub type ASN1_free_func = ::std::option::Option; +pub type ASN1_d2i_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + length: ::std::os::raw::c_long, + ) -> *mut ASN1_VALUE, +>; +pub type ASN1_i2d_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut ASN1_VALUE, + in_: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_d2i = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + opt: ::std::os::raw::c_char, + ctx: *mut ASN1_TLC, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_i2d = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + out: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_new_func = ::std::option::Option< + unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_free_func = + ::std::option::Option; +pub type ASN1_ex_print_func = ::std::option::Option< + unsafe extern "C" fn( + out: *mut BIO, + pval: *mut *mut ASN1_VALUE, + indent: ::std::os::raw::c_int, + fname: *const ::std::os::raw::c_char, + pctx: *const ASN1_PCTX, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_EXTERN_FUNCS_st { + pub app_data: *mut ::std::os::raw::c_void, + pub asn1_ex_new: ASN1_ex_new_func, + pub asn1_ex_free: ASN1_ex_free_func, + pub asn1_ex_d2i: ASN1_ex_d2i, + pub asn1_ex_i2d: ASN1_ex_i2d, + pub asn1_ex_print: ASN1_ex_print_func, +} +#[test] +fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { + 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!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_new) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_free) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_d2i) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_i2d) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_print) + ) + ); +} +impl Default for ASN1_EXTERN_FUNCS_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() + } + } +} +pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; +pub type ASN1_aux_cb = ::std::option::Option< + unsafe extern "C" fn( + operation: ::std::os::raw::c_int, + in_: *mut *mut ASN1_VALUE, + it: *const ASN1_ITEM, + exarg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_AUX_st { + pub app_data: *mut ::std::os::raw::c_void, + pub flags: u32, + pub ref_offset: ::std::os::raw::c_int, + pub asn1_cb: ASN1_aux_cb, + pub enc_offset: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_ASN1_AUX_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(ref_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(asn1_cb) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(enc_offset) + ) + ); +} +impl Default for ASN1_AUX_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() + } + } +} +pub type ASN1_AUX = ASN1_AUX_st; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ASN1_SEQUENCE_it"] + pub static ASN1_SEQUENCE_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_VALUE { + _unused: [u8; 0], +} +pub type sk_ASN1_VALUE_free_func = + ::std::option::Option; +pub type sk_ASN1_VALUE_copy_func = + ::std::option::Option *mut ASN1_VALUE>; +pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_VALUE, + arg2: *const *const ASN1_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeBlock"] + pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodedLength"] + pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodedLength"] + pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeBase64"] + pub fn EVP_DecodeBase64( + out: *mut u8, + out_len: *mut usize, + max_out: usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_ENCODE_CTX_new"] + pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_ENCODE_CTX_free"] + pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeInit"] + pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeUpdate"] + pub fn EVP_EncodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncodeFinal"] + pub fn EVP_EncodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeInit"] + pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeUpdate"] + pub fn EVP_DecodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeFinal"] + pub fn EVP_DecodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecodeBlock"] + pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_encode_ctx_st { + pub data_used: ::std::os::raw::c_uint, + pub data: [u8; 48usize], + pub eof_seen: ::std::os::raw::c_char, + pub error_encountered: ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_evp_encode_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(eof_seen) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, + 53usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(error_encountered) + ) + ); +} +impl Default for evp_encode_ctx_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 blake2b_state_st { + pub h: [u64; 8usize], + pub t_low: u64, + pub t_high: u64, + pub block: [u8; 128usize], + pub block_used: usize, +} +#[test] +fn bindgen_test_layout_blake2b_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(blake2b_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(blake2b_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_low) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_high) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block_used) + ) + ); +} +impl Default for blake2b_state_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_fips_0_13_0_BLAKE2B256_Init"] + pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256_Update"] + pub fn BLAKE2B256_Update( + b2b: *mut BLAKE2B_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256_Final"] + pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BLAKE2B256"] + pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bf_key_st { + pub P: [u32; 18usize], + pub S: [u32; 1024usize], +} +#[test] +fn bindgen_test_layout_bf_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 4168usize, + concat!("Size of: ", stringify!(bf_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(bf_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(P) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(S) + ) + ); +} +impl Default for bf_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() + } + } +} +pub type BF_KEY = bf_key_st; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_set_key"] + pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_encrypt"] + pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_decrypt"] + pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_ecb_encrypt"] + pub fn BF_ecb_encrypt( + in_: *const u8, + out: *mut u8, + key: *const BF_KEY, + enc: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BF_cbc_encrypt"] + pub fn BF_cbc_encrypt( + in_: *const u8, + out: *mut u8, + length: usize, + schedule: *const BF_KEY, + ivec: *mut u8, + enc: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbs_st { + pub data: *const u8, + pub len: usize, +} +#[test] +fn bindgen_test_layout_cbs_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!(cbs_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbs_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(len) + ) + ); +} +impl Default for cbs_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_fips_0_13_0_CBS_init"] + pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_skip"] + pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_data"] + pub fn CBS_data(cbs: *const CBS) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_len"] + pub fn CBS_len(cbs: *const CBS) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_stow"] + pub fn CBS_stow( + cbs: *const CBS, + out_ptr: *mut *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_strdup"] + pub fn CBS_strdup( + cbs: *const CBS, + out_ptr: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_contains_zero_byte"] + pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_mem_equal"] + pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u8"] + pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u16"] + pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u16le"] + pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u24"] + pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u32"] + pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u32le"] + pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u64"] + pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u64le"] + pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_last_u8"] + pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_bytes"] + pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_copy_bytes"] + pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u8_length_prefixed"] + pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u16_length_prefixed"] + pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u24_length_prefixed"] + pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_until_first"] + pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_u64_decimal"] + pub fn CBS_get_u64_decimal(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1"] + pub fn CBS_get_asn1( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_element"] + pub fn CBS_get_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_peek_asn1_tag"] + pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_any_asn1"] + pub fn CBS_get_any_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_any_asn1_element"] + pub fn CBS_get_any_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_any_ber_asn1_element"] + pub fn CBS_get_any_ber_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + out_ber_found: *mut ::std::os::raw::c_int, + out_indefinite: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_uint64"] + pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_int64"] + pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_asn1_bool"] + pub fn CBS_get_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1"] + pub fn CBS_get_optional_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_octet_string"] + pub fn CBS_get_optional_asn1_octet_string( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_uint64"] + pub fn CBS_get_optional_asn1_uint64( + cbs: *mut CBS, + out: *mut u64, + tag: CBS_ASN1_TAG, + default_value: u64, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_bool"] + pub fn CBS_get_optional_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + default_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_valid_asn1_bitstring"] + pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_asn1_bitstring_has_bit"] + pub fn CBS_asn1_bitstring_has_bit( + cbs: *const CBS, + bit: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_valid_asn1_integer"] + pub fn CBS_is_valid_asn1_integer( + cbs: *const CBS, + out_is_negative: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_unsigned_asn1_integer"] + pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_is_valid_asn1_oid"] + pub fn CBS_is_valid_asn1_oid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_asn1_oid_to_text"] + pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_parse_generalized_time"] + pub fn CBS_parse_generalized_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_parse_utc_time"] + pub fn CBS_parse_utc_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBS_get_optional_asn1_int64"] + pub fn CBS_get_optional_asn1_int64( + cbs: *mut CBS, + out: *mut i64, + tag: CBS_ASN1_TAG, + default_value: i64, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_buffer_st { + pub buf: *mut u8, + pub len: usize, + pub cap: usize, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 7usize], +} +#[test] +fn bindgen_test_layout_cbb_buffer_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(cap) + ) + ); +} +impl Default for cbb_buffer_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() + } + } +} +impl cbb_buffer_st { + #[inline] + pub fn can_resize(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn error(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + can_resize: ::std::os::raw::c_uint, + error: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; + can_resize as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let error: u32 = unsafe { ::std::mem::transmute(error) }; + error as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_child_st { + pub base: *mut cbb_buffer_st, + pub offset: usize, + pub pending_len_len: u8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u16; 3usize], +} +#[test] +fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_child_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(pending_len_len) + ) + ); +} +impl Default for cbb_child_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() + } + } +} +impl cbb_child_st { + #[inline] + pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pending_is_asn1: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; + pending_is_asn1 as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct cbb_st { + pub child: *mut CBB, + pub is_child: ::std::os::raw::c_char, + pub u: cbb_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union cbb_st__bindgen_ty_1 { + pub base: cbb_buffer_st, + pub child: cbb_child_st, +} +#[test] +fn bindgen_test_layout_cbb_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(child) + ) + ); +} +impl Default for cbb_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_cbb_st() { + 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!(cbb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(is_child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, + 16usize, + concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) + ); +} +impl Default for cbb_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_fips_0_13_0_CBB_zero"] + pub fn CBB_zero(cbb: *mut CBB); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_init"] + pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_init_fixed"] + pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_cleanup"] + pub fn CBB_cleanup(cbb: *mut CBB); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_finish"] + pub fn CBB_finish( + cbb: *mut CBB, + out_data: *mut *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_flush"] + pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_data"] + pub fn CBB_data(cbb: *const CBB) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_len"] + pub fn CBB_len(cbb: *const CBB) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u8_length_prefixed"] + pub fn CBB_add_u8_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u16_length_prefixed"] + pub fn CBB_add_u16_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u24_length_prefixed"] + pub fn CBB_add_u24_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1"] + pub fn CBB_add_asn1( + cbb: *mut CBB, + out_contents: *mut CBB, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_bytes"] + pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_zeros"] + pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_space"] + pub fn CBB_add_space( + cbb: *mut CBB, + out_data: *mut *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_reserve"] + pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_did_write"] + pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u8"] + pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u16"] + pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u16le"] + pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u24"] + pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u32"] + pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_ofb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u32le"] + pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u64"] + pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_u64le"] + pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_discard_child"] + pub fn CBB_discard_child(cbb: *mut CBB); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_uint64"] + pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_uint64_with_tag"] + pub fn CBB_add_asn1_uint64_with_tag( + cbb: *mut CBB, + value: u64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_int64"] + pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_int64_with_tag"] + pub fn CBB_add_asn1_int64_with_tag( + cbb: *mut CBB, + value: i64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_octet_string"] + pub fn CBB_add_asn1_octet_string( + cbb: *mut CBB, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_bool"] + pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_add_asn1_oid_from_text"] + pub fn CBB_add_asn1_oid_from_text( + cbb: *mut CBB, + text: *const ::std::os::raw::c_char, + len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CBB_flush_asn1_set_of"] + pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_chacha_20"] + pub fn CRYPTO_chacha_20( + out: *mut u8, + in_: *const u8, + in_len: usize, + key: *const u8, + nonce: *const u8, + counter: u32, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_rc4"] + pub fn EVP_rc4() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_cbc"] + pub fn EVP_des_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ecb"] + pub fn EVP_des_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede"] + pub fn EVP_des_ede() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede3"] + pub fn EVP_des_ede3() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede_cbc"] + pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede3_cbc"] + pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ecb"] + pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cbc"] + pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ctr"] + pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ofb"] + pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ecb"] + pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cbc"] + pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ctr"] + pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ofb"] pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_xts"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_xts"] pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_enc_null"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_wrap"] + pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_enc_null"] pub fn EVP_enc_null() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_rc2_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_rc2_cbc"] pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_rc2_40_cbc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_rc2_40_cbc"] pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_cipherbynid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_chacha20_poly1305"] + pub fn EVP_chacha20_poly1305() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_cipherbynid"] pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_init"] pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_new"] pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cleanup"] pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_free"] pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_copy"] pub fn EVP_CIPHER_CTX_copy( out: *mut EVP_CIPHER_CTX, in_: *const EVP_CIPHER_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_reset"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_reset"] pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherInit_ex"] pub fn EVP_CipherInit_ex( ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, @@ -11405,7 +12427,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptInit_ex"] pub fn EVP_EncryptInit_ex( ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, @@ -11415,7 +12437,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptInit_ex"] pub fn EVP_DecryptInit_ex( ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, @@ -11425,7 +12447,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptUpdate"] pub fn EVP_EncryptUpdate( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11435,7 +12457,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptFinal_ex"] pub fn EVP_EncryptFinal_ex( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11443,7 +12465,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptUpdate"] pub fn EVP_DecryptUpdate( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11453,7 +12475,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptFinal_ex"] pub fn EVP_DecryptFinal_ex( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11461,7 +12483,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherUpdate"] pub fn EVP_CipherUpdate( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11471,7 +12493,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherFinal_ex"] pub fn EVP_CipherFinal_ex( ctx: *mut EVP_CIPHER_CTX, out: *mut u8, @@ -11479,47 +12501,47 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cipher"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cipher"] pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_nid"] pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_encrypting"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_encrypting"] pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_block_size"] pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_key_length"] pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_iv_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_iv_length"] pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_get_app_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_get_app_data"] pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_app_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_app_data"] pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_flags"] pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_mode"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_mode"] pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_ctrl"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_ctrl"] pub fn EVP_CIPHER_CTX_ctrl( ctx: *mut EVP_CIPHER_CTX, command: ::std::os::raw::c_int, @@ -11528,1054 +12550,488 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_padding"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_padding"] pub fn EVP_CIPHER_CTX_set_padding( ctx: *mut EVP_CIPHER_CTX, pad: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_key_length"] pub fn EVP_CIPHER_CTX_set_key_length( ctx: *mut EVP_CIPHER_CTX, key_len: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_nid"] pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_name"] + pub fn EVP_CIPHER_name(cipher: *const EVP_CIPHER) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_block_size"] pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_key_length"] pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_iv_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_iv_length"] pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_flags"] pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_mode"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_mode"] pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_BytesToKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_BytesToKey"] pub fn EVP_BytesToKey( type_: *const EVP_CIPHER, md: *const EVP_MD, salt: *const u8, data: *const u8, - data_len: usize, - count: ::std::os::raw::c_uint, - key: *mut u8, - iv: *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha1"] - pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha1"] - pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha256"] - pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha256"] - pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherInit"] - pub fn EVP_CipherInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptInit"] - pub fn EVP_EncryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptInit"] - pub fn EVP_DecryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CipherFinal"] - pub fn EVP_CipherFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_EncryptFinal"] - pub fn EVP_EncryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DecryptFinal"] - pub fn EVP_DecryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_Cipher"] - pub fn EVP_Cipher( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_add_cipher_alias"] - pub fn EVP_add_cipher_alias( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_cipherbyname"] - pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_gcm"] - pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_gcm"] - pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_ecb"] - pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cbc"] - pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_ctr"] - pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_gcm"] - pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_ofb"] - pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_des_ede3_ecb"] - pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb128"] - pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb"] - pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb1"] - pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_128_cfb8"] - pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb128"] - pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb"] - pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb1"] - pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_192_cfb8"] - pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb128"] - pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb"] - pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb1"] - pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aes_256_cfb8"] - pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_bf_ecb"] - pub fn EVP_bf_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_bf_cbc"] - pub fn EVP_bf_cbc() -> *const EVP_CIPHER; + data_len: usize, + count: ::std::os::raw::c_uint, + key: *mut u8, + iv: *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_bf_cfb"] - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha1"] + pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_cast5_ecb"] - pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha1"] + pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_cast5_cbc"] - pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha256"] + pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_flags"] - pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_ctx_st { - pub cipher: *const EVP_CIPHER, - pub app_data: *mut ::std::os::raw::c_void, - pub cipher_data: *mut ::std::os::raw::c_void, - pub key_len: ::std::os::raw::c_uint, - pub encrypt: ::std::os::raw::c_int, - pub flags: u32, - pub oiv: [u8; 16usize], - pub iv: [u8; 16usize], - pub buf: [u8; 32usize], - pub buf_len: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_uint, - pub final_used: ::std::os::raw::c_int, - pub final_: [u8; 32usize], - pub poisoned: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_evp_cipher_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 152usize, - concat!("Size of: ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(key_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(encrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(oiv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(iv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(poisoned) - ) - ); -} -impl Default for evp_cipher_ctx_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 evp_cipher_info_st { - pub cipher: *const EVP_CIPHER, - pub iv: [::std::os::raw::c_uchar; 16usize], -} -#[test] -fn bindgen_test_layout_evp_cipher_info_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!(evp_cipher_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(iv) - ) - ); -} -impl Default for evp_cipher_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() - } - } + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha256"] + pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; } -pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AES_CMAC"] - pub fn AES_CMAC( - out: *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherInit"] + pub fn EVP_CipherInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, key: *const u8, - key_len: usize, - in_: *const u8, - in_len: usize, + iv: *const u8, + enc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_CTX_new"] - pub fn CMAC_CTX_new() -> *mut CMAC_CTX; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_CTX_free"] - pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_CTX_copy"] - pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptInit"] + pub fn EVP_EncryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Init"] - pub fn CMAC_Init( - ctx: *mut CMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptInit"] + pub fn EVP_DecryptInit( + ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, - engine: *mut ENGINE, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Reset"] - pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CipherFinal"] + pub fn EVP_CipherFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Update"] - pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_EncryptFinal"] + pub fn EVP_EncryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CMAC_Final"] - pub fn CMAC_Final( - ctx: *mut CMAC_CTX, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DecryptFinal"] + pub fn EVP_DecryptFinal( + ctx: *mut EVP_CIPHER_CTX, out: *mut u8, - out_len: *mut usize, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct conf_value_st { - pub section: *mut ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_conf_value_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!(conf_value_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(conf_value_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(value) - ) - ); -} -impl Default for conf_value_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)] -pub struct stack_st_CONF_VALUE { - _unused: [u8; 0], -} -pub type sk_CONF_VALUE_free_func = - ::std::option::Option; -pub type sk_CONF_VALUE_copy_func = - ::std::option::Option *mut CONF_VALUE>; -pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const CONF_VALUE, - arg2: *mut *const CONF_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CONF_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lhash_st_CONF_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_Cipher"] + pub fn EVP_Cipher( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_new"] - pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_cipherbyname"] + pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_free"] - pub fn NCONF_free(conf: *mut CONF); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_gcm"] + pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_load"] - pub fn NCONF_load( - conf: *mut CONF, - filename: *const ::std::os::raw::c_char, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_gcm"] + pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_load_bio"] - pub fn NCONF_load_bio( - conf: *mut CONF, - bio: *mut BIO, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_ccm"] + pub fn EVP_aes_128_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_get_section"] - pub fn NCONF_get_section( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - ) -> *const stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ccm"] + pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NCONF_get_string"] - pub fn NCONF_get_string( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_ccm"] + pub fn EVP_aes_256_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CONF_modules_load_file"] - pub fn CONF_modules_load_file( - filename: *const ::std::os::raw::c_char, - appname: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ecb"] + pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CONF_modules_free"] - pub fn CONF_modules_free(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cbc"] + pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_config"] - pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ctr"] + pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_no_config"] - pub fn OPENSSL_no_config(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_gcm"] + pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Init"] - pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_ofb"] + pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Update"] - pub fn SHA1_Update( - sha: *mut SHA_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_des_ede3_ecb"] + pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Final"] - pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb128"] + pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1"] - pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb"] + pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA1_Transform"] - pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb1"] + pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha_state_st { - pub h: [u32; 5usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_128_cfb8"] + pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_sha_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(sha_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(num) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cfb128"] + pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; } -impl Default for sha_state_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_fips_0_13_0_EVP_aes_192_cfb"] + pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224_Init"] - pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cfb1"] + pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224_Update"] - pub fn SHA224_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_192_cfb8"] + pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224_Final"] - pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb128"] + pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA224"] - pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb"] + pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Init"] - pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb1"] + pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Update"] - pub fn SHA256_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aes_256_cfb8"] + pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Final"] - pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_bf_ecb"] + pub fn EVP_bf_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256"] - pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_bf_cbc"] + pub fn EVP_bf_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_Transform"] - pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_bf_cfb"] + pub fn EVP_bf_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA256_TransformBlocks"] - pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_cast5_ecb"] + pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_cast5_cbc"] + pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_flags"] + pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_add_cipher_alias"] + pub fn EVP_add_cipher_alias( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha256_state_st { - pub h: [u32; 8usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], +pub struct evp_cipher_ctx_st { + pub cipher: *const EVP_CIPHER, + pub app_data: *mut ::std::os::raw::c_void, + pub cipher_data: *mut ::std::os::raw::c_void, + pub key_len: ::std::os::raw::c_uint, + pub encrypt: ::std::os::raw::c_int, + pub flags: u32, + pub oiv: [u8; 16usize], + pub iv: [u8; 16usize], + pub buf: [u8; 32usize], + pub buf_len: ::std::os::raw::c_int, pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, + pub final_used: ::std::os::raw::c_int, + pub final_: [u8; 32usize], + pub poisoned: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_sha256_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_cipher_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 112usize, - concat!("Size of: ", stringify!(sha256_state_st)) + ::std::mem::size_of::(), + 152usize, + concat!("Size of: ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha256_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(app_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(cipher_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(data) + stringify!(key_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(num) + stringify!(encrypt) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(md_len) + stringify!(flags) ) ); -} -impl Default for sha256_state_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_fips_0_12_15_SHA384_Init"] - pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA384_Update"] - pub fn SHA384_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA384_Final"] - pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA384"] - pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Init"] - pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Update"] - pub fn SHA512_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Final"] - pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512"] - pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_Transform"] - pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha512_state_st { - pub h: [u64; 8usize], - pub Nl: u64, - pub Nh: u64, - pub p: [u8; 128usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, -} -#[test] -fn bindgen_test_layout_sha512_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(oiv) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(iv) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 68usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(buf) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, + 100usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(buf_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(final_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(final_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(p) + stringify!(poisoned) ) ); +} +impl Default for evp_cipher_ctx_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 evp_cipher_info_st { + pub cipher: *const EVP_CIPHER, + pub iv: [::std::os::raw::c_uchar; 16usize], +} +#[test] +fn bindgen_test_layout_evp_cipher_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 208usize, + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(num) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 212usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(md_len) + stringify!(iv) ) ); } -impl Default for sha512_state_st { +impl Default for evp_cipher_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12584,327 +13040,223 @@ impl Default for sha512_state_st { } } } +pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256_Init"] - pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256_Update"] - pub fn SHA512_256_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256_Final"] - pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SHA512_256"] - pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_malloc"] - pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_free"] - pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_realloc"] - pub fn OPENSSL_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_cleanse"] - pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_memcmp"] - pub fn CRYPTO_memcmp( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_hash32"] - pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strhash"] - pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strdup"] - pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strnlen"] - pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_tolower"] - pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strcasecmp"] - pub fn OPENSSL_strcasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strncasecmp"] - pub fn OPENSSL_strncasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - n: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_snprintf"] - pub fn BIO_snprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BIO_vsnprintf"] - pub fn BIO_vsnprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_vasprintf"] - pub fn OPENSSL_vasprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_asprintf"] - pub fn OPENSSL_asprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AES_CMAC"] + pub fn AES_CMAC( + out: *mut u8, + key: *const u8, + key_len: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strndup"] - pub fn OPENSSL_strndup( - str_: *const ::std::os::raw::c_char, - size: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_memdup"] - pub fn OPENSSL_memdup( - data: *const ::std::os::raw::c_void, - size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strlcpy"] - pub fn OPENSSL_strlcpy( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_strlcat"] - pub fn OPENSSL_strlcat( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_malloc"] - pub fn CRYPTO_malloc( - size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_realloc"] - pub fn CRYPTO_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_new"] + pub fn CMAC_CTX_new() -> *mut CMAC_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_free"] - pub fn CRYPTO_free( - ptr: *mut ::std::os::raw::c_void, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_free"] + pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_clear_free"] - pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_copy"] + pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_set_mem_functions"] - pub fn CRYPTO_set_mem_functions( - m: ::std::option::Option< - unsafe extern "C" fn( - arg1: usize, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - r: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: usize, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - f: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Init"] + pub fn CMAC_Init( + ctx: *mut CMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_secure_malloc_init"] - pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_secure_malloc_initialized"] - pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_secure_used"] - pub fn CRYPTO_secure_used() -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_secure_malloc"] - pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_secure_clear_free"] - pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Reset"] + pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_library_init"] - pub fn CRYPTO_library_init(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Update"] + pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_is_confidential_build"] - pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_Final"] + pub fn CMAC_Final( + ctx: *mut CMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_has_asm"] - pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CMAC_CTX_get0_cipher_ctx"] + pub fn CMAC_CTX_get0_cipher_ctx(ctx: *mut CMAC_CTX) -> *mut EVP_CIPHER_CTX; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BORINGSSL_self_test"] - pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct conf_value_st { + pub section: *mut ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BORINGSSL_integrity_test"] - pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_conf_value_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!(conf_value_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(conf_value_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(section) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(value) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_pre_sandbox_init"] - pub fn CRYPTO_pre_sandbox_init(); +impl Default for conf_value_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_fips_0_12_15_FIPS_mode"] - pub fn FIPS_mode() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CONF_VALUE { + _unused: [u8; 0], } -pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; -pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; -pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; -pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; -pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; -pub type fips_counter_t = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_read_counter"] - pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; +pub type sk_CONF_VALUE_free_func = + ::std::option::Option; +pub type sk_CONF_VALUE_copy_func = + ::std::option::Option *mut CONF_VALUE>; +pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CONF_VALUE, + arg2: *const *const CONF_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CONF_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lhash_st_CONF_VALUE { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_version"] - pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_new"] + pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SSLeay_version"] - pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_free"] + pub fn NCONF_free(conf: *mut CONF); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SSLeay"] - pub fn SSLeay() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_load"] + pub fn NCONF_load( + conf: *mut CONF, + filename: *const ::std::os::raw::c_char, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_version_num"] - pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_load_bio"] + pub fn NCONF_load_bio( + conf: *mut CONF, + bio: *mut BIO, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_awslc_api_version_num"] - pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_get_section"] + pub fn NCONF_get_section( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + ) -> *const stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_malloc_init"] - pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NCONF_get_string"] + pub fn NCONF_get_string( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_malloc_init"] - pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_load_file"] + pub fn CONF_modules_load_file( + filename: *const ::std::os::raw::c_char, + appname: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_load_builtin_engines"] - pub fn ENGINE_load_builtin_engines(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_get1_default_config_file"] + pub fn CONF_get1_default_config_file() -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_register_all_complete"] - pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_free"] + pub fn CONF_modules_free(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_load_builtin_modules"] - pub fn OPENSSL_load_builtin_modules(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_unload"] + pub fn CONF_modules_unload(all: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_init_crypto"] - pub fn OPENSSL_init_crypto( - opts: u64, - settings: *const OPENSSL_INIT_SETTINGS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CONF_modules_finish"] + pub fn CONF_modules_finish(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_cleanup"] - pub fn OPENSSL_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_config"] + pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_mode_set"] - pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_no_config"] + pub fn OPENSSL_no_config(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X25519_keypair"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X25519_keypair"] pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X25519"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X25519"] pub fn X25519( out_shared_key: *mut u8, private_key: *const u8, @@ -12912,15 +13264,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X25519_public_from_private"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X25519_public_from_private"] pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_keypair"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_keypair"] pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_sign"] pub fn ED25519_sign( out_sig: *mut u8, message: *const u8, @@ -12929,7 +13281,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_verify"] pub fn ED25519_verify( message: *const u8, message_len: usize, @@ -12938,7 +13290,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ED25519_keypair_from_seed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ED25519_keypair_from_seed"] pub fn ED25519_keypair_from_seed( out_public_key: *mut u8, out_private_key: *mut u8, @@ -12949,7 +13301,7 @@ pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_CTX_new"] pub fn SPAKE2_CTX_new( my_role: spake2_role_t, my_name: *const u8, @@ -12959,11 +13311,11 @@ extern "C" { ) -> *mut SPAKE2_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_CTX_free"] pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_generate_msg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_generate_msg"] pub fn SPAKE2_generate_msg( ctx: *mut SPAKE2_CTX, out: *mut u8, @@ -12974,7 +13326,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SPAKE2_process_msg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SPAKE2_process_msg"] pub fn SPAKE2_process_msg( ctx: *mut SPAKE2_CTX, out_key: *mut u8, @@ -13047,15 +13399,33 @@ fn bindgen_test_layout_DES_ks() { } pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_set_key"] - pub fn DES_set_key(key: *const DES_cblock, schedule: *mut DES_key_schedule); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_is_weak_key"] + pub fn DES_is_weak_key(key: *const DES_cblock) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_set_key"] + pub fn DES_set_key( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_set_key_unchecked"] + pub fn DES_set_key_unchecked(key: *const DES_cblock, schedule: *mut DES_key_schedule); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_set_odd_parity"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_key_sched"] + pub fn DES_key_sched( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_set_odd_parity"] pub fn DES_set_odd_parity(key: *mut DES_cblock); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ecb_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ecb_encrypt"] pub fn DES_ecb_encrypt( in_: *const DES_cblock, out: *mut DES_cblock, @@ -13064,7 +13434,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ncbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ncbc_encrypt"] pub fn DES_ncbc_encrypt( in_: *const u8, out: *mut u8, @@ -13075,7 +13445,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ecb3_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ecb3_encrypt"] pub fn DES_ecb3_encrypt( input: *const DES_cblock, output: *mut DES_cblock, @@ -13086,7 +13456,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ede3_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ede3_cbc_encrypt"] pub fn DES_ede3_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -13099,7 +13469,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DES_ede2_cbc_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DES_ede2_cbc_encrypt"] pub fn DES_ede2_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -13111,61 +13481,47 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_new"] + pub fn DH_new() -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_new"] - pub fn DH_new() -> *mut DH; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_new_by_nid"] + pub fn DH_new_by_nid(nid: ::std::os::raw::c_int) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_free"] pub fn DH_free(dh: *mut DH); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_up_ref"] pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_bits"] pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_pub_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_pub_key"] pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_priv_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_priv_key"] pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_p"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_p"] pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_q"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_q"] pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_g"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_g"] pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_key"] pub fn DH_get0_key( dh: *const DH, out_pub_key: *mut *const BIGNUM, @@ -13173,7 +13529,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_set0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_set0_key"] pub fn DH_set0_key( dh: *mut DH, pub_key: *mut BIGNUM, @@ -13181,7 +13537,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get0_pqg"] pub fn DH_get0_pqg( dh: *const DH, out_p: *mut *const BIGNUM, @@ -13190,7 +13546,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_set0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_set0_pqg"] pub fn DH_set0_pqg( dh: *mut DH, p: *mut BIGNUM, @@ -13199,40 +13555,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_set_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_set_length"] pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get_rfc7919_2048"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get_rfc7919_2048"] pub fn DH_get_rfc7919_2048() -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_1536"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get_rfc7919_4096"] + pub fn DH_get_rfc7919_4096() -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_1536"] pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_2048"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_2048"] pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_3072"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_3072"] pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_4096"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_4096"] pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_6144"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_6144"] pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BN_get_rfc3526_prime_8192"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BN_get_rfc3526_prime_8192"] pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_generate_parameters_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_generate_parameters_ex"] pub fn DH_generate_parameters_ex( dh: *mut DH, prime_bits: ::std::os::raw::c_int, @@ -13241,11 +13601,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_generate_key"] pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_compute_key_padded"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_compute_key_padded"] pub fn DH_compute_key_padded( out: *mut u8, peers_key: *const BIGNUM, @@ -13253,7 +13613,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_compute_key_hashed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_compute_key_hashed"] pub fn DH_compute_key_hashed( dh: *mut DH, out: *mut u8, @@ -13264,19 +13624,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_size"] pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_num_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_num_bits"] pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_check"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_check"] pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_check_pub_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_check_pub_key"] pub fn DH_check_pub_key( dh: *const DH, pub_key: *const BIGNUM, @@ -13284,19 +13644,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DHparams_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DHparams_dup"] pub fn DHparams_dup(dh: *const DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_parse_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_parse_parameters"] pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_marshal_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_marshal_parameters"] pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_generate_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_generate_parameters"] pub fn DH_generate_parameters( prime_len: ::std::os::raw::c_int, generator: ::std::os::raw::c_int, @@ -13311,7 +13671,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DHparams"] pub fn d2i_DHparams( ret: *mut *mut DH, inp: *mut *const ::std::os::raw::c_uchar, @@ -13319,14 +13679,14 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DHparams"] pub fn i2d_DHparams( in_: *const DH, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_compute_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_compute_key"] pub fn DH_compute_key( out: *mut u8, peers_key: *const BIGNUM, @@ -13334,114 +13694,130 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DH_get_2048_256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_get_2048_256"] pub fn DH_get_2048_256() -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_md4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DH_clear_flags"] + pub fn DH_clear_flags(dh: *mut DH, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md4"] pub fn EVP_md4() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_md5"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md5"] pub fn EVP_md5() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_ripemd160"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_ripemd160"] pub fn EVP_ripemd160() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha1"] pub fn EVP_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha224"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha224"] pub fn EVP_sha224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha256"] pub fn EVP_sha256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha384"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha384"] pub fn EVP_sha384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha512"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha512"] pub fn EVP_sha512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha512_256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha512_224"] + pub fn EVP_sha512_224() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha512_256"] pub fn EVP_sha512_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_224"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_224"] pub fn EVP_sha3_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_256"] pub fn EVP_sha3_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_384"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_384"] pub fn EVP_sha3_384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_sha3_512"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_sha3_512"] pub fn EVP_sha3_512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_blake2b256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_shake128"] + pub fn EVP_shake128() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_shake256"] + pub fn EVP_shake256() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_blake2b256"] pub fn EVP_blake2b256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_md5_sha1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md5_sha1"] pub fn EVP_md5_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_digestbynid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_digestbynid"] pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_digestbyobj"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_digestbyobj"] pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_init"] pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_new"] pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_cleanup"] pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_cleanse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_cleanse"] pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_free"] pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_copy_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_copy_ex"] pub fn EVP_MD_CTX_copy_ex( out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_move"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_move"] pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_reset"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_reset"] pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestInit_ex"] pub fn EVP_DigestInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -13449,11 +13825,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestInit"] pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestUpdate"] pub fn EVP_DigestUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -13461,7 +13837,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestFinal_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestFinal_ex"] pub fn EVP_DigestFinal_ex( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13469,7 +13845,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestFinal"] pub fn EVP_DigestFinal( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13477,86 +13853,74 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_Digest"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_Digest"] pub fn EVP_Digest( data: *const ::std::os::raw::c_void, len: usize, md_out: *mut u8, - md_out_size: *mut ::std::os::raw::c_uint, + out_size: *mut ::std::os::raw::c_uint, type_: *const EVP_MD, impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_type"] pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_flags"] pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_size"] pub fn EVP_MD_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_block_size"] pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_md"] pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_size"] pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_block_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_block_size"] pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_type"] pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_parse_digest_algorithm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_parse_digest_algorithm"] pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_digest_algorithm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_digest_algorithm"] pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_enable"] - pub fn EVP_MD_unstable_sha3_enable(enable: bool); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_is_enabled"] - pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_copy"] pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_add_digest"] - pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_get_digestbyname"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_get_digestbyname"] pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_create"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_create"] pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_destroy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_destroy"] pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestFinalXOF"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestFinalXOF"] pub fn EVP_DigestFinalXOF( ctx: *mut EVP_MD_CTX, out: *mut u8, @@ -13564,19 +13928,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_meth_get_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_meth_get_flags"] pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_set_flags"] - pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_nid"] pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_CTX_set_pkey_ctx"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_set_pkey_ctx"] pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); } #[repr(C)] @@ -13589,6 +13949,13 @@ pub struct evp_md_pctx_ops { pub struct env_md_ctx_st { pub digest: *const EVP_MD, pub md_data: *mut ::std::os::raw::c_void, + pub update: ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + count: usize, + ), + >, pub pctx: *mut EVP_PKEY_CTX, pub pctx_ops: *const evp_md_pctx_ops, pub flags: ::std::os::raw::c_ulong, @@ -13599,7 +13966,7 @@ fn bindgen_test_layout_env_md_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 40usize, + 48usize, concat!("Size of: ", stringify!(env_md_ctx_st)) ); assert_eq!( @@ -13628,169 +13995,129 @@ fn bindgen_test_layout_env_md_ctx_st() { ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).update) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx) + stringify!(update) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx_ops) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for env_md_ctx_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_fips_0_12_15_EVP_md_null"] - pub fn EVP_md_null() -> *const EVP_MD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_new"] - pub fn ENGINE_new() -> *mut ENGINE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_free"] - pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_set_RSA_method"] - pub fn ENGINE_set_RSA_method( - engine: *mut ENGINE, - method: *const RSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_get_RSA_method"] - pub fn ENGINE_get_RSA_method(engine: *const ENGINE) -> *mut RSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_set_ECDSA_method"] - pub fn ENGINE_set_ECDSA_method( - engine: *mut ENGINE, - method: *const ECDSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ENGINE_get_ECDSA_method"] - pub fn ENGINE_get_ECDSA_method(engine: *const ENGINE) -> *mut ECDSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_METHOD_ref"] - pub fn METHOD_ref(method: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_METHOD_unref"] - pub fn METHOD_unref(method: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct openssl_method_common_st { - pub references: ::std::os::raw::c_int, - pub is_static: ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_openssl_method_common_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!(openssl_method_common_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(openssl_method_common_st)) + stringify!(pctx) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(references) + stringify!(pctx_ops) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_static) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(is_static) + stringify!(flags) ) ); } +impl Default for env_md_ctx_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_fips_0_13_0_EVP_MD_unstable_sha3_enable"] + pub fn EVP_MD_unstable_sha3_enable(enable: bool); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_is_enabled"] + pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_CTX_set_flags"] + pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_add_digest"] + pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_md_null"] + pub fn EVP_md_null() -> *const EVP_MD; +} extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_new"] pub fn DSA_new() -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_free"] pub fn DSA_free(dsa: *mut DSA); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_up_ref"] pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_print"] + pub fn DSA_print( + bio: *mut BIO, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_print_fp"] + pub fn DSA_print_fp( + fp: *mut FILE, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_bits"] pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_pub_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_pub_key"] pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_priv_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_priv_key"] pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_p"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_p"] pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_q"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_q"] pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_g"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_g"] pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_key"] pub fn DSA_get0_key( dsa: *const DSA, out_pub_key: *mut *const BIGNUM, @@ -13798,7 +14125,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get0_pqg"] pub fn DSA_get0_pqg( dsa: *const DSA, out_p: *mut *const BIGNUM, @@ -13807,7 +14134,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_set0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_set0_key"] pub fn DSA_set0_key( dsa: *mut DSA, pub_key: *mut BIGNUM, @@ -13815,7 +14142,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_set0_pqg"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_set0_pqg"] pub fn DSA_set0_pqg( dsa: *mut DSA, p: *mut BIGNUM, @@ -13824,7 +14151,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_generate_parameters_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_generate_parameters_ex"] pub fn DSA_generate_parameters_ex( dsa: *mut DSA, bits: ::std::os::raw::c_uint, @@ -13836,11 +14163,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSAparams_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSAparams_dup"] pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_generate_key"] pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; } #[repr(C)] @@ -13894,28 +14221,28 @@ impl Default for DSA_SIG_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_new"] pub fn DSA_SIG_new() -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_free"] pub fn DSA_SIG_free(sig: *mut DSA_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_get0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_get0"] pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_set0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_set0"] pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_do_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_do_sign"] pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_do_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_do_verify"] pub fn DSA_do_verify( digest: *const u8, digest_len: usize, @@ -13924,7 +14251,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_do_check_signature"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_do_check_signature"] pub fn DSA_do_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13934,7 +14261,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_sign"] pub fn DSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13945,7 +14272,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_verify"] pub fn DSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13956,7 +14283,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_check_signature"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_check_signature"] pub fn DSA_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13967,47 +14294,47 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_size"] pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_parse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_parse"] pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_SIG_marshal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_SIG_marshal"] pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_parse_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_parse_public_key"] pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_marshal_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_marshal_public_key"] pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_parse_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_parse_private_key"] pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_marshal_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_marshal_private_key"] pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_parse_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_parse_parameters"] pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_marshal_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_marshal_parameters"] pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_dup_DH"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_dup_DH"] pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get_ex_new_index"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get_ex_new_index"] pub fn DSA_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -14017,7 +14344,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_set_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_set_ex_data"] pub fn DSA_set_ex_data( dsa: *mut DSA, idx: ::std::os::raw::c_int, @@ -14025,14 +14352,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DSA_get_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DSA_get_ex_data"] pub fn DSA_get_ex_data( dsa: *const DSA, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSA_SIG"] pub fn d2i_DSA_SIG( out_sig: *mut *mut DSA_SIG, inp: *mut *const u8, @@ -14040,11 +14367,11 @@ extern "C" { ) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSA_SIG"] pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSAPublicKey"] pub fn d2i_DSAPublicKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -14052,11 +14379,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSAPublicKey"] pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSAPrivateKey"] pub fn d2i_DSAPrivateKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -14064,11 +14391,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSAPrivateKey"] pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSAparams"] pub fn d2i_DSAparams( out: *mut *mut DSA, inp: *mut *const u8, @@ -14076,154 +14403,9 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSAparams"] pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct dsa_st { - pub version: ::std::os::raw::c_long, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub g: *mut BIGNUM, - pub pub_key: *mut BIGNUM, - pub priv_key: *mut BIGNUM, - pub flags: ::std::os::raw::c_int, - pub method_mont_lock: CRYPTO_MUTEX, - pub method_mont_p: *mut BN_MONT_CTX, - pub method_mont_q: *mut BN_MONT_CTX, - pub references: CRYPTO_refcount_t, - pub ex_data: CRYPTO_EX_DATA, -} -#[test] -fn bindgen_test_layout_dsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 288usize, - concat!("Size of: ", stringify!(dsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(dsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(g)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pub_key) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(pub_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).priv_key) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(priv_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_lock) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_p) as usize - ptr as usize }, - 256usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_q) as usize - ptr as usize }, - 264usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 272usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 280usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(ex_data) - ) - ); -} -impl Default for dsa_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(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum point_conversion_form_t { @@ -14232,19 +14414,31 @@ pub enum point_conversion_form_t { POINT_CONVERSION_HYBRID = 6, } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_new_by_curve_name"] - pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p224"] + pub fn EC_group_p224() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_free"] - pub fn EC_GROUP_free(group: *mut EC_GROUP); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p256"] + pub fn EC_group_p256() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p384"] + pub fn EC_group_p384() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_p521"] + pub fn EC_group_p521() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_group_secp256k1"] + pub fn EC_group_secp256k1() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_dup"] - pub fn EC_GROUP_dup(a: *const EC_GROUP) -> *mut EC_GROUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_new_by_curve_name"] + pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_cmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_cmp"] pub fn EC_GROUP_cmp( a: *const EC_GROUP, b: *const EC_GROUP, @@ -14252,19 +14446,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get0_generator"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get0_generator"] pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get0_order"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get0_order"] pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_order_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_order_bits"] pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_cofactor"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_cofactor"] pub fn EC_GROUP_get_cofactor( group: *const EC_GROUP, cofactor: *mut BIGNUM, @@ -14272,7 +14466,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_curve_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_curve_GFp"] pub fn EC_GROUP_get_curve_GFp( group: *const EC_GROUP, out_p: *mut BIGNUM, @@ -14282,53 +14476,53 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_curve_name"] pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_degree"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_degree"] pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_curve_nid2nist"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_curve_nid2nist"] pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_curve_nist2nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_curve_nist2nid"] pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_new"] pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_free"] pub fn EC_POINT_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_copy"] pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_dup"] pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_to_infinity"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_to_infinity"] pub fn EC_POINT_set_to_infinity( group: *const EC_GROUP, point: *mut EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_is_at_infinity"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_is_at_infinity"] pub fn EC_POINT_is_at_infinity( group: *const EC_GROUP, point: *const EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_is_on_curve"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_is_on_curve"] pub fn EC_POINT_is_on_curve( group: *const EC_GROUP, point: *const EC_POINT, @@ -14336,7 +14530,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_cmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_cmp"] pub fn EC_POINT_cmp( group: *const EC_GROUP, a: *const EC_POINT, @@ -14345,7 +14539,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates_GFp"] pub fn EC_POINT_get_affine_coordinates_GFp( group: *const EC_GROUP, point: *const EC_POINT, @@ -14355,7 +14549,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates"] pub fn EC_POINT_get_affine_coordinates( group: *const EC_GROUP, point: *const EC_POINT, @@ -14365,7 +14559,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates_GFp"] pub fn EC_POINT_set_affine_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14375,7 +14569,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates"] pub fn EC_POINT_set_affine_coordinates( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14385,7 +14579,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_point2oct"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_point2oct"] pub fn EC_POINT_point2oct( group: *const EC_GROUP, point: *const EC_POINT, @@ -14396,7 +14590,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_point2cbb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_point2cbb"] pub fn EC_POINT_point2cbb( out: *mut CBB, group: *const EC_GROUP, @@ -14406,7 +14600,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_oct2point"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_oct2point"] pub fn EC_POINT_oct2point( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14416,7 +14610,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_set_compressed_coordinates_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_set_compressed_coordinates_GFp"] pub fn EC_POINT_set_compressed_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14426,7 +14620,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_add"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_add"] pub fn EC_POINT_add( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14436,7 +14630,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_dbl"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_dbl"] pub fn EC_POINT_dbl( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14445,7 +14639,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_invert"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_invert"] pub fn EC_POINT_invert( group: *const EC_GROUP, a: *mut EC_POINT, @@ -14453,7 +14647,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_mul"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_mul"] pub fn EC_POINT_mul( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14464,7 +14658,37 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_new_curve_GFp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_hash_to_curve_p256_xmd_sha256_sswu"] + pub fn EC_hash_to_curve_p256_xmd_sha256_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_hash_to_curve_p384_xmd_sha384_sswu"] + pub fn EC_hash_to_curve_p384_xmd_sha384_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_free"] + pub fn EC_GROUP_free(group: *mut EC_GROUP); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_dup"] + pub fn EC_GROUP_dup(group: *const EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_new_curve_GFp"] pub fn EC_GROUP_new_curve_GFp( p: *const BIGNUM, a: *const BIGNUM, @@ -14473,7 +14697,7 @@ extern "C" { ) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_set_generator"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_generator"] pub fn EC_GROUP_set_generator( group: *mut EC_GROUP, generator: *const EC_POINT, @@ -14482,38 +14706,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_order"] - pub fn EC_GROUP_get_order( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_point2bn"] + pub fn EC_POINT_point2bn( group: *const EC_GROUP, - order: *mut BIGNUM, + point: *const EC_POINT, + form: point_conversion_form_t, + ret: *mut BIGNUM, ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_set_asn1_flag"] - pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_get_asn1_flag"] - pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ec_method_st { - _unused: [u8; 0], -} -pub type EC_METHOD = ec_method_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_method_of"] - pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_METHOD_get_field_type"] - pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_bn2point"] + pub fn EC_POINT_bn2point( + group: *const EC_GROUP, + bn: *const BIGNUM, + point: *mut EC_POINT, + ctx: *mut BN_CTX, + ) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_GROUP_set_point_conversion_form"] - pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_order"] + pub fn EC_GROUP_get_order( + group: *const EC_GROUP, + order: *mut BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -14566,92 +14783,173 @@ impl Default for EC_builtin_curve { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_get_builtin_curves"] - pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) - -> usize; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_get_builtin_curves"] + pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) + -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_POINT_clear_free"] + pub fn EC_POINT_clear_free(point: *mut EC_POINT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_asn1_flag"] + pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_asn1_flag"] + pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_point_conversion_form"] + pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_set_seed"] + pub fn EC_GROUP_set_seed( + group: *mut EC_GROUP, + p: *const ::std::os::raw::c_uchar, + len: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get0_seed"] + pub fn EC_GROUP_get0_seed(group: *const EC_GROUP) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_get_seed_len"] + pub fn EC_GROUP_get_seed_len(group: *const EC_GROUP) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECPKParameters_print"] + pub fn ECPKParameters_print( + bio: *mut BIO, + group: *const EC_GROUP, + offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_method_st { + _unused: [u8; 0], +} +pub type EC_METHOD = ec_method_st; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_GROUP_method_of"] + pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_METHOD_get_field_type"] + pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_new"] + pub fn ENGINE_new() -> *mut ENGINE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_free"] + pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_set_RSA"] + pub fn ENGINE_set_RSA(engine: *mut ENGINE, method: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_POINT_clear_free"] - pub fn EC_POINT_clear_free(point: *mut EC_POINT); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_get_RSA"] + pub fn ENGINE_get_RSA(engine: *const ENGINE) -> *const RSA_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_set_EC"] + pub fn ENGINE_set_EC( + engine: *mut ENGINE, + method: *const EC_KEY_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_get_EC"] + pub fn ENGINE_get_EC(engine: *const ENGINE) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ENGINE_cleanup"] + pub fn ENGINE_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_new"] pub fn EC_KEY_new() -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_new_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_new_method"] pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_new_by_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_new_by_curve_name"] pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_free"] pub fn EC_KEY_free(key: *mut EC_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_dup"] pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_up_ref"] pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_is_opaque"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_is_opaque"] pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get0_group"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get0_group"] pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_group"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_group"] pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get0_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get0_private_key"] pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_private_key"] pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get0_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get0_public_key"] pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_public_key"] pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_enc_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_enc_flags"] pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_enc_flags"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_enc_flags"] pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_conv_form"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_conv_form"] pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_conv_form"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_conv_form"] pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_check_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_check_key"] pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_check_fips"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_check_fips"] pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_public_key_affine_coordinates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_public_key_affine_coordinates"] pub fn EC_KEY_set_public_key_affine_coordinates( key: *mut EC_KEY, x: *const BIGNUM, @@ -14659,7 +14957,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_key2buf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_key2buf"] pub fn EC_KEY_key2buf( key: *const EC_KEY, form: point_conversion_form_t, @@ -14668,15 +14966,15 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_generate_key"] pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_generate_key_fips"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_generate_key_fips"] pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_derive_from_secret"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_derive_from_secret"] pub fn EC_KEY_derive_from_secret( group: *const EC_GROUP, secret: *const u8, @@ -14684,11 +14982,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_parse_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_parse_private_key"] pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_marshal_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_marshal_private_key"] pub fn EC_KEY_marshal_private_key( cbb: *mut CBB, key: *const EC_KEY, @@ -14696,22 +14994,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_parse_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_parse_curve_name"] pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_marshal_curve_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_marshal_curve_name"] pub fn EC_KEY_marshal_curve_name( cbb: *mut CBB, group: *const EC_GROUP, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_parse_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_parse_parameters"] pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_ex_new_index"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_ex_new_index"] pub fn EC_KEY_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -14721,7 +15019,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_set_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_ex_data"] pub fn EC_KEY_set_ex_data( r: *mut EC_KEY, idx: ::std::os::raw::c_int, @@ -14729,133 +15027,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EC_KEY_get_ex_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_ex_data"] pub fn EC_KEY_get_ex_data( r: *const EC_KEY, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_method_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: - ::std::option::Option ::std::os::raw::c_int>, - pub finish: - ::std::option::Option ::std::os::raw::c_int>, - pub group_order_size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - eckey: *mut EC_KEY, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_ecdsa_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).group_order_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(group_order_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for ecdsa_method_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_fips_0_12_15_EC_KEY_set_asn1_flag"] - pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); -} extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECPrivateKey"] pub fn d2i_ECPrivateKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14863,11 +15042,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECPrivateKey"] pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECParameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECParameters"] pub fn d2i_ECParameters( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14875,11 +15054,19 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECParameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECParameters"] pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_o2i_ECPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECPKParameters_bio"] + pub fn d2i_ECPKParameters_bio(bio: *mut BIO, out_group: *mut *mut EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECPKParameters_bio"] + pub fn i2d_ECPKParameters_bio(bio: *mut BIO, group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_o2i_ECPublicKey"] pub fn o2i_ECPublicKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14887,14 +15074,86 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2o_ECPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2o_ECPublicKey"] pub fn i2o_ECPublicKey( key: *const EC_KEY, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDH_compute_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_default_method"] + pub fn EC_KEY_get_default_method() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_OpenSSL"] + pub fn EC_KEY_OpenSSL() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_new"] + pub fn EC_KEY_METHOD_new(eckey_meth: *const EC_KEY_METHOD) -> *mut EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_free"] + pub fn EC_KEY_METHOD_free(eckey_meth: *mut EC_KEY_METHOD); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_method"] + pub fn EC_KEY_set_method(ec: *mut EC_KEY, meth: *const EC_KEY_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_get_method"] + pub fn EC_KEY_get_method(ec: *const EC_KEY) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_set_sign_awslc"] + pub fn EC_KEY_METHOD_set_sign_awslc( + meth: *mut EC_KEY_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: ::std::os::raw::c_int, + sig: *mut u8, + siglen: *mut ::std::os::raw::c_uint, + k_inv: *const BIGNUM, + r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> ::std::os::raw::c_int, + >, + sign_sig: ::std::option::Option< + unsafe extern "C" fn( + digest: *const u8, + digest_len: ::std::os::raw::c_int, + in_kinv: *const BIGNUM, + in_r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> *mut ECDSA_SIG, + >, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_set_init_awslc"] + pub fn EC_KEY_METHOD_set_init_awslc( + meth: *mut EC_KEY_METHOD, + init: ::std::option::Option< + unsafe extern "C" fn(key: *mut EC_KEY) -> ::std::os::raw::c_int, + >, + finish: ::std::option::Option, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_METHOD_set_flags"] + pub fn EC_KEY_METHOD_set_flags( + meth: *mut EC_KEY_METHOD, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EC_KEY_set_asn1_flag"] + pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDH_compute_key"] pub fn ECDH_compute_key( out: *mut ::std::os::raw::c_void, outlen: usize, @@ -14911,7 +15170,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDH_compute_key_fips"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDH_compute_key_fips"] pub fn ECDH_compute_key_fips( out: *mut u8, out_len: usize, @@ -14920,7 +15179,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_sign"] pub fn ECDSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14931,7 +15190,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_verify"] pub fn ECDSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14942,7 +15201,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_size"] pub fn ECDSA_size(key: *const EC_KEY) -> usize; } #[repr(C)] @@ -14996,23 +15255,23 @@ impl Default for ecdsa_sig_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_new"] pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_free"] pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_get0_r"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_get0_r"] pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_get0_s"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_get0_s"] pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_get0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_get0"] pub fn ECDSA_SIG_get0( sig: *const ECDSA_SIG, out_r: *mut *const BIGNUM, @@ -15020,7 +15279,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_set0"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_set0"] pub fn ECDSA_SIG_set0( sig: *mut ECDSA_SIG, r: *mut BIGNUM, @@ -15028,7 +15287,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_do_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_do_sign"] pub fn ECDSA_do_sign( digest: *const u8, digest_len: usize, @@ -15036,7 +15295,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_do_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_do_verify"] pub fn ECDSA_do_verify( digest: *const u8, digest_len: usize, @@ -15045,19 +15304,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_parse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_parse"] pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_from_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_from_bytes"] pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_marshal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_marshal"] pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_to_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_to_bytes"] pub fn ECDSA_SIG_to_bytes( out_bytes: *mut *mut u8, out_len: *mut usize, @@ -15065,11 +15324,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_SIG_max_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_SIG_max_len"] pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( digest: *const u8, digest_len: usize, @@ -15079,7 +15338,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECDSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ECDSA_SIG"] pub fn d2i_ECDSA_SIG( out: *mut *mut ECDSA_SIG, inp: *mut *const u8, @@ -15087,89 +15346,89 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECDSA_SIG"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ECDSA_SIG"] pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm"] pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_192_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_192_gcm"] pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm"] pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_chacha20_poly1305"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_chacha20_poly1305"] pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_xchacha20_poly1305"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_xchacha20_poly1305"] pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ctr_hmac_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ctr_hmac_sha256"] pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_ctr_hmac_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_ctr_hmac_sha256"] pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_siv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_siv"] pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_siv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_siv"] pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_randnonce"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_randnonce"] pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_randnonce"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_randnonce"] pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth"] pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth_8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth_8"] pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_matter"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_matter"] pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_has_aes_hardware"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_has_aes_hardware"] pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_key_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_key_length"] pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_nonce_length"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_nonce_length"] pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_max_overhead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_max_overhead"] pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_max_tag_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_max_tag_len"] pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; } #[repr(C)] #[derive(Copy, Clone)] pub union evp_aead_ctx_st_state { - pub opaque: [u8; 580usize], + pub opaque: [u8; 564usize], pub alignment: u64, pub ptr: *mut ::std::os::raw::c_void, } @@ -15180,7 +15439,7 @@ fn bindgen_test_layout_evp_aead_ctx_st_state() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 584usize, + 568usize, concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( @@ -15242,7 +15501,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 600usize, + 584usize, concat!("Size of: ", stringify!(evp_aead_ctx_st)) ); assert_eq!( @@ -15272,7 +15531,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, - 592usize, + 576usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15282,7 +15541,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, - 593usize, + 577usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15301,11 +15560,11 @@ impl Default for evp_aead_ctx_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_zero"] pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_new"] pub fn EVP_AEAD_CTX_new( aead: *const EVP_AEAD, key: *const u8, @@ -15314,11 +15573,11 @@ extern "C" { ) -> *mut EVP_AEAD_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_free"] pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_init"] pub fn EVP_AEAD_CTX_init( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15329,11 +15588,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_cleanup"] pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal"] pub fn EVP_AEAD_CTX_seal( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15348,7 +15607,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_open"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_open"] pub fn EVP_AEAD_CTX_open( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15363,7 +15622,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal_scatter"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal_scatter"] pub fn EVP_AEAD_CTX_seal_scatter( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15381,7 +15640,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_open_gather"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_open_gather"] pub fn EVP_AEAD_CTX_open_gather( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15396,66 +15655,70 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_aead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_aead"] pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls"] pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls"] pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls"] pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha384_tls"] + pub fn EVP_aead_aes_256_cbc_sha384_tls() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls"] pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_null_sha1_tls"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_null_sha1_tls"] pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls12"] pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls12"] pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls13"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls13"] pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls13"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls13"] pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; } pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; pub type evp_aead_direction_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_init_with_direction"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_init_with_direction"] pub fn EVP_AEAD_CTX_init_with_direction( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15465,169 +15728,368 @@ extern "C" { dir: evp_aead_direction_t, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_get_iv"] - pub fn EVP_AEAD_CTX_get_iv( - ctx: *const EVP_AEAD_CTX, - out_iv: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_get_iv"] + pub fn EVP_AEAD_CTX_get_iv( + ctx: *const EVP_AEAD_CTX, + out_iv: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_CTX_tag_len"] + pub fn EVP_AEAD_CTX_tag_len( + ctx: *const EVP_AEAD_CTX, + out_tag_len: *mut usize, + in_len: usize, + extra_in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_AEAD_get_iv_from_ipv4_nanosecs"] + pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( + ipv4_address: u32, + nanosecs: u64, + out_iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_dup"] + pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_cmp"] + pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_get0_data"] + pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_length"] + pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_obj2nid"] + pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_cbs2nid"] + pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_sn2nid"] + pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_ln2nid"] + pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_txt2nid"] + pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2obj"] + pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_get_undef"] + pub fn OBJ_get_undef() -> *const ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2sn"] + pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2ln"] + pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_nid2cbb"] + pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_txt2obj"] + pub fn OBJ_txt2obj( + s: *const ::std::os::raw::c_char, + dont_search_names: ::std::os::raw::c_int, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_obj2txt"] + pub fn OBJ_obj2txt( + out: *mut ::std::os::raw::c_char, + out_len: ::std::os::raw::c_int, + obj: *const ASN1_OBJECT, + always_return_oid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_create"] + pub fn OBJ_create( + oid: *const ::std::os::raw::c_char, + short_name: *const ::std::os::raw::c_char, + long_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_find_sigid_algs"] + pub fn OBJ_find_sigid_algs( + sign_nid: ::std::os::raw::c_int, + out_digest_nid: *mut ::std::os::raw::c_int, + out_pkey_nid: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_find_sigid_by_algs"] + pub fn OBJ_find_sigid_by_algs( + out_sign_nid: *mut ::std::os::raw::c_int, + digest_nid: ::std::os::raw::c_int, + pkey_nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct obj_name_st { + pub type_: ::std::os::raw::c_int, + pub alias: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub data: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_obj_name_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!(obj_name_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(obj_name_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(alias) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(data) + ) + ); +} +impl Default for obj_name_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() + } + } } +pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_CTX_tag_len"] - pub fn EVP_AEAD_CTX_tag_len( - ctx: *const EVP_AEAD_CTX, - out_tag_len: *mut usize, - in_len: usize, - extra_in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_NAME_do_all_sorted"] + pub fn OBJ_NAME_do_all_sorted( + type_: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn(arg1: *const OBJ_NAME, arg: *mut ::std::os::raw::c_void), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_AEAD_get_iv_from_ipv4_nanosecs"] - pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( - ipv4_address: u32, - nanosecs: u64, - out_iv: *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OBJ_cleanup"] + pub fn OBJ_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_new"] pub fn EVP_PKEY_new() -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_free"] pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_up_ref"] pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_is_opaque"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_is_opaque"] pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_cmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_cmp"] pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_copy_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_copy_parameters"] pub fn EVP_PKEY_copy_parameters( to: *mut EVP_PKEY, from: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_missing_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_missing_parameters"] pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_size"] pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_bits"] pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_id"] pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_type"] pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_get0_name"] + pub fn EVP_MD_get0_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_name"] + pub fn EVP_MD_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_RSA"] pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_RSA"] pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_RSA"] pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_RSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_RSA"] pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_DSA"] pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_DSA"] pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_DSA"] pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_DSA"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_DSA"] pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_EC_KEY"] pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_EC_KEY"] pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_EC_KEY"] pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_EC_KEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_EC_KEY"] pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_assign"] - pub fn EVP_PKEY_assign( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - key: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_DH"] + pub fn EVP_PKEY_set1_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign_DH"] + pub fn EVP_PKEY_assign_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0_DH"] + pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_DH"] + pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set_type"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set_type"] pub fn EVP_PKEY_set_type( pkey: *mut EVP_PKEY, type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_cmp_parameters"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_cmp_parameters"] pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_parse_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_parse_public_key"] pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_public_key"] pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_parse_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_parse_private_key"] pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_private_key"] pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_marshal_private_key_v2"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_marshal_private_key_v2"] pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_new_raw_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_new_raw_private_key"] pub fn EVP_PKEY_new_raw_private_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15636,7 +16098,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_new_raw_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_new_raw_public_key"] pub fn EVP_PKEY_new_raw_public_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15645,7 +16107,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get_raw_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get_raw_private_key"] pub fn EVP_PKEY_get_raw_private_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15653,7 +16115,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get_raw_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get_raw_public_key"] pub fn EVP_PKEY_get_raw_public_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15661,7 +16123,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSignInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSignInit"] pub fn EVP_DigestSignInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15671,7 +16133,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSignUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSignUpdate"] pub fn EVP_DigestSignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15679,7 +16141,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSignFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSignFinal"] pub fn EVP_DigestSignFinal( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15687,7 +16149,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestSign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestSign"] pub fn EVP_DigestSign( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15697,7 +16159,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerifyInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerifyInit"] pub fn EVP_DigestVerifyInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15707,7 +16169,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerifyUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerifyUpdate"] pub fn EVP_DigestVerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15715,7 +16177,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerifyFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerifyFinal"] pub fn EVP_DigestVerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15723,7 +16185,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_DigestVerify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_DigestVerify"] pub fn EVP_DigestVerify( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15733,7 +16195,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignInit_ex"] pub fn EVP_SignInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15741,11 +16203,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignInit"] pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignUpdate"] pub fn EVP_SignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15753,7 +16215,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_SignFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_SignFinal"] pub fn EVP_SignFinal( ctx: *const EVP_MD_CTX, sig: *mut u8, @@ -15762,7 +16224,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyInit_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyInit_ex"] pub fn EVP_VerifyInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15770,11 +16232,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyInit"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyInit"] pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyUpdate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyUpdate"] pub fn EVP_VerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15782,7 +16244,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_VerifyFinal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_VerifyFinal"] pub fn EVP_VerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15791,7 +16253,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_print_public"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_print_public"] pub fn EVP_PKEY_print_public( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15800,7 +16262,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_print_private"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_print_private"] pub fn EVP_PKEY_print_private( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15809,7 +16271,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_print_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_print_params"] pub fn EVP_PKEY_print_params( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15818,32 +16280,32 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC"] pub fn PKCS5_PBKDF2_HMAC( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, digest: *const EVP_MD, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC_SHA1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC_SHA1"] pub fn PKCS5_PBKDF2_HMAC_SHA1( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PBE_scrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PBE_scrypt"] pub fn EVP_PBE_scrypt( password: *const ::std::os::raw::c_char, password_len: usize, @@ -15858,31 +16320,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_new"] pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_new_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_new_id"] pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_free"] pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_dup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_dup"] pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_pkey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_pkey"] pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_sign_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_sign_init"] pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_sign"] pub fn EVP_PKEY_sign( ctx: *mut EVP_PKEY_CTX, sig: *mut u8, @@ -15892,11 +16354,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify_init"] pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify"] pub fn EVP_PKEY_verify( ctx: *mut EVP_PKEY_CTX, sig: *const u8, @@ -15906,11 +16368,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_encrypt_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_encrypt_init"] pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_encrypt"] pub fn EVP_PKEY_encrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15920,11 +16382,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_decrypt_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_decrypt_init"] pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_decrypt"] pub fn EVP_PKEY_decrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15934,11 +16396,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify_recover_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify_recover_init"] pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_verify_recover"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_verify_recover"] pub fn EVP_PKEY_verify_recover( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15948,18 +16410,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_derive_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_derive_init"] pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_derive_set_peer"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_derive_set_peer"] pub fn EVP_PKEY_derive_set_peer( ctx: *mut EVP_PKEY_CTX, peer: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_derive"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_derive"] pub fn EVP_PKEY_derive( ctx: *mut EVP_PKEY_CTX, key: *mut u8, @@ -15967,18 +16429,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_keygen_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_keygen_init"] pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_keygen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_keygen"] pub fn EVP_PKEY_keygen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_encapsulate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_encapsulate"] pub fn EVP_PKEY_encapsulate( ctx: *mut EVP_PKEY_CTX, ciphertext: *mut u8, @@ -15988,112 +16450,112 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_decapsulate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_decapsulate"] pub fn EVP_PKEY_decapsulate( ctx: *mut EVP_PKEY_CTX, shared_secret: *mut u8, shared_secret_len: *mut usize, - ciphertext: *mut u8, + ciphertext: *const u8, ciphertext_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_paramgen_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_paramgen_init"] pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_paramgen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_paramgen"] pub fn EVP_PKEY_paramgen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_signature_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_signature_md"] pub fn EVP_PKEY_CTX_set_signature_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_signature_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_signature_md"] pub fn EVP_PKEY_CTX_get_signature_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_padding"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_padding"] pub fn EVP_PKEY_CTX_set_rsa_padding( ctx: *mut EVP_PKEY_CTX, padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_padding"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_padding"] pub fn EVP_PKEY_CTX_get_rsa_padding( ctx: *mut EVP_PKEY_CTX, out_padding: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_saltlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_pss_saltlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, out_salt_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_bits"] pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( ctx: *mut EVP_PKEY_CTX, bits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( ctx: *mut EVP_PKEY_CTX, e: *mut BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_oaep_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_oaep_md"] pub fn EVP_PKEY_CTX_set_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_oaep_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_oaep_md"] pub fn EVP_PKEY_CTX_get_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_mgf1_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_mgf1_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set0_rsa_oaep_label"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, label: *mut u8, @@ -16101,28 +16563,28 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_rsa_oaep_label"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, out_label: *mut *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_kem_set_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_kem_set_params"] pub fn EVP_PKEY_CTX_kem_set_params( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_public_key"] pub fn EVP_PKEY_kem_new_raw_public_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -16130,7 +16592,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_secret_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_secret_key"] pub fn EVP_PKEY_kem_new_raw_secret_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -16138,7 +16600,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_key"] pub fn EVP_PKEY_kem_new_raw_key( nid: ::std::os::raw::c_int, in_public: *const u8, @@ -16148,31 +16610,60 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0"] - pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_kem_check_key"] + pub fn EVP_PKEY_kem_check_key(key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_add_all_algorithms"] - pub fn OpenSSL_add_all_algorithms(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dh_pad"] + pub fn EVP_PKEY_CTX_set_dh_pad( + ctx: *mut EVP_PKEY_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OPENSSL_add_all_algorithms_conf"] - pub fn OPENSSL_add_all_algorithms_conf(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_get_count"] + pub fn EVP_PKEY_asn1_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_add_all_ciphers"] - pub fn OpenSSL_add_all_ciphers(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0"] + pub fn EVP_PKEY_asn1_get0(idx: ::std::os::raw::c_int) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OpenSSL_add_all_digests"] - pub fn OpenSSL_add_all_digests(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_find"] + pub fn EVP_PKEY_asn1_find( + _pe: *mut *mut ENGINE, + type_: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_cleanup"] - pub fn EVP_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_find_str"] + pub fn EVP_PKEY_asn1_find_str( + _pe: *mut *mut ENGINE, + name: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0_info"] + pub fn EVP_PKEY_asn1_get0_info( + ppkey_id: *mut ::std::os::raw::c_int, + pkey_base_id: *mut ::std::os::raw::c_int, + ppkey_flags: *mut ::std::os::raw::c_int, + pinfo: *mut *const ::std::os::raw::c_char, + ppem_str: *mut *const ::std::os::raw::c_char, + ameth: *const EVP_PKEY_ASN1_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_get_pkey_type"] + pub fn EVP_MD_get_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_CIPHER_do_all_sorted"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_pkey_type"] + pub fn EVP_MD_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_CIPHER_do_all_sorted"] pub fn EVP_CIPHER_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -16186,7 +16677,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_MD_do_all_sorted"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_do_all_sorted"] pub fn EVP_MD_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -16200,15 +16691,29 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_MD_do_all"] + pub fn EVP_MD_do_all( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PrivateKey"] pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PublicKey"] pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PrivateKey"] pub fn d2i_PrivateKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -16217,7 +16722,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_AutoPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_AutoPrivateKey"] pub fn d2i_AutoPrivateKey( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -16225,7 +16730,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PublicKey"] pub fn d2i_PublicKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -16234,22 +16739,14 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get0_DH"] - pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_DH"] - pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_param_enc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_param_enc"] pub fn EVP_PKEY_CTX_set_ec_param_enc( ctx: *mut EVP_PKEY_CTX, encoding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_set1_tls_encodedpoint"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_set1_tls_encodedpoint"] pub fn EVP_PKEY_set1_tls_encodedpoint( pkey: *mut EVP_PKEY, in_: *const u8, @@ -16257,40 +16754,40 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_get1_tls_encodedpoint"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get1_tls_encodedpoint"] pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_base_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_base_id"] pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PUBKEY"] pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PUBKEY"] pub fn d2i_PUBKEY( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -16298,11 +16795,11 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_RSA_PUBKEY"] pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_RSA_PUBKEY"] pub fn d2i_RSA_PUBKEY( out: *mut *mut RSA, inp: *mut *const u8, @@ -16310,11 +16807,11 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DSA_PUBKEY"] pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DSA_PUBKEY"] pub fn d2i_DSA_PUBKEY( out: *mut *mut DSA, inp: *mut *const u8, @@ -16322,11 +16819,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_EC_PUBKEY"] pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_EC_PUBKEY"] pub fn d2i_EC_PUBKEY( out: *mut *mut EC_KEY, inp: *mut *const u8, @@ -16334,188 +16831,91 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( - ctx: *mut EVP_PKEY_CTX, - nbits: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_assign"] + pub fn EVP_PKEY_assign( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, + key: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( - ctx: *mut EVP_PKEY_CTX, - qbits: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_pkey_st { - pub references: CRYPTO_refcount_t, - pub type_: ::std::os::raw::c_int, - pub pkey: evp_pkey_st__bindgen_ty_1, - pub ameth: *const EVP_PKEY_ASN1_METHOD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union evp_pkey_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_void, - pub rsa: *mut RSA, - pub dsa: *mut DSA, - pub dh: *mut DH, - pub ec: *mut EC_KEY, - pub kem_key: *mut KEM_KEY, -} -#[test] -fn bindgen_test_layout_evp_pkey_st__bindgen_ty_1() { - 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!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(rsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dh) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ec) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem_key) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(kem_key) - ) - ); -} -impl Default for evp_pkey_st__bindgen_ty_1 { - 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_fips_0_13_0_EVP_PKEY_new_mac_key"] + pub fn EVP_PKEY_new_mac_key( + type_: ::std::os::raw::c_int, + engine: *mut ENGINE, + mac_key: *const u8, + mac_key_len: usize, + ) -> *mut EVP_PKEY; } -#[test] -fn bindgen_test_layout_evp_pkey_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!(evp_pkey_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ameth) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(ameth) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_get0"] + pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; } -impl Default for evp_pkey_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_fips_0_13_0_OpenSSL_add_all_algorithms"] + pub fn OpenSSL_add_all_algorithms(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OPENSSL_add_all_algorithms_conf"] + pub fn OPENSSL_add_all_algorithms_conf(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_add_all_ciphers"] + pub fn OpenSSL_add_all_ciphers(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OpenSSL_add_all_digests"] + pub fn OpenSSL_add_all_digests(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_cleanup"] + pub fn EVP_cleanup(); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( + ctx: *mut EVP_PKEY_CTX, + nbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( + ctx: *mut EVP_PKEY_CTX, + qbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_ctrl_str"] + pub fn EVP_PKEY_CTX_ctrl_str( + ctx: *mut EVP_PKEY_CTX, + type_: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +pub type EVP_PKEY_gen_cb = + ::std::option::Option ::std::os::raw::c_int>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_cb"] + pub fn EVP_PKEY_CTX_set_cb(ctx: *mut EVP_PKEY_CTX, cb: EVP_PKEY_gen_cb); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_app_data"] + pub fn EVP_PKEY_CTX_set_app_data(ctx: *mut EVP_PKEY_CTX, data: *mut ::std::os::raw::c_void); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_app_data"] + pub fn EVP_PKEY_CTX_get_app_data(ctx: *mut EVP_PKEY_CTX) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_keygen_info"] + pub fn EVP_PKEY_CTX_get_keygen_info( + ctx: *mut EVP_PKEY_CTX, + idx: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HKDF"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HKDF"] pub fn HKDF( out_key: *mut u8, out_len: usize, @@ -16529,7 +16929,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HKDF_extract"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HKDF_extract"] pub fn HKDF_extract( out_key: *mut u8, out_len: *mut usize, @@ -16541,7 +16941,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HKDF_expand"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HKDF_expand"] pub fn HKDF_expand( out_key: *mut u8, out_len: usize, @@ -16553,11 +16953,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Init"] pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Update"] pub fn MD5_Update( md5: *mut MD5_CTX, data: *const ::std::os::raw::c_void, @@ -16565,15 +16965,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Final"] pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5"] pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD5_Transform"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD5_Transform"] pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); } #[repr(C)] @@ -16660,7 +17060,7 @@ impl Default for md5_state_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC"] pub fn HMAC( evp_md: *const EVP_MD, key: *const ::std::os::raw::c_void, @@ -16672,27 +17072,27 @@ extern "C" { ) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_init"] pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_new"] pub fn HMAC_CTX_new() -> *mut HMAC_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_cleanup"] pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_cleanse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_cleanse"] pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_free"] pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Init_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Init_ex"] pub fn HMAC_Init_ex( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16702,7 +17102,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Update"] pub fn HMAC_Update( ctx: *mut HMAC_CTX, data: *const u8, @@ -16710,7 +17110,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Final"] pub fn HMAC_Final( ctx: *mut HMAC_CTX, out: *mut u8, @@ -16718,23 +17118,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_size"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_size"] pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_get_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_get_md"] pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_copy_ex"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_copy_ex"] pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_reset"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_reset"] pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_set_precomputed_key_export"] + pub fn HMAC_set_precomputed_key_export(ctx: *mut HMAC_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_get_precomputed_key"] + pub fn HMAC_get_precomputed_key( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Init_from_precomputed_key"] + pub fn HMAC_Init_from_precomputed_key( + ctx: *mut HMAC_CTX, + precomputed_key: *const u8, + precompute_key_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_Init"] pub fn HMAC_Init( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16743,7 +17164,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HMAC_CTX_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HMAC_CTX_copy"] pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } #[repr(C)] @@ -16919,82 +17340,86 @@ impl Default for hmac_ctx_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_x25519_hkdf_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_x25519_hkdf_sha256"] pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_id"] pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_public_key_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_public_key_len"] pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_private_key_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_private_key_len"] pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEM_enc_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEM_enc_len"] pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_hkdf_sha256"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_hkdf_sha256"] pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KDF_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KDF_id"] pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KDF_hkdf_md"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KDF_hkdf_md"] pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_aes_128_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_aes_128_gcm"] pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_aes_256_gcm"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_aes_256_gcm"] pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_hpke_chacha20_poly1305"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_hpke_chacha20_poly1305"] pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_AEAD_id"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_AEAD_id"] pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_AEAD_aead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_AEAD_aead"] pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_zero"] pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_cleanup"] pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_new"] pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_free"] pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_copy"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_copy"] pub fn EVP_HPKE_KEY_copy( dst: *mut EVP_HPKE_KEY, src: *const EVP_HPKE_KEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_move"] + pub fn EVP_HPKE_KEY_move(out: *mut EVP_HPKE_KEY, in_: *mut EVP_HPKE_KEY); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_init"] pub fn EVP_HPKE_KEY_init( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, @@ -17003,18 +17428,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_generate"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_generate"] pub fn EVP_HPKE_KEY_generate( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_kem"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_kem"] pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_public_key"] pub fn EVP_HPKE_KEY_public_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -17023,7 +17448,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_KEY_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_KEY_private_key"] pub fn EVP_HPKE_KEY_private_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -17032,23 +17457,23 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_zero"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_zero"] pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_cleanup"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_cleanup"] pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_new"] pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_free"] pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender"] pub fn EVP_HPKE_CTX_setup_sender( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -17064,7 +17489,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -17082,7 +17507,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_recipient"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_recipient"] pub fn EVP_HPKE_CTX_setup_recipient( ctx: *mut EVP_HPKE_CTX, key: *const EVP_HPKE_KEY, @@ -17095,7 +17520,56 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_open"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender"] + pub fn EVP_HPKE_CTX_setup_auth_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_recipient"] + pub fn EVP_HPKE_CTX_setup_auth_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, + peer_public_key: *const u8, + peer_public_key_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_open"] pub fn EVP_HPKE_CTX_open( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -17108,7 +17582,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_seal"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_seal"] pub fn EVP_HPKE_CTX_seal( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -17121,7 +17595,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_export"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_export"] pub fn EVP_HPKE_CTX_export( ctx: *const EVP_HPKE_CTX, out: *mut u8, @@ -17131,19 +17605,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_max_overhead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_max_overhead"] pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_kem"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_kem"] pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_aead"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_aead"] pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EVP_HPKE_CTX_kdf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_HPKE_CTX_kdf"] pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; } #[repr(C)] @@ -17164,7 +17638,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 728usize, + 712usize, concat!("Size of: ", stringify!(evp_hpke_ctx_st)) ); assert_eq!( @@ -17214,7 +17688,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, - 624usize, + 608usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17224,7 +17698,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, - 648usize, + 632usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17234,7 +17708,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, - 712usize, + 696usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17244,7 +17718,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, - 720usize, + 704usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17402,7 +17876,7 @@ impl Default for HRSS_public_key { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_generate_key"] pub fn HRSS_generate_key( out_pub: *mut HRSS_public_key, out_priv: *mut HRSS_private_key, @@ -17410,7 +17884,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_encap"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_encap"] pub fn HRSS_encap( out_ciphertext: *mut u8, out_shared_key: *mut u8, @@ -17419,7 +17893,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_decap"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_decap"] pub fn HRSS_decap( out_shared_key: *mut u8, in_priv: *const HRSS_private_key, @@ -17428,22 +17902,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_marshal_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_marshal_public_key"] pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_HRSS_parse_public_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_HRSS_parse_public_key"] pub fn HRSS_parse_public_key( out: *mut HRSS_public_key, in_: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Init"] pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Update"] pub fn MD4_Update( md4: *mut MD4_CTX, data: *const ::std::os::raw::c_void, @@ -17451,15 +17925,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Final"] pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4"] pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_MD4_Transform"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_MD4_Transform"] pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); } #[repr(C)] @@ -17536,171 +18010,7 @@ fn bindgen_test_layout_md4_state_st() { ) ); } -impl Default for md4_state_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_fips_0_12_15_OBJ_dup"] - pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_cmp"] - pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_get0_data"] - pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_length"] - pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_obj2nid"] - pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_cbs2nid"] - pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_sn2nid"] - pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_ln2nid"] - pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_txt2nid"] - pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2obj"] - pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2sn"] - pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2ln"] - pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_nid2cbb"] - pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_txt2obj"] - pub fn OBJ_txt2obj( - s: *const ::std::os::raw::c_char, - dont_search_names: ::std::os::raw::c_int, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_obj2txt"] - pub fn OBJ_obj2txt( - out: *mut ::std::os::raw::c_char, - out_len: ::std::os::raw::c_int, - obj: *const ASN1_OBJECT, - always_return_oid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_create"] - pub fn OBJ_create( - oid: *const ::std::os::raw::c_char, - short_name: *const ::std::os::raw::c_char, - long_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_find_sigid_algs"] - pub fn OBJ_find_sigid_algs( - sign_nid: ::std::os::raw::c_int, - out_digest_nid: *mut ::std::os::raw::c_int, - out_pkey_nid: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_find_sigid_by_algs"] - pub fn OBJ_find_sigid_by_algs( - out_sign_nid: *mut ::std::os::raw::c_int, - digest_nid: ::std::os::raw::c_int, - pkey_nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct obj_name_st { - pub type_: ::std::os::raw::c_int, - pub alias: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub data: *const ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_obj_name_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!(obj_name_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(obj_name_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(alias) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(data) - ) - ); -} -impl Default for obj_name_st { +impl Default for md4_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17709,11 +18019,6 @@ impl Default for obj_name_st { } } } -pub type OBJ_NAME = obj_name_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OBJ_cleanup"] - pub fn OBJ_cleanup(); -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct stack_st_CRYPTO_BUFFER { @@ -17730,7 +18035,7 @@ pub struct stack_st_X509_CRL { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_raw_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_raw_certificates"] pub fn PKCS7_get_raw_certificates( out_certs: *mut stack_st_CRYPTO_BUFFER, cbs: *mut CBS, @@ -17738,167 +18043,61 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_certificates"] pub fn PKCS7_get_certificates( out_certs: *mut stack_st_X509, cbs: *mut CBS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_bundle_raw_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_bundle_raw_certificates"] pub fn PKCS7_bundle_raw_certificates( out: *mut CBB, certs: *const stack_st_CRYPTO_BUFFER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_bundle_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_bundle_certificates"] pub fn PKCS7_bundle_certificates( out: *mut CBB, certs: *const stack_st_X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_CRLs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_CRLs"] pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_bundle_CRLs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_bundle_CRLs"] pub fn PKCS7_bundle_CRLs( out: *mut CBB, crls: *const stack_st_X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_PEM_certificates"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_PEM_certificates"] pub fn PKCS7_get_PEM_certificates( out_certs: *mut stack_st_X509, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_get_PEM_CRLs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_PEM_CRLs"] pub fn PKCS7_get_PEM_CRLs( out_crls: *mut stack_st_X509_CRL, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGNED { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGNED() { - 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!(PKCS7_SIGNED)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGNED)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGNED { - 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 PKCS7_SIGN_ENVELOPE { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGN_ENVELOPE() { - 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!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGN_ENVELOPE { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type PKCS7_ENVELOPE = ::std::os::raw::c_void; -pub type PKCS7_DIGEST = ::std::os::raw::c_void; -pub type PKCS7_ENCRYPT = ::std::os::raw::c_void; -pub type PKCS7_SIGNER_INFO = ::std::os::raw::c_void; -#[repr(C)] #[derive(Copy, Clone)] -pub struct PKCS7 { - pub ber_bytes: *mut u8, - pub ber_len: usize, +pub struct pkcs7_st { pub type_: *mut ASN1_OBJECT, - pub d: PKCS7__bindgen_ty_1, + pub d: pkcs7_st__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] -pub union PKCS7__bindgen_ty_1 { +pub union pkcs7_st__bindgen_ty_1 { pub ptr: *mut ::std::os::raw::c_char, pub data: *mut ASN1_OCTET_STRING, pub sign: *mut PKCS7_SIGNED, @@ -17909,25 +18108,26 @@ pub union PKCS7__bindgen_ty_1 { pub other: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_PKCS7__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Size of: ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Alignment of ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(ptr) ) @@ -17937,7 +18137,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(data) ) @@ -17947,7 +18147,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(sign) ) @@ -17957,7 +18157,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(enveloped) ) @@ -17967,7 +18167,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(signed_and_enveloped) ) @@ -17977,7 +18177,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(digest) ) @@ -17987,7 +18187,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(encrypted) ) @@ -17997,13 +18197,13 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(other) ) ); } -impl Default for PKCS7__bindgen_ty_1 { +impl Default for pkcs7_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18013,110 +18213,381 @@ impl Default for PKCS7__bindgen_ty_1 { } } #[test] -fn bindgen_test_layout_PKCS7() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(PKCS7)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(pkcs7_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7)) + concat!("Alignment of ", stringify!(pkcs7_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_bytes) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), "::", - stringify!(ber_bytes) + stringify!(d) ) ); +} +impl Default for pkcs7_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 pkcs7_signed_st { + pub version: *mut ASN1_INTEGER, + pub md_algs: *mut stack_st_X509_ALGOR, + pub contents: *mut PKCS7, + pub cert: *mut stack_st_X509, + pub crl: *mut stack_st_X509_CRL, + pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO, +} +#[test] +fn bindgen_test_layout_pkcs7_signed_st() { + 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!(pkcs7_signed_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_len) as usize - ptr as usize }, + ::std::mem::align_of::(), 8usize, + concat!("Alignment of ", stringify!(pkcs7_signed_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(ber_len) + stringify!(version) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md_algs) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(md_algs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).contents) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(type_) + stringify!(contents) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, 24usize, - concat!("Offset of field: ", stringify!(PKCS7), "::", stringify!(d)) + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signer_info) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(signer_info) + ) ); } -impl Default for PKCS7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +impl Default for pkcs7_signed_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_fips_0_13_0_PKCS7_new"] + pub fn PKCS7_new() -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_free"] + pub fn PKCS7_free(a: *mut PKCS7); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7"] + pub fn d2i_PKCS7( + a: *mut *mut PKCS7, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7"] + pub fn i2d_PKCS7( + a: *mut PKCS7, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_it"] + pub static PKCS7_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_new"] + pub fn PKCS7_RECIP_INFO_new() -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_free"] + pub fn PKCS7_RECIP_INFO_free(a: *mut PKCS7_RECIP_INFO); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7_RECIP_INFO"] + pub fn d2i_PKCS7_RECIP_INFO( + a: *mut *mut PKCS7_RECIP_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7_RECIP_INFO"] + pub fn i2d_PKCS7_RECIP_INFO( + a: *mut PKCS7_RECIP_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_it"] + pub static PKCS7_RECIP_INFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_new"] + pub fn PKCS7_SIGNER_INFO_new() -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_free"] + pub fn PKCS7_SIGNER_INFO_free(a: *mut PKCS7_SIGNER_INFO); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7_SIGNER_INFO"] + pub fn d2i_PKCS7_SIGNER_INFO( + a: *mut *mut PKCS7_SIGNER_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7_SIGNER_INFO"] + pub fn i2d_PKCS7_SIGNER_INFO( + a: *mut PKCS7_SIGNER_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_it"] + pub static PKCS7_SIGNER_INFO_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_RECIP_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_RECIP_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_RECIP_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_RECIP_INFO) -> *mut PKCS7_RECIP_INFO, +>; +pub type sk_PKCS7_RECIP_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_RECIP_INFO, + arg2: *const *const PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_RECIP_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_RECIP_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_SIGNER_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_SIGNER_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_SIGNER_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_SIGNER_INFO) -> *mut PKCS7_SIGNER_INFO, +>; +pub type sk_PKCS7_SIGNER_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_SIGNER_INFO, + arg2: *const *const PKCS7_SIGNER_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_SIGNER_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_SIGNER_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_dup"] + pub fn PKCS7_dup(p7: *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS7_bio"] + pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS7_bio"] + pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_signed_attribute"] + pub fn PKCS7_get_signed_attribute( + si: *const PKCS7_SIGNER_INFO, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_get_signer_info"] + pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_set"] + pub fn PKCS7_RECIP_INFO_set( + p7i: *mut PKCS7_RECIP_INFO, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_set"] + pub fn PKCS7_SIGNER_INFO_set( + p7i: *mut PKCS7_SIGNER_INFO, + x509: *mut X509, + pkey: *mut EVP_PKEY, + dgst: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_certificate"] + pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_crl"] + pub fn PKCS7_add_crl(p7: *mut PKCS7, x509: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS7"] - pub fn d2i_PKCS7(out: *mut *mut PKCS7, inp: *mut *const u8, len: usize) -> *mut PKCS7; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_recipient_info"] + pub fn PKCS7_add_recipient_info( + p7: *mut PKCS7, + ri: *mut PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS7_bio"] - pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_add_signer"] + pub fn PKCS7_add_signer(p7: *mut PKCS7, p7i: *mut PKCS7_SIGNER_INFO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS7"] - pub fn i2d_PKCS7(p7: *const PKCS7, out: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_content_new"] + pub fn PKCS7_content_new(p7: *mut PKCS7, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS7_bio"] - pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_set_cipher"] + pub fn PKCS7_set_cipher(p7: *mut PKCS7, cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_set_content"] + pub fn PKCS7_set_content(p7: *mut PKCS7, p7_data: *mut PKCS7) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_set_type"] + pub fn PKCS7_set_type(p7: *mut PKCS7, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_free"] - pub fn PKCS7_free(p7: *mut PKCS7); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_get0_alg"] + pub fn PKCS7_RECIP_INFO_get0_alg(ri: *mut PKCS7_RECIP_INFO, penc: *mut *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_get0_algs"] + pub fn PKCS7_SIGNER_INFO_get0_algs( + si: *mut PKCS7_SIGNER_INFO, + pk: *mut *mut EVP_PKEY, + pdig: *mut *mut X509_ALGOR, + psig: *mut *mut X509_ALGOR, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_data"] pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_digest"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_digest"] pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_encrypted"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_encrypted"] pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_enveloped"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_enveloped"] pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_signed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_signed"] pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_type_is_signedAndEnveloped"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_type_is_signedAndEnveloped"] pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS7_sign"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS7_sign"] pub fn PKCS7_sign( sign_cert: *mut X509, pkey: *mut EVP_PKEY, @@ -18131,8 +18602,8 @@ pub type sk_CRYPTO_BUFFER_copy_func = ::std::option::Option *mut CRYPTO_BUFFER>; pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const CRYPTO_BUFFER, - arg2: *mut *const CRYPTO_BUFFER, + arg1: *const *const CRYPTO_BUFFER, + arg2: *const *const CRYPTO_BUFFER, ) -> ::std::os::raw::c_int, >; pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< @@ -18142,15 +18613,15 @@ pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_new"] pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_free"] pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_new"] pub fn CRYPTO_BUFFER_new( data: *const u8, len: usize, @@ -18158,18 +18629,18 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_alloc"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_alloc"] pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_CBS"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_CBS"] pub fn CRYPTO_BUFFER_new_from_CBS( cbs: *const CBS, pool: *mut CRYPTO_BUFFER_POOL, ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_static_data_unsafe"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_static_data_unsafe"] pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( data: *const u8, len: usize, @@ -18177,79 +18648,96 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_free"] pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_up_ref"] pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_data"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_data"] pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_len"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_len"] pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_BUFFER_init_CBS"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_BUFFER_init_CBS"] pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_public_key"] + pub fn RSA_new_public_key(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key"] + pub fn RSA_new_private_key( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new"] pub fn RSA_new() -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_new_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_method"] pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_free"] pub fn RSA_free(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_up_ref"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_up_ref"] pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_bits"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_bits"] pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_n"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_n"] pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_e"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_e"] pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_d"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_d"] pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_p"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_p"] pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_q"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_q"] pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_dmp1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_dmp1"] pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_dmq1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_dmq1"] pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_iqmp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_iqmp"] pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_key"] pub fn RSA_get0_key( rsa: *const RSA, out_n: *mut *const BIGNUM, @@ -18258,11 +18746,11 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_factors"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_factors"] pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_crt_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_crt_params"] pub fn RSA_get0_crt_params( rsa: *const RSA, out_dmp1: *mut *const BIGNUM, @@ -18271,7 +18759,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set0_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set0_key"] pub fn RSA_set0_key( rsa: *mut RSA, n: *mut BIGNUM, @@ -18280,12 +18768,12 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set0_factors"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set0_factors"] pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set0_crt_params"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set0_crt_params"] pub fn RSA_set0_crt_params( rsa: *mut RSA, dmp1: *mut BIGNUM, @@ -18294,2550 +18782,2127 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_generate_key_ex"] - pub fn RSA_generate_key_ex( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - e: *const BIGNUM, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_default_method"] + pub fn RSA_get_default_method() -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_generate_key_fips"] - pub fn RSA_generate_key_fips( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_new"] + pub fn RSA_meth_new( + name: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut RSA_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_encrypt"] - pub fn RSA_encrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set_method"] + pub fn RSA_set_method(rsa: *mut RSA, meth: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_decrypt"] - pub fn RSA_decrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_method"] + pub fn RSA_get_method(rsa: *const RSA) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_encrypt"] - pub fn RSA_public_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_free"] + pub fn RSA_meth_free(meth: *mut RSA_METHOD); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_decrypt"] - pub fn RSA_private_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_init"] + pub fn RSA_meth_set_init( + meth: *mut RSA_METHOD, + init: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_sign"] - pub fn RSA_sign( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - rsa: *mut RSA, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_finish"] + pub fn RSA_meth_set_finish( + meth: *mut RSA_METHOD, + finish: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_sign_pss_mgf1"] - pub fn RSA_sign_pss_mgf1( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_priv_dec"] + pub fn RSA_meth_set_priv_dec( + meth: *mut RSA_METHOD, + priv_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_sign_raw"] - pub fn RSA_sign_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_priv_enc"] + pub fn RSA_meth_set_priv_enc( + meth: *mut RSA_METHOD, + priv_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify"] - pub fn RSA_verify( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - rsa: *mut RSA, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_pub_dec"] + pub fn RSA_meth_set_pub_dec( + meth: *mut RSA_METHOD, + pub_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_pss_mgf1"] - pub fn RSA_verify_pss_mgf1( - rsa: *mut RSA, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_pub_enc"] + pub fn RSA_meth_set_pub_enc( + meth: *mut RSA_METHOD, + pub_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_raw"] - pub fn RSA_verify_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set0_app_data"] + pub fn RSA_meth_set0_app_data( + meth: *mut RSA_METHOD, + app_data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_encrypt"] - pub fn RSA_private_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_meth_set_sign"] + pub fn RSA_meth_set_sign( + meth: *mut RSA_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + m: *const ::std::os::raw::c_uchar, + m_length: ::std::os::raw::c_uint, + sigret: *mut ::std::os::raw::c_uchar, + siglen: *mut ::std::os::raw::c_uint, + rsa: *const RSA, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_decrypt"] - pub fn RSA_public_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_generate_key_ex"] + pub fn RSA_generate_key_ex( rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_size"] - pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_is_opaque"] - pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSAPublicKey_dup"] - pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSAPrivateKey_dup"] - pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_check_key"] - pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_check_fips"] - pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS_mgf1"] - pub fn RSA_verify_PKCS1_PSS_mgf1( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS_mgf1"] - pub fn RSA_padding_add_PKCS1_PSS_mgf1( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP_mgf1"] - pub fn RSA_padding_add_PKCS1_OAEP_mgf1( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, - md: *const EVP_MD, - mgf1md: *const EVP_MD, + bits: ::std::os::raw::c_int, + e: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_add_pkcs1_prefix"] - pub fn RSA_add_pkcs1_prefix( - out_msg: *mut *mut u8, - out_msg_len: *mut usize, - is_alloced: *mut ::std::os::raw::c_int, - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_generate_key_fips"] + pub fn RSA_generate_key_fips( + rsa: *mut RSA, + bits: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_parse_public_key"] - pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_key_from_bytes"] - pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_marshal_public_key"] - pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_public_key_to_bytes"] - pub fn RSA_public_key_to_bytes( - out_bytes: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_encrypt"] + pub fn RSA_encrypt( + rsa: *mut RSA, out_len: *mut usize, - rsa: *const RSA, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_parse_private_key"] - pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_key_from_bytes"] - pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_marshal_private_key"] - pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_private_key_to_bytes"] - pub fn RSA_private_key_to_bytes( - out_bytes: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_decrypt"] + pub fn RSA_decrypt( + rsa: *mut RSA, out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get_ex_new_index"] - pub fn RSA_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, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_set_ex_data"] - pub fn RSA_set_ex_data( + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_encrypt"] + pub fn RSA_public_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, rsa: *mut RSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get_ex_data"] - pub fn RSA_get_ex_data( - rsa: *const RSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_flags"] - pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_test_flags"] - pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_blinding_on"] - pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_generate_key"] - pub fn RSA_generate_key( - bits: ::std::os::raw::c_int, - e: u64, - callback: *mut ::std::os::raw::c_void, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_decrypt"] + pub fn RSA_private_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPublicKey"] - pub fn d2i_RSAPublicKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_sign"] + pub fn RSA_sign( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSAPublicKey"] - pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_sign_pss_mgf1"] + pub fn RSA_sign_pss_mgf1( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPrivateKey"] - pub fn d2i_RSAPrivateKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_sign_raw"] + pub fn RSA_sign_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSAPrivateKey"] - pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify"] + pub fn RSA_verify( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS"] - pub fn RSA_padding_add_PKCS1_PSS( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_pss_mgf1"] + pub fn RSA_verify_pss_mgf1( + rsa: *mut RSA, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS"] - pub fn RSA_verify_PKCS1_PSS( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_raw"] + pub fn RSA_verify_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP"] - pub fn RSA_padding_add_PKCS1_OAEP( - to: *mut u8, - to_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_encrypt"] + pub fn RSA_private_encrypt( + flen: usize, from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_print"] - pub fn RSA_print( - bio: *mut BIO, - rsa: *const RSA, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_decrypt"] + pub fn RSA_public_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_get0_pss_params"] - pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_size"] + pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_meth_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: ::std::option::Option ::std::os::raw::c_int>, - pub finish: ::std::option::Option ::std::os::raw::c_int>, - pub size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - type_: ::std::os::raw::c_int, - m: *const u8, - m_length: ::std::os::raw::c_uint, - sigret: *mut u8, - siglen: *mut ::std::os::raw::c_uint, - rsa: *const RSA, - ) -> ::std::os::raw::c_int, - >, - pub sign_raw: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub decrypt: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub private_transform: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out: *mut u8, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_is_opaque"] + pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_meth_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(rsa_meth_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_meth_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign_raw) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign_raw) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).decrypt) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(decrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_transform) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(private_transform) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(flags) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSAPublicKey_dup"] + pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; } -impl Default for rsa_meth_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_fips_0_13_0_RSAPrivateKey_dup"] + pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct bn_blinding_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_check_key"] + pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; } -pub type BN_BLINDING = bn_blinding_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_st { - pub meth: *mut RSA_METHOD, - pub n: *mut BIGNUM, - pub e: *mut BIGNUM, - pub d: *mut BIGNUM, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub dmp1: *mut BIGNUM, - pub dmq1: *mut BIGNUM, - pub iqmp: *mut BIGNUM, - pub pss: *mut RSASSA_PSS_PARAMS, - pub ex_data: CRYPTO_EX_DATA, - pub references: CRYPTO_refcount_t, - pub flags: ::std::os::raw::c_int, - pub lock: CRYPTO_MUTEX, - pub mont_n: *mut BN_MONT_CTX, - pub mont_p: *mut BN_MONT_CTX, - pub mont_q: *mut BN_MONT_CTX, - pub d_fixed: *mut BIGNUM, - pub dmp1_fixed: *mut BIGNUM, - pub dmq1_fixed: *mut BIGNUM, - pub inv_small_mod_large_mont: *mut BIGNUM, - pub num_blindings: usize, - pub blindings: *mut *mut BN_BLINDING, - pub blindings_inuse: *mut ::std::os::raw::c_uchar, - pub blinding_fork_generation: u64, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_check_fips"] + pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 392usize, - concat!("Size of: ", stringify!(rsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).meth) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(meth) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(n)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).e) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(e)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(d)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 32usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 40usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iqmp) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(iqmp) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pss) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(pss) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).lock) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_n) as usize - ptr as usize }, - 296usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_n) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_p) as usize - ptr as usize }, - 304usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_q) as usize - ptr as usize }, - 312usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d_fixed) as usize - ptr as usize }, - 320usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(d_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1_fixed) as usize - ptr as usize }, - 328usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1_fixed) as usize - ptr as usize }, - 336usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inv_small_mod_large_mont) as usize - ptr as usize }, - 344usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(inv_small_mod_large_mont) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_blindings) as usize - ptr as usize }, - 352usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(num_blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings) as usize - ptr as usize }, - 360usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings_inuse) as usize - ptr as usize }, - 368usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings_inuse) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blinding_fork_generation) as usize - ptr as usize }, - 376usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blinding_fork_generation) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS_mgf1"] + pub fn RSA_verify_PKCS1_PSS_mgf1( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl Default for rsa_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_fips_0_13_0_RSA_padding_add_PKCS1_PSS_mgf1"] + pub fn RSA_padding_add_PKCS1_PSS_mgf1( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl rsa_st { - #[inline] - pub fn private_key_frozen(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_private_key_frozen(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - private_key_frozen: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let private_key_frozen: u32 = unsafe { ::std::mem::transmute(private_key_frozen) }; - private_key_frozen as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP_mgf1"] + pub fn RSA_padding_add_PKCS1_OAEP_mgf1( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + md: *const EVP_MD, + mgf1md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -pub type sk_X509_free_func = ::std::option::Option; -pub type sk_X509_copy_func = - ::std::option::Option *mut X509>; -pub type sk_X509_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const X509, arg2: *mut *const X509) -> ::std::os::raw::c_int, ->; -pub type sk_X509_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_it"] - pub static X509_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS1_MGF1"] + pub fn PKCS1_MGF1( + out: *mut u8, + len: usize, + seed: *const u8, + seed_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_add_pkcs1_prefix"] + pub fn RSA_add_pkcs1_prefix( + out_msg: *mut *mut u8, + out_msg_len: *mut usize, + is_alloced: *mut ::std::os::raw::c_int, + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_up_ref"] - pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_parse_public_key"] + pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_chain_up_ref"] - pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_key_from_bytes"] + pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_dup"] - pub fn X509_dup(x509: *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_marshal_public_key"] + pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_free"] - pub fn X509_free(x509: *mut X509); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_public_key_to_bytes"] + pub fn RSA_public_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509"] - pub fn d2i_X509( - out: *mut *mut X509, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_parse_private_key"] + pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_parse_from_buffer"] - pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_key_from_bytes"] + pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509"] - pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_marshal_private_key"] + pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_version"] - pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_private_key_to_bytes"] + pub fn RSA_private_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_serialNumber"] - pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key_no_crt"] + pub fn RSA_new_private_key_no_crt( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_notBefore"] - pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key_no_e"] + pub fn RSA_new_private_key_no_e(n: *const BIGNUM, d: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_notAfter"] - pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_public_key_large_e"] + pub fn RSA_new_public_key_large_e(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_issuer_name"] - pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_private_key_large_e"] + pub fn RSA_new_private_key_large_e( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_subject_name"] - pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_ex_new_index"] + pub fn RSA_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_fips_0_12_15_X509_get_X509_PUBKEY"] - pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set_ex_data"] + pub fn RSA_set_ex_data( + rsa: *mut RSA, + 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_fips_0_12_15_X509_get_pubkey"] - pub fn X509_get_pubkey(x509: *mut X509) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get_ex_data"] + pub fn RSA_get_ex_data( + rsa: *const RSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_pubkey_bitstr"] - pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_flags"] + pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_uids"] - pub fn X509_get0_uids( - x509: *const X509, - out_issuer_uid: *mut *const ASN1_BIT_STRING, - out_subject_uid: *mut *const ASN1_BIT_STRING, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_set_flags"] + pub fn RSA_set_flags(rsa: *mut RSA, flags: ::std::os::raw::c_int); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_EXTENSION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_test_flags"] + pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_extensions"] - pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_blinding_on"] + pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_count"] - pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_blinding_off_temp_for_accp_compatibility"] + pub fn RSA_blinding_off_temp_for_accp_compatibility(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_by_NID"] - pub fn X509_get_ext_by_NID( - x: *const X509, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_pkey_ctx_ctrl"] + pub fn RSA_pkey_ctx_ctrl( + ctx: *mut EVP_PKEY_CTX, + optype: ::std::os::raw::c_int, + cmd: ::std::os::raw::c_int, + p1: ::std::os::raw::c_int, + p2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_by_OBJ"] - pub fn X509_get_ext_by_OBJ( - x: *const X509, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_generate_key"] + pub fn RSA_generate_key( + bits: ::std::os::raw::c_int, + e: u64, + callback: *mut ::std::os::raw::c_void, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext_by_critical"] - pub fn X509_get_ext_by_critical( - x: *const X509, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_RSAPublicKey"] + pub fn d2i_RSAPublicKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_ext"] - pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_RSAPublicKey"] + pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_tbs_sigalg"] - pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_RSAPrivateKey"] + pub fn d2i_RSAPrivateKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_signature"] - pub fn X509_get0_signature( - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - x509: *const X509, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_RSAPrivateKey"] + pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_signature_nid"] - pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_PSS"] + pub fn RSA_padding_add_PKCS1_PSS( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_tbs"] - pub fn i2d_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS"] + pub fn RSA_verify_PKCS1_PSS( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_new"] - pub fn X509_new() -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP"] + pub fn RSA_padding_add_PKCS1_OAEP( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_version"] - pub fn X509_set_version( - x509: *mut X509, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_print"] + pub fn RSA_print( + bio: *mut BIO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_serialNumber"] - pub fn X509_set_serialNumber( - x509: *mut X509, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_print_fp"] + pub fn RSA_print_fp( + fp: *mut FILE, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_notBefore"] - pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_get0_pss_params"] + pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_notAfter"] - pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_new_method_no_e"] + pub fn RSA_new_method_no_e(engine: *const ENGINE, n: *const BIGNUM) -> *mut RSA; } +pub type sk_X509_free_func = ::std::option::Option; +pub type sk_X509_copy_func = + ::std::option::Option *mut X509>; +pub type sk_X509_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509, + arg2: *const *const X509, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_getm_notBefore"] - pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_it"] + pub static X509_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_getm_notAfter"] - pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_up_ref"] + pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_issuer_name"] - pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_chain_up_ref"] + pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_subject_name"] - pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_dup"] + pub fn X509_dup(x509: *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set_pubkey"] - pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_free"] + pub fn X509_free(x509: *mut X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_delete_ext"] - pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509"] + pub fn d2i_X509( + out: *mut *mut X509, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_add_ext"] - pub fn X509_add_ext( - x: *mut X509, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_parse_from_buffer"] + pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_sign"] - pub fn X509_sign( - x509: *mut X509, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509"] + pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_sign_ctx"] - pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_version"] + pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_re_X509_tbs"] - pub fn i2d_re_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_serialNumber"] + pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_signature_algo"] - pub fn X509_set1_signature_algo( - x509: *mut X509, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_notBefore"] + pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_set1_signature_value"] - pub fn X509_set1_signature_value( - x509: *mut X509, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_notAfter"] + pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_AUX"] - pub fn i2d_X509_AUX( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_issuer_name"] + pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_AUX"] - pub fn d2i_X509_AUX( - x509: *mut *mut X509, - inp: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_subject_name"] + pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_alias_set1"] - pub fn X509_alias_set1( - x509: *mut X509, - name: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_X509_PUBKEY"] + pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_keyid_set1"] - pub fn X509_keyid_set1( - x509: *mut X509, - id: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_pubkey"] + pub fn X509_get0_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_alias_get0"] - pub fn X509_alias_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_pubkey"] + pub fn X509_get_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_keyid_get0"] - pub fn X509_keyid_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_pubkey_bitstr"] + pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; } -pub type sk_X509_CRL_free_func = ::std::option::Option; -pub type sk_X509_CRL_copy_func = - ::std::option::Option *mut X509_CRL>; -pub type sk_X509_CRL_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_CRL, - arg2: *mut *const X509_CRL, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_CRL_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_CRL, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_it"] - pub static X509_CRL_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_check_private_key"] + pub fn X509_check_private_key( + x509: *const X509, + pkey: *const EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_up_ref"] - pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_uids"] + pub fn X509_get0_uids( + x509: *const X509, + out_issuer_uid: *mut *const ASN1_BIT_STRING, + out_subject_uid: *mut *const ASN1_BIT_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_dup"] - pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_extension_flags"] + pub fn X509_get_extension_flags(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_free"] - pub fn X509_CRL_free(crl: *mut X509_CRL); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_pathlen"] + pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_CRL"] - pub fn d2i_X509_CRL( - out: *mut *mut X509_CRL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_key_usage"] + pub fn X509_get_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_CRL"] - pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_extended_key_usage"] + pub fn X509_get_extended_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_version"] - pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_subject_key_id"] + pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_lastUpdate"] - pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_authority_key_id"] + pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_NAME { + _unused: [u8; 0], } +pub type sk_GENERAL_NAME_free_func = + ::std::option::Option; +pub type sk_GENERAL_NAME_copy_func = + ::std::option::Option *mut GENERAL_NAME>; +pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_NAME, + arg2: *const *const GENERAL_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type GENERAL_NAMES = stack_st_GENERAL_NAME; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_nextUpdate"] - pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_authority_issuer"] + pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_issuer"] - pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_authority_serial"] + pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_REVOKED { +pub struct stack_st_X509_EXTENSION { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_REVOKED"] - pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_extensions"] - pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_extensions"] + pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_count"] - pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_count"] + pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_by_NID"] - pub fn X509_CRL_get_ext_by_NID( - x: *const X509_CRL, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_by_NID"] + pub fn X509_get_ext_by_NID( + x: *const X509, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_by_OBJ"] - pub fn X509_CRL_get_ext_by_OBJ( - x: *const X509_CRL, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_by_OBJ"] + pub fn X509_get_ext_by_OBJ( + x: *const X509, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext_by_critical"] - pub fn X509_CRL_get_ext_by_critical( - x: *const X509_CRL, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_by_critical"] + pub fn X509_get_ext_by_critical( + x: *const X509, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_ext"] - pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext"] + pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_signature"] - pub fn X509_CRL_get0_signature( - crl: *const X509_CRL, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_ext_d2i"] + pub fn X509_get_ext_d2i( + x509: *const X509, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_signature_nid"] - pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_tbs_sigalg"] + pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_CRL_tbs"] - pub fn i2d_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_signature_info"] + pub fn X509_get_signature_info( + x509: *mut X509, + digest_nid: *mut ::std::os::raw::c_int, + pubkey_nid: *mut ::std::os::raw::c_int, + sec_bits: *mut ::std::os::raw::c_int, + flags: *mut u32, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_new"] - pub fn X509_CRL_new() -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get0_signature"] + pub fn X509_get0_signature( + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + x509: *const X509, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set_version"] - pub fn X509_CRL_set_version( - crl: *mut X509_CRL, - version: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_signature_nid"] + pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set_issuer_name"] - pub fn X509_CRL_set_issuer_name( - crl: *mut X509_CRL, - name: *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_tbs"] + pub fn i2d_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_lastUpdate"] - pub fn X509_CRL_set1_lastUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_verify"] + pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_nextUpdate"] - pub fn X509_CRL_set1_nextUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get1_email"] + pub fn X509_get1_email(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_delete_ext"] - pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) - -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get1_ocsp"] + pub fn X509_get1_ocsp(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_add_ext"] - pub fn X509_CRL_add_ext( - x: *mut X509_CRL, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_email_free"] + pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_sign"] - pub fn X509_CRL_sign( - crl: *mut X509_CRL, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_new"] + pub fn X509_new() -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_sign_ctx"] - pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_version"] + pub fn X509_set_version( + x509: *mut X509, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_re_X509_CRL_tbs"] - pub fn i2d_re_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_serialNumber"] + pub fn X509_set_serialNumber( + x509: *mut X509, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_signature_algo"] - pub fn X509_CRL_set1_signature_algo( - crl: *mut X509_CRL, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_notBefore"] + pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_set1_signature_value"] - pub fn X509_CRL_set1_signature_value( - crl: *mut X509_CRL, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_notAfter"] + pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_it"] - pub static X509_REQ_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_getm_notBefore"] + pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_dup"] - pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_getm_notAfter"] + pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_free"] - pub fn X509_REQ_free(req: *mut X509_REQ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_issuer_name"] + pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_REQ"] - pub fn d2i_X509_REQ( - out: *mut *mut X509_REQ, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_subject_name"] + pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_REQ"] - pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set_pubkey"] + pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_version"] - pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_delete_ext"] + pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_subject_name"] - pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add_ext"] + pub fn X509_add_ext( + x: *mut X509, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_pubkey"] - pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add1_ext_i2d"] + pub fn X509_add1_ext_i2d( + x: *mut X509, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get0_signature"] - pub fn X509_REQ_get0_signature( - req: *const X509_REQ, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_sign"] + pub fn X509_sign( + x509: *mut X509, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_signature_nid"] - pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_sign_ctx"] + pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_new"] - pub fn X509_REQ_new() -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_re_X509_tbs"] + pub fn i2d_re_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set_version"] - pub fn X509_REQ_set_version( - req: *mut X509_REQ, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_signature_algo"] + pub fn X509_set1_signature_algo( + x509: *mut X509, + algo: *const X509_ALGOR, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set_subject_name"] - pub fn X509_REQ_set_subject_name( - req: *mut X509_REQ, - name: *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_set1_signature_value"] + pub fn X509_set1_signature_value( + x509: *mut X509, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set_pubkey"] - pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_AUX"] + pub fn i2d_X509_AUX(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_sign"] - pub fn X509_REQ_sign( - req: *mut X509_REQ, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_AUX"] + pub fn d2i_X509_AUX( + x509: *mut *mut X509, + inp: *mut *const u8, + length: ::std::os::raw::c_long, + ) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_alias_set1"] + pub fn X509_alias_set1( + x509: *mut X509, + name: *const u8, + len: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_sign_ctx"] - pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_keyid_set1"] + pub fn X509_keyid_set1( + x509: *mut X509, + id: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_re_X509_REQ_tbs"] - pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_alias_get0"] + pub fn X509_alias_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set1_signature_algo"] - pub fn X509_REQ_set1_signature_algo( - req: *mut X509_REQ, - algo: *const X509_ALGOR, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_keyid_get0"] + pub fn X509_keyid_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add1_trust_object"] + pub fn X509_add1_trust_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_set1_signature_value"] - pub fn X509_REQ_set1_signature_value( - req: *mut X509_REQ, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_add1_reject_object"] + pub fn X509_add1_reject_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME_ENTRY { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_trust_clear"] + pub fn X509_trust_clear(x509: *mut X509); } -pub type sk_X509_NAME_ENTRY_free_func = - ::std::option::Option; -pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, ->; -pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_reject_clear"] + pub fn X509_reject_clear(x509: *mut X509); +} +pub type sk_X509_CRL_free_func = ::std::option::Option; +pub type sk_X509_CRL_copy_func = + ::std::option::Option *mut X509_CRL>; +pub type sk_X509_CRL_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME_ENTRY, - arg2: *mut *const X509_NAME_ENTRY, + arg1: *const *const X509_CRL, + arg2: *const *const X509_CRL, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< +pub type sk_X509_CRL_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME_ENTRY, + arg1: *mut X509_CRL, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME { +pub struct stack_st_X509_REVOKED { _unused: [u8; 0], } -pub type sk_X509_NAME_free_func = ::std::option::Option; -pub type sk_X509_NAME_copy_func = - ::std::option::Option *mut X509_NAME>; -pub type sk_X509_NAME_cmp_func = ::std::option::Option< +pub type sk_X509_REVOKED_free_func = + ::std::option::Option; +pub type sk_X509_REVOKED_copy_func = + ::std::option::Option *mut X509_REVOKED>; +pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME, - arg2: *mut *const X509_NAME, + arg1: *const *const X509_REVOKED, + arg2: *const *const X509_REVOKED, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_delete_if_func = ::std::option::Option< +pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME, + arg1: *mut X509_REVOKED, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_it"] - pub static X509_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_it"] + pub static X509_CRL_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_new"] - pub fn X509_NAME_new() -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_up_ref"] + pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_free"] - pub fn X509_NAME_free(name: *mut X509_NAME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_dup"] + pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_NAME"] - pub fn d2i_X509_NAME( - out: *mut *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_free"] + pub fn X509_CRL_free(crl: *mut X509_CRL); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_CRL"] + pub fn d2i_X509_CRL( + out: *mut *mut X509_CRL, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_NAME; + ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_NAME"] - pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_CRL"] + pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_dup"] - pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_version"] + pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get0_der"] - pub fn X509_NAME_get0_der( - name: *mut X509_NAME, - out_der: *mut *const u8, - out_der_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_lastUpdate"] + pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_set"] - pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_nextUpdate"] + pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_entry_count"] - pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_issuer"] + pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_index_by_NID"] - pub fn X509_NAME_get_index_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_by_serial"] + pub fn X509_CRL_get0_by_serial( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_index_by_OBJ"] - pub fn X509_NAME_get_index_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_by_cert"] + pub fn X509_CRL_get0_by_cert( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + x509: *mut X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_entry"] - pub fn X509_NAME_get_entry( - name: *const X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_REVOKED"] + pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_delete_entry"] - pub fn X509_NAME_delete_entry( - name: *mut X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_extensions"] + pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry"] - pub fn X509_NAME_add_entry( - name: *mut X509_NAME, - entry: *const X509_NAME_ENTRY, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_count"] + pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry_by_OBJ"] - pub fn X509_NAME_add_entry_by_OBJ( - name: *mut X509_NAME, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_by_NID"] + pub fn X509_CRL_get_ext_by_NID( + x: *const X509_CRL, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry_by_NID"] - pub fn X509_NAME_add_entry_by_NID( - name: *mut X509_NAME, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_by_OBJ"] + pub fn X509_CRL_get_ext_by_OBJ( + x: *const X509_CRL, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_add_entry_by_txt"] - pub fn X509_NAME_add_entry_by_txt( - name: *mut X509_NAME, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_by_critical"] + pub fn X509_CRL_get_ext_by_critical( + x: *const X509_CRL, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_it"] - pub static X509_NAME_ENTRY_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext"] + pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_new"] - pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_ext_d2i"] + pub fn X509_CRL_get_ext_d2i( + crl: *const X509_CRL, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_free"] - pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get0_signature"] + pub fn X509_CRL_get0_signature( + crl: *const X509_CRL, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_NAME_ENTRY"] - pub fn d2i_X509_NAME_ENTRY( - out: *mut *mut X509_NAME_ENTRY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_get_signature_nid"] + pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_NAME_ENTRY"] - pub fn i2d_X509_NAME_ENTRY( - in_: *const X509_NAME_ENTRY, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_CRL_tbs"] + pub fn i2d_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_dup"] - pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_verify"] + pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_object"] - pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_new"] + pub fn X509_CRL_new() -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_object"] - pub fn X509_NAME_ENTRY_set_object( - entry: *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set_version"] + pub fn X509_CRL_set_version( + crl: *mut X509_CRL, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_data"] - pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set_issuer_name"] + pub fn X509_CRL_set_issuer_name( + crl: *mut X509_CRL, + name: *mut X509_NAME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_data"] - pub fn X509_NAME_ENTRY_set_data( - entry: *mut X509_NAME_ENTRY, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_lastUpdate"] + pub fn X509_CRL_set1_lastUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_set"] - pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_nextUpdate"] + pub fn X509_CRL_set1_nextUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_OBJ"] - pub fn X509_NAME_ENTRY_create_by_OBJ( - out: *mut *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_add0_revoked"] + pub fn X509_CRL_add0_revoked( + crl: *mut X509_CRL, + rev: *mut X509_REVOKED, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_NID"] - pub fn X509_NAME_ENTRY_create_by_NID( - out: *mut *mut X509_NAME_ENTRY, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_sort"] + pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_txt"] - pub fn X509_NAME_ENTRY_create_by_txt( - out: *mut *mut X509_NAME_ENTRY, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_delete_ext"] + pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) + -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_it"] - pub static X509_EXTENSION_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_add_ext"] + pub fn X509_CRL_add_ext( + x: *mut X509_CRL, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_new"] - pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_add1_ext_i2d"] + pub fn X509_CRL_add1_ext_i2d( + x: *mut X509_CRL, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_free"] - pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_sign"] + pub fn X509_CRL_sign( + crl: *mut X509_CRL, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_EXTENSION"] - pub fn d2i_X509_EXTENSION( - out: *mut *mut X509_EXTENSION, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_sign_ctx"] + pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_EXTENSION"] - pub fn i2d_X509_EXTENSION( - alg: *const X509_EXTENSION, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_re_X509_CRL_tbs"] + pub fn i2d_re_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_dup"] - pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_signature_algo"] + pub fn X509_CRL_set1_signature_algo( + crl: *mut X509_CRL, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_create_by_NID"] - pub fn X509_EXTENSION_create_by_NID( - ex: *mut *mut X509_EXTENSION, - nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_set1_signature_value"] + pub fn X509_CRL_set1_signature_value( + crl: *mut X509_CRL, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_create_by_OBJ"] - pub fn X509_EXTENSION_create_by_OBJ( - ex: *mut *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_CRL_http_nbio"] + pub fn X509_CRL_http_nbio( + rctx: *mut OCSP_REQ_CTX, + pcrl: *mut *mut X509_CRL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_it"] + pub static X509_REVOKED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_new"] + pub fn X509_REVOKED_new() -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_get_object"] - pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_free"] + pub fn X509_REVOKED_free(rev: *mut X509_REVOKED); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_get_data"] - pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_REVOKED"] + pub fn d2i_X509_REVOKED( + out: *mut *mut X509_REVOKED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_get_critical"] - pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_REVOKED"] + pub fn i2d_X509_REVOKED(alg: *const X509_REVOKED, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_set_object"] - pub fn X509_EXTENSION_set_object( - ex: *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_dup"] + pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_set_critical"] - pub fn X509_EXTENSION_set_critical( - ex: *mut X509_EXTENSION, - crit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get0_serialNumber"] + pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSION_set_data"] - pub fn X509_EXTENSION_set_data( - ex: *mut X509_EXTENSION, - data: *const ASN1_OCTET_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_set_serialNumber"] + pub fn X509_REVOKED_set_serialNumber( + revoked: *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } -pub type sk_X509_EXTENSION_free_func = - ::std::option::Option; -pub type sk_X509_EXTENSION_copy_func = - ::std::option::Option *mut X509_EXTENSION>; -pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_EXTENSION, - arg2: *mut *const X509_EXTENSION, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_EXTENSION, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_EXTENSIONS_it"] - pub static X509_EXTENSIONS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get0_revocationDate"] + pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_EXTENSIONS"] - pub fn d2i_X509_EXTENSIONS( - out: *mut *mut X509_EXTENSIONS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSIONS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_set_revocationDate"] + pub fn X509_REVOKED_set_revocationDate( + revoked: *mut X509_REVOKED, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_EXTENSIONS"] - pub fn i2d_X509_EXTENSIONS( - alg: *const X509_EXTENSIONS, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get0_extensions"] + pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_count"] - pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_count"] + pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_by_NID"] - pub fn X509v3_get_ext_by_NID( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_NID"] + pub fn X509_REVOKED_get_ext_by_NID( + x: *const X509_REVOKED, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_by_OBJ"] - pub fn X509v3_get_ext_by_OBJ( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_OBJ"] + pub fn X509_REVOKED_get_ext_by_OBJ( + x: *const X509_REVOKED, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext_by_critical"] - pub fn X509v3_get_ext_by_critical( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_critical"] + pub fn X509_REVOKED_get_ext_by_critical( + x: *const X509_REVOKED, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_get_ext"] - pub fn X509v3_get_ext( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext"] + pub fn X509_REVOKED_get_ext( + x: *const X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_delete_ext"] - pub fn X509v3_delete_ext( - x: *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_delete_ext"] + pub fn X509_REVOKED_delete_ext( + x: *mut X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509v3_add_ext"] - pub fn X509v3_add_ext( - x: *mut *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_add_ext"] + pub fn X509_REVOKED_add_ext( + x: *mut X509_REVOKED, ex: *const X509_EXTENSION, loc: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_EXTENSION; + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ALGOR { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_get_ext_d2i"] + pub fn X509_REVOKED_get_ext_d2i( + revoked: *const X509_REVOKED, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -pub type sk_X509_ALGOR_free_func = - ::std::option::Option; -pub type sk_X509_ALGOR_copy_func = - ::std::option::Option *mut X509_ALGOR>; -pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ALGOR, - arg2: *mut *const X509_ALGOR, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ALGOR, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_it"] - pub static X509_ALGOR_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REVOKED_add1_ext_i2d"] + pub fn X509_REVOKED_add1_ext_i2d( + x: *mut X509_REVOKED, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_new"] - pub fn X509_ALGOR_new() -> *mut X509_ALGOR; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_it"] + pub static X509_REQ_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_dup"] - pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_dup"] + pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_free"] - pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_free"] + pub fn X509_REQ_free(req: *mut X509_REQ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_ALGOR"] - pub fn d2i_X509_ALGOR( - out: *mut *mut X509_ALGOR, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_REQ"] + pub fn d2i_X509_REQ( + out: *mut *mut X509_REQ, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_ALGOR; + ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_ALGOR"] - pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_REQ"] + pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_set0"] - pub fn X509_ALGOR_set0( - alg: *mut X509_ALGOR, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_version"] + pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_get0"] - pub fn X509_ALGOR_get0( - out_obj: *mut *const ASN1_OBJECT, - out_param_type: *mut ::std::os::raw::c_int, - out_param_value: *mut *const ::std::os::raw::c_void, - alg: *const X509_ALGOR, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_subject_name"] + pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_set_md"] - pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get0_pubkey"] + pub fn X509_REQ_get0_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ALGOR_cmp"] - pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_pubkey"] + pub fn X509_REQ_get_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_check_private_key"] + pub fn X509_REQ_check_private_key( + req: *const X509_REQ, + pkey: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_attr_count"] + pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_attr"] + pub fn X509_REQ_get_attr( + req: *const X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_attr_by_NID"] + pub fn X509_REQ_get_attr_by_NID( + req: *const X509_REQ, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_attr_by_OBJ"] + pub fn X509_REQ_get_attr_by_OBJ( + req: *const X509_REQ, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_extension_nid"] + pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_extensions"] + pub fn X509_REQ_get_extensions(req: *const X509_REQ) -> *mut stack_st_X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get0_signature"] + pub fn X509_REQ_get0_signature( + req: *const X509_REQ, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get_signature_nid"] + pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_verify"] + pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_get1_email"] + pub fn X509_REQ_get1_email(req: *const X509_REQ) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_new"] + pub fn X509_REQ_new() -> *mut X509_REQ; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set_version"] + pub fn X509_REQ_set_version( + req: *mut X509_REQ, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set_subject_name"] + pub fn X509_REQ_set_subject_name( + req: *mut X509_REQ, + name: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set_pubkey"] + pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_delete_attr"] + pub fn X509_REQ_delete_attr( + req: *mut X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr"] + pub fn X509_REQ_add1_attr( + req: *mut X509_REQ, + attr: *const X509_ATTRIBUTE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_OBJ"] + pub fn X509_REQ_add1_attr_by_OBJ( + req: *mut X509_REQ, + obj: *const ASN1_OBJECT, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_NID"] + pub fn X509_REQ_add1_attr_by_NID( + req: *mut X509_REQ, + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_txt"] + pub fn X509_REQ_add1_attr_by_txt( + req: *mut X509_REQ, + attrname: *const ::std::os::raw::c_char, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_add_extensions_nid"] + pub fn X509_REQ_add_extensions_nid( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_add_extensions"] + pub fn X509_REQ_add_extensions( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_sign"] + pub fn X509_REQ_sign( + req: *mut X509_REQ, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_sign_ctx"] + pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_re_X509_REQ_tbs"] + pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_REQ_set1_signature_algo"] + pub fn X509_REQ_set1_signature_algo( + req: *mut X509_REQ, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_set1_signature_value"] + pub fn X509_REQ_set1_signature_value( + req: *mut X509_REQ, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME_ENTRY { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; +pub type sk_X509_NAME_ENTRY_free_func = + ::std::option::Option; +pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +>; +pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME_ENTRY, + arg2: *const *const X509_NAME_ENTRY, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME_ENTRY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME { + _unused: [u8; 0], } +pub type sk_X509_NAME_free_func = ::std::option::Option; +pub type sk_X509_NAME_copy_func = + ::std::option::Option *mut X509_NAME>; +pub type sk_X509_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME, + arg2: *const *const X509_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_it"] + pub static X509_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_new"] + pub fn X509_NAME_new() -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_free"] + pub fn X509_NAME_free(name: *mut X509_NAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_NAME"] + pub fn d2i_X509_NAME( + out: *mut *mut X509_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_NAME"] + pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_dup"] + pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_cmp"] + pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get0_der"] + pub fn X509_NAME_get0_der( + name: *mut X509_NAME, + out_der: *mut *const u8, + out_der_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_set"] + pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_entry_count"] + pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get_index_by_NID"] + pub fn X509_NAME_get_index_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_get_index_by_OBJ"] + pub fn X509_NAME_get_index_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_get_entry"] + pub fn X509_NAME_get_entry( + name: *const X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_delete_entry"] + pub fn X509_NAME_delete_entry( + name: *mut X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_add_entry"] + pub fn X509_NAME_add_entry( + name: *mut X509_NAME, + entry: *const X509_NAME_ENTRY, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_add_entry_by_OBJ"] + pub fn X509_NAME_add_entry_by_OBJ( + name: *mut X509_NAME, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_NID"] + pub fn X509_NAME_add_entry_by_NID( + name: *mut X509_NAME, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_txt"] + pub fn X509_NAME_add_entry_by_txt( + name: *mut X509_NAME, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_it"] + pub static X509_NAME_ENTRY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_new"] + pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_free"] + pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_NAME_ENTRY"] + pub fn d2i_X509_NAME_ENTRY( + out: *mut *mut X509_NAME_ENTRY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_NAME_ENTRY"] + pub fn i2d_X509_NAME_ENTRY( + in_: *const X509_NAME_ENTRY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_dup"] + pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_object"] + pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set_object"] + pub fn X509_NAME_ENTRY_set_object( + entry: *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_get_data"] + pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_data"] + pub fn X509_NAME_ENTRY_set_data( + entry: *mut X509_NAME_ENTRY, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set"] + pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_OBJ"] + pub fn X509_NAME_ENTRY_create_by_OBJ( + out: *mut *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_NID"] + pub fn X509_NAME_ENTRY_create_by_NID( + out: *mut *mut X509_NAME_ENTRY, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_txt"] + pub fn X509_NAME_ENTRY_create_by_txt( + out: *mut *mut X509_NAME_ENTRY, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_it"] + pub static X509_PUBKEY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_new"] + pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_free"] + pub fn X509_PUBKEY_free(key: *mut X509_PUBKEY); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_PUBKEY"] + pub fn d2i_X509_PUBKEY( + out: *mut *mut X509_PUBKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_PUBKEY"] + pub fn i2d_X509_PUBKEY(key: *const X509_PUBKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set"] + pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0"] + pub fn X509_PUBKEY_get0(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get"] + pub fn X509_PUBKEY_get(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set0_param"] + pub fn X509_PUBKEY_set0_param( + pub_: *mut X509_PUBKEY, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + key: *mut u8, + key_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_param"] + pub fn X509_PUBKEY_get0_param( + out_obj: *mut *mut ASN1_OBJECT, + out_key: *mut *const u8, + out_key_len: *mut ::std::os::raw::c_int, + out_alg: *mut *mut X509_ALGOR, + pub_: *mut X509_PUBKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_public_key"] + pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_it"] + pub static X509_EXTENSION_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_new"] + pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_free"] + pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSION"] + pub fn d2i_X509_EXTENSION( + out: *mut *mut X509_EXTENSION, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_EXTENSION"] + pub fn i2d_X509_EXTENSION( + ex: *const X509_EXTENSION, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_dup"] + pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_NID"] + pub fn X509_EXTENSION_create_by_NID( + ex: *mut *mut X509_EXTENSION, + nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_OBJ"] + pub fn X509_EXTENSION_create_by_OBJ( + ex: *mut *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_object"] + pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_data"] + pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_critical"] + pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_set_object"] + pub fn X509_EXTENSION_set_object( + ex: *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_set_critical"] + pub fn X509_EXTENSION_set_critical( + ex: *mut X509_EXTENSION, + crit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_EXTENSION_set_data"] + pub fn X509_EXTENSION_set_data( + ex: *mut X509_EXTENSION, + data: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } +pub type sk_X509_EXTENSION_free_func = + ::std::option::Option; +pub type sk_X509_EXTENSION_copy_func = + ::std::option::Option *mut X509_EXTENSION>; +pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_EXTENSION, + arg2: *const *const X509_EXTENSION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_EXTENSION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSIONS_it"] + pub static X509_EXTENSIONS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSIONS"] + pub fn d2i_X509_EXTENSIONS( + out: *mut *mut X509_EXTENSIONS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSIONS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_EXTENSIONS"] + pub fn i2d_X509_EXTENSIONS( + alg: *const X509_EXTENSIONS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_count"] + pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_by_NID"] + pub fn X509v3_get_ext_by_NID( + x: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_by_OBJ"] + pub fn X509v3_get_ext_by_OBJ( + x: *const stack_st_X509_EXTENSION, obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext_by_critical"] + pub fn X509v3_get_ext_by_critical( + x: *const stack_st_X509_EXTENSION, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::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, -} -#[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) - ) - ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ATTRIBUTE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_get_ext"] + pub fn X509v3_get_ext( + x: *const stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -pub type sk_X509_ATTRIBUTE_free_func = - ::std::option::Option; -pub type sk_X509_ATTRIBUTE_copy_func = - ::std::option::Option *mut X509_ATTRIBUTE>; -pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ATTRIBUTE, - arg2: *mut *const X509_ATTRIBUTE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ATTRIBUTE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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_fips_0_13_0_X509v3_delete_ext"] + pub fn X509v3_delete_ext( + x: *mut stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAME { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509v3_add_ext"] + pub fn X509v3_add_ext( + x: *mut *mut stack_st_X509_EXTENSION, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut stack_st_X509_EXTENSION; } #[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: *mut x509_trust_st, - 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, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct otherName_st { + pub type_id: *mut ASN1_OBJECT, + pub value: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_otherName_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)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(otherName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) + concat!("Alignment of ", stringify!(otherName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_id) 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!(otherName_st), "::", - stringify!(flags) + stringify!(type_id) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) 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!(otherName_st), "::", - stringify!(arg2) + stringify!(value) ) ); } -impl Default for x509_trust_st { +impl Default for otherName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20846,156 +20911,49 @@ impl Default for x509_trust_st { } } } -#[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: *mut *const X509_TRUST, - arg2: *mut *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, ->; -pub type sk_X509_REVOKED_free_func = - ::std::option::Option; -pub type sk_X509_REVOKED_copy_func = - ::std::option::Option *mut X509_REVOKED>; -pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_REVOKED, - arg2: *mut *const X509_REVOKED, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_REVOKED, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAMES { - _unused: [u8; 0], -} +pub type OTHERNAME = otherName_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub version: ::std::os::raw::c_int, - pub enc_algor: *mut X509_ALGOR, - pub enc_pkey: *mut ASN1_OCTET_STRING, - pub dec_pkey: *mut EVP_PKEY, - pub key_length: ::std::os::raw::c_int, - pub key_data: *mut ::std::os::raw::c_char, - pub key_free: ::std::os::raw::c_int, - pub cipher: EVP_CIPHER_INFO, +pub struct EDIPartyName_st { + pub nameAssigner: *mut ASN1_STRING, + pub partyName: *mut ASN1_STRING, } #[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_EDIPartyName_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(private_key_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(EDIPartyName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(private_key_st)) + concat!("Alignment of ", stringify!(EDIPartyName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(version) + stringify!(nameAssigner) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_algor) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_length) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_data) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_free) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(cipher) + stringify!(partyName) ) ); } -impl Default for private_key_st { +impl Default for EDIPartyName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21004,1307 +20962,1066 @@ impl Default for private_key_st { } } } +pub type EDIPARTYNAME = EDIPartyName_st; #[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, +#[derive(Copy, Clone)] +pub struct GENERAL_NAME_st { + pub type_: ::std::os::raw::c_int, + pub d: GENERAL_NAME_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union GENERAL_NAME_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub otherName: *mut OTHERNAME, + pub rfc822Name: *mut ASN1_IA5STRING, + pub dNSName: *mut ASN1_IA5STRING, + pub x400Address: *mut ASN1_STRING, + pub directoryName: *mut X509_NAME, + pub ediPartyName: *mut EDIPARTYNAME, + pub uniformResourceIdentifier: *mut ASN1_IA5STRING, + pub iPAddress: *mut ASN1_OCTET_STRING, + pub registeredID: *mut ASN1_OBJECT, + pub ip: *mut ASN1_OCTET_STRING, + pub dirn: *mut X509_NAME, + pub ia5: *mut ASN1_IA5STRING, + pub rid: *mut ASN1_OBJECT, } #[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_GENERAL_NAME_st__bindgen_ty_1() { + 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)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) + concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x509) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(crl) + stringify!(otherName) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x_pkey) + stringify!(rfc822Name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_cipher) + stringify!(dNSName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_len) + stringify!(x400Address) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_data) + stringify!(directoryName) ) ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], -} -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: *mut *const X509_INFO, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).ediPartyName) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(pubkey) + stringify!(ediPartyName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(challenge) + stringify!(uniformResourceIdentifier) ) ); -} -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() - } - } -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(spkac) + stringify!(iPAddress) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(sig_algor) + stringify!(registeredID) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(signature) + stringify!(ip) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dirn) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ia5) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rid) ) ); } -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_fips_0_12_15_X509_get_pathlen"] - pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_verify"] - pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_verify"] - pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_verify"] - pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *mut NETSCAPE_SPKI) -> *mut EVP_PKEY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_ATTRIBUTE_dup"] - pub fn X509_ATTRIBUTE_dup(xa: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_dup"] - pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_st__bindgen_ty_1 { + 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_fips_0_12_15_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_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_fips_0_12_15_X509_PUBKEY_new"] - pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_new"] + pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_free"] - pub fn X509_PUBKEY_free(a: *mut X509_PUBKEY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_free"] + pub fn GENERAL_NAME_free(gen: *mut GENERAL_NAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_PUBKEY"] - pub fn d2i_X509_PUBKEY( - a: *mut *mut X509_PUBKEY, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_GENERAL_NAME"] + pub fn d2i_GENERAL_NAME( + out: *mut *mut GENERAL_NAME, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_PUBKEY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_PUBKEY"] - pub fn i2d_X509_PUBKEY( - a: *const X509_PUBKEY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_it"] - pub static X509_PUBKEY_it: ASN1_ITEM; + ) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_set"] - pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_GENERAL_NAME"] + pub fn i2d_GENERAL_NAME(in_: *mut GENERAL_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PUBKEY_get"] - pub fn X509_PUBKEY_get(key: *mut X509_PUBKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_dup"] + pub fn GENERAL_NAME_dup(gen: *mut GENERAL_NAME) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAMES_new"] + pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_SIG_free"] - pub fn X509_SIG_free(a: *mut X509_SIG); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAMES_free"] + pub fn GENERAL_NAMES_free(gens: *mut GENERAL_NAMES); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - a: *mut *mut X509_SIG, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_GENERAL_NAMES"] + pub fn d2i_GENERAL_NAMES( + out: *mut *mut GENERAL_NAMES, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_SIG"] - pub fn i2d_X509_SIG( - a: *const X509_SIG, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + ) -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_new"] - pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_GENERAL_NAMES"] + pub fn i2d_GENERAL_NAMES(in_: *mut GENERAL_NAMES, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_free"] - pub fn X509_ATTRIBUTE_free(a: *mut X509_ATTRIBUTE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OTHERNAME_new"] + pub fn OTHERNAME_new() -> *mut OTHERNAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_ATTRIBUTE"] - pub fn d2i_X509_ATTRIBUTE( - a: *mut *mut X509_ATTRIBUTE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OTHERNAME_free"] + pub fn OTHERNAME_free(name: *mut OTHERNAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_ATTRIBUTE"] - pub fn i2d_X509_ATTRIBUTE( - a: *const X509_ATTRIBUTE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EDIPARTYNAME_new"] + pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_it"] - pub static X509_ATTRIBUTE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EDIPARTYNAME_free"] + pub fn EDIPARTYNAME_free(name: *mut EDIPARTYNAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_ATTRIBUTE_create"] - pub fn X509_ATTRIBUTE_create( - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_set0_value"] + pub fn GENERAL_NAME_set0_value( + gen: *mut GENERAL_NAME, + type_: ::std::os::raw::c_int, value: *mut ::std::os::raw::c_void, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_add1_trust_object"] - pub fn X509_add1_trust_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_add1_reject_object"] - pub fn X509_add1_reject_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_trust_clear"] - pub fn X509_trust_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_reject_clear"] - pub fn X509_reject_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_X509_REVOKED_new"] - pub fn X509_REVOKED_new() -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_free"] - pub fn X509_REVOKED_free(a: *mut X509_REVOKED); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_X509_REVOKED"] - pub fn d2i_X509_REVOKED( - a: *mut *mut X509_REVOKED, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_X509_REVOKED"] - pub fn i2d_X509_REVOKED( - a: *const X509_REVOKED, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_it"] - pub static X509_REVOKED_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_get0_value"] + pub fn GENERAL_NAME_get0_value( + gen: *const GENERAL_NAME, + out_type: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_add0_revoked"] - pub fn X509_CRL_add0_revoked( - crl: *mut X509_CRL, - rev: *mut X509_REVOKED, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_set0_othername"] + pub fn GENERAL_NAME_set0_othername( + gen: *mut GENERAL_NAME, + oid: *mut ASN1_OBJECT, + value: *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_by_serial"] - pub fn X509_CRL_get0_by_serial( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - serial: *mut ASN1_INTEGER, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_NAME_get0_otherName"] + pub fn GENERAL_NAME_get0_otherName( + gen: *const GENERAL_NAME, + out_oid: *mut *mut ASN1_OBJECT, + out_value: *mut *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_get0_by_cert"] - pub fn X509_CRL_get0_by_cert( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - x: *mut X509, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ALGOR { + _unused: [u8; 0], } +pub type sk_X509_ALGOR_free_func = + ::std::option::Option; +pub type sk_X509_ALGOR_copy_func = + ::std::option::Option *mut X509_ALGOR>; +pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ALGOR, + arg2: *const *const X509_ALGOR, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ALGOR, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PKEY_new"] - pub fn X509_PKEY_new() -> *mut X509_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_it"] + pub static X509_ALGOR_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PKEY_free"] - pub fn X509_PKEY_free(a: *mut X509_PKEY); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_new"] + pub fn X509_ALGOR_new() -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_dup"] + pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(a: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_free"] + pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - a: *mut *mut NETSCAPE_SPKI, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_ALGOR"] + pub fn d2i_X509_ALGOR( + out: *mut *mut X509_ALGOR, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - a: *const NETSCAPE_SPKI, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(a: *mut NETSCAPE_SPKAC); + ) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - a: *mut *mut NETSCAPE_SPKAC, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_ALGOR"] + pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - a: *const NETSCAPE_SPKAC, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_set0"] + pub fn X509_ALGOR_set0( + alg: *mut X509_ALGOR, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_INFO_new"] - pub fn X509_INFO_new() -> *mut X509_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_INFO_free"] - pub fn X509_INFO_free(a: *mut X509_INFO); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - a: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ALGOR_get0"] + pub fn X509_ALGOR_get0( + out_obj: *mut *const ASN1_OBJECT, + out_param_type: *mut ::std::os::raw::c_int, + out_param_value: *mut *const ::std::os::raw::c_void, + alg: *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_set_md"] + pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_cmp"] + pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ATTRIBUTE { + _unused: [u8; 0], } +pub type sk_X509_ATTRIBUTE_free_func = + ::std::option::Option; +pub type sk_X509_ATTRIBUTE_copy_func = + ::std::option::Option *mut X509_ATTRIBUTE>; +pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ATTRIBUTE, + arg2: *const *const X509_ATTRIBUTE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ATTRIBUTE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_it"] + pub static X509_ATTRIBUTE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_new"] + pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_extension_nid"] - pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_dup"] + pub fn X509_ATTRIBUTE_dup(attr: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_extensions"] - pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_free"] + pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add_extensions_nid"] - pub fn X509_REQ_add_extensions_nid( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_ATTRIBUTE"] + pub fn d2i_X509_ATTRIBUTE( + out: *mut *mut X509_ATTRIBUTE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add_extensions"] - pub fn X509_REQ_add_extensions( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_X509_ATTRIBUTE"] + pub fn i2d_X509_ATTRIBUTE( + alg: *const X509_ATTRIBUTE, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr_count"] - pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create"] + pub fn X509_ATTRIBUTE_create( + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr_by_NID"] - pub fn X509_REQ_get_attr_by_NID( - req: *const X509_REQ, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_NID"] + pub fn X509_ATTRIBUTE_create_by_NID( + attr: *mut *mut X509_ATTRIBUTE, nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr_by_OBJ"] - pub fn X509_REQ_get_attr_by_OBJ( - req: *const X509_REQ, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_OBJ"] + pub fn X509_ATTRIBUTE_create_by_OBJ( + attr: *mut *mut X509_ATTRIBUTE, obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get_attr"] - pub fn X509_REQ_get_attr( - req: *const X509_REQ, - loc: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_delete_attr"] - pub fn X509_REQ_delete_attr( - req: *mut X509_REQ, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_txt"] + pub fn X509_ATTRIBUTE_create_by_txt( + attr: *mut *mut X509_ATTRIBUTE, + attrname: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr"] - pub fn X509_REQ_add1_attr( - req: *mut X509_REQ, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_object"] + pub fn X509_ATTRIBUTE_set1_object( attr: *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_OBJ"] - pub fn X509_REQ_add1_attr_by_OBJ( - req: *mut X509_REQ, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_data"] + pub fn X509_ATTRIBUTE_set1_data( + attr: *mut X509_ATTRIBUTE, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, + data: *const ::std::os::raw::c_void, len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_NID"] - pub fn X509_REQ_add1_attr_by_NID( - req: *mut X509_REQ, - nid: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_data"] + pub fn X509_ATTRIBUTE_get0_data( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + unused: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_txt"] - pub fn X509_REQ_add1_attr_by_txt( - req: *mut X509_REQ, - attrname: *const ::std::os::raw::c_char, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_count"] + pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_CRL_sort"] - pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_object"] + pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get0_serialNumber"] - pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_type"] + pub fn X509_ATTRIBUTE_get0_type( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_set_serialNumber"] - pub fn X509_REVOKED_set_serialNumber( - revoked: *mut X509_REVOKED, - serial: *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get0_revocationDate"] - pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_set_revocationDate"] - pub fn X509_REVOKED_set_revocationDate( - revoked: *mut X509_REVOKED, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get0_extensions"] - pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_diff"] - pub fn X509_CRL_diff( - base: *mut X509_CRL, - newer: *mut X509_CRL, - skey: *mut EVP_PKEY, - md: *const EVP_MD, - flags: ::std::os::raw::c_uint, - ) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_check_private_key"] - pub fn X509_REQ_check_private_key( - x509: *mut X509_REQ, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_check_private_key"] - pub fn X509_check_private_key(x509: *mut X509, pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_cmp"] - pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_hash"] - pub fn X509_NAME_hash(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - bp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_print_fp"] - pub fn X509_print_fp(bp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(bp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(bp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_get_ext_d2i"] - pub fn X509_get_ext_d2i( - x509: *const X509, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_add1_ext_i2d"] - pub fn X509_add1_ext_i2d( - x: *mut X509, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_get_ext_d2i"] - pub fn X509_CRL_get_ext_d2i( - crl: *const X509_CRL, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_add1_ext_i2d"] - pub fn X509_CRL_add1_ext_i2d( - x: *mut X509_CRL, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_get_ext_count"] - pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_NID"] - pub fn X509_REVOKED_get_ext_by_NID( - x: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_OBJ"] - pub fn X509_REVOKED_get_ext_by_OBJ( - x: *const X509_REVOKED, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_critical"] - pub fn X509_REVOKED_get_ext_by_critical( - x: *const X509_REVOKED, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext"] - pub fn X509_REVOKED_get_ext( - x: *const X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_delete_ext"] - pub fn X509_REVOKED_delete_ext( - x: *mut X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REVOKED_add_ext"] - pub fn X509_REVOKED_add_ext( - x: *mut X509_REVOKED, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_d2i"] - pub fn X509_REVOKED_get_ext_d2i( - revoked: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_add1_ext_i2d"] - pub fn X509_REVOKED_add1_ext_i2d( - x: *mut X509_REVOKED, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_count"] - pub fn X509at_get_attr_count(x: *const stack_st_X509_ATTRIBUTE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509at_get_attr_by_NID"] - pub fn X509at_get_attr_by_NID( - x: *const stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_by_OBJ"] - pub fn X509at_get_attr_by_OBJ( - sk: *const stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr"] - pub fn X509at_get_attr( - x: *const stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_delete_attr"] - pub fn X509at_delete_attr( - x: *mut stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr"] - pub fn X509at_add1_attr( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attr: *mut X509_ATTRIBUTE, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_OBJ"] - pub fn X509at_add1_attr_by_OBJ( - x: *mut *mut stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_NID"] - pub fn X509at_add1_attr_by_NID( - x: *mut *mut stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_txt"] - pub fn X509at_add1_attr_by_txt( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_NID"] - pub fn X509_ATTRIBUTE_create_by_NID( - attr: *mut *mut X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_OBJ"] - pub fn X509_ATTRIBUTE_create_by_OBJ( - attr: *mut *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_txt"] - pub fn X509_ATTRIBUTE_create_by_txt( - attr: *mut *mut X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_object"] - pub fn X509_ATTRIBUTE_set1_object( - attr: *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_data"] - pub fn X509_ATTRIBUTE_set1_data( - attr: *mut X509_ATTRIBUTE, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_data"] - pub fn X509_ATTRIBUTE_get0_data( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - unused: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_count"] - pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_object"] - pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_type"] - pub fn X509_ATTRIBUTE_get0_type( - attr: *mut X509_ATTRIBUTE, - 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) + ) + ); +} +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_fips_0_12_15_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(a: *mut PKCS8_PRIV_KEY_INFO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - a: *mut *mut PKCS8_PRIV_KEY_INFO, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_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 PKCS8_PRIV_KEY_INFO; + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - a: *const PKCS8_PRIV_KEY_INFO, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_set0_param"] - pub fn X509_PUBKEY_set0_param( - pub_: *mut X509_PUBKEY, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - key: *mut u8, - key_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_param"] - pub fn X509_PUBKEY_get0_param( - out_obj: *mut *mut ASN1_OBJECT, - out_key: *mut *const u8, - out_key_len: *mut ::std::os::raw::c_int, - out_alg: *mut *mut X509_ALGOR, - pub_: *mut X509_PUBKEY, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_public_key"] - pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::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_fips_0_12_15_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *mut X509_TRUST; +#[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) + ) + ); +} +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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_TRUST_add"] - pub fn X509_TRUST_add( - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_TRUST_cleanup"] - pub fn X509_TRUST_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -22366,1435 +22083,967 @@ fn bindgen_test_layout_rsa_pss_params_st() { "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) - ) - ); -} -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_fips_0_12_15_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(a: *mut RSA_PSS_PARAMS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - a: *mut *mut RSA_PSS_PARAMS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - a: *const RSA_PSS_PARAMS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_LOOKUP { - _unused: [u8; 0], -} -pub type sk_X509_LOOKUP_free_func = - ::std::option::Option; -pub type sk_X509_LOOKUP_copy_func = - ::std::option::Option *mut X509_LOOKUP>; -pub type sk_X509_LOOKUP_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_LOOKUP, - arg2: *mut *const X509_LOOKUP, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_LOOKUP_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_LOOKUP, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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: *mut *const X509_OBJECT, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_VERIFY_PARAM { - _unused: [u8; 0], -} -pub type sk_X509_VERIFY_PARAM_free_func = - ::std::option::Option; -pub type sk_X509_VERIFY_PARAM_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_VERIFY_PARAM) -> *mut X509_VERIFY_PARAM, ->; -pub type sk_X509_VERIFY_PARAM_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_VERIFY_PARAM, - arg2: *mut *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_VERIFY_PARAM_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_VERIFY_PARAM, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -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, ->; -pub type X509_STORE_CTX_verify_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_get_issuer_fn = ::std::option::Option< - unsafe extern "C" fn( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_issued_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - x: *mut X509, - issuer: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_revocation_fn = - ::std::option::Option ::std::os::raw::c_int>; -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, ->; -pub type X509_STORE_CTX_cert_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_policy_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_lookup_certs_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509, ->; -pub type X509_STORE_CTX_lookup_crls_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509_CRL, ->; -pub type X509_STORE_CTX_cleanup_fn = - ::std::option::Option ::std::os::raw::c_int>; + 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) + ) + ); +} +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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_OBJECT_idx_by_subject"] - pub fn X509_OBJECT_idx_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_OBJECT_retrieve_by_subject"] - pub fn X509_OBJECT_retrieve_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_OBJECT_retrieve_match"] - pub fn X509_OBJECT_retrieve_match( - h: *mut stack_st_X509_OBJECT, - x: *mut X509_OBJECT, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_up_ref_count"] - pub fn X509_OBJECT_up_ref_count(a: *mut X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_free_contents"] - pub fn X509_OBJECT_free_contents(a: *mut X509_OBJECT); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(a: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(a: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_free"] - pub fn X509_STORE_free(v: *mut X509_STORE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_get1_certs"] - pub fn X509_STORE_get1_certs(st: *mut X509_STORE_CTX, nm: *mut X509_NAME) - -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get1_crls"] - pub fn X509_STORE_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - ctx: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - ctx: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - ctx: *mut X509_STORE, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - ctx: *mut X509_STORE, - pm: *mut X509_VERIFY_PARAM, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(ctx: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify"] - pub fn X509_STORE_set_verify(ctx: *mut X509_STORE, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - pub fn X509_STORE_CTX_set_verify(ctx: *mut X509_STORE_CTX, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify"] - pub fn X509_STORE_get_verify(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(ctx: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify_cb"] - pub fn X509_STORE_get_verify_cb(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_cb; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_issuer"] - pub fn X509_STORE_set_get_issuer( - ctx: *mut X509_STORE, - get_issuer: X509_STORE_CTX_get_issuer_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_issuer"] - pub fn X509_STORE_get_get_issuer(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_issuer_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_issued"] - pub fn X509_STORE_set_check_issued( - ctx: *mut X509_STORE, - check_issued: X509_STORE_CTX_check_issued_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_issued"] - pub fn X509_STORE_get_check_issued(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_issued_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_revocation"] - pub fn X509_STORE_set_check_revocation( - ctx: *mut X509_STORE, - check_revocation: X509_STORE_CTX_check_revocation_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_get_check_revocation"] - pub fn X509_STORE_get_check_revocation( - ctx: *mut X509_STORE, - ) -> X509_STORE_CTX_check_revocation_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(ctx: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_crl"] - pub fn X509_STORE_get_get_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_crl_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(ctx: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_crl"] - pub fn X509_STORE_get_check_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_crl_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cert_crl"] - pub fn X509_STORE_set_cert_crl(ctx: *mut X509_STORE, cert_crl: X509_STORE_CTX_cert_crl_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cert_crl"] - pub fn X509_STORE_get_cert_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_cert_crl_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_certs"] - pub fn X509_STORE_set_lookup_certs( - ctx: *mut X509_STORE, - lookup_certs: X509_STORE_CTX_lookup_certs_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_certs"] - pub fn X509_STORE_get_lookup_certs(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_certs_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_crls"] - pub fn X509_STORE_set_lookup_crls( - ctx: *mut X509_STORE, - lookup_crls: X509_STORE_CTX_lookup_crls_fn, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_crls"] - pub fn X509_STORE_get_lookup_crls(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_crls_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cleanup"] - pub fn X509_STORE_set_cleanup(ctx: *mut X509_STORE, cleanup: X509_STORE_CTX_cleanup_fn); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cleanup"] - pub fn X509_STORE_get_cleanup(ctx: *mut X509_STORE) -> X509_STORE_CTX_cleanup_fn; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_zero"] - pub fn X509_STORE_CTX_zero(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *mut X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_get_by_subject"] - pub fn X509_STORE_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_new"] - pub fn X509_LOOKUP_new(method: *mut X509_LOOKUP_METHOD) -> *mut X509_LOOKUP; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_init"] - pub fn X509_LOOKUP_init(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_by_subject"] - pub fn X509_LOOKUP_by_subject( - ctx: *mut X509_LOOKUP, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_shutdown"] - pub fn X509_LOOKUP_shutdown(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_name"] - pub fn X509_VERIFY_PARAM_set1_name( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_peername"] - pub fn X509_VERIFY_PARAM_get0_peername( - arg1: *mut X509_VERIFY_PARAM, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_13_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_name"] - pub fn X509_VERIFY_PARAM_get0_name( - param: *const X509_VERIFY_PARAM, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add0_table"] - pub fn X509_VERIFY_PARAM_add0_table(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get_count"] - pub fn X509_VERIFY_PARAM_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0"] - pub fn X509_VERIFY_PARAM_get0(id: ::std::os::raw::c_int) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_lookup"] - pub fn X509_VERIFY_PARAM_lookup( - name: *const ::std::os::raw::c_char, - ) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_table_cleanup"] - pub fn X509_VERIFY_PARAM_table_cleanup(); -} -pub type X509V3_EXT_METHOD = v3_ext_method; -pub type X509V3_EXT_NEW = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type X509V3_EXT_FREE = - ::std::option::Option; -pub type X509V3_EXT_D2I = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2D = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_I2V = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE, ->; -pub type X509V3_EXT_V2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - values: *const stack_st_CONF_VALUE, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2S = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; -pub type X509V3_EXT_S2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2R = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - out: *mut BIO, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_R2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_method { - pub ext_nid: ::std::os::raw::c_int, - pub ext_flags: ::std::os::raw::c_int, - pub it: *const ASN1_ITEM_st, - pub ext_new: X509V3_EXT_NEW, - pub ext_free: X509V3_EXT_FREE, - pub d2i: X509V3_EXT_D2I, - pub i2d: X509V3_EXT_I2D, - pub i2s: X509V3_EXT_I2S, - pub s2i: X509V3_EXT_S2I, - pub i2v: X509V3_EXT_I2V, - pub v2i: X509V3_EXT_V2I, - pub i2r: X509V3_EXT_I2R, - pub r2i: X509V3_EXT_R2I, - pub usr_data: *mut ::std::os::raw::c_void, -} -#[test] -fn bindgen_test_layout_v3_ext_method() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 104usize, - concat!("Size of: ", stringify!(v3_ext_method)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_method)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_nid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(it) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2s) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(s2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2v) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(v2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(r2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(usr_data) - ) - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -impl Default for v3_ext_method { - 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_fips_0_13_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; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509V3_EXT_METHOD { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -pub type sk_X509V3_EXT_METHOD_free_func = - ::std::option::Option; -pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, ->; -pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509V3_EXT_METHOD, - arg2: *mut *const X509V3_EXT_METHOD, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509V3_EXT_METHOD, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct BASIC_CONSTRAINTS_st { - pub ca: ::std::os::raw::c_int, - pub pathlen: *mut ASN1_INTEGER, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_BASIC_CONSTRAINTS_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!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(ca) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(pathlen) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } -impl Default for BASIC_CONSTRAINTS_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_fips_0_13_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct otherName_st { - pub type_id: *mut ASN1_OBJECT, - pub value: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_otherName_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!(otherName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(otherName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(type_id) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; } -impl Default for otherName_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_fips_0_13_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; } -pub type OTHERNAME = otherName_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EDIPartyName_st { - pub nameAssigner: *mut ASN1_STRING, - pub partyName: *mut ASN1_STRING, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_EDIPartyName_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!(EDIPartyName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EDIPartyName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(nameAssigner) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(partyName) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -impl Default for EDIPartyName_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_fips_0_13_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; } -pub type EDIPARTYNAME = EDIPartyName_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct GENERAL_NAME_st { - pub type_: ::std::os::raw::c_int, - pub d: GENERAL_NAME_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union GENERAL_NAME_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub otherName: *mut OTHERNAME, - pub rfc822Name: *mut ASN1_IA5STRING, - pub dNSName: *mut ASN1_IA5STRING, - pub x400Address: *mut ASN1_STRING, - pub directoryName: *mut X509_NAME, - pub ediPartyName: *mut EDIPARTYNAME, - pub uniformResourceIdentifier: *mut ASN1_IA5STRING, - pub iPAddress: *mut ASN1_OCTET_STRING, - pub registeredID: *mut ASN1_OBJECT, - pub ip: *mut ASN1_OCTET_STRING, - pub dirn: *mut X509_NAME, - pub ia5: *mut ASN1_IA5STRING, - pub rid: *mut ASN1_OBJECT, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_GENERAL_NAME_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + concat!("Size of: ", stringify!(private_key_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(otherName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(rfc822Name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(dNSName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(x400Address) - ) + concat!("Alignment of ", stringify!(private_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(private_key_st), "::", - stringify!(directoryName) + 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).ediPartyName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ediPartyName) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(uniformResourceIdentifier) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(iPAddress) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(registeredID) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ip) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(dirn) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ia5) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(rid) + stringify!(enc_data) ) ); } -impl Default for GENERAL_NAME_st__bindgen_ty_1 { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23803,127 +23052,116 @@ impl Default for GENERAL_NAME_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(d) - ) - ); -} -impl Default for GENERAL_NAME_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)] +pub struct stack_st_X509_INFO { + _unused: [u8; 0], } -pub type GENERAL_NAME = GENERAL_NAME_st; -pub type sk_GENERAL_NAME_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAME_copy_func = - ::std::option::Option *mut GENERAL_NAME>; -pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const GENERAL_NAME, - arg2: *mut *const GENERAL_NAME, - ) -> ::std::os::raw::c_int, ->; -pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut GENERAL_NAME, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type GENERAL_NAMES = stack_st_GENERAL_NAME; -pub type sk_GENERAL_NAMES_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAMES_copy_func = - ::std::option::Option *mut GENERAL_NAMES>; -pub type sk_GENERAL_NAMES_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: *mut *const GENERAL_NAMES, - arg2: *mut *const GENERAL_NAMES, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_NAMES_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_NAMES, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ACCESS_DESCRIPTION_st { - pub method: *mut ASN1_OBJECT, - pub location: *mut GENERAL_NAME, +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_ACCESS_DESCRIPTION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), - 16usize, - concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) + concat!("Alignment of ", stringify!(v3_ext_ctx)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(method) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(location) + 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 ACCESS_DESCRIPTION_st { +impl Default for v3_ext_ctx { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23932,138 +23170,317 @@ impl Default for ACCESS_DESCRIPTION_st { } } } -pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ACCESS_DESCRIPTION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -pub type sk_ACCESS_DESCRIPTION_free_func = - ::std::option::Option; -pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, ->; -pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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: *mut *const ACCESS_DESCRIPTION, - arg2: *mut *const ACCESS_DESCRIPTION, + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, ) -> ::std::os::raw::c_int, >; -pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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, + >, + ); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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( - arg1: *mut ACCESS_DESCRIPTION, - arg2: *mut ::std::os::raw::c_void, + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, ) -> ::std::os::raw::c_int, >; -pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; -pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DIST_POINT_NAME_st { - pub type_: ::std::os::raw::c_int, - pub name: DIST_POINT_NAME_st__bindgen_ty_1, - pub dpname: *mut X509_NAME, +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_fips_0_13_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); } -#[repr(C)] -#[derive(Copy, Clone)] -pub union DIST_POINT_NAME_st__bindgen_ty_1 { - pub fullname: *mut GENERAL_NAMES, - pub relativename: *mut stack_st_X509_NAME_ENTRY, +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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); } -#[test] -fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { - 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!(DIST_POINT_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!( - "Alignment of ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(fullname) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(relativename) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { - 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_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_DIST_POINT_NAME_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 24usize, - concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) + concat!("Alignment of ", stringify!(X509_algor_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(type_) + stringify!(algorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(dpname) + stringify!(parameter) ) ); } -impl Default for DIST_POINT_NAME_st { +impl Default for X509_algor_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24072,199 +23489,103 @@ impl Default for DIST_POINT_NAME_st { } } } -pub type DIST_POINT_NAME = DIST_POINT_NAME_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DIST_POINT_st { - pub distpoint: *mut DIST_POINT_NAME, - pub reasons: *mut ASN1_BIT_STRING, - pub CRLissuer: *mut GENERAL_NAMES, - pub dp_reasons: ::std::os::raw::c_int, +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, } #[test] -fn bindgen_test_layout_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 32usize, - concat!("Size of: ", stringify!(DIST_POINT_st)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_st)) + concat!("Alignment of ", stringify!(x509_trust_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(distpoint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(reasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(CRLissuer) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dp_reasons) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), + stringify!(x509_trust_st), "::", - stringify!(dp_reasons) + stringify!(trust) ) ); -} -impl Default for DIST_POINT_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() - } - } -} -pub type CRL_DIST_POINTS = stack_st_DIST_POINT; -pub type sk_DIST_POINT_free_func = - ::std::option::Option; -pub type sk_DIST_POINT_copy_func = - ::std::option::Option *mut DIST_POINT>; -pub type sk_DIST_POINT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const DIST_POINT, - arg2: *mut *const DIST_POINT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut DIST_POINT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct AUTHORITY_KEYID_st { - pub keyid: *mut ASN1_OCTET_STRING, - pub issuer: *mut GENERAL_NAMES, - pub serial: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_AUTHORITY_KEYID_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!(AUTHORITY_KEYID_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(keyid) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(issuer) + stringify!(check_trust) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(serial) + stringify!(name) ) ); -} -impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { - pub organization: *mut ASN1_STRING, - pub noticenos: *mut stack_st_ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_NOTICEREF_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!(NOTICEREF_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NOTICEREF_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(organization) + stringify!(arg1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(noticenos) + stringify!(arg2) ) ); } -impl Default for NOTICEREF_st { +impl Default for x509_trust_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24273,391 +23594,495 @@ impl Default for NOTICEREF_st { } } } -pub type NOTICEREF = NOTICEREF_st; +#[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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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>; +pub type X509V3_EXT_FREE = + ::std::option::Option; +pub type X509V3_EXT_D2I = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2D = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_I2V = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE, +>; +pub type X509V3_EXT_V2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + values: *const stack_st_CONF_VALUE, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2S = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; +pub type X509V3_EXT_S2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2R = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + out: *mut BIO, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_R2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct USERNOTICE_st { - pub noticeref: *mut NOTICEREF, - pub exptext: *mut ASN1_STRING, +pub struct v3_ext_method { + pub ext_nid: ::std::os::raw::c_int, + pub ext_flags: ::std::os::raw::c_int, + pub it: *const ASN1_ITEM_st, + pub ext_new: X509V3_EXT_NEW, + pub ext_free: X509V3_EXT_FREE, + pub d2i: X509V3_EXT_D2I, + pub i2d: X509V3_EXT_I2D, + pub i2s: X509V3_EXT_I2S, + pub s2i: X509V3_EXT_S2I, + pub i2v: X509V3_EXT_I2V, + pub v2i: X509V3_EXT_V2I, + pub i2r: X509V3_EXT_I2R, + pub r2i: X509V3_EXT_R2I, + pub usr_data: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_USERNOTICE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_v3_ext_method() { + 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!(USERNOTICE_st)) + ::std::mem::size_of::(), + 104usize, + concat!("Size of: ", stringify!(v3_ext_method)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(USERNOTICE_st)) + concat!("Alignment of ", stringify!(v3_ext_method)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(noticeref) + stringify!(ext_nid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(exptext) + stringify!(ext_flags) ) ); -} -impl Default for USERNOTICE_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() - } - } -} -pub type USERNOTICE = USERNOTICE_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct POLICYQUALINFO_st { - pub pqualid: *mut ASN1_OBJECT, - pub d: POLICYQUALINFO_st__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union POLICYQUALINFO_st__bindgen_ty_1 { - pub cpsuri: *mut ASN1_IA5STRING, - pub usernotice: *mut USERNOTICE, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { - 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!(POLICYQUALINFO_st__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(cpsuri) + stringify!(it) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(usernotice) + stringify!(ext_new) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(other) + stringify!(ext_free) ) ); -} -impl Default for POLICYQUALINFO_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(pqualid) + stringify!(d2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(d) + stringify!(i2d) ) ); -} -impl Default for POLICYQUALINFO_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() - } - } -} -pub type POLICYQUALINFO = POLICYQUALINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYQUALINFO { - _unused: [u8; 0], -} -pub type sk_POLICYQUALINFO_free_func = - ::std::option::Option; -pub type sk_POLICYQUALINFO_copy_func = - ::std::option::Option *mut POLICYQUALINFO>; -pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYQUALINFO, - arg2: *mut *const POLICYQUALINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYQUALINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICYINFO_st { - pub policyid: *mut ASN1_OBJECT, - pub qualifiers: *mut stack_st_POLICYQUALINFO, -} -#[test] -fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYINFO_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, - 0usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(policyid) + stringify!(i2s) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(qualifiers) + stringify!(s2i) ) ); -} -impl Default for POLICYINFO_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() - } - } -} -pub type POLICYINFO = POLICYINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYINFO { - _unused: [u8; 0], -} -pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; -pub type sk_POLICYINFO_free_func = - ::std::option::Option; -pub type sk_POLICYINFO_copy_func = - ::std::option::Option *mut POLICYINFO>; -pub type sk_POLICYINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYINFO, - arg2: *mut *const POLICYINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_MAPPING_st { - pub issuerDomainPolicy: *mut ASN1_OBJECT, - pub subjectDomainPolicy: *mut ASN1_OBJECT, -} -#[test] -fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(issuerDomainPolicy) + stringify!(i2v) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(subjectDomainPolicy) + stringify!(v2i) ) ); -} -impl Default for POLICY_MAPPING_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() - } - } -} -pub type POLICY_MAPPING = POLICY_MAPPING_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICY_MAPPING { - _unused: [u8; 0], -} -pub type sk_POLICY_MAPPING_free_func = - ::std::option::Option; -pub type sk_POLICY_MAPPING_copy_func = - ::std::option::Option *mut POLICY_MAPPING>; -pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICY_MAPPING, - arg2: *mut *const POLICY_MAPPING, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICY_MAPPING, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct GENERAL_SUBTREE_st { - pub base: *mut GENERAL_NAME, - pub minimum: *mut ASN1_INTEGER, - pub maximum: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(base) + stringify!(i2r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(minimum) + stringify!(r2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(maximum) + stringify!(usr_data) ) ); } -impl Default for GENERAL_SUBTREE_st { +impl Default for v3_ext_method { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24666,71 +24091,70 @@ impl Default for GENERAL_SUBTREE_st { } } } -pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_SUBTREE { +pub struct stack_st_X509V3_EXT_METHOD { _unused: [u8; 0], } -pub type sk_GENERAL_SUBTREE_free_func = - ::std::option::Option; -pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +pub type sk_X509V3_EXT_METHOD_free_func = + ::std::option::Option; +pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, >; -pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const GENERAL_SUBTREE, - arg2: *mut *const GENERAL_SUBTREE, + arg1: *const *const X509V3_EXT_METHOD, + arg2: *const *const X509V3_EXT_METHOD, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_SUBTREE, + arg1: *mut X509V3_EXT_METHOD, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct NAME_CONSTRAINTS_st { - pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, - pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, +pub struct BASIC_CONSTRAINTS_st { + pub ca: ::std::os::raw::c_int, + pub pathlen: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_NAME_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_BASIC_CONSTRAINTS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(permittedSubtrees) + stringify!(ca) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(excludedSubtrees) + stringify!(pathlen) ) ); } -impl Default for NAME_CONSTRAINTS_st { +impl Default for BASIC_CONSTRAINTS_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24741,47 +24165,47 @@ impl Default for NAME_CONSTRAINTS_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_CONSTRAINTS_st { - pub requireExplicitPolicy: *mut ASN1_INTEGER, - pub inhibitPolicyMapping: *mut ASN1_INTEGER, +pub struct ACCESS_DESCRIPTION_st { + pub method: *mut ASN1_OBJECT, + pub location: *mut GENERAL_NAME, } #[test] -fn bindgen_test_layout_POLICY_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = +fn bindgen_test_layout_ACCESS_DESCRIPTION_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(requireExplicitPolicy) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(inhibitPolicyMapping) + stringify!(location) ) ); } -impl Default for POLICY_CONSTRAINTS_st { +impl Default for ACCESS_DESCRIPTION_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24790,49 +24214,84 @@ impl Default for POLICY_CONSTRAINTS_st { } } } -pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ACCESS_DESCRIPTION { + _unused: [u8; 0], +} +pub type sk_ACCESS_DESCRIPTION_free_func = + ::std::option::Option; +pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, +>; +pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ACCESS_DESCRIPTION, + arg2: *const *const ACCESS_DESCRIPTION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ACCESS_DESCRIPTION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; +pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DIST_POINT_NAME_st { + pub type_: ::std::os::raw::c_int, + pub name: DIST_POINT_NAME_st__bindgen_ty_1, + pub dpname: *mut X509_NAME, +} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_POLICY_st { - pub policyLanguage: *mut ASN1_OBJECT, - pub policy: *mut ASN1_OCTET_STRING, +#[derive(Copy, Clone)] +pub union DIST_POINT_NAME_st__bindgen_ty_1 { + pub fullname: *mut GENERAL_NAMES, + pub relativename: *mut stack_st_X509_NAME_ENTRY, } #[test] -fn bindgen_test_layout_PROXY_POLICY_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { + 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!(PROXY_POLICY_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_POLICY_st)) + concat!( + "Alignment of ", + stringify!(DIST_POINT_NAME_st__bindgen_ty_1) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyLanguage) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policyLanguage) + stringify!(fullname) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policy) + stringify!(relativename) ) ); } -impl Default for PROXY_POLICY_st { +impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24841,50 +24300,52 @@ impl Default for PROXY_POLICY_st { } } } -pub type PROXY_POLICY = PROXY_POLICY_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_CERT_INFO_EXTENSION_st { - pub pcPathLengthConstraint: *mut ASN1_INTEGER, - pub proxyPolicy: *mut PROXY_POLICY, -} #[test] -fn bindgen_test_layout_PROXY_CERT_INFO_EXTENSION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_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!(PROXY_CERT_INFO_EXTENSION_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_CERT_INFO_EXTENSION_st)) + concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pcPathLengthConstraint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), "::", - stringify!(pcPathLengthConstraint) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).proxyPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(DIST_POINT_NAME_st), "::", - stringify!(proxyPolicy) + stringify!(dpname) ) ); } -impl Default for PROXY_CERT_INFO_EXTENSION_st { +impl Default for DIST_POINT_NAME_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24893,148 +24354,60 @@ impl Default for PROXY_CERT_INFO_EXTENSION_st { } } } -pub type PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_POLICY_new"] - pub fn PROXY_POLICY_new() -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_POLICY_free"] - pub fn PROXY_POLICY_free(a: *mut PROXY_POLICY); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PROXY_POLICY"] - pub fn d2i_PROXY_POLICY( - a: *mut *mut PROXY_POLICY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PROXY_POLICY"] - pub fn i2d_PROXY_POLICY( - a: *const PROXY_POLICY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_POLICY_it"] - pub static PROXY_POLICY_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_new"] - pub fn PROXY_CERT_INFO_EXTENSION_new() -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_free"] - pub fn PROXY_CERT_INFO_EXTENSION_free(a: *mut PROXY_CERT_INFO_EXTENSION); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PROXY_CERT_INFO_EXTENSION"] - pub fn d2i_PROXY_CERT_INFO_EXTENSION( - a: *mut *mut PROXY_CERT_INFO_EXTENSION, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PROXY_CERT_INFO_EXTENSION"] - pub fn i2d_PROXY_CERT_INFO_EXTENSION( - a: *const PROXY_CERT_INFO_EXTENSION, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_it"] - pub static PROXY_CERT_INFO_EXTENSION_it: ASN1_ITEM; -} +pub type DIST_POINT_NAME = DIST_POINT_NAME_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ISSUING_DIST_POINT_st { +pub struct DIST_POINT_st { pub distpoint: *mut DIST_POINT_NAME, - pub onlyuser: ::std::os::raw::c_int, - pub onlyCA: ::std::os::raw::c_int, - pub onlysomereasons: *mut ASN1_BIT_STRING, - pub indirectCRL: ::std::os::raw::c_int, - pub onlyattr: ::std::os::raw::c_int, + pub reasons: *mut ASN1_BIT_STRING, + pub CRLissuer: *mut GENERAL_NAMES, } #[test] -fn bindgen_test_layout_ISSUING_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + concat!("Alignment of ", stringify!(DIST_POINT_st)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", stringify!(distpoint) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlyuser) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyCA) + stringify!(reasons) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlysomereasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(indirectCRL) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyattr) + stringify!(CRLissuer) ) ); } -impl Default for ISSUING_DIST_POINT_st { +impl Default for DIST_POINT_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25043,109 +24416,126 @@ impl Default for ISSUING_DIST_POINT_st { } } } +pub type CRL_DIST_POINTS = stack_st_DIST_POINT; +pub type sk_DIST_POINT_free_func = + ::std::option::Option; +pub type sk_DIST_POINT_copy_func = + ::std::option::Option *mut DIST_POINT>; +pub type sk_DIST_POINT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const DIST_POINT, + arg2: *const *const DIST_POINT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut DIST_POINT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_purpose_st { - pub purpose: ::std::os::raw::c_int, - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_purpose: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const x509_purpose_st, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub sname: *mut ::std::os::raw::c_char, - pub usr_data: *mut ::std::os::raw::c_void, +pub struct AUTHORITY_KEYID_st { + pub keyid: *mut ASN1_OCTET_STRING, + pub issuer: *mut GENERAL_NAMES, + pub serial: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_x509_purpose_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_AUTHORITY_KEYID_st() { + 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!(x509_purpose_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_purpose_st)) + concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(purpose) + stringify!(keyid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(trust) + stringify!(issuer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(flags) + stringify!(serial) ) ); +} +impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { + pub organization: *mut ASN1_STRING, + pub noticenos: *mut stack_st_ASN1_INTEGER, +} +#[test] +fn bindgen_test_layout_NOTICEREF_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(check_purpose) - ) + concat!("Size of: ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(name) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(sname) + stringify!(organization) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(usr_data) + stringify!(noticenos) ) ); } -impl Default for x509_purpose_st { +impl Default for NOTICEREF_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25154,1182 +24544,1291 @@ impl Default for x509_purpose_st { } } } -pub type X509_PURPOSE = x509_purpose_st; +pub type NOTICEREF = NOTICEREF_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_PURPOSE { - _unused: [u8; 0], -} -pub type sk_X509_PURPOSE_free_func = - ::std::option::Option; -pub type sk_X509_PURPOSE_copy_func = - ::std::option::Option *mut X509_PURPOSE>; -pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_PURPOSE, - arg2: *mut *const X509_PURPOSE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_PURPOSE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_new"] - pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_free"] - pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_BASIC_CONSTRAINTS"] - pub fn d2i_BASIC_CONSTRAINTS( - a: *mut *mut BASIC_CONSTRAINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_BASIC_CONSTRAINTS"] - pub fn i2d_BASIC_CONSTRAINTS( - a: *const BASIC_CONSTRAINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_it"] - pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_KEYID_new"] - pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_KEYID_free"] - pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_AUTHORITY_KEYID"] - pub fn d2i_AUTHORITY_KEYID( - a: *mut *mut AUTHORITY_KEYID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_AUTHORITY_KEYID"] - pub fn i2d_AUTHORITY_KEYID( - a: *mut AUTHORITY_KEYID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_KEYID_it"] - pub static AUTHORITY_KEYID_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_new"] - pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_free"] - pub fn GENERAL_NAME_free(a: *mut GENERAL_NAME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_GENERAL_NAME"] - pub fn d2i_GENERAL_NAME( - a: *mut *mut GENERAL_NAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_GENERAL_NAME"] - pub fn i2d_GENERAL_NAME( - a: *mut GENERAL_NAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_it"] - pub static GENERAL_NAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_dup"] - pub fn GENERAL_NAME_dup(a: *mut GENERAL_NAME) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_cmp"] - pub fn GENERAL_NAME_cmp( - a: *const GENERAL_NAME, - b: *const GENERAL_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *mut GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAMES_new"] - pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAMES_free"] - pub fn GENERAL_NAMES_free(a: *mut GENERAL_NAMES); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_GENERAL_NAMES"] - pub fn d2i_GENERAL_NAMES( - a: *mut *mut GENERAL_NAMES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_GENERAL_NAMES"] - pub fn i2d_GENERAL_NAMES( - a: *mut GENERAL_NAMES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAMES_it"] - pub static GENERAL_NAMES_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_v2i_GENERAL_NAMES"] - pub fn v2i_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - nval: *const stack_st_CONF_VALUE, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_new"] - pub fn OTHERNAME_new() -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_free"] - pub fn OTHERNAME_free(a: *mut OTHERNAME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OTHERNAME"] - pub fn d2i_OTHERNAME( - a: *mut *mut OTHERNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OTHERNAME"] - pub fn i2d_OTHERNAME( - a: *const OTHERNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_it"] - pub static OTHERNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EDIPARTYNAME_new"] - pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EDIPARTYNAME_free"] - pub fn EDIPARTYNAME_free(a: *mut EDIPARTYNAME); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_EDIPARTYNAME"] - pub fn d2i_EDIPARTYNAME( - a: *mut *mut EDIPARTYNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EDIPARTYNAME"] - pub fn i2d_EDIPARTYNAME( - a: *const EDIPARTYNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EDIPARTYNAME_it"] - pub static EDIPARTYNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OTHERNAME_cmp"] - pub fn OTHERNAME_cmp(a: *mut OTHERNAME, b: *mut OTHERNAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_set0_value"] - pub fn GENERAL_NAME_set0_value( - a: *mut GENERAL_NAME, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_get0_value"] - pub fn GENERAL_NAME_get0_value( - a: *const GENERAL_NAME, - ptype: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_set0_othername"] - pub fn GENERAL_NAME_set0_othername( - gen: *mut GENERAL_NAME, - oid: *mut ASN1_OBJECT, - value: *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_NAME_get0_otherName"] - pub fn GENERAL_NAME_get0_otherName( - gen: *const GENERAL_NAME, - poid: *mut *mut ASN1_OBJECT, - pvalue: *mut *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ia5: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_12_15_EXTENDED_KEY_USAGE_new"] - pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_free"] - pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_EXTENDED_KEY_USAGE"] - pub fn d2i_EXTENDED_KEY_USAGE( - a: *mut *mut EXTENDED_KEY_USAGE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_EXTENDED_KEY_USAGE"] - pub fn i2d_EXTENDED_KEY_USAGE( - a: *const EXTENDED_KEY_USAGE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_it"] - pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2a_ACCESS_DESCRIPTION"] - pub fn i2a_ACCESS_DESCRIPTION( - bp: *mut BIO, - a: *const ACCESS_DESCRIPTION, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_new"] - pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct USERNOTICE_st { + pub noticeref: *mut NOTICEREF, + pub exptext: *mut ASN1_STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_free"] - pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); +#[test] +fn bindgen_test_layout_USERNOTICE_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!(USERNOTICE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(USERNOTICE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(noticeref) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(exptext) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_CERTIFICATEPOLICIES"] - pub fn d2i_CERTIFICATEPOLICIES( - a: *mut *mut CERTIFICATEPOLICIES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CERTIFICATEPOLICIES; +impl Default for USERNOTICE_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_fips_0_12_15_i2d_CERTIFICATEPOLICIES"] - pub fn i2d_CERTIFICATEPOLICIES( - a: *const CERTIFICATEPOLICIES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type USERNOTICE = USERNOTICE_st; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct POLICYQUALINFO_st { + pub pqualid: *mut ASN1_OBJECT, + pub d: POLICYQUALINFO_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_it"] - pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; +#[repr(C)] +#[derive(Copy, Clone)] +pub union POLICYQUALINFO_st__bindgen_ty_1 { + pub cpsuri: *mut ASN1_IA5STRING, + pub usernotice: *mut USERNOTICE, + pub other: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYINFO_new"] - pub fn POLICYINFO_new() -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { + 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!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(cpsuri) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(usernotice) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYINFO_free"] - pub fn POLICYINFO_free(a: *mut POLICYINFO); +impl Default for POLICYQUALINFO_st__bindgen_ty_1 { + 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_fips_0_12_15_d2i_POLICYINFO"] - pub fn d2i_POLICYINFO( - a: *mut *mut POLICYINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(pqualid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_POLICYINFO"] - pub fn i2d_POLICYINFO( - a: *const POLICYINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for POLICYQUALINFO_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_fips_0_12_15_POLICYINFO_it"] - pub static POLICYINFO_it: ASN1_ITEM; +pub type POLICYQUALINFO = POLICYQUALINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYQUALINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYQUALINFO_new"] - pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; +pub type sk_POLICYQUALINFO_free_func = + ::std::option::Option; +pub type sk_POLICYQUALINFO_copy_func = + ::std::option::Option *mut POLICYQUALINFO>; +pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYQUALINFO, + arg2: *const *const POLICYQUALINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYQUALINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICYINFO_st { + pub policyid: *mut ASN1_OBJECT, + pub qualifiers: *mut stack_st_POLICYQUALINFO, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYQUALINFO_free"] - pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); +#[test] +fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(policyid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(qualifiers) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_POLICYQUALINFO"] - pub fn d2i_POLICYQUALINFO( - a: *mut *mut POLICYQUALINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYQUALINFO; +impl Default for POLICYINFO_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_fips_0_12_15_i2d_POLICYQUALINFO"] - pub fn i2d_POLICYQUALINFO( - a: *const POLICYQUALINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICYINFO = POLICYINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICYQUALINFO_it"] - pub static POLICYQUALINFO_it: ASN1_ITEM; +pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; +pub type sk_POLICYINFO_free_func = + ::std::option::Option; +pub type sk_POLICYINFO_copy_func = + ::std::option::Option *mut POLICYINFO>; +pub type sk_POLICYINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYINFO, + arg2: *const *const POLICYINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_MAPPING_st { + pub issuerDomainPolicy: *mut ASN1_OBJECT, + pub subjectDomainPolicy: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_USERNOTICE_new"] - pub fn USERNOTICE_new() -> *mut USERNOTICE; +#[test] +fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(issuerDomainPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(subjectDomainPolicy) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_USERNOTICE_free"] - pub fn USERNOTICE_free(a: *mut USERNOTICE); +impl Default for POLICY_MAPPING_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_fips_0_12_15_d2i_USERNOTICE"] - pub fn d2i_USERNOTICE( - a: *mut *mut USERNOTICE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut USERNOTICE; +pub type POLICY_MAPPING = POLICY_MAPPING_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICY_MAPPING { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_USERNOTICE"] - pub fn i2d_USERNOTICE( - a: *const USERNOTICE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type sk_POLICY_MAPPING_free_func = + ::std::option::Option; +pub type sk_POLICY_MAPPING_copy_func = + ::std::option::Option *mut POLICY_MAPPING>; +pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICY_MAPPING, + arg2: *const *const POLICY_MAPPING, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICY_MAPPING, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct GENERAL_SUBTREE_st { + pub base: *mut GENERAL_NAME, + pub minimum: *mut ASN1_INTEGER, + pub maximum: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_USERNOTICE_it"] - pub static USERNOTICE_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(minimum) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(maximum) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NOTICEREF_new"] - pub fn NOTICEREF_new() -> *mut NOTICEREF; +impl Default for GENERAL_SUBTREE_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_fips_0_12_15_NOTICEREF_free"] - pub fn NOTICEREF_free(a: *mut NOTICEREF); +pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_SUBTREE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_NOTICEREF"] - pub fn d2i_NOTICEREF( - a: *mut *mut NOTICEREF, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NOTICEREF; +pub type sk_GENERAL_SUBTREE_free_func = + ::std::option::Option; +pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +>; +pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_SUBTREE, + arg2: *const *const GENERAL_SUBTREE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_SUBTREE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct NAME_CONSTRAINTS_st { + pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, + pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_NOTICEREF"] - pub fn i2d_NOTICEREF( - a: *const NOTICEREF, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_NAME_CONSTRAINTS_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!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(permittedSubtrees) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(excludedSubtrees) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NOTICEREF_it"] - pub static NOTICEREF_it: ASN1_ITEM; +impl Default for NAME_CONSTRAINTS_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_fips_0_12_15_CRL_DIST_POINTS_new"] - pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_CONSTRAINTS_st { + pub requireExplicitPolicy: *mut ASN1_INTEGER, + pub inhibitPolicyMapping: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRL_DIST_POINTS_free"] - pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); +#[test] +fn bindgen_test_layout_POLICY_CONSTRAINTS_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!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(requireExplicitPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(inhibitPolicyMapping) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_CRL_DIST_POINTS"] - pub fn d2i_CRL_DIST_POINTS( - a: *mut *mut CRL_DIST_POINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CRL_DIST_POINTS; +impl Default for POLICY_CONSTRAINTS_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_fips_0_12_15_i2d_CRL_DIST_POINTS"] - pub fn i2d_CRL_DIST_POINTS( - a: *mut CRL_DIST_POINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ISSUING_DIST_POINT_st { + pub distpoint: *mut DIST_POINT_NAME, + pub onlyuser: ASN1_BOOLEAN, + pub onlyCA: ASN1_BOOLEAN, + pub onlysomereasons: *mut ASN1_BIT_STRING, + pub indirectCRL: ASN1_BOOLEAN, + pub onlyattr: ASN1_BOOLEAN, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRL_DIST_POINTS_it"] - pub static CRL_DIST_POINTS_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_ISSUING_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(distpoint) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyuser) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyCA) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlysomereasons) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(indirectCRL) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyattr) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_new"] - pub fn DIST_POINT_new() -> *mut DIST_POINT; +impl Default for ISSUING_DIST_POINT_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_fips_0_12_15_DIST_POINT_free"] - pub fn DIST_POINT_free(a: *mut DIST_POINT); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_purpose_st { + pub purpose: ::std::os::raw::c_int, + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_purpose: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const x509_purpose_st, + arg2: *const X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub sname: *mut ::std::os::raw::c_char, + pub usr_data: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DIST_POINT"] - pub fn d2i_DIST_POINT( - a: *mut *mut DIST_POINT, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT; +#[test] +fn bindgen_test_layout_x509_purpose_st() { + 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!(x509_purpose_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_purpose_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(check_purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(sname) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(usr_data) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DIST_POINT"] - pub fn i2d_DIST_POINT( - a: *mut DIST_POINT, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for x509_purpose_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_fips_0_12_15_DIST_POINT_it"] - pub static DIST_POINT_it: ASN1_ITEM; +pub type X509_PURPOSE = x509_purpose_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_PURPOSE { + _unused: [u8; 0], } +pub type sk_X509_PURPOSE_free_func = + ::std::option::Option; +pub type sk_X509_PURPOSE_copy_func = + ::std::option::Option *mut X509_PURPOSE>; +pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_PURPOSE, + arg2: *const *const X509_PURPOSE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_PURPOSE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_NAME_new"] - pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_new"] + pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_NAME_free"] - pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_free"] + pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_DIST_POINT_NAME"] - pub fn d2i_DIST_POINT_NAME( - a: *mut *mut DIST_POINT_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_BASIC_CONSTRAINTS"] + pub fn d2i_BASIC_CONSTRAINTS( + a: *mut *mut BASIC_CONSTRAINTS, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT_NAME; + ) -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_DIST_POINT_NAME"] - pub fn i2d_DIST_POINT_NAME( - a: *mut DIST_POINT_NAME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_BASIC_CONSTRAINTS"] + pub fn i2d_BASIC_CONSTRAINTS( + a: *const BASIC_CONSTRAINTS, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_NAME_it"] - pub static DIST_POINT_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_it"] + pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ISSUING_DIST_POINT_new"] - pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_KEYID_new"] + pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ISSUING_DIST_POINT_free"] - pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_KEYID_free"] + pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ISSUING_DIST_POINT"] - pub fn d2i_ISSUING_DIST_POINT( - a: *mut *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_AUTHORITY_KEYID"] + pub fn d2i_AUTHORITY_KEYID( + a: *mut *mut AUTHORITY_KEYID, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ISSUING_DIST_POINT; + ) -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ISSUING_DIST_POINT"] - pub fn i2d_ISSUING_DIST_POINT( - a: *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_AUTHORITY_KEYID"] + pub fn i2d_AUTHORITY_KEYID( + a: *mut AUTHORITY_KEYID, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ISSUING_DIST_POINT_it"] - pub static ISSUING_DIST_POINT_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_DIST_POINT_set_dpname"] - pub fn DIST_POINT_set_dpname( - dpn: *mut DIST_POINT_NAME, - iname: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check(x: *mut X509, nc: *mut NAME_CONSTRAINTS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_KEYID_it"] + pub static AUTHORITY_KEYID_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_new"] - pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_new"] + pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_free"] - pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_free"] + pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_ACCESS_DESCRIPTION"] - pub fn d2i_ACCESS_DESCRIPTION( - a: *mut *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_EXTENDED_KEY_USAGE"] + pub fn d2i_EXTENDED_KEY_USAGE( + a: *mut *mut EXTENDED_KEY_USAGE, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ACCESS_DESCRIPTION; + ) -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_ACCESS_DESCRIPTION"] - pub fn i2d_ACCESS_DESCRIPTION( - a: *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_EXTENDED_KEY_USAGE"] + pub fn i2d_EXTENDED_KEY_USAGE( + a: *const EXTENDED_KEY_USAGE, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_it"] - pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_it"] + pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_new"] - pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_new"] + pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_free"] - pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_free"] + pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_AUTHORITY_INFO_ACCESS"] - pub fn d2i_AUTHORITY_INFO_ACCESS( - a: *mut *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_CERTIFICATEPOLICIES"] + pub fn d2i_CERTIFICATEPOLICIES( + a: *mut *mut CERTIFICATEPOLICIES, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_INFO_ACCESS; + ) -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_AUTHORITY_INFO_ACCESS"] - pub fn i2d_AUTHORITY_INFO_ACCESS( - a: *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_CERTIFICATEPOLICIES"] + pub fn i2d_CERTIFICATEPOLICIES( + a: *const CERTIFICATEPOLICIES, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_it"] - pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPING_it"] - pub static POLICY_MAPPING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPING_new"] - pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPING_free"] - pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_MAPPINGS_it"] - pub static POLICY_MAPPINGS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_SUBTREE_it"] - pub static GENERAL_SUBTREE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_SUBTREE_new"] - pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_GENERAL_SUBTREE_free"] - pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_it"] - pub static NAME_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_new"] - pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_NAME_CONSTRAINTS_free"] - pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_new"] - pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_free"] - pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_it"] - pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_a2i_GENERAL_NAME"] - pub fn a2i_GENERAL_NAME( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - gen_type: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_v2i_GENERAL_NAME"] - pub fn v2i_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_v2i_GENERAL_NAME_ex"] - pub fn v2i_GENERAL_NAME_ex( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_it"] + pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); -} -#[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) - ) - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICYINFO_new"] + pub fn POLICYINFO_new() -> *mut POLICYINFO; } -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_fips_0_13_0_POLICYINFO_free"] + pub fn POLICYINFO_free(a: *mut POLICYINFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYINFO"] + pub fn d2i_POLICYINFO( + a: *mut *mut POLICYINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYINFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_POLICYINFO"] + pub fn i2d_POLICYINFO( + a: *const POLICYINFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYINFO_it"] + pub static POLICYINFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_new"] + pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_free"] + pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYQUALINFO"] + pub fn d2i_POLICYQUALINFO( + a: *mut *mut POLICYQUALINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_POLICYQUALINFO"] + pub fn i2d_POLICYQUALINFO( + a: *const POLICYQUALINFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICYQUALINFO_it"] + pub static POLICYQUALINFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_USERNOTICE_new"] + pub fn USERNOTICE_new() -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_USERNOTICE_free"] + pub fn USERNOTICE_free(a: *mut USERNOTICE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_USERNOTICE"] + pub fn d2i_USERNOTICE( + a: *mut *mut USERNOTICE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_USERNOTICE"] + pub fn i2d_USERNOTICE( + a: *const USERNOTICE, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_USERNOTICE_it"] + pub static USERNOTICE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NOTICEREF_new"] + pub fn NOTICEREF_new() -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NOTICEREF_free"] + pub fn NOTICEREF_free(a: *mut NOTICEREF); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_NOTICEREF"] + pub fn d2i_NOTICEREF( + a: *mut *mut NOTICEREF, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_NOTICEREF"] + pub fn i2d_NOTICEREF( + a: *const NOTICEREF, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NOTICEREF_it"] + pub static NOTICEREF_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRL_DIST_POINTS_new"] + pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRL_DIST_POINTS_free"] + pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_add"] - pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_CRL_DIST_POINTS"] + pub fn d2i_CRL_DIST_POINTS( + a: *mut *mut CRL_DIST_POINTS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_add_list"] - pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_CRL_DIST_POINTS"] + pub fn i2d_CRL_DIST_POINTS( + a: *mut CRL_DIST_POINTS, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_add_alias"] - pub fn X509V3_EXT_add_alias( - nid_to: ::std::os::raw::c_int, - nid_from: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRL_DIST_POINTS_it"] + pub static CRL_DIST_POINTS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_new"] + pub fn DIST_POINT_new() -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_free"] + pub fn DIST_POINT_free(a: *mut DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DIST_POINT"] + pub fn d2i_DIST_POINT( + a: *mut *mut DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_DIST_POINT"] + pub fn i2d_DIST_POINT( + a: *mut DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_cleanup"] - pub fn X509V3_EXT_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_it"] + pub static DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_get"] - pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_NAME_new"] + pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_get_nid"] - pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_NAME_free"] + pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_DIST_POINT_NAME"] + pub fn d2i_DIST_POINT_NAME( + a: *mut *mut DIST_POINT_NAME, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_DIST_POINT_NAME"] + pub fn i2d_DIST_POINT_NAME( + a: *mut DIST_POINT_NAME, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_d2i"] - pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_NAME_it"] + pub static DIST_POINT_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_get_d2i"] - pub fn X509V3_get_d2i( - extensions: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ISSUING_DIST_POINT_new"] + pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_free"] - pub fn X509V3_EXT_free( - nid: ::std::os::raw::c_int, - ext_data: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ISSUING_DIST_POINT_free"] + pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ISSUING_DIST_POINT"] + pub fn d2i_ISSUING_DIST_POINT( + a: *mut *mut ISSUING_DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ISSUING_DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ISSUING_DIST_POINT"] + pub fn i2d_ISSUING_DIST_POINT( + a: *mut ISSUING_DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_i2d"] - pub fn X509V3_EXT_i2d( - ext_nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - ext_struc: *mut ::std::os::raw::c_void, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ISSUING_DIST_POINT_it"] + pub static ISSUING_DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_add1_i2d"] - pub fn X509V3_add1_i2d( - x: *mut *mut stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_DIST_POINT_set_dpname"] + pub fn DIST_POINT_set_dpname( + dpn: *mut DIST_POINT_NAME, + iname: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509V3_EXT_val_prn"] - pub fn X509V3_EXT_val_prn( - out: *mut BIO, - val: *const stack_st_CONF_VALUE, - indent: ::std::os::raw::c_int, - ml: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ACCESS_DESCRIPTION_new"] + pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_free"] + pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_ACCESS_DESCRIPTION"] + pub fn d2i_ACCESS_DESCRIPTION( + a: *mut *mut ACCESS_DESCRIPTION, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ACCESS_DESCRIPTION; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_ACCESS_DESCRIPTION"] + pub fn i2d_ACCESS_DESCRIPTION( + a: *mut ACCESS_DESCRIPTION, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_it"] + pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_new"] + pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_free"] + pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_AUTHORITY_INFO_ACCESS"] + pub fn d2i_AUTHORITY_INFO_ACCESS( + a: *mut *mut AUTHORITY_INFO_ACCESS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_AUTHORITY_INFO_ACCESS"] + pub fn i2d_AUTHORITY_INFO_ACCESS( + a: *mut AUTHORITY_INFO_ACCESS, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_it"] + pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_ca"] - pub fn X509_check_ca(x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPING_it"] + pub static POLICY_MAPPING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPING_new"] + pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPING_free"] + pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_set"] - pub fn X509_PURPOSE_set( - p: *mut ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_MAPPINGS_it"] + pub static POLICY_MAPPINGS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_SUBTREE_it"] + pub static GENERAL_SUBTREE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_akid"] - pub fn X509_check_akid(issuer: *mut X509, akid: *mut AUTHORITY_KEYID) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_SUBTREE_new"] + pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_extension_flags"] - pub fn X509_get_extension_flags(x: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_GENERAL_SUBTREE_free"] + pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_key_usage"] - pub fn X509_get_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_it"] + pub static NAME_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get_extended_key_usage"] - pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_new"] + pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_subject_key_id"] - pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_NAME_CONSTRAINTS_free"] + pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_authority_key_id"] - pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_new"] + pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_authority_issuer"] - pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_free"] + pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get0_authority_serial"] - pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_it"] + pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_count"] - pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_add"] + pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get0"] - pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *mut X509_PURPOSE; + pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_by_sname"] - pub fn X509_PURPOSE_get_by_sname(sname: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_add_alias"] + pub fn X509V3_EXT_add_alias( + nid_to: ::std::os::raw::c_int, + nid_from: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_by_id"] - pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn X509V3_EXT_cleanup(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_add"] - pub fn X509_PURPOSE_add( - id: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_PURPOSE, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - sname: *mut ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_get"] + pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get0_name"] - pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_get_nid"] + pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get0_sname"] - pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_d2i"] + pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_trust"] - pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_get_d2i"] + pub fn X509V3_get_d2i( + extensions: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_cleanup"] - pub fn X509_PURPOSE_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_free"] + pub fn X509V3_EXT_free( + nid: ::std::os::raw::c_int, + ext_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_PURPOSE_get_id"] - pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_EXT_i2d"] + pub fn X509V3_EXT_i2d( + ext_nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + ext_struc: *mut ::std::os::raw::c_void, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get1_email"] - pub fn X509_get1_email(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509V3_add1_i2d"] + pub fn X509V3_add1_i2d( + x: *mut *mut stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_REQ_get1_email"] - pub fn X509_REQ_get1_email(x: *mut X509_REQ) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_set"] + pub fn X509_PURPOSE_set( + p: *mut ::std::os::raw::c_int, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_email_free"] - pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_count"] + pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_get1_ocsp"] - pub fn X509_get1_ocsp(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get0"] + pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *const X509_PURPOSE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_host"] - pub fn X509_check_host( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_by_sname"] + pub fn X509_PURPOSE_get_by_sname(sname: *const ::std::os::raw::c_char) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_email"] - pub fn X509_check_email( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_by_id"] + pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_ip"] - pub fn X509_check_ip( - x: *mut X509, - chk: *const ::std::os::raw::c_uchar, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get0_name"] + pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x: *mut 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_fips_0_13_0_X509_PURPOSE_get0_sname"] + pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_X509_PURPOSE_get_trust"] + pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PURPOSE_get_id"] + pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -26339,10 +25838,16 @@ pub struct ocsp_cert_id_st { pub type OCSP_CERTID = ocsp_cert_id_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ocsp_responder_id_st { +pub struct ocsp_one_request_st { _unused: [u8; 0], } -pub type OCSP_RESPID = ocsp_responder_id_st; +pub type OCSP_ONEREQ = ocsp_one_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ocsp_req_info_st { + _unused: [u8; 0], +} +pub type OCSP_REQINFO = ocsp_req_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ocsp_signature_st { @@ -26351,6 +25856,12 @@ pub struct ocsp_signature_st { pub type OCSP_SIGNATURE = ocsp_signature_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_request_st { + _unused: [u8; 0], +} +pub type OCSP_REQUEST = ocsp_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_resp_bytes_st { _unused: [u8; 0], } @@ -26387,6 +25898,12 @@ pub struct ocsp_response_st { pub type OCSP_RESPONSE = ocsp_response_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_responder_id_st { + _unused: [u8; 0], +} +pub type OCSP_RESPID = ocsp_responder_id_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_basic_response_st { _unused: [u8; 0], } @@ -26402,8 +25919,8 @@ pub type sk_OCSP_CERTID_copy_func = ::std::option::Option *mut OCSP_CERTID>; pub type sk_OCSP_CERTID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_CERTID, - arg2: *mut *const OCSP_CERTID, + arg1: *const *const OCSP_CERTID, + arg2: *const *const OCSP_CERTID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< @@ -26414,6 +25931,27 @@ pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct stack_st_OCSP_ONEREQ { + _unused: [u8; 0], +} +pub type sk_OCSP_ONEREQ_free_func = + ::std::option::Option; +pub type sk_OCSP_ONEREQ_copy_func = + ::std::option::Option *mut OCSP_ONEREQ>; +pub type sk_OCSP_ONEREQ_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const OCSP_ONEREQ, + arg2: *const *const OCSP_ONEREQ, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OCSP_ONEREQ_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut OCSP_ONEREQ, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct stack_st_OCSP_RESPID { _unused: [u8; 0], } @@ -26423,8 +25961,8 @@ pub type sk_OCSP_RESPID_copy_func = ::std::option::Option *mut OCSP_RESPID>; pub type sk_OCSP_RESPID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_RESPID, - arg2: *mut *const OCSP_RESPID, + arg1: *const *const OCSP_RESPID, + arg2: *const *const OCSP_RESPID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_RESPID_delete_if_func = ::std::option::Option< @@ -26445,8 +25983,8 @@ pub type sk_OCSP_SINGLERESP_copy_func = ::std::option::Option< >; pub type sk_OCSP_SINGLERESP_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_SINGLERESP, - arg2: *mut *const OCSP_SINGLERESP, + arg1: *const *const OCSP_SINGLERESP, + arg2: *const *const OCSP_SINGLERESP, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< @@ -26456,15 +25994,123 @@ pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_SINGLERESP_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_new"] + pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_free"] + pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_BASICRESP"] + pub fn d2i_OCSP_BASICRESP( + a: *mut *mut OCSP_BASICRESP, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_BASICRESP"] + pub fn i2d_OCSP_BASICRESP( + a: *mut OCSP_BASICRESP, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_it"] + pub static OCSP_BASICRESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_new"] + pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_free"] + pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE"] + pub fn d2i_OCSP_RESPONSE( + a: *mut *mut OCSP_RESPONSE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE"] + pub fn i2d_OCSP_RESPONSE( + a: *mut OCSP_RESPONSE, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_it"] + pub static OCSP_RESPONSE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_new"] + pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_free"] + pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_CERTID"] + pub fn d2i_OCSP_CERTID( + a: *mut *mut OCSP_CERTID, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_CERTID"] + pub fn i2d_OCSP_CERTID( + a: *mut OCSP_CERTID, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_it"] + pub static OCSP_CERTID_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_new"] + pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_free"] + pub fn OCSP_REQUEST_free(a: *mut OCSP_REQUEST); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_REQUEST"] + pub fn d2i_OCSP_REQUEST( + a: *mut *mut OCSP_REQUEST, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_REQUEST"] + pub fn i2d_OCSP_REQUEST( + a: *mut OCSP_REQUEST, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_it"] + pub static OCSP_REQUEST_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_new"] pub fn OCSP_SINGLERESP_new() -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_SINGLERESP_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_free"] pub fn OCSP_SINGLERESP_free(a: *mut OCSP_SINGLERESP); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_SINGLERESP"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_SINGLERESP"] pub fn d2i_OCSP_SINGLERESP( a: *mut *mut OCSP_SINGLERESP, in_: *mut *const ::std::os::raw::c_uchar, @@ -26472,290 +26118,418 @@ extern "C" { ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_SINGLERESP"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_SINGLERESP"] pub fn i2d_OCSP_SINGLERESP( a: *mut OCSP_SINGLERESP, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_SINGLERESP_it"] - pub static OCSP_SINGLERESP_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_it"] + pub static OCSP_SINGLERESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_REQUEST_bio"] + pub fn d2i_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut *mut OCSP_REQUEST) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE_bio"] + pub fn d2i_OCSP_RESPONSE_bio( + bp: *mut BIO, + presp: *mut *mut OCSP_RESPONSE, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE_bio"] + pub fn i2d_OCSP_RESPONSE_bio(bp: *mut BIO, presp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_OCSP_REQUEST_bio"] + pub fn i2d_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_CERTID_dup"] + pub fn OCSP_CERTID_dup(id: *mut OCSP_CERTID) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_sendreq_bio"] + pub fn OCSP_sendreq_bio( + b: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_sendreq_new"] + pub fn OCSP_sendreq_new( + io: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + maxline: ::std::os::raw::c_int, + ) -> *mut OCSP_REQ_CTX; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_sendreq_nbio"] + pub fn OCSP_sendreq_nbio( + presp: *mut *mut OCSP_RESPONSE, + rctx: *mut OCSP_REQ_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTSTATUS_new"] - pub fn OCSP_CERTSTATUS_new() -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_new"] + pub fn OCSP_REQ_CTX_new(io: *mut BIO, maxline: ::std::os::raw::c_int) -> *mut OCSP_REQ_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTSTATUS_free"] - pub fn OCSP_CERTSTATUS_free(a: *mut OCSP_CERTSTATUS); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_free"] + pub fn OCSP_REQ_CTX_free(rctx: *mut OCSP_REQ_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_CERTSTATUS"] - pub fn d2i_OCSP_CERTSTATUS( - a: *mut *mut OCSP_CERTSTATUS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_set_max_response_length"] + pub fn OCSP_set_max_response_length(rctx: *mut OCSP_REQ_CTX, len: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_CERTSTATUS"] - pub fn i2d_OCSP_CERTSTATUS( - a: *mut OCSP_CERTSTATUS, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_http"] + pub fn OCSP_REQ_CTX_http( + rctx: *mut OCSP_REQ_CTX, + op: *const ::std::os::raw::c_char, + path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTSTATUS_it"] - pub static OCSP_CERTSTATUS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_set1_req"] + pub fn OCSP_REQ_CTX_set1_req( + rctx: *mut OCSP_REQ_CTX, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_new"] - pub fn OCSP_REVOKEDINFO_new() -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_add1_header"] + pub fn OCSP_REQ_CTX_add1_header( + rctx: *mut OCSP_REQ_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_free"] - pub fn OCSP_REVOKEDINFO_free(a: *mut OCSP_REVOKEDINFO); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQ_CTX_i2d"] + pub fn OCSP_REQ_CTX_i2d( + rctx: *mut OCSP_REQ_CTX, + it: *const ASN1_ITEM, + val: *mut ASN1_VALUE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_REVOKEDINFO"] - pub fn d2i_OCSP_REVOKEDINFO( - a: *mut *mut OCSP_REVOKEDINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_add0_id"] + pub fn OCSP_request_add0_id(req: *mut OCSP_REQUEST, cid: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_REVOKEDINFO"] - pub fn i2d_OCSP_REVOKEDINFO( - a: *mut OCSP_REVOKEDINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_onereq_get0_id"] + pub fn OCSP_onereq_get0_id(one: *mut OCSP_ONEREQ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_it"] - pub static OCSP_REVOKEDINFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_add1_nonce"] + pub fn OCSP_request_add1_nonce( + req: *mut OCSP_REQUEST, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_BASICRESP_new"] - pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_add1_nonce"] + pub fn OCSP_basic_add1_nonce( + resp: *mut OCSP_BASICRESP, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_BASICRESP_free"] - pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_check_nonce"] + pub fn OCSP_check_nonce( + req: *mut OCSP_REQUEST, + bs: *mut OCSP_BASICRESP, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_BASICRESP"] - pub fn d2i_OCSP_BASICRESP( - a: *mut *mut OCSP_BASICRESP, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_copy_nonce"] + pub fn OCSP_copy_nonce( + resp: *mut OCSP_BASICRESP, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_BASICRESP"] - pub fn i2d_OCSP_BASICRESP( - a: *mut OCSP_BASICRESP, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_set1_name"] + pub fn OCSP_request_set1_name( + req: *mut OCSP_REQUEST, + nm: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_BASICRESP_it"] - pub static OCSP_BASICRESP_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_add1_cert"] + pub fn OCSP_request_add1_cert(req: *mut OCSP_REQUEST, cert: *mut X509) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPDATA_new"] - pub fn OCSP_RESPDATA_new() -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_is_signed"] + pub fn OCSP_request_is_signed(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPDATA_free"] - pub fn OCSP_RESPDATA_free(a: *mut OCSP_RESPDATA); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_onereq_count"] + pub fn OCSP_request_onereq_count(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPDATA"] - pub fn d2i_OCSP_RESPDATA( - a: *mut *mut OCSP_RESPDATA, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_onereq_get0"] + pub fn OCSP_request_onereq_get0( + req: *mut OCSP_REQUEST, + i: ::std::os::raw::c_int, + ) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPDATA"] - pub fn i2d_OCSP_RESPDATA( - a: *mut OCSP_RESPDATA, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_sign"] + pub fn OCSP_request_sign( + req: *mut OCSP_REQUEST, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPDATA_it"] - pub static OCSP_RESPDATA_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_status"] + pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPID_new"] - pub fn OCSP_RESPID_new() -> *mut OCSP_RESPID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_get1_basic"] + pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPID_free"] - pub fn OCSP_RESPID_free(a: *mut OCSP_RESPID); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_count"] + pub fn OCSP_resp_count(bs: *mut OCSP_BASICRESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPID"] - pub fn d2i_OCSP_RESPID( - a: *mut *mut OCSP_RESPID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_get0"] + pub fn OCSP_resp_get0(bs: *mut OCSP_BASICRESP, idx: usize) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPID"] - pub fn i2d_OCSP_RESPID( - a: *mut OCSP_RESPID, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_single_get0_status"] + pub fn OCSP_single_get0_status( + single: *mut OCSP_SINGLERESP, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPID_it"] - pub static OCSP_RESPID_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_find"] + pub fn OCSP_resp_find( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + last: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPONSE_new"] - pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_resp_find_status"] + pub fn OCSP_resp_find_status( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + status: *mut ::std::os::raw::c_int, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPONSE_free"] - pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_check_validity"] + pub fn OCSP_check_validity( + thisUpdate: *mut ASN1_GENERALIZEDTIME, + nextUpdate: *mut ASN1_GENERALIZEDTIME, + drift_num_seconds: ::std::os::raw::c_long, + max_age_seconds: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPONSE"] - pub fn d2i_OCSP_RESPONSE( - a: *mut *mut OCSP_RESPONSE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_verify"] + pub fn OCSP_basic_verify( + bs: *mut OCSP_BASICRESP, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPONSE"] - pub fn i2d_OCSP_RESPONSE( - a: *mut OCSP_RESPONSE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_request_verify"] + pub fn OCSP_request_verify( + req: *mut OCSP_REQUEST, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPONSE_it"] - pub static OCSP_RESPONSE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_cert_id_new"] + pub fn OCSP_cert_id_new( + dgst: *const EVP_MD, + issuerName: *const X509_NAME, + issuerKey: *const ASN1_BIT_STRING, + serialNumber: *const ASN1_INTEGER, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPBYTES_new"] - pub fn OCSP_RESPBYTES_new() -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_cert_to_id"] + pub fn OCSP_cert_to_id( + dgst: *const EVP_MD, + subject: *const X509, + issuer: *const X509, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPBYTES_free"] - pub fn OCSP_RESPBYTES_free(a: *mut OCSP_RESPBYTES); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_parse_url"] + pub fn OCSP_parse_url( + url: *const ::std::os::raw::c_char, + phost: *mut *mut ::std::os::raw::c_char, + pport: *mut *mut ::std::os::raw::c_char, + ppath: *mut *mut ::std::os::raw::c_char, + pssl: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_RESPBYTES"] - pub fn d2i_OCSP_RESPBYTES( - a: *mut *mut OCSP_RESPBYTES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_id_issuer_cmp"] + pub fn OCSP_id_issuer_cmp( + a: *const OCSP_CERTID, + b: *const OCSP_CERTID, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_RESPBYTES"] - pub fn i2d_OCSP_RESPBYTES( - a: *mut OCSP_RESPBYTES, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_id_cmp"] + pub fn OCSP_id_cmp(a: *const OCSP_CERTID, b: *const OCSP_CERTID) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_id_get0_info"] + pub fn OCSP_id_get0_info( + nameHash: *mut *mut ASN1_OCTET_STRING, + algor: *mut *mut ASN1_OBJECT, + keyHash: *mut *mut ASN1_OCTET_STRING, + serial: *mut *mut ASN1_INTEGER, + cid: *mut OCSP_CERTID, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_RESPBYTES_it"] - pub static OCSP_RESPBYTES_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_add1_cert"] + pub fn OCSP_basic_add1_cert( + resp: *mut OCSP_BASICRESP, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTID_new"] - pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_add1_status"] + pub fn OCSP_basic_add1_status( + resp: *mut OCSP_BASICRESP, + cid: *mut OCSP_CERTID, + status: ::std::os::raw::c_int, + revoked_reason: ::std::os::raw::c_int, + revoked_time: *mut ASN1_TIME, + this_update: *mut ASN1_TIME, + next_update: *mut ASN1_TIME, + ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTID_free"] - pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_basic_sign"] + pub fn OCSP_basic_sign( + resp: *mut OCSP_BASICRESP, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_OCSP_CERTID"] - pub fn d2i_OCSP_CERTID( - a: *mut *mut OCSP_CERTID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_create"] + pub fn OCSP_response_create( + status: ::std::os::raw::c_int, + bs: *mut OCSP_BASICRESP, + ) -> *mut OCSP_RESPONSE; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_OCSP_CERTID"] - pub fn i2d_OCSP_CERTID( - a: *mut OCSP_CERTID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_get0_id"] + pub fn OCSP_SINGLERESP_get0_id(x: *const OCSP_SINGLERESP) -> *const OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_CERTID_it"] - pub static OCSP_CERTID_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_response_status_str"] + pub fn OCSP_response_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_new() -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_cert_status_str"] + pub fn OCSP_cert_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_free(a: *mut OCSP_SIGNATURE); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_crl_reason_str"] + pub fn OCSP_crl_reason_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn d2i_OCSP_SIGNATURE( - a: *mut *mut OCSP_SIGNATURE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_REQUEST_print"] + pub fn OCSP_REQUEST_print( + bp: *mut BIO, + req: *mut OCSP_REQUEST, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn i2d_OCSP_SIGNATURE( - a: *mut OCSP_SIGNATURE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_RESPONSE_print"] + pub fn OCSP_RESPONSE_print( + bp: *mut BIO, + resp: *mut OCSP_RESPONSE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub static OCSP_SIGNATURE_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext_by_NID"] + pub fn OCSP_BASICRESP_get_ext_by_NID( + bs: *mut OCSP_BASICRESP, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_response_status"] - pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext"] + pub fn OCSP_BASICRESP_get_ext( + bs: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_response_get1_basic"] - pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_BASICRESP_delete_ext"] + pub fn OCSP_BASICRESP_delete_ext( + x: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_resp_find_status"] - pub fn OCSP_resp_find_status( - bs: *mut OCSP_BASICRESP, - id: *mut OCSP_CERTID, - status: *mut ::std::os::raw::c_int, - reason: *mut ::std::os::raw::c_int, - revtime: *mut *mut ASN1_GENERALIZEDTIME, - thisupd: *mut *mut ASN1_GENERALIZEDTIME, - nextupd: *mut *mut ASN1_GENERALIZEDTIME, + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_add_ext"] + pub fn OCSP_SINGLERESP_add_ext( + sresp: *mut OCSP_SINGLERESP, + ex: *mut X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_basic_verify"] - pub fn OCSP_basic_verify( - bs: *mut OCSP_BASICRESP, - certs: *mut stack_st_X509, - st: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext_count"] + pub fn OCSP_SINGLERESP_get_ext_count(sresp: *mut OCSP_SINGLERESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_OCSP_cert_to_id"] - pub fn OCSP_cert_to_id( - dgst: *const EVP_MD, - subject: *const X509, - issuer: *const X509, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}_aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext"] + pub fn OCSP_SINGLERESP_get_ext( + sresp: *mut OCSP_SINGLERESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } pub type pem_password_cb = ::std::option::Option< unsafe extern "C" fn( @@ -26766,14 +26540,14 @@ pub type pem_password_cb = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_get_EVP_CIPHER_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_get_EVP_CIPHER_INFO"] pub fn PEM_get_EVP_CIPHER_INFO( header: *mut ::std::os::raw::c_char, cipher: *mut EVP_CIPHER_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_do_header"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_do_header"] pub fn PEM_do_header( cipher: *mut EVP_CIPHER_INFO, data: *mut ::std::os::raw::c_uchar, @@ -26783,7 +26557,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio"] pub fn PEM_read_bio( bp: *mut BIO, name: *mut *mut ::std::os::raw::c_char, @@ -26793,7 +26567,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio"] pub fn PEM_write_bio( bp: *mut BIO, name: *const ::std::os::raw::c_char, @@ -26803,7 +26577,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_bytes_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_bytes_read_bio"] pub fn PEM_bytes_read_bio( pdata: *mut *mut ::std::os::raw::c_uchar, plen: *mut ::std::os::raw::c_long, @@ -26815,7 +26589,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_read_bio"] pub fn PEM_ASN1_read_bio( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26826,7 +26600,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_write_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_write_bio"] pub fn PEM_ASN1_write_bio( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26840,7 +26614,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_X509_INFO_read_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_X509_INFO_read_bio"] pub fn PEM_X509_INFO_read_bio( bp: *mut BIO, sk: *mut stack_st_X509_INFO, @@ -26849,7 +26623,16 @@ extern "C" { ) -> *mut stack_st_X509_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_X509_INFO_read"] + pub fn PEM_X509_INFO_read( + fp: *mut FILE, + sk: *mut stack_st_X509_INFO, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut stack_st_X509_INFO; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read"] pub fn PEM_read( fp: *mut FILE, name: *mut *mut ::std::os::raw::c_char, @@ -26859,7 +26642,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write"] pub fn PEM_write( fp: *mut FILE, name: *const ::std::os::raw::c_char, @@ -26869,7 +26652,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_read"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_read"] pub fn PEM_ASN1_read( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26880,7 +26663,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_ASN1_write"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_ASN1_write"] pub fn PEM_ASN1_write( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26894,16 +26677,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_X509_INFO_read"] - pub fn PEM_X509_INFO_read( - fp: *mut FILE, - sk: *mut stack_st_X509_INFO, - cb: pem_password_cb, - u: *mut ::std::os::raw::c_void, - ) -> *mut stack_st_X509_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_def_callback"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_def_callback"] pub fn PEM_def_callback( buf: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, @@ -26912,20 +26686,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_proc_type"] - pub fn PEM_proc_type(buf: *mut ::std::os::raw::c_char, type_: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_dek_info"] - pub fn PEM_dek_info( - buf: *mut ::std::os::raw::c_char, - type_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - str_: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509"] pub fn PEM_read_bio_X509( bp: *mut BIO, x: *mut *mut X509, @@ -26934,7 +26695,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509"] pub fn PEM_read_X509( fp: *mut FILE, x: *mut *mut X509, @@ -26943,15 +26704,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509"] pub fn PEM_write_bio_X509(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509"] pub fn PEM_write_X509(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509_AUX"] pub fn PEM_read_bio_X509_AUX( bp: *mut BIO, x: *mut *mut X509, @@ -26960,7 +26721,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509_AUX"] pub fn PEM_read_X509_AUX( fp: *mut FILE, x: *mut *mut X509, @@ -26969,15 +26730,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_AUX"] pub fn PEM_write_bio_X509_AUX(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_AUX"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_AUX"] pub fn PEM_write_X509_AUX(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509_REQ"] pub fn PEM_read_bio_X509_REQ( bp: *mut BIO, x: *mut *mut X509_REQ, @@ -26986,7 +26747,7 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509_REQ"] pub fn PEM_read_X509_REQ( fp: *mut FILE, x: *mut *mut X509_REQ, @@ -26995,23 +26756,23 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ"] pub fn PEM_write_bio_X509_REQ(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_REQ"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_REQ"] pub fn PEM_write_X509_REQ(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ_NEW"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ_NEW"] pub fn PEM_write_bio_X509_REQ_NEW(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_REQ_NEW"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_REQ_NEW"] pub fn PEM_write_X509_REQ_NEW(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_X509_CRL"] pub fn PEM_read_bio_X509_CRL( bp: *mut BIO, x: *mut *mut X509_CRL, @@ -27020,7 +26781,7 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_X509_CRL"] pub fn PEM_read_X509_CRL( fp: *mut FILE, x: *mut *mut X509_CRL, @@ -27029,15 +26790,15 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_X509_CRL"] pub fn PEM_write_bio_X509_CRL(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_X509_CRL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_X509_CRL"] pub fn PEM_write_X509_CRL(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PKCS7"] pub fn PEM_read_bio_PKCS7( bp: *mut BIO, x: *mut *mut PKCS7, @@ -27046,7 +26807,7 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PKCS7"] pub fn PEM_read_PKCS7( fp: *mut FILE, x: *mut *mut PKCS7, @@ -27055,15 +26816,15 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS7"] pub fn PEM_write_bio_PKCS7(bp: *mut BIO, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS7"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS7"] pub fn PEM_write_PKCS7(fp: *mut FILE, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PKCS8"] pub fn PEM_read_bio_PKCS8( bp: *mut BIO, x: *mut *mut X509_SIG, @@ -27072,7 +26833,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PKCS8"] pub fn PEM_read_PKCS8( fp: *mut FILE, x: *mut *mut X509_SIG, @@ -27081,15 +26842,15 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8"] pub fn PEM_write_bio_PKCS8(bp: *mut BIO, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8"] pub fn PEM_write_PKCS8(fp: *mut FILE, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27098,7 +26859,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27107,21 +26868,21 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_RSAPrivateKey"] pub fn PEM_read_bio_RSAPrivateKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27130,7 +26891,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_RSAPrivateKey"] pub fn PEM_read_RSAPrivateKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27139,7 +26900,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_RSAPrivateKey"] pub fn PEM_write_bio_RSAPrivateKey( bp: *mut BIO, x: *mut RSA, @@ -27151,7 +26912,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_RSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_RSAPrivateKey"] pub fn PEM_write_RSAPrivateKey( fp: *mut FILE, x: *mut RSA, @@ -27163,7 +26924,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_RSAPublicKey"] pub fn PEM_read_bio_RSAPublicKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27172,7 +26933,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_RSAPublicKey"] pub fn PEM_read_RSAPublicKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27181,15 +26942,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_RSAPublicKey"] pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_RSAPublicKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_RSAPublicKey"] pub fn PEM_write_RSAPublicKey(fp: *mut FILE, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_RSA_PUBKEY"] pub fn PEM_read_bio_RSA_PUBKEY( bp: *mut BIO, x: *mut *mut RSA, @@ -27198,7 +26959,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_RSA_PUBKEY"] pub fn PEM_read_RSA_PUBKEY( fp: *mut FILE, x: *mut *mut RSA, @@ -27207,15 +26968,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_RSA_PUBKEY"] pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_RSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_RSA_PUBKEY"] pub fn PEM_write_RSA_PUBKEY(fp: *mut FILE, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DSAPrivateKey"] pub fn PEM_read_bio_DSAPrivateKey( bp: *mut BIO, x: *mut *mut DSA, @@ -27224,7 +26985,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DSAPrivateKey"] pub fn PEM_read_DSAPrivateKey( fp: *mut FILE, x: *mut *mut DSA, @@ -27233,7 +26994,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DSAPrivateKey"] pub fn PEM_write_bio_DSAPrivateKey( bp: *mut BIO, x: *mut DSA, @@ -27245,7 +27006,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DSAPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DSAPrivateKey"] pub fn PEM_write_DSAPrivateKey( fp: *mut FILE, x: *mut DSA, @@ -27257,7 +27018,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DSA_PUBKEY"] pub fn PEM_read_bio_DSA_PUBKEY( bp: *mut BIO, x: *mut *mut DSA, @@ -27266,7 +27027,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DSA_PUBKEY"] pub fn PEM_read_DSA_PUBKEY( fp: *mut FILE, x: *mut *mut DSA, @@ -27275,15 +27036,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DSA_PUBKEY"] pub fn PEM_write_bio_DSA_PUBKEY(bp: *mut BIO, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DSA_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DSA_PUBKEY"] pub fn PEM_write_DSA_PUBKEY(fp: *mut FILE, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DSAparams"] pub fn PEM_read_bio_DSAparams( bp: *mut BIO, x: *mut *mut DSA, @@ -27292,7 +27053,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DSAparams"] pub fn PEM_read_DSAparams( fp: *mut FILE, x: *mut *mut DSA, @@ -27301,15 +27062,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DSAparams"] pub fn PEM_write_bio_DSAparams(bp: *mut BIO, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DSAparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DSAparams"] pub fn PEM_write_DSAparams(fp: *mut FILE, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_ECPrivateKey"] pub fn PEM_read_bio_ECPrivateKey( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27318,7 +27079,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_ECPrivateKey"] pub fn PEM_read_ECPrivateKey( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27327,7 +27088,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_ECPrivateKey"] pub fn PEM_write_bio_ECPrivateKey( bp: *mut BIO, x: *mut EC_KEY, @@ -27339,7 +27100,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_ECPrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_ECPrivateKey"] pub fn PEM_write_ECPrivateKey( fp: *mut FILE, x: *mut EC_KEY, @@ -27351,7 +27112,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_EC_PUBKEY"] pub fn PEM_read_bio_EC_PUBKEY( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27360,7 +27121,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_EC_PUBKEY"] pub fn PEM_read_EC_PUBKEY( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27369,15 +27130,15 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_EC_PUBKEY"] pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_EC_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_EC_PUBKEY"] pub fn PEM_write_EC_PUBKEY(fp: *mut FILE, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_DHparams"] pub fn PEM_read_bio_DHparams( bp: *mut BIO, x: *mut *mut DH, @@ -27386,7 +27147,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_DHparams"] pub fn PEM_read_DHparams( fp: *mut FILE, x: *mut *mut DH, @@ -27395,15 +27156,15 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_DHparams"] pub fn PEM_write_bio_DHparams(bp: *mut BIO, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_DHparams"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_DHparams"] pub fn PEM_write_DHparams(fp: *mut FILE, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PrivateKey"] pub fn PEM_read_bio_PrivateKey( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27412,7 +27173,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PrivateKey"] pub fn PEM_read_PrivateKey( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27421,7 +27182,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey"] pub fn PEM_write_bio_PrivateKey( bp: *mut BIO, x: *mut EVP_PKEY, @@ -27433,7 +27194,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PrivateKey"] pub fn PEM_write_PrivateKey( fp: *mut FILE, x: *mut EVP_PKEY, @@ -27445,7 +27206,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_bio_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_PUBKEY"] pub fn PEM_read_bio_PUBKEY( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27454,7 +27215,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_read_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_PUBKEY"] pub fn PEM_read_PUBKEY( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27463,18 +27224,18 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PUBKEY"] pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PUBKEY"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PUBKEY"] pub fn PEM_write_PUBKEY(fp: *mut FILE, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey_nid"] pub fn PEM_write_bio_PKCS8PrivateKey_nid( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27483,10 +27244,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey"] pub fn PEM_write_bio_PKCS8PrivateKey( arg1: *mut BIO, - arg2: *mut EVP_PKEY, + arg2: *const EVP_PKEY, arg3: *const EVP_CIPHER, arg4: *mut ::std::os::raw::c_char, arg5: ::std::os::raw::c_int, @@ -27495,10 +27256,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_bio"] pub fn i2d_PKCS8PrivateKey_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27507,10 +27268,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_bio"] pub fn i2d_PKCS8PrivateKey_nid_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27519,7 +27280,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_bio"] pub fn d2i_PKCS8PrivateKey_bio( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27528,10 +27289,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_fp"] pub fn i2d_PKCS8PrivateKey_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27540,10 +27301,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_fp"] pub fn i2d_PKCS8PrivateKey_nid_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27552,10 +27313,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey_nid"] pub fn PEM_write_PKCS8PrivateKey_nid( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27564,7 +27325,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_fp"] pub fn d2i_PKCS8PrivateKey_fp( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27573,10 +27334,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey"] pub fn PEM_write_PKCS8PrivateKey( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27585,7 +27346,43 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_encrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_Parameters"] + pub fn PEM_read_bio_Parameters(bio: *mut BIO, pkey: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_Parameters"] + pub fn PEM_write_bio_Parameters(bio: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_read_bio_ECPKParameters"] + pub fn PEM_read_bio_ECPKParameters( + bio: *mut BIO, + out_group: *mut *mut EC_GROUP, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_ECPKParameters"] + pub fn PEM_write_bio_ECPKParameters( + out: *mut BIO, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey_traditional"] + pub fn PEM_write_bio_PrivateKey_traditional( + bp: *mut BIO, + x: *mut EVP_PKEY, + enc: *const EVP_CIPHER, + kstr: *mut ::std::os::raw::c_uchar, + klen: ::std::os::raw::c_int, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_encrypt"] pub fn PKCS8_encrypt( pbe_nid: ::std::os::raw::c_int, cipher: *const EVP_CIPHER, @@ -27598,7 +27395,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_marshal_encrypted_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_marshal_encrypted_private_key"] pub fn PKCS8_marshal_encrypted_private_key( out: *mut CBB, pbe_nid: ::std::os::raw::c_int, @@ -27612,7 +27409,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_decrypt"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_decrypt"] pub fn PKCS8_decrypt( pkcs8: *mut X509_SIG, pass: *const ::std::os::raw::c_char, @@ -27620,7 +27417,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS8_parse_encrypted_private_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS8_parse_encrypted_private_key"] pub fn PKCS8_parse_encrypted_private_key( cbs: *mut CBS, pass: *const ::std::os::raw::c_char, @@ -27628,7 +27425,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_get_key_and_certs"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_get_key_and_certs"] pub fn PKCS12_get_key_and_certs( out_key: *mut *mut EVP_PKEY, out_certs: *mut stack_st_X509, @@ -27637,11 +27434,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_PBE_add"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_PBE_add"] pub fn PKCS12_PBE_add(); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS12"] pub fn d2i_PKCS12( out_p12: *mut *mut PKCS12, ber_bytes: *mut *const u8, @@ -27649,27 +27446,27 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS12_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS12_bio"] pub fn d2i_PKCS12_bio(bio: *mut BIO, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_d2i_PKCS12_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_d2i_PKCS12_fp"] pub fn d2i_PKCS12_fp(fp: *mut FILE, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS12"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS12"] pub fn i2d_PKCS12(p12: *const PKCS12, out: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS12_bio"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS12_bio"] pub fn i2d_PKCS12_bio(bio: *mut BIO, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_i2d_PKCS12_fp"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_i2d_PKCS12_fp"] pub fn i2d_PKCS12_fp(fp: *mut FILE, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_parse"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_parse"] pub fn PKCS12_parse( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27679,7 +27476,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_verify_mac"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_verify_mac"] pub fn PKCS12_verify_mac( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27687,7 +27484,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_create"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_create"] pub fn PKCS12_create( password: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, @@ -27702,76 +27499,95 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_PKCS12_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_new"] + pub fn PKCS12_new() -> *mut PKCS12; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_PKCS12_free"] pub fn PKCS12_free(p12: *mut PKCS12); } pub type poly1305_state = [u8; 512usize]; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_poly1305_init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_poly1305_init"] pub fn CRYPTO_poly1305_init(state: *mut poly1305_state, key: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_poly1305_update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_poly1305_update"] pub fn CRYPTO_poly1305_update(state: *mut poly1305_state, in_: *const u8, in_len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_poly1305_finish"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_poly1305_finish"] pub fn CRYPTO_poly1305_finish(state: *mut poly1305_state, mac: *mut u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_bytes"] pub fn RAND_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_get_system_entropy_for_custom_prng"] - pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_priv_bytes"] + pub fn RAND_priv_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_cleanup"] - pub fn RAND_cleanup(); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_enable_fork_unsafe_buffering"] + pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_enable_fork_unsafe_buffering"] - pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_get_system_entropy_for_custom_prng"] + pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_pseudo_bytes"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_pseudo_bytes"] pub fn RAND_pseudo_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_seed"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_seed"] pub fn RAND_seed(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_load_file"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_load_file"] pub fn RAND_load_file( path: *const ::std::os::raw::c_char, num: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_file_name"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_write_file"] + pub fn RAND_write_file(file: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_file_name"] pub fn RAND_file_name( buf: *mut ::std::os::raw::c_char, num: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_add"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_add"] pub fn RAND_add(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int, entropy: f64); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_egd"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_egd"] pub fn RAND_egd(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_poll"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_egd_bytes"] + pub fn RAND_egd_bytes( + arg1: *const ::std::os::raw::c_char, + bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_poll"] pub fn RAND_poll() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_status"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_status"] pub fn RAND_status() -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_cleanup"] + pub fn RAND_cleanup(); +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] pub struct rand_meth_st { @@ -27870,21 +27686,25 @@ fn bindgen_test_layout_rand_meth_st() { ); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_SSLeay"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_SSLeay"] pub fn RAND_SSLeay() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_OpenSSL"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_OpenSSL"] pub fn RAND_OpenSSL() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_get_rand_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_get_rand_method"] pub fn RAND_get_rand_method() -> *const RAND_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RAND_set_rand_method"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_set_rand_method"] pub fn RAND_set_rand_method(arg1: *const RAND_METHOD) -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RAND_keep_random_devices_open"] + pub fn RAND_keep_random_devices_open(a: ::std::os::raw::c_int); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct rc4_key_st { @@ -27947,11 +27767,11 @@ impl Default for rc4_key_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RC4_set_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RC4_set_key"] pub fn RC4_set_key(rc4key: *mut RC4_KEY, len: ::std::os::raw::c_uint, key: *const u8); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RC4"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RC4"] pub fn RC4(key: *mut RC4_KEY, len: usize, in_: *const u8, out: *mut u8); } #[repr(C)] @@ -28038,11 +27858,11 @@ impl Default for RIPEMD160state_st { } } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160_Init"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160_Init"] pub fn RIPEMD160_Init(ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160_Update"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160_Update"] pub fn RIPEMD160_Update( ctx: *mut RIPEMD160_CTX, data: *const ::std::os::raw::c_void, @@ -28050,44 +27870,52 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160_Final"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160_Final"] pub fn RIPEMD160_Final(out: *mut u8, ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_RIPEMD160"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_RIPEMD160"] pub fn RIPEMD160(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_service_indicator_before_call"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_service_indicator_before_call"] pub fn FIPS_service_indicator_before_call() -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_FIPS_service_indicator_after_call"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_FIPS_service_indicator_after_call"] pub fn FIPS_service_indicator_after_call() -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_awslc_version_string"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_awslc_version_string"] pub fn awslc_version_string() -> *const ::std::os::raw::c_char; } pub const FIPSStatus_AWSLC_NOT_APPROVED: FIPSStatus = 0; pub const FIPSStatus_AWSLC_APPROVED: FIPSStatus = 1; pub type FIPSStatus = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_SIPHASH_24"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_SIPHASH_24"] pub fn SIPHASH_24(key: *const u64, input: *const u8, input_len: usize) -> u64; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v1"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v1"] pub fn TRUST_TOKEN_experiment_v1() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_voprf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_voprf"] pub fn TRUST_TOKEN_experiment_v2_voprf() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_pmb"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_pmb"] pub fn TRUST_TOKEN_experiment_v2_pmb() -> *const TRUST_TOKEN_METHOD; } +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_voprf"] + pub fn TRUST_TOKEN_pst_v1_voprf() -> *const TRUST_TOKEN_METHOD; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_pmb"] + pub fn TRUST_TOKEN_pst_v1_pmb() -> *const TRUST_TOKEN_METHOD; +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct trust_token_st { @@ -28149,8 +27977,8 @@ pub type sk_TRUST_TOKEN_copy_func = ::std::option::Option *mut TRUST_TOKEN>; pub type sk_TRUST_TOKEN_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const TRUST_TOKEN, - arg2: *mut *const TRUST_TOKEN, + arg1: *const *const TRUST_TOKEN, + arg2: *const *const TRUST_TOKEN, ) -> ::std::os::raw::c_int, >; pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< @@ -28160,15 +27988,15 @@ pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_new"] pub fn TRUST_TOKEN_new(data: *const u8, len: usize) -> *mut TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_free"] pub fn TRUST_TOKEN_free(token: *mut TRUST_TOKEN); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_generate_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_generate_key"] pub fn TRUST_TOKEN_generate_key( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28181,7 +28009,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_derive_key_from_secret"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_derive_key_from_secret"] pub fn TRUST_TOKEN_derive_key_from_secret( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28196,18 +28024,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_new"] pub fn TRUST_TOKEN_CLIENT_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_CLIENT; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_free"] pub fn TRUST_TOKEN_CLIENT_free(ctx: *mut TRUST_TOKEN_CLIENT); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_add_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_add_key"] pub fn TRUST_TOKEN_CLIENT_add_key( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28216,14 +28044,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_set_srr_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_set_srr_key"] pub fn TRUST_TOKEN_CLIENT_set_srr_key( ctx: *mut TRUST_TOKEN_CLIENT, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance"] pub fn TRUST_TOKEN_CLIENT_begin_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28232,7 +28060,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] pub fn TRUST_TOKEN_CLIENT_begin_issuance_over_message( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28243,7 +28071,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_issuance"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_issuance"] pub fn TRUST_TOKEN_CLIENT_finish_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28252,7 +28080,7 @@ extern "C" { ) -> *mut stack_st_TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_redemption"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_redemption"] pub fn TRUST_TOKEN_CLIENT_begin_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28264,7 +28092,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_redemption"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_redemption"] pub fn TRUST_TOKEN_CLIENT_finish_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out_rr: *mut *mut u8, @@ -28276,18 +28104,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_new"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_new"] pub fn TRUST_TOKEN_ISSUER_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_ISSUER; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_free"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_free"] pub fn TRUST_TOKEN_ISSUER_free(ctx: *mut TRUST_TOKEN_ISSUER); } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_add_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_add_key"] pub fn TRUST_TOKEN_ISSUER_add_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28295,14 +28123,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_srr_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_srr_key"] pub fn TRUST_TOKEN_ISSUER_set_srr_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_metadata_key"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_metadata_key"] pub fn TRUST_TOKEN_ISSUER_set_metadata_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28310,7 +28138,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_issue"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_issue"] pub fn TRUST_TOKEN_ISSUER_issue( ctx: *const TRUST_TOKEN_ISSUER, out: *mut *mut u8, @@ -28324,23 +28152,8 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem"] pub fn TRUST_TOKEN_ISSUER_redeem( - ctx: *const TRUST_TOKEN_ISSUER, - out: *mut *mut u8, - out_len: *mut usize, - out_token: *mut *mut TRUST_TOKEN, - out_client_data: *mut *mut u8, - out_client_data_len: *mut usize, - out_redemption_time: *mut u64, - request: *const u8, - request_len: usize, - lifetime: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_raw"] - pub fn TRUST_TOKEN_ISSUER_redeem_raw( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, out_private: *mut u8, @@ -28352,7 +28165,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_over_message"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem_over_message"] pub fn TRUST_TOKEN_ISSUER_redeem_over_message( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, @@ -28367,7 +28180,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_TRUST_TOKEN_decode_private_metadata"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_TRUST_TOKEN_decode_private_metadata"] pub fn TRUST_TOKEN_decode_private_metadata( method: *const TRUST_TOKEN_METHOD, out_value: *mut u8, @@ -28379,7 +28192,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_CRYPTO_tls1_prf"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_CRYPTO_tls1_prf"] pub fn CRYPTO_tls1_prf( digest: *const EVP_MD, out: *mut u8, @@ -28395,15 +28208,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_GET_LIB_RUST"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_GET_LIB_RUST"] pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_GET_REASON_RUST"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_GET_REASON_RUST"] pub fn ERR_GET_REASON_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_fips_0_12_15_ERR_GET_FUNC_RUST"] + #[link_name = "\u{1}_aws_lc_fips_0_13_0_ERR_GET_FUNC_RUST"] pub fn ERR_GET_FUNC_RUST(packed_error: u32) -> ::std::os::raw::c_int; } pub type __builtin_va_list = [__va_list_tag; 1usize]; diff --git a/aws-lc-fips-sys/src/x86_64_unknown_linux_gnu_crypto.rs b/aws-lc-fips-sys/src/x86_64_unknown_linux_gnu_crypto.rs index 831b70b7e56..50c38098e2c 100644 --- a/aws-lc-fips-sys/src/x86_64_unknown_linux_gnu_crypto.rs +++ b/aws-lc-fips-sys/src/x86_64_unknown_linux_gnu_crypto.rs @@ -110,14 +110,130 @@ where 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 = 20; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"2.0.15\0"; +pub const AWSLC_API_VERSION: i32 = 30; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 6] = b"3.0.0\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; pub const AES_BLOCK_SIZE: i32 = 16; +pub const SHA_CBLOCK: i32 = 64; +pub const SHA_DIGEST_LENGTH: i32 = 20; +pub const SHA224_CBLOCK: i32 = 64; +pub const SHA224_DIGEST_LENGTH: i32 = 28; +pub const SHA256_CBLOCK: i32 = 64; +pub const SHA256_DIGEST_LENGTH: i32 = 32; +pub const SHA384_CBLOCK: i32 = 128; +pub const SHA384_DIGEST_LENGTH: i32 = 48; +pub const SHA512_CBLOCK: i32 = 128; +pub const SHA512_DIGEST_LENGTH: i32 = 64; +pub const SHA512_224_DIGEST_LENGTH: i32 = 28; +pub const SHA512_256_DIGEST_LENGTH: i32 = 32; +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; 41] = b"OpenSSL 1.1.1 (compatible; AWS-LC 3.0.0)\0"; +pub const OPENSSL_VERSION: i32 = 0; +pub const OPENSSL_CFLAGS: i32 = 1; +pub const OPENSSL_BUILT_ON: i32 = 2; +pub const OPENSSL_PLATFORM: i32 = 3; +pub const OPENSSL_DIR: i32 = 4; +pub const SSLEAY_VERSION: i32 = 0; +pub const SSLEAY_CFLAGS: i32 = 1; +pub const SSLEAY_BUILT_ON: i32 = 2; +pub const SSLEAY_PLATFORM: i32 = 3; +pub const SSLEAY_DIR: i32 = 4; +pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_ENGINE_ALL_BUILTIN: i32 = 0; pub const ERR_FLAG_STRING: i32 = 1; pub const ERR_FLAG_MALLOCED: i32 = 2; +pub const ERR_LIB_NONE: i32 = 1; +pub const ERR_LIB_SYS: i32 = 2; +pub const ERR_LIB_BN: i32 = 3; +pub const ERR_LIB_RSA: i32 = 4; +pub const ERR_LIB_DH: i32 = 5; +pub const ERR_LIB_EVP: i32 = 6; +pub const ERR_LIB_BUF: i32 = 7; +pub const ERR_LIB_OBJ: i32 = 8; +pub const ERR_LIB_PEM: i32 = 9; +pub const ERR_LIB_DSA: i32 = 10; +pub const ERR_LIB_X509: i32 = 11; +pub const ERR_LIB_ASN1: i32 = 12; +pub const ERR_LIB_CONF: i32 = 13; +pub const ERR_LIB_CRYPTO: i32 = 14; +pub const ERR_LIB_EC: i32 = 15; +pub const ERR_LIB_SSL: i32 = 16; +pub const ERR_LIB_BIO: i32 = 17; +pub const ERR_LIB_PKCS7: i32 = 18; +pub const ERR_LIB_PKCS8: i32 = 19; +pub const ERR_LIB_X509V3: i32 = 20; +pub const ERR_LIB_RAND: i32 = 21; +pub const ERR_LIB_ENGINE: i32 = 22; +pub const ERR_LIB_OCSP: i32 = 23; +pub const ERR_LIB_UI: i32 = 24; +pub const ERR_LIB_COMP: i32 = 25; +pub const ERR_LIB_ECDSA: i32 = 26; +pub const ERR_LIB_ECDH: i32 = 27; +pub const ERR_LIB_HMAC: i32 = 28; +pub const ERR_LIB_DIGEST: i32 = 29; +pub const ERR_LIB_CIPHER: i32 = 30; +pub const ERR_LIB_HKDF: i32 = 31; +pub const ERR_LIB_TRUST_TOKEN: i32 = 32; +pub const ERR_LIB_USER: i32 = 33; +pub const ERR_NUM_LIBS: i32 = 34; +pub const ERR_LIB_PKCS12: i32 = 35; +pub const ERR_LIB_DSO: i32 = 36; +pub const ERR_LIB_OSSL_STORE: i32 = 37; +pub const ERR_LIB_FIPS: i32 = 38; +pub const ERR_LIB_CMS: i32 = 39; +pub const ERR_LIB_TS: i32 = 40; +pub const ERR_LIB_CT: i32 = 41; +pub const ERR_LIB_ASYNC: i32 = 42; +pub const ERR_LIB_KDF: i32 = 43; +pub const ERR_LIB_SM2: i32 = 44; +pub const ERR_R_SYS_LIB: i32 = 2; +pub const ERR_R_BN_LIB: i32 = 3; +pub const ERR_R_RSA_LIB: i32 = 4; +pub const ERR_R_DH_LIB: i32 = 5; +pub const ERR_R_EVP_LIB: i32 = 6; +pub const ERR_R_BUF_LIB: i32 = 7; +pub const ERR_R_OBJ_LIB: i32 = 8; +pub const ERR_R_PEM_LIB: i32 = 9; +pub const ERR_R_DSA_LIB: i32 = 10; +pub const ERR_R_X509_LIB: i32 = 11; +pub const ERR_R_ASN1_LIB: i32 = 12; +pub const ERR_R_CONF_LIB: i32 = 13; +pub const ERR_R_CRYPTO_LIB: i32 = 14; +pub const ERR_R_EC_LIB: i32 = 15; +pub const ERR_R_SSL_LIB: i32 = 16; +pub const ERR_R_BIO_LIB: i32 = 17; +pub const ERR_R_PKCS7_LIB: i32 = 18; +pub const ERR_R_PKCS8_LIB: i32 = 19; +pub const ERR_R_X509V3_LIB: i32 = 20; +pub const ERR_R_RAND_LIB: i32 = 21; +pub const ERR_R_DSO_LIB: i32 = 36; +pub const ERR_R_ENGINE_LIB: i32 = 22; +pub const ERR_R_OCSP_LIB: i32 = 23; +pub const ERR_R_UI_LIB: i32 = 24; +pub const ERR_R_COMP_LIB: i32 = 25; +pub const ERR_R_ECDSA_LIB: i32 = 26; +pub const ERR_R_ECDH_LIB: i32 = 27; +pub const ERR_R_FIPS_LIB: i32 = 38; +pub const ERR_R_CMS_LIB: i32 = 39; +pub const ERR_R_TS_LIB: i32 = 40; +pub const ERR_R_HMAC_LIB: i32 = 28; +pub const ERR_R_USER_LIB: i32 = 33; +pub const ERR_R_DIGEST_LIB: i32 = 29; +pub const ERR_R_CIPHER_LIB: i32 = 30; +pub const ERR_R_HKDF_LIB: i32 = 31; +pub const ERR_R_TRUST_TOKEN_LIB: i32 = 32; pub const ERR_R_FATAL: i32 = 64; pub const ERR_R_MALLOC_FAILURE: i32 = 65; pub const ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED: i32 = 66; @@ -128,10 +244,6 @@ pub const ERR_ERROR_STRING_BUF_LEN: i32 = 120; pub const ERR_TXT_STRING: i32 = 1; pub const ERR_TXT_MALLOCED: i32 = 2; pub const ERR_NUM_ERRORS: i32 = 16; -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 BIO_RR_CONNECT: i32 = 2; pub const BIO_RR_ACCEPT: i32 = 3; pub const BIO_CB_FREE: i32 = 1; @@ -143,6 +255,7 @@ pub const BIO_CB_CTRL: i32 = 6; pub const BIO_CB_RETURN: i32 = 128; pub const BIO_NOCLOSE: i32 = 0; pub const BIO_CLOSE: i32 = 1; +pub const BIO_FP_TEXT: i32 = 16; pub const BIO_CTRL_DGRAM_QUERY_MTU: i32 = 40; pub const BIO_CTRL_DGRAM_SET_MTU: i32 = 42; pub const BIO_CTRL_DGRAM_MTU_EXCEEDED: i32 = 43; @@ -208,7 +321,6 @@ pub const BIO_C_SET_FILE_PTR: i32 = 106; pub const BIO_C_GET_FILE_PTR: i32 = 107; pub const BIO_C_SET_FILENAME: i32 = 108; pub const BIO_C_SET_SSL: i32 = 109; -pub const BIO_C_GET_SSL: i32 = 110; pub const BIO_C_SET_MD: i32 = 111; pub const BIO_C_GET_MD: i32 = 112; pub const BIO_C_GET_CIPHER_STATUS: i32 = 113; @@ -222,9 +334,6 @@ pub const BIO_C_GET_MD_CTX: i32 = 120; pub const BIO_C_GET_PROXY_PARAM: i32 = 121; pub const BIO_C_SET_BUFF_READ_DATA: i32 = 122; pub const BIO_C_GET_ACCEPT: i32 = 124; -pub const BIO_C_SET_SSL_RENEGOTIATE_BYTES: i32 = 125; -pub const BIO_C_GET_SSL_NUM_RENEGOTIATES: i32 = 126; -pub const BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT: i32 = 127; pub const BIO_C_FILE_SEEK: i32 = 128; pub const BIO_C_GET_CIPHER_CTX: i32 = 129; pub const BIO_C_SET_BUF_MEM_EOF_RETURN: i32 = 130; @@ -269,7 +378,6 @@ pub const BIO_R_UNSUPPORTED_METHOD: i32 = 115; pub const BIO_R_WRITE_TO_READ_ONLY_BIO: i32 = 116; pub const BN_BITS2: i32 = 64; pub const BN_DEC_FMT1: &[u8; 4] = b"%lu\0"; -pub const BN_DEC_FMT2: &[u8; 7] = b"%019lu\0"; pub const BN_HEX_FMT1: &[u8; 4] = b"%lx\0"; pub const BN_HEX_FMT2: &[u8; 7] = b"%016lx\0"; pub const BN_RAND_TOP_ANY: i32 = -1; @@ -304,6 +412,7 @@ pub const BN_R_TOO_MANY_TEMPORARY_VARIABLES: i32 = 116; pub const BN_R_BAD_ENCODING: i32 = 117; pub const BN_R_ENCODE_ERROR: i32 = 118; pub const BN_R_INVALID_INPUT: i32 = 119; +pub const BN_F_BN_GENERATE_PRIME_EX: i32 = 0; pub const V_ASN1_UNIVERSAL: i32 = 0; pub const V_ASN1_APPLICATION: i32 = 64; pub const V_ASN1_CONTEXT_SPECIFIC: i32 = 128; @@ -364,6 +473,9 @@ pub const B_ASN1_UTF8STRING: i32 = 8192; pub const B_ASN1_UTCTIME: i32 = 16384; pub const B_ASN1_GENERALIZEDTIME: i32 = 32768; pub const B_ASN1_SEQUENCE: i32 = 65536; +pub const ASN1_BOOLEAN_FALSE: i32 = 0; +pub const ASN1_BOOLEAN_TRUE: i32 = 255; +pub const ASN1_BOOLEAN_NONE: i32 = -1; pub const ASN1_STRING_FLAG_BITS_LEFT: i32 = 8; pub const MBSTRING_FLAG: i32 = 4096; pub const MBSTRING_UTF8: i32 = 4096; @@ -563,7 +675,10 @@ pub const EVP_CIPH_OFB_MODE: i32 = 4; pub const EVP_CIPH_CTR_MODE: i32 = 5; pub const EVP_CIPH_GCM_MODE: i32 = 6; pub const EVP_CIPH_XTS_MODE: i32 = 7; +pub const EVP_CIPH_CCM_MODE: i32 = 8; pub const EVP_CIPH_FLAG_LENGTH_BITS: i32 = 8192; +pub const EVP_CIPH_OCB_MODE: i32 = 9; +pub const EVP_CIPH_WRAP_MODE: i32 = 10; pub const EVP_CIPH_VARIABLE_LENGTH: i32 = 64; pub const EVP_CIPH_ALWAYS_CALL_INIT: i32 = 128; pub const EVP_CIPH_CUSTOM_IV: i32 = 256; @@ -572,9 +687,6 @@ pub const EVP_CIPH_FLAG_CUSTOM_CIPHER: i32 = 1024; pub const EVP_CIPH_FLAG_AEAD_CIPHER: i32 = 2048; pub const EVP_CIPH_CUSTOM_COPY: i32 = 4096; pub const EVP_CIPH_FLAG_NON_FIPS_ALLOW: i32 = 0; -pub const EVP_CIPH_CCM_MODE: i32 = -1; -pub const EVP_CIPH_OCB_MODE: i32 = -2; -pub const EVP_CIPH_WRAP_MODE: i32 = -3; pub const EVP_CIPHER_CTX_FLAG_WRAP_ALLOW: i32 = 0; pub const EVP_CIPH_NO_PADDING: i32 = 2048; pub const EVP_CTRL_INIT: i32 = 0; @@ -591,8 +703,10 @@ pub const EVP_CTRL_AEAD_GET_TAG: i32 = 16; pub const EVP_CTRL_AEAD_SET_TAG: i32 = 17; pub const EVP_CTRL_AEAD_SET_IV_FIXED: i32 = 18; pub const EVP_CTRL_GCM_IV_GEN: i32 = 19; +pub const EVP_CTRL_CCM_SET_L: i32 = 20; pub const EVP_CTRL_AEAD_SET_MAC_KEY: i32 = 23; pub const EVP_CTRL_GCM_SET_IV_INV: i32 = 24; +pub const EVP_CTRL_GET_IVLEN: i32 = 25; pub const EVP_GCM_TLS_FIXED_IV_LEN: i32 = 4; pub const EVP_GCM_TLS_EXPLICIT_IV_LEN: i32 = 8; pub const EVP_GCM_TLS_TAG_LEN: i32 = 16; @@ -636,6 +750,8 @@ pub const CIPHER_R_XTS_DATA_UNIT_IS_TOO_LARGE: i32 = 139; pub const CIPHER_R_CTRL_OPERATION_NOT_PERFORMED: i32 = 140; pub const CIPHER_R_SERIALIZATION_INVALID_EVP_AEAD_CTX: i32 = 141; pub const CIPHER_R_ALIGNMENT_CHANGED: i32 = 142; +pub const CIPHER_R_SERIALIZATION_INVALID_SERDE_VERSION: i32 = 143; +pub const CIPHER_R_SERIALIZATION_INVALID_CIPHER_ID: i32 = 144; pub const CONF_MFLAGS_DEFAULT_SECTION: i32 = 0; pub const CONF_MFLAGS_IGNORE_MISSING_FILE: i32 = 0; pub const CONF_R_LIST_CANNOT_BE_NULL: i32 = 100; @@ -645,36 +761,7 @@ pub const CONF_R_NO_CLOSE_BRACE: i32 = 103; pub const CONF_R_UNABLE_TO_CREATE_NEW_SECTION: i32 = 104; pub const CONF_R_VARIABLE_HAS_NO_VALUE: i32 = 105; pub const CONF_R_VARIABLE_EXPANSION_TOO_LONG: i32 = 106; -pub const SHA_CBLOCK: i32 = 64; -pub const SHA_DIGEST_LENGTH: i32 = 20; -pub const SHA224_CBLOCK: i32 = 64; -pub const SHA224_DIGEST_LENGTH: i32 = 28; -pub const SHA256_CBLOCK: i32 = 64; -pub const SHA256_DIGEST_LENGTH: i32 = 32; -pub const SHA384_CBLOCK: i32 = 128; -pub const SHA384_DIGEST_LENGTH: i32 = 48; -pub const SHA512_CBLOCK: i32 = 128; -pub const SHA512_DIGEST_LENGTH: i32 = 64; -pub const SHA512_256_DIGEST_LENGTH: i32 = 32; -pub const OPENSSL_VERSION_TEXT: &[u8; 35] = b"OpenSSL 1.1.1 (compatible; AWS-LC)\0"; -pub const OPENSSL_VERSION: i32 = 0; -pub const OPENSSL_CFLAGS: i32 = 1; -pub const OPENSSL_BUILT_ON: i32 = 2; -pub const OPENSSL_PLATFORM: i32 = 3; -pub const OPENSSL_DIR: i32 = 4; -pub const SSLEAY_VERSION: i32 = 0; -pub const SSLEAY_CFLAGS: i32 = 1; -pub const SSLEAY_BUILT_ON: i32 = 2; -pub const SSLEAY_PLATFORM: i32 = 3; -pub const SSLEAY_DIR: i32 = 4; -pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; -pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const CONF_R_VARIABLE_EXPANSION_NOT_SUPPORTED: i32 = 107; pub const X25519_PRIVATE_KEY_LEN: i32 = 32; pub const X25519_PUBLIC_VALUE_LEN: i32 = 32; pub const X25519_SHARED_KEY_LEN: i32 = 32; @@ -702,13 +789,18 @@ pub const DH_UNABLE_TO_CHECK_GENERATOR: i32 = 4; pub const DH_CHECK_PUBKEY_TOO_SMALL: i32 = 1; pub const DH_CHECK_PUBKEY_TOO_LARGE: i32 = 2; pub const DH_CHECK_PUBKEY_INVALID: i32 = 4; +pub const DH_FLAG_CACHE_MONT_P: i32 = 0; pub const DH_R_BAD_GENERATOR: i32 = 100; pub const DH_R_INVALID_PUBKEY: i32 = 101; pub const DH_R_MODULUS_TOO_LARGE: i32 = 102; pub const DH_R_NO_PRIVATE_VALUE: i32 = 103; pub const DH_R_DECODE_ERROR: i32 = 104; pub const DH_R_ENCODE_ERROR: i32 = 105; +pub const DH_R_INVALID_NID: i32 = 106; +pub const DH_R_INVALID_PARAMETERS: i32 = 107; +pub const DH_F_DH_BUILTIN_GENPARAMS: i32 = 0; pub const EVP_MAX_MD_SIZE: i32 = 64; +pub const EVP_MAX_MD_CHAINING_LENGTH: i32 = 64; pub const EVP_MAX_MD_BLOCK_SIZE: i32 = 128; pub const EVP_MD_FLAG_DIGALGID_ABSENT: i32 = 2; pub const EVP_MD_FLAG_XOF: i32 = 4; @@ -716,7 +808,6 @@ pub const EVP_MD_CTX_FLAG_NON_FIPS_ALLOW: i32 = 0; pub const DIGEST_R_INPUT_NOT_INITIALIZED: i32 = 100; pub const DIGEST_R_DECODE_ERROR: i32 = 101; pub const DIGEST_R_UNKNOWN_HASH: i32 = 102; -pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const DSA_R_BAD_Q_VALUE: i32 = 100; pub const DSA_R_MISSING_PARAMETERS: i32 = 101; pub const DSA_R_MODULUS_TOO_LARGE: i32 = 102; @@ -725,8 +816,10 @@ pub const DSA_R_BAD_VERSION: i32 = 104; pub const DSA_R_DECODE_ERROR: i32 = 105; pub const DSA_R_ENCODE_ERROR: i32 = 106; pub const DSA_R_INVALID_PARAMETERS: i32 = 107; +pub const DSA_R_TOO_MANY_ITERATIONS: i32 = 108; pub const OPENSSL_EC_EXPLICIT_CURVE: i32 = 0; pub const OPENSSL_EC_NAMED_CURVE: i32 = 1; +pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const EC_PKEY_NO_PARAMETERS: i32 = 1; pub const EC_PKEY_NO_PUBKEY: i32 = 2; pub const ECDSA_FLAG_OPAQUE: i32 = 1; @@ -775,6 +868,7 @@ pub const ECDSA_R_NOT_IMPLEMENTED: i32 = 103; pub const ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED: i32 = 104; pub const ECDSA_R_ENCODE_ERROR: i32 = 105; pub const ECDSA_R_MISMATCHED_SIGNATURE: i32 = 205; +pub const ECDSA_R_TOO_MANY_ITERATIONS: i32 = 106; pub const EVP_R_BUFFER_TOO_SMALL: i32 = 100; pub const EVP_R_COMMAND_NOT_SUPPORTED: i32 = 101; pub const EVP_R_DECODE_ERROR: i32 = 102; @@ -813,6 +907,8 @@ pub const EVP_R_INVALID_PEER_KEY: i32 = 134; pub const EVP_R_NOT_XOF_OR_INVALID_LENGTH: i32 = 135; pub const EVP_R_EMPTY_PSK: i32 = 136; pub const EVP_R_INVALID_BUFFER_SIZE: i32 = 137; +pub const EVP_R_BAD_DECRYPT: i32 = 138; +pub const EVP_R_EXPECTING_A_DH_KEY: i32 = 139; pub const EVP_R_INVALID_PSS_MD: i32 = 500; pub const EVP_R_INVALID_PSS_SALT_LEN: i32 = 501; pub const EVP_R_INVALID_PSS_TRAILER_FIELD: i32 = 502; @@ -3096,8 +3192,6 @@ pub const NID_kx_any: i32 = 957; pub const SN_auth_any: &[u8; 8] = b"AuthANY\0"; pub const LN_auth_any: &[u8; 9] = b"auth-any\0"; pub const NID_auth_any: i32 = 958; -pub const SN_CECPQ2: &[u8; 7] = b"CECPQ2\0"; -pub const NID_CECPQ2: i32 = 959; pub const SN_ED448: &[u8; 6] = b"ED448\0"; pub const NID_ED448: i32 = 960; pub const SN_X448: &[u8; 5] = b"X448\0"; @@ -3137,23 +3231,80 @@ pub const SN_KYBER768_R3: &[u8; 12] = b"KYBER768_R3\0"; pub const NID_KYBER768_R3: i32 = 973; pub const SN_KYBER1024_R3: &[u8; 13] = b"KYBER1024_R3\0"; pub const NID_KYBER1024_R3: i32 = 974; +pub const SN_DILITHIUM3_R3: &[u8; 14] = b"DILITHIUM3_R3\0"; +pub const NID_DILITHIUM3_R3: i32 = 975; +pub const SN_ffdhe2048: &[u8; 10] = b"ffdhe2048\0"; +pub const NID_ffdhe2048: i32 = 976; +pub const SN_ffdhe4096: &[u8; 10] = b"ffdhe4096\0"; +pub const NID_ffdhe4096: i32 = 977; +pub const SN_sha512_224: &[u8; 11] = b"SHA512-224\0"; +pub const LN_sha512_224: &[u8; 11] = b"sha512-224\0"; +pub const NID_sha512_224: i32 = 978; +pub const SN_shake128: &[u8; 9] = b"SHAKE128\0"; +pub const LN_shake128: &[u8; 9] = b"shake128\0"; +pub const NID_shake128: i32 = 979; +pub const SN_shake256: &[u8; 9] = b"SHAKE256\0"; +pub const LN_shake256: &[u8; 9] = b"shake256\0"; +pub const NID_shake256: i32 = 980; +pub const SN_SecP256r1Kyber768Draft00: &[u8; 25] = b"SecP256r1Kyber768Draft00\0"; +pub const NID_SecP256r1Kyber768Draft00: i32 = 981; +pub const SN_X25519Kyber768Draft00: &[u8; 22] = b"X25519Kyber768Draft00\0"; +pub const NID_X25519Kyber768Draft00: i32 = 982; +pub const SN_ffdhe3072: &[u8; 10] = b"ffdhe3072\0"; +pub const NID_ffdhe3072: i32 = 983; +pub const SN_ffdhe8192: &[u8; 10] = b"ffdhe8192\0"; +pub const NID_ffdhe8192: i32 = 984; +pub const SN_MLKEM512IPD: &[u8; 12] = b"MLKEM512IPD\0"; +pub const NID_MLKEM512IPD: i32 = 985; +pub const SN_MLKEM768IPD: &[u8; 12] = b"MLKEM768IPD\0"; +pub const NID_MLKEM768IPD: i32 = 986; +pub const SN_MLKEM1024IPD: &[u8; 13] = b"MLKEM1024IPD\0"; +pub const NID_MLKEM1024IPD: i32 = 987; +pub const SN_MLKEM512: &[u8; 9] = b"MLKEM512\0"; +pub const NID_MLKEM512: i32 = 988; +pub const SN_MLKEM768: &[u8; 9] = b"MLKEM768\0"; +pub const NID_MLKEM768: i32 = 989; +pub const SN_MLKEM1024: &[u8; 10] = b"MLKEM1024\0"; +pub const NID_MLKEM1024: i32 = 990; +pub const SN_X25519MLKEM768: &[u8; 15] = b"X25519MLKEM768\0"; +pub const NID_X25519MLKEM768: i32 = 991; +pub const SN_SecP256r1MLKEM768: &[u8; 18] = b"SecP256r1MLKEM768\0"; +pub const NID_SecP256r1MLKEM768: i32 = 992; +pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; +pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; +pub const OBJ_R_UNKNOWN_NID: i32 = 100; +pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const EVP_PKEY_NONE: i32 = 0; pub const EVP_PKEY_RSA: i32 = 6; pub const EVP_PKEY_RSA_PSS: i32 = 912; -pub const EVP_PKEY_DSA: i32 = 116; pub const EVP_PKEY_EC: i32 = 408; pub const EVP_PKEY_ED25519: i32 = 949; pub const EVP_PKEY_X25519: i32 = 948; -pub const EVP_PKEY_KYBER512: i32 = 971; pub const EVP_PKEY_HKDF: i32 = 969; -pub const EVP_PKEY_KEM: i32 = 970; +pub const EVP_PKEY_HMAC: i32 = 855; pub const EVP_PKEY_DH: i32 = 28; +pub const EVP_PKEY_KEM: i32 = 970; +pub const PKCS5_SALT_LEN: i32 = 8; pub const EVP_PKEY_RSA2: i32 = 19; pub const EVP_PKEY_X448: i32 = 961; pub const EVP_PKEY_ED448: i32 = 960; +pub const EVP_PKEY_DSA: i32 = 116; 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; +pub const HMAC_R_SET_PRECOMPUTED_KEY_EXPORT_NOT_CALLED: i32 = 103; +pub const HMAC_R_NOT_CALLED_JUST_AFTER_INIT: i32 = 104; pub const EVP_HPKE_DHKEM_X25519_HKDF_SHA256: i32 = 32; pub const EVP_HPKE_MAX_PUBLIC_KEY_LENGTH: i32 = 32; pub const EVP_HPKE_MAX_PRIVATE_KEY_LENGTH: i32 = 32; @@ -3173,26 +3324,26 @@ pub const HRSS_POLY3_BYTES: i32 = 140; pub const HRSS_PRIVATE_KEY_BYTES: i32 = 1452; pub const MD4_CBLOCK: i32 = 64; pub const MD4_DIGEST_LENGTH: i32 = 16; -pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; -pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; -pub const OBJ_R_UNKNOWN_NID: i32 = 100; -pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const PKCS7_DETACHED: i32 = 64; +pub const PKCS7_BINARY: i32 = 128; +pub const PKCS7_NOATTR: i32 = 256; +pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_TEXT: i32 = 1; pub const PKCS7_NOCERTS: i32 = 2; +pub const PKCS7_NOSMIMECAP: i32 = 512; +pub const PKCS7_STREAM: i32 = 4096; pub const PKCS7_NOSIGS: i32 = 4; pub const PKCS7_NOCHAIN: i32 = 8; pub const PKCS7_NOINTERN: i32 = 16; pub const PKCS7_NOVERIFY: i32 = 32; -pub const PKCS7_BINARY: i32 = 128; -pub const PKCS7_NOATTR: i32 = 256; -pub const PKCS7_NOSMIMECAP: i32 = 512; -pub const PKCS7_STREAM: i32 = 4096; -pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_R_BAD_PKCS7_VERSION: i32 = 100; pub const PKCS7_R_NOT_PKCS7_SIGNED_DATA: i32 = 101; pub const PKCS7_R_NO_CERTIFICATES_INCLUDED: i32 = 102; pub const PKCS7_R_NO_CRLS_INCLUDED: i32 = 103; +pub const PKCS7_R_UNSUPPORTED_CONTENT_TYPE: i32 = 104; +pub const PKCS7_R_WRONG_CONTENT_TYPE: i32 = 105; +pub const PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER: i32 = 106; +pub const PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE: i32 = 107; pub const RSA_PKCS1_PADDING: i32 = 1; pub const RSA_NO_PADDING: i32 = 3; pub const RSA_PKCS1_OAEP_PADDING: i32 = 4; @@ -3201,6 +3352,8 @@ pub const RSA_PSS_SALTLEN_DIGEST: i32 = -1; pub const RSA_FLAG_OPAQUE: i32 = 1; pub const RSA_FLAG_NO_BLINDING: i32 = 8; pub const RSA_FLAG_EXT_PKEY: i32 = 32; +pub const RSA_FLAG_NO_PUBLIC_EXPONENT: i32 = 64; +pub const RSA_FLAG_LARGE_PUBLIC_EXPONENT: i32 = 128; pub const RSA_3: i32 = 3; pub const RSA_F4: i32 = 65537; pub const RSA_METHOD_FLAG_NO_CHECK: i32 = 1; @@ -3254,15 +3407,86 @@ pub const RSA_R_PUBLIC_KEY_VALIDATION_FAILED: i32 = 146; pub const RSA_R_D_OUT_OF_RANGE: i32 = 147; pub const RSA_R_BLOCK_TYPE_IS_NOT_02: i32 = 148; pub const RSA_R_MISMATCHED_SIGNATURE: i32 = 248; +pub const RSA_F_RSA_OSSL_PRIVATE_ENCRYPT: i32 = 0; +pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; +pub const X509V3_R_BAD_OBJECT: i32 = 101; +pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; +pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; +pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; +pub const X509V3_R_DIRNAME_ERROR: i32 = 105; +pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; +pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; +pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; +pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; +pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; +pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; +pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; +pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; +pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; +pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; +pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; +pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; +pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; +pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; +pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; +pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; +pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; +pub const X509V3_R_INVALID_NAME: i32 = 123; +pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; +pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; +pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; +pub const X509V3_R_INVALID_NUMBER: i32 = 127; +pub const X509V3_R_INVALID_NUMBERS: i32 = 128; +pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; +pub const X509V3_R_INVALID_OPTION: i32 = 130; +pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; +pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; +pub const X509V3_R_INVALID_PURPOSE: i32 = 133; +pub const X509V3_R_INVALID_SECTION: i32 = 134; +pub const X509V3_R_INVALID_SYNTAX: i32 = 135; +pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; +pub const X509V3_R_MISSING_VALUE: i32 = 137; +pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; +pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; +pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; +pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; +pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; +pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; +pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; +pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; +pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; +pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; +pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; +pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; +pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; +pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; +pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; +pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; +pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; +pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; +pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; +pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; +pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; +pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; +pub const X509V3_R_USER_TOO_LONG: i32 = 162; +pub const X509V3_R_INVALID_VALUE: i32 = 163; +pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; pub const X509_VERSION_1: i32 = 0; pub const X509_VERSION_2: i32 = 1; pub const X509_VERSION_3: i32 = 2; -pub const X509_CRL_VERSION_1: i32 = 0; -pub const X509_CRL_VERSION_2: i32 = 1; -pub const X509_REQ_VERSION_1: i32 = 0; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; +pub const EXFLAG_BCONS: i32 = 1; +pub const EXFLAG_KUSAGE: i32 = 2; +pub const EXFLAG_XKUSAGE: i32 = 4; +pub const EXFLAG_NSCERT: i32 = 8; +pub const EXFLAG_CA: i32 = 16; +pub const EXFLAG_SI: i32 = 32; +pub const EXFLAG_V1: i32 = 64; +pub const EXFLAG_INVALID: i32 = 128; +pub const EXFLAG_SET: i32 = 256; +pub const EXFLAG_CRITICAL: i32 = 512; +pub const EXFLAG_SS: i32 = 8192; pub const X509v3_KU_DIGITAL_SIGNATURE: i32 = 128; pub const X509v3_KU_NON_REPUDIATION: i32 = 64; pub const X509v3_KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3272,60 +3496,29 @@ pub const X509v3_KU_KEY_CERT_SIGN: i32 = 4; pub const X509v3_KU_CRL_SIGN: i32 = 2; pub const X509v3_KU_ENCIPHER_ONLY: i32 = 1; pub const X509v3_KU_DECIPHER_ONLY: i32 = 32768; -pub const X509v3_KU_UNDEF: i32 = 65535; -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_OCSP_SIGN: i32 = 6; -pub const X509_TRUST_OCSP_REQUEST: i32 = 7; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_MIN: i32 = 1; -pub const X509_TRUST_MAX: i32 = 8; -pub const X509_TRUST_DYNAMIC: i32 = 1; -pub const X509_TRUST_DYNAMIC_NAME: i32 = 2; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -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 XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_COMPAT: i32 = 0; -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_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 XKU_SSL_SERVER: i32 = 1; +pub const XKU_SSL_CLIENT: i32 = 2; +pub const XKU_SMIME: i32 = 4; +pub const XKU_CODE_SIGN: i32 = 8; +pub const XKU_SGC: i32 = 16; +pub const XKU_OCSP_SIGN: i32 = 32; +pub const XKU_TIMESTAMP: i32 = 64; +pub const XKU_DVCS: i32 = 128; +pub const XKU_ANYEKU: i32 = 256; +pub const X509_SIG_INFO_VALID: i32 = 1; +pub const X509_SIG_INFO_TLS: i32 = 2; +pub const X509_CRL_VERSION_1: i32 = 0; +pub const X509_CRL_VERSION_2: i32 = 1; +pub const X509_REQ_VERSION_1: i32 = 0; +pub const GEN_OTHERNAME: i32 = 0; +pub const GEN_EMAIL: i32 = 1; +pub const GEN_DNS: i32 = 2; +pub const GEN_X400: i32 = 3; +pub const GEN_DIRNAME: i32 = 4; +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_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3387,31 +3580,117 @@ 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_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; -pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; -pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; -pub const X509_V_FLAG_X509_STRICT: i32 = 0; -pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; -pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; -pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; -pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; -pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; -pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; -pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; -pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; -pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; -pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; +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; +pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; +pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; +pub const X509_V_FLAG_X509_STRICT: i32 = 0; +pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; +pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; +pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; +pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; +pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; +pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; +pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; +pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; +pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; +pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; pub const X509_V_FLAG_PARTIAL_CHAIN: i32 = 524288; pub const X509_V_FLAG_NO_ALT_CHAINS: i32 = 1048576; pub const X509_V_FLAG_NO_CHECK_TIME: i32 = 2097152; -pub const X509_VP_FLAG_DEFAULT: i32 = 1; -pub const X509_VP_FLAG_OVERWRITE: i32 = 2; -pub const X509_VP_FLAG_RESET_FLAGS: i32 = 4; -pub const X509_VP_FLAG_LOCKED: i32 = 8; -pub const X509_VP_FLAG_ONCE: i32 = 16; pub const X509_V_FLAG_POLICY_MASK: i32 = 1920; +pub const X509V3_EXT_CTX_DEP: i32 = 2; +pub const X509V3_EXT_MULTILINE: i32 = 4; +pub const CRLDP_ALL_REASONS: i32 = 32895; +pub const NS_SSL_CLIENT: i32 = 128; +pub const NS_SSL_SERVER: i32 = 64; +pub const NS_SMIME: i32 = 32; +pub const NS_OBJSIGN: i32 = 16; +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 X509V3_ADD_OP_MASK: i32 = 15; +pub const X509V3_ADD_DEFAULT: i32 = 0; +pub const X509V3_ADD_APPEND: i32 = 1; +pub const X509V3_ADD_REPLACE: i32 = 2; +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_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -3457,19 +3736,7 @@ pub const X509_R_NO_CERTIFICATE_FOUND: i32 = 141; pub const X509_R_NO_CERTIFICATE_OR_CRL_FOUND: i32 = 142; pub const X509_R_NO_CRL_FOUND: i32 = 143; pub const X509_R_INVALID_POLICY_EXTENSION: i32 = 144; -pub const X509V3_EXT_DYNAMIC: i32 = 1; -pub const X509V3_EXT_CTX_DEP: i32 = 2; -pub const X509V3_EXT_MULTILINE: i32 = 4; -pub const GEN_OTHERNAME: i32 = 0; -pub const GEN_EMAIL: i32 = 1; -pub const GEN_DNS: i32 = 2; -pub const GEN_X400: i32 = 3; -pub const GEN_DIRNAME: i32 = 4; -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 CRLDP_ALL_REASONS: i32 = 32895; +pub const X509_R_UNKNOWN_SIGID_ALGS: i32 = 145; pub const CRL_REASON_NONE: i32 = -1; pub const CRL_REASON_UNSPECIFIED: i32 = 0; pub const CRL_REASON_KEY_COMPROMISE: i32 = 1; @@ -3481,26 +3748,6 @@ pub const CRL_REASON_CERTIFICATE_HOLD: i32 = 6; pub const CRL_REASON_REMOVE_FROM_CRL: i32 = 8; pub const CRL_REASON_PRIVILEGE_WITHDRAWN: i32 = 9; pub const CRL_REASON_AA_COMPROMISE: i32 = 10; -pub const IDP_PRESENT: i32 = 1; -pub const IDP_INVALID: i32 = 2; -pub const IDP_ONLYUSER: i32 = 4; -pub const IDP_ONLYCA: i32 = 8; -pub const IDP_ONLYATTR: i32 = 16; -pub const IDP_INDIRECT: i32 = 32; -pub const IDP_REASONS: i32 = 64; -pub const EXFLAG_BCONS: i32 = 1; -pub const EXFLAG_KUSAGE: i32 = 2; -pub const EXFLAG_XKUSAGE: i32 = 4; -pub const EXFLAG_NSCERT: i32 = 8; -pub const EXFLAG_CA: i32 = 16; -pub const EXFLAG_SI: i32 = 32; -pub const EXFLAG_V1: i32 = 64; -pub const EXFLAG_INVALID: i32 = 128; -pub const EXFLAG_SET: i32 = 256; -pub const EXFLAG_CRITICAL: i32 = 512; -pub const EXFLAG_PROXY: i32 = 1024; -pub const EXFLAG_FRESHEST: i32 = 4096; -pub const EXFLAG_SS: i32 = 8192; pub const KU_DIGITAL_SIGNATURE: i32 = 128; pub const KU_NON_REPUDIATION: i32 = 64; pub const KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3510,124 +3757,24 @@ pub const KU_KEY_CERT_SIGN: i32 = 4; pub const KU_CRL_SIGN: i32 = 2; pub const KU_ENCIPHER_ONLY: i32 = 1; pub const KU_DECIPHER_ONLY: i32 = 32768; -pub const NS_SSL_CLIENT: i32 = 128; -pub const NS_SSL_SERVER: i32 = 64; -pub const NS_SMIME: i32 = 32; -pub const NS_OBJSIGN: i32 = 16; -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 XKU_SSL_SERVER: i32 = 1; -pub const XKU_SSL_CLIENT: i32 = 2; -pub const XKU_SMIME: i32 = 4; -pub const XKU_CODE_SIGN: i32 = 8; -pub const XKU_SGC: i32 = 16; -pub const XKU_OCSP_SIGN: i32 = 32; -pub const XKU_TIMESTAMP: i32 = 64; -pub const XKU_DVCS: i32 = 128; -pub const XKU_ANYEKU: i32 = 256; -pub const X509_PURPOSE_DYNAMIC: i32 = 1; -pub const X509_PURPOSE_DYNAMIC_NAME: i32 = 2; -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_PURPOSE_MIN: i32 = 1; -pub const X509_PURPOSE_MAX: i32 = 9; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509V3_ADD_OP_MASK: i32 = 15; -pub const X509V3_ADD_DEFAULT: i32 = 0; -pub const X509V3_ADD_APPEND: i32 = 1; -pub const X509V3_ADD_REPLACE: i32 = 2; -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 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 X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: 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_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; -pub const X509V3_R_BAD_OBJECT: i32 = 101; -pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; -pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; -pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; -pub const X509V3_R_DIRNAME_ERROR: i32 = 105; -pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; -pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; -pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; -pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; -pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; -pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; -pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; -pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; -pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; -pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; -pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; -pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; -pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; -pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; -pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; -pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; -pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; -pub const X509V3_R_INVALID_NAME: i32 = 123; -pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; -pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; -pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; -pub const X509V3_R_INVALID_NUMBER: i32 = 127; -pub const X509V3_R_INVALID_NUMBERS: i32 = 128; -pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; -pub const X509V3_R_INVALID_OPTION: i32 = 130; -pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; -pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; -pub const X509V3_R_INVALID_PURPOSE: i32 = 133; -pub const X509V3_R_INVALID_SECTION: i32 = 134; -pub const X509V3_R_INVALID_SYNTAX: i32 = 135; -pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; -pub const X509V3_R_MISSING_VALUE: i32 = 137; -pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; -pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; -pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; -pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; -pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; -pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; -pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; -pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; -pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; -pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; -pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; -pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; -pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; -pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; -pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; -pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; -pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; -pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; -pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; -pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; -pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; -pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; -pub const X509V3_R_USER_TOO_LONG: i32 = 162; -pub const X509V3_R_INVALID_VALUE: i32 = 163; -pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; +pub const OCSP_REVOKED_STATUS_UNSPECIFIED: i32 = 0; +pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: i32 = 1; +pub const OCSP_REVOKED_STATUS_CACOMPROMISE: i32 = 2; +pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: i32 = 3; +pub const OCSP_REVOKED_STATUS_SUPERSEDED: i32 = 4; +pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: i32 = 5; +pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: i32 = 6; +pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: i32 = 8; +pub const OCSP_REVOKED_STATUS_PRIVILEGEWITHDRAWN: i32 = 9; +pub const OCSP_REVOKED_STATUS_AACOMPROMISE: i32 = 10; +pub const OCSP_NOCERTS: i32 = 1; pub const OCSP_NOINTERN: i32 = 2; pub const OCSP_NOCHAIN: i32 = 8; +pub const OCSP_NOVERIFY: i32 = 16; pub const OCSP_NOEXPLICIT: i32 = 32; +pub const OCSP_TRUSTOTHER: i32 = 512; +pub const OCSP_RESPID_KEY: i32 = 1024; +pub const OCSP_NOTIME: i32 = 2048; pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: i32 = 0; pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: i32 = 1; pub const OCSP_RESPONSE_STATUS_INTERNALERROR: i32 = 2; @@ -3639,19 +3786,38 @@ pub const V_OCSP_RESPID_KEY: i32 = 1; pub const V_OCSP_CERTSTATUS_GOOD: i32 = 0; pub const V_OCSP_CERTSTATUS_REVOKED: i32 = 1; pub const V_OCSP_CERTSTATUS_UNKNOWN: i32 = 2; +pub const OCSP_NONCE_EQUAL: i32 = 1; +pub const OCSP_NONCE_BOTH_ABSENT: i32 = 2; +pub const OCSP_NONCE_RESPONSE_ONLY: i32 = 3; +pub const OCSP_NONCE_NOT_EQUAL: i32 = 0; +pub const OCSP_NONCE_REQUEST_ONLY: i32 = -1; pub const OCSP_R_CERTIFICATE_VERIFY_ERROR: i32 = 101; pub const OCSP_R_DIGEST_ERR: i32 = 102; pub const OCSP_R_MISSING_OCSPSIGNING_USAGE: i32 = 103; pub const OCSP_R_NOT_BASIC_RESPONSE: i32 = 104; pub const OCSP_R_NO_CERTIFICATES_IN_CHAIN: i32 = 105; pub const OCSP_R_NO_RESPONSE_DATA: i32 = 108; +pub const OCSP_R_NO_REVOKED_TIME: i32 = 109; +pub const OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE: i32 = 110; pub const OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA: i32 = 111; pub const OCSP_R_ROOT_CA_NOT_TRUSTED: i32 = 112; +pub const OCSP_R_SERVER_RESPONSE_PARSE_ERROR: i32 = 115; pub const OCSP_R_SIGNATURE_FAILURE: i32 = 117; pub const OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND: i32 = 118; pub const OCSP_R_UNKNOWN_MESSAGE_DIGEST: i32 = 119; pub const OCSP_R_UNKNOWN_NID: i32 = 120; +pub const OCSP_R_ERROR_PARSING_URL: i32 = 121; +pub const OCSP_R_ERROR_IN_NEXTUPDATE_FIELD: i32 = 122; +pub const OCSP_R_ERROR_IN_THISUPDATE_FIELD: i32 = 123; +pub const OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE: i32 = 124; +pub const OCSP_R_STATUS_EXPIRED: i32 = 125; +pub const OCSP_R_STATUS_NOT_YET_VALID: i32 = 126; +pub const OCSP_R_STATUS_TOO_OLD: i32 = 127; +pub const OCSP_R_REQUEST_NOT_SIGNED: i32 = 128; +pub const OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE: i32 = 129; pub const OCSP_R_NO_SIGNER_KEY: i32 = 130; +pub const OCSP_R_OCSP_REQUEST_DUPLICATE_SIGNATURE: i32 = 131; +pub const OCSP_R_UNKNOWN_FIELD_VALUE: i32 = 132; pub const PEM_BUFSIZE: i32 = 1024; pub const PEM_STRING_X509_OLD: &[u8; 17] = b"X509 CERTIFICATE\0"; pub const PEM_STRING_X509: &[u8; 12] = b"CERTIFICATE\0"; @@ -3675,7 +3841,9 @@ pub const PEM_STRING_DHPARAMS: &[u8; 14] = b"DH PARAMETERS\0"; pub const PEM_STRING_SSL_SESSION: &[u8; 23] = b"SSL SESSION PARAMETERS\0"; pub const PEM_STRING_DSAPARAMS: &[u8; 15] = b"DSA PARAMETERS\0"; pub const PEM_STRING_ECDSA_PUBLIC: &[u8; 17] = b"ECDSA PUBLIC KEY\0"; +pub const PEM_STRING_ECPARAMETERS: &[u8; 14] = b"EC PARAMETERS\0"; pub const PEM_STRING_ECPRIVATEKEY: &[u8; 15] = b"EC PRIVATE KEY\0"; +pub const PEM_STRING_PARAMETERS: &[u8; 11] = b"PARAMETERS\0"; pub const PEM_STRING_CMS: &[u8; 4] = b"CMS\0"; pub const PEM_TYPE_ENCRYPTED: i32 = 10; pub const PEM_TYPE_MIC_ONLY: i32 = 20; @@ -3696,6 +3864,7 @@ pub const PEM_R_READ_KEY: i32 = 111; pub const PEM_R_SHORT_HEADER: i32 = 112; pub const PEM_R_UNSUPPORTED_CIPHER: i32 = 113; pub const PEM_R_UNSUPPORTED_ENCRYPTION: i32 = 114; +pub const PEM_R_PROBLEMS_GETTING_PASSWORD: i32 = 115; pub const PKCS12_DEFAULT_ITER: i32 = 2048; pub const PKCS8_R_BAD_PKCS12_DATA: i32 = 100; pub const PKCS8_R_BAD_PKCS12_VERSION: i32 = 101; @@ -3731,11 +3900,12 @@ pub const PKCS8_R_UNSUPPORTED_PRF: i32 = 130; pub const PKCS8_R_INVALID_CHARACTERS: i32 = 131; pub const PKCS8_R_UNSUPPORTED_OPTIONS: i32 = 132; pub const PKCS8_R_AMBIGUOUS_FRIENDLY_NAME: i32 = 133; +pub const PKCS12_R_MAC_VERIFY_FAILURE: i32 = 108; pub const RIPEMD160_CBLOCK: i32 = 64; pub const RIPEMD160_LBLOCK: i32 = 16; pub const RIPEMD160_DIGEST_LENGTH: i32 = 20; pub const AWSLC_MODE_STRING: &[u8; 8] = b"AWS-LC \0"; -pub const AWSLC_VERSION_STRING: &[u8; 14] = b"AWS-LC 2.0.15\0"; +pub const AWSLC_VERSION_STRING: &[u8; 13] = b"AWS-LC 3.0.0\0"; pub const TRUST_TOKEN_MAX_PRIVATE_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_MAX_PUBLIC_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_R_KEYGEN_FAILURE: i32 = 100; @@ -3801,6 +3971,7 @@ pub type AUTHORITY_KEYID = AUTHORITY_KEYID_st; pub type BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; pub type DIST_POINT = DIST_POINT_st; pub type DSA_SIG = DSA_SIG_st; +pub type GENERAL_NAME = GENERAL_NAME_st; pub type ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; pub type NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; pub type NETSCAPE_SPKAC = Netscape_spkac_st; @@ -3852,6 +4023,12 @@ pub struct X509_req_st { pub type X509_REQ = X509_req_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct x509_sig_info_st { + _unused: [u8; 0], +} +pub type X509_SIG_INFO = x509_sig_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct X509_sig_st { _unused: [u8; 0], } @@ -3914,6 +4091,11 @@ pub struct dh_st { _unused: [u8; 0], } pub type DH = dh_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_st { + _unused: [u8; 0], +} pub type DSA = dsa_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3933,7 +4115,12 @@ pub struct ec_point_st { _unused: [u8; 0], } pub type EC_POINT = ec_point_st; -pub type ECDSA_METHOD = ecdsa_method_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_key_method_st { + _unused: [u8; 0], +} +pub type EC_KEY_METHOD = ec_key_method_st; pub type ECDSA_SIG = ecdsa_sig_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3997,32 +4184,75 @@ pub struct kem_key_st { pub type KEM_KEY = kem_key_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_asn1_method_st { +pub struct evp_pkey_ctx_st { _unused: [u8; 0], } -pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; +pub type EVP_PKEY_CTX = evp_pkey_ctx_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_ctx_st { +pub struct evp_pkey_asn1_method_st { _unused: [u8; 0], } -pub type EVP_PKEY_CTX = evp_pkey_ctx_st; +pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_method_st { +pub struct evp_pkey_st { _unused: [u8; 0], } -pub type EVP_PKEY_METHOD = evp_pkey_method_st; pub type EVP_PKEY = evp_pkey_st; pub type HMAC_CTX = hmac_ctx_st; pub type MD4_CTX = md4_state_st; pub type MD5_CTX = md5_state_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_req_ctx_st { + _unused: [u8; 0], +} +pub type OCSP_REQ_CTX = ocsp_req_ctx_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ossl_init_settings_st { _unused: [u8; 0], } pub type OPENSSL_INIT_SETTINGS = ossl_init_settings_st; +pub type PKCS7 = pkcs7_st; +pub type PKCS7_SIGNED = pkcs7_signed_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_ENVELOPE = pkcs7_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_sign_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGN_ENVELOPE = pkcs7_sign_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_digest_st { + _unused: [u8; 0], +} +pub type PKCS7_DIGEST = pkcs7_digest_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_encrypt_st { + _unused: [u8; 0], +} +pub type PKCS7_ENCRYPT = pkcs7_encrypt_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_recip_info_st { + _unused: [u8; 0], +} +pub type PKCS7_RECIP_INFO = pkcs7_recip_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_signer_info_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGNER_INFO = pkcs7_signer_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pkcs12_st { @@ -4038,6 +4268,11 @@ pub type PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; pub type X509_PKEY = private_key_st; pub type RAND_METHOD = rand_meth_st; pub type RC4_KEY = rc4_key_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_meth_st { + _unused: [u8; 0], +} pub type RSA_METHOD = rsa_meth_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4046,6 +4281,11 @@ pub struct rsassa_pss_params_st { } pub type RSASSA_PSS_PARAMS = rsassa_pss_params_st; pub type RSA_PSS_PARAMS = rsa_pss_params_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_st { + _unused: [u8; 0], +} pub type RSA = rsa_st; pub type SHA256_CTX = sha256_state_st; pub type SHA512_CTX = sha512_state_st; @@ -4148,6 +4388,7 @@ pub struct trust_token_method_st { } pub type TRUST_TOKEN_METHOD = trust_token_method_st; pub type X509V3_CTX = v3_ext_ctx; +pub type X509V3_EXT_METHOD = v3_ext_method; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x509_attributes_st { @@ -4250,7 +4491,7 @@ impl Default for aes_key_st { } pub type AES_KEY = aes_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_encrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_encrypt_key"] pub fn AES_set_encrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4258,7 +4499,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_decrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_decrypt_key"] pub fn AES_set_decrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4266,15 +4507,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_encrypt"] pub fn AES_encrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_decrypt"] pub fn AES_decrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ctr128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ctr128_encrypt"] pub fn AES_ctr128_encrypt( in_: *const u8, out: *mut u8, @@ -4286,7 +4527,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ecb_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ecb_encrypt"] pub fn AES_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -4295,7 +4536,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cbc_encrypt"] pub fn AES_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -4306,7 +4547,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ofb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ofb128_encrypt"] pub fn AES_ofb128_encrypt( in_: *const u8, out: *mut u8, @@ -4317,7 +4558,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cfb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cfb128_encrypt"] pub fn AES_cfb128_encrypt( in_: *const u8, out: *mut u8, @@ -4329,7 +4570,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key"] pub fn AES_wrap_key( key: *const AES_KEY, iv: *const u8, @@ -4339,7 +4580,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key"] pub fn AES_unwrap_key( key: *const AES_KEY, iv: *const u8, @@ -4349,7 +4590,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key_padded"] pub fn AES_wrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4360,7 +4601,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key_padded"] pub fn AES_unwrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4946,27 +5187,27 @@ impl Default for buf_mem_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_new"] pub fn BUF_MEM_new() -> *mut BUF_MEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_free"] pub fn BUF_MEM_free(buf: *mut BUF_MEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_reserve"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_reserve"] pub fn BUF_MEM_reserve(buf: *mut BUF_MEM, cap: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow"] pub fn BUF_MEM_grow(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow_clean"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow_clean"] pub fn BUF_MEM_grow_clean(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_append"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_append"] pub fn BUF_MEM_append( buf: *mut BUF_MEM, in_: *const ::std::os::raw::c_void, @@ -4974,29 +5215,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strdup"] pub fn BUF_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strnlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strnlen"] pub fn BUF_strnlen(str_: *const ::std::os::raw::c_char, max_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strndup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strndup"] pub fn BUF_strndup( str_: *const ::std::os::raw::c_char, size: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_memdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_memdup"] pub fn BUF_memdup( data: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcpy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcpy"] pub fn BUF_strlcpy( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5004,7 +5245,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcat"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcat"] pub fn BUF_strlcat( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -5012,330 +5253,104 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_BIO_strings"] - pub fn ERR_load_BIO_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_ERR_strings"] - pub fn ERR_load_ERR_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_crypto_strings"] - pub fn ERR_load_crypto_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_RAND_strings"] - pub fn ERR_load_RAND_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_free_strings"] - pub fn ERR_free_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error"] - pub fn ERR_get_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line"] - pub fn ERR_get_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line_data"] - pub fn ERR_get_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error"] - pub fn ERR_peek_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line"] - pub fn ERR_peek_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line_data"] - pub fn ERR_peek_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error"] - pub fn ERR_peek_last_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line"] - pub fn ERR_peek_last_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line_data"] - pub fn ERR_peek_last_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string_n"] - pub fn ERR_error_string_n( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - len: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_lib_error_string"] - pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Init"] + pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_reason_error_string"] - pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -pub type ERR_print_errors_callback_t = ::std::option::Option< - unsafe extern "C" fn( - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Update"] + pub fn SHA1_Update( + sha: *mut SHA_CTX, + data: *const ::std::os::raw::c_void, len: usize, - ctx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_cb"] - pub fn ERR_print_errors_cb( - callback: ERR_print_errors_callback_t, - ctx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_fp"] - pub fn ERR_print_errors_fp(file: *mut FILE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_error"] - pub fn ERR_clear_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_mark"] - pub fn ERR_set_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_pop_to_mark"] - pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_next_error_library"] - pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; -} -pub const ERR_LIB_NONE: _bindgen_ty_1 = 1; -pub const ERR_LIB_SYS: _bindgen_ty_1 = 2; -pub const ERR_LIB_BN: _bindgen_ty_1 = 3; -pub const ERR_LIB_RSA: _bindgen_ty_1 = 4; -pub const ERR_LIB_DH: _bindgen_ty_1 = 5; -pub const ERR_LIB_EVP: _bindgen_ty_1 = 6; -pub const ERR_LIB_BUF: _bindgen_ty_1 = 7; -pub const ERR_LIB_OBJ: _bindgen_ty_1 = 8; -pub const ERR_LIB_PEM: _bindgen_ty_1 = 9; -pub const ERR_LIB_DSA: _bindgen_ty_1 = 10; -pub const ERR_LIB_X509: _bindgen_ty_1 = 11; -pub const ERR_LIB_ASN1: _bindgen_ty_1 = 12; -pub const ERR_LIB_CONF: _bindgen_ty_1 = 13; -pub const ERR_LIB_CRYPTO: _bindgen_ty_1 = 14; -pub const ERR_LIB_EC: _bindgen_ty_1 = 15; -pub const ERR_LIB_SSL: _bindgen_ty_1 = 16; -pub const ERR_LIB_BIO: _bindgen_ty_1 = 17; -pub const ERR_LIB_PKCS7: _bindgen_ty_1 = 18; -pub const ERR_LIB_PKCS8: _bindgen_ty_1 = 19; -pub const ERR_LIB_X509V3: _bindgen_ty_1 = 20; -pub const ERR_LIB_RAND: _bindgen_ty_1 = 21; -pub const ERR_LIB_ENGINE: _bindgen_ty_1 = 22; -pub const ERR_LIB_OCSP: _bindgen_ty_1 = 23; -pub const ERR_LIB_UI: _bindgen_ty_1 = 24; -pub const ERR_LIB_COMP: _bindgen_ty_1 = 25; -pub const ERR_LIB_ECDSA: _bindgen_ty_1 = 26; -pub const ERR_LIB_ECDH: _bindgen_ty_1 = 27; -pub const ERR_LIB_HMAC: _bindgen_ty_1 = 28; -pub const ERR_LIB_DIGEST: _bindgen_ty_1 = 29; -pub const ERR_LIB_CIPHER: _bindgen_ty_1 = 30; -pub const ERR_LIB_HKDF: _bindgen_ty_1 = 31; -pub const ERR_LIB_TRUST_TOKEN: _bindgen_ty_1 = 32; -pub const ERR_LIB_USER: _bindgen_ty_1 = 33; -pub const ERR_NUM_LIBS: _bindgen_ty_1 = 34; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_state"] - pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_thread_state"] - pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_func_error_string"] - pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string"] - pub fn ERR_error_string( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_system_error"] - pub fn ERR_clear_system_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_put_error"] - pub fn ERR_put_error( - library: ::std::os::raw::c_int, - unused: ::std::os::raw::c_int, - reason: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_uint, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_data"] - pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Final"] + pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_dataf"] - pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1"] + pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_error_data"] - pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Transform"] + pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); } -pub type OPENSSL_sk_free_func = - ::std::option::Option; -pub type OPENSSL_sk_copy_func = ::std::option::Option< - unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *const ::std::os::raw::c_void, - b: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - obj: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_free_func = ::std::option::Option< - unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), ->; -pub type OPENSSL_sk_call_copy_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_copy_func, - arg2: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_cmp_func, - arg2: *const *const ::std::os::raw::c_void, - arg3: *const *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_delete_if_func, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct stack_st { - pub num: usize, - pub data: *mut *mut ::std::os::raw::c_void, - pub sorted: ::std::os::raw::c_int, - pub num_alloc: usize, - pub comp: OPENSSL_sk_cmp_func, +pub struct sha_state_st { + pub h: [u32; 5usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_stack_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha_state_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!(stack_st)) + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(sha_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stack_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(data) + stringify!(Nl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sorted) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(sorted) + stringify!(Nh) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_alloc) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num_alloc) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 92usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(comp) + stringify!(num) ) ); } -impl Default for stack_st { +impl Default for sha_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5344,274 +5359,140 @@ impl Default for stack_st { } } } -pub type _STACK = stack_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new"] - pub fn sk_new(comp: OPENSSL_sk_cmp_func) -> *mut _STACK; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new_null"] - pub fn sk_new_null() -> *mut _STACK; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_num"] - pub fn sk_num(sk: *const _STACK) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_zero"] - pub fn sk_zero(sk: *mut _STACK); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_value"] - pub fn sk_value(sk: *const _STACK, i: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set"] - pub fn sk_set( - sk: *mut _STACK, - i: usize, - p: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_free"] - pub fn sk_free(sk: *mut _STACK); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free_ex"] - pub fn sk_pop_free_ex( - sk: *mut _STACK, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_insert"] - pub fn sk_insert(sk: *mut _STACK, p: *mut ::std::os::raw::c_void, where_: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete"] - pub fn sk_delete(sk: *mut _STACK, where_: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_ptr"] - pub fn sk_delete_ptr( - sk: *mut _STACK, - p: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_if"] - pub fn sk_delete_if( - sk: *mut _STACK, - call_func: OPENSSL_sk_call_delete_if_func, - func: OPENSSL_sk_delete_if_func, - data: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Init"] + pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_find"] - pub fn sk_find( - sk: *const _STACK, - out_index: *mut usize, - p: *const ::std::os::raw::c_void, - call_cmp_func: OPENSSL_sk_call_cmp_func, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Update"] + pub fn SHA224_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_shift"] - pub fn sk_shift(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_push"] - pub fn sk_push(sk: *mut _STACK, p: *mut ::std::os::raw::c_void) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop"] - pub fn sk_pop(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Final"] + pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_dup"] - pub fn sk_dup(sk: *const _STACK) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224"] + pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_sort"] - pub fn sk_sort(sk: *mut _STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Init"] + pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_is_sorted"] - pub fn sk_is_sorted(sk: *const _STACK) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Update"] + pub fn SHA256_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set_cmp_func"] - pub fn sk_set_cmp_func(sk: *mut _STACK, comp: OPENSSL_sk_cmp_func) -> OPENSSL_sk_cmp_func; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Final"] + pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_deep_copy"] - pub fn sk_deep_copy( - sk: *const _STACK, - call_copy_func: OPENSSL_sk_call_copy_func, - copy_func: OPENSSL_sk_copy_func, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256"] + pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free"] - pub fn sk_pop_free(sk: *mut _STACK, free_func: OPENSSL_sk_free_func); -} -pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_void { - _unused: [u8; 0], -} -pub type sk_void_free_func = - ::std::option::Option; -pub type sk_void_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type sk_void_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type sk_void_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_OPENSSL_STRING { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Transform"] + pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); } -pub type sk_OPENSSL_STRING_free_func = - ::std::option::Option; -pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, ->; -pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_char, - arg2: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_DATA = crypto_ex_data_st; -pub type CRYPTO_EX_free = ::std::option::Option< - unsafe extern "C" fn( - parent: *mut ::std::os::raw::c_void, - ptr: *mut ::std::os::raw::c_void, - ad: *mut CRYPTO_EX_DATA, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ), ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_cleanup_all_ex_data"] - pub fn CRYPTO_cleanup_all_ex_data(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_TransformBlocks"] + pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); } -pub type CRYPTO_EX_dup = ::std::option::Option< - unsafe extern "C" fn( - to: *mut CRYPTO_EX_DATA, - from: *const CRYPTO_EX_DATA, - from_d: *mut *mut ::std::os::raw::c_void, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_unused = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct crypto_ex_data_st { - pub sk: *mut stack_st_void, +pub struct sha256_state_st { + pub h: [u32; 8usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_crypto_ex_data_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha256_state_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!(crypto_ex_data_st)) + ::std::mem::size_of::(), + 112usize, + concat!("Size of: ", stringify!(sha256_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(crypto_ex_data_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha256_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(crypto_ex_data_st), + stringify!(sha256_state_st), "::", - stringify!(sk) + stringify!(h) ) ); -} -impl Default for crypto_ex_data_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(Copy, Clone)] -pub union crypto_mutex_st { - pub alignment: f64, - pub padding: [u8; 56usize], -} -#[test] -fn bindgen_test_layout_crypto_mutex_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(crypto_mutex_st)) + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nl) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(crypto_mutex_st)) + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nh) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(crypto_mutex_st), + stringify!(sha256_state_st), "::", - stringify!(alignment) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(crypto_mutex_st), + stringify!(sha256_state_st), "::", - stringify!(padding) + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(md_len) ) ); } -impl Default for crypto_mutex_st { +impl Default for sha256_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5620,128 +5501,136 @@ impl Default for crypto_mutex_st { } } } -pub type CRYPTO_MUTEX = crypto_mutex_st; -pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_clear"] - pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Init"] + pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_shutdown"] - pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Update"] + pub fn SHA384_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_num_locks"] - pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Final"] + pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_locking_callback"] - pub fn CRYPTO_set_locking_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_add_lock_callback"] - pub fn CRYPTO_set_add_lock_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - num: *mut ::std::os::raw::c_int, - amount: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_locking_callback"] - pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384"] + pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_lock_name"] - pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Init"] + pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_callback"] - pub fn CRYPTO_THREADID_set_callback( - threadid_func: ::std::option::Option, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Update"] + pub fn SHA512_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_numeric"] - pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_pointer"] - pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Final"] + pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_current"] - pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512"] + pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_id_callback"] - pub fn CRYPTO_set_id_callback( - func: ::std::option::Option ::std::os::raw::c_ulong>, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Transform"] + pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct CRYPTO_dynlock { - pub references: ::std::os::raw::c_int, - pub data: *mut CRYPTO_dynlock_value, +pub struct sha512_state_st { + pub h: [u64; 8usize], + pub Nl: u64, + pub Nh: u64, + pub p: [u8; 128usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_CRYPTO_dynlock() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha512_state_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!(CRYPTO_dynlock)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(sha512_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + concat!("Alignment of ", stringify!(sha512_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(references) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(data) + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(p) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 212usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(md_len) ) ); } -impl Default for CRYPTO_dynlock { +impl Default for sha512_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5751,951 +5640,1086 @@ impl Default for CRYPTO_dynlock { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_create_callback"] - pub fn CRYPTO_set_dynlock_create_callback( - dyn_create_function: ::std::option::Option< - unsafe extern "C" fn( - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Init"] + pub fn SHA512_224_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_lock_callback"] - pub fn CRYPTO_set_dynlock_lock_callback( - dyn_lock_function: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Update"] + pub fn SHA512_224_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_destroy_callback"] - pub fn CRYPTO_set_dynlock_destroy_callback( - dyn_destroy_function: ::std::option::Option< - unsafe extern "C" fn( - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Final"] + pub fn SHA512_224_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_create_callback"] - pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224"] + pub fn SHA512_224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_lock_callback"] - pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut CRYPTO_dynlock_value, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Init"] + pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_destroy_callback"] - pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_dynlock_value, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Update"] + pub fn SHA512_256_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_BIO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Final"] + pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } -pub type sk_BIO_free_func = ::std::option::Option; -pub type sk_BIO_copy_func = - ::std::option::Option *mut BIO>; -pub type sk_BIO_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const BIO, arg2: *mut *const BIO) -> ::std::os::raw::c_int, ->; -pub type sk_BIO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new"] - pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256"] + pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free"] - pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc"] + pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vfree"] - pub fn BIO_vfree(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_zalloc"] + pub fn OPENSSL_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_up_ref"] - pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_calloc"] + pub fn OPENSSL_calloc(num: usize, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read"] - pub fn BIO_read( - bio: *mut BIO, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_realloc"] + pub fn OPENSSL_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_gets"] - pub fn BIO_gets( - bio: *mut BIO, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_free"] + pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write"] - pub fn BIO_write( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanse"] + pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_all"] - pub fn BIO_write_all( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_memcmp"] + pub fn CRYPTO_memcmp( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_puts"] - pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hash32"] + pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_flush"] - pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strhash"] + pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl"] - pub fn BIO_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - parg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strdup"] + pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ptr_ctrl"] - pub fn BIO_ptr_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strnlen"] + pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_int_ctrl"] - pub fn BIO_int_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - iarg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalpha"] + pub fn OPENSSL_isalpha(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_reset"] - pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isdigit"] + pub fn OPENSSL_isdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_eof"] - pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isxdigit"] + pub fn OPENSSL_isxdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_flags"] - pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_fromxdigit"] + pub fn OPENSSL_fromxdigit(out: *mut u8, c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_test_flags"] - pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hexstr2buf"] + pub fn OPENSSL_hexstr2buf(str_: *const ::std::os::raw::c_char, len: *mut usize) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_read"] - pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalnum"] + pub fn OPENSSL_isalnum(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_write"] - pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_tolower"] + pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_retry"] - pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isspace"] + pub fn OPENSSL_isspace(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_io_special"] - pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strcasecmp"] + pub fn OPENSSL_strcasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_reason"] - pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strncasecmp"] + pub fn OPENSSL_strncasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + n: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_reason"] - pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_snprintf"] + pub fn BIO_snprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_flags"] - pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vsnprintf"] + pub fn BIO_vsnprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_read"] - pub fn BIO_set_retry_read(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_vasprintf"] + pub fn OPENSSL_vasprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_write"] - pub fn BIO_set_retry_write(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_asprintf"] + pub fn OPENSSL_asprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_flags"] - pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strndup"] + pub fn OPENSSL_strndup( + str_: *const ::std::os::raw::c_char, + size: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_retry_flags"] - pub fn BIO_clear_retry_flags(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_memdup"] + pub fn OPENSSL_memdup( + data: *const ::std::os::raw::c_void, + size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_method_type"] - pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcpy"] + pub fn OPENSSL_strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } -pub type bio_info_cb = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - event: ::std::os::raw::c_int, - parg: *const ::std::os::raw::c_char, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - return_value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long, ->; -pub type BIO_callback_fn_ex = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - oper: ::std::os::raw::c_int, - argp: *const ::std::os::raw::c_char, - len: usize, - argi: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - bio_ret: ::std::os::raw::c_int, - processed: *mut usize, - ) -> ::std::os::raw::c_long, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_callback_ctrl"] - pub fn BIO_callback_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - fp: bio_info_cb, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcat"] + pub fn OPENSSL_strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pending"] - pub fn BIO_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc"] + pub fn CRYPTO_malloc( + size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_pending"] - pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_realloc"] + pub fn CRYPTO_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_wpending"] - pub fn BIO_wpending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_free"] + pub fn CRYPTO_free( + ptr: *mut ::std::os::raw::c_void, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_close"] - pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_clear_free"] + pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_read"] - pub fn BIO_number_read(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_mem_functions"] + pub fn CRYPTO_set_mem_functions( + m: ::std::option::Option< + unsafe extern "C" fn( + arg1: usize, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + r: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: usize, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_written"] - pub fn BIO_number_written(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_init"] + pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_ex"] - pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_initialized"] + pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_arg"] - pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_used"] + pub fn CRYPTO_secure_used() -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_callback_arg"] - pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_malloc"] + pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_push"] - pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_zalloc"] + pub fn OPENSSL_secure_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pop"] - pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_clear_free"] + pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_next"] - pub fn BIO_next(bio: *mut BIO) -> *mut BIO; +#[repr(C)] +#[derive(Copy, Clone)] +pub union crypto_mutex_st { + pub alignment: f64, + pub padding: [u8; 56usize], +} +#[test] +fn bindgen_test_layout_crypto_mutex_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(crypto_mutex_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_mutex_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(crypto_mutex_st), + "::", + stringify!(alignment) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).padding) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(crypto_mutex_st), + "::", + stringify!(padding) + ) + ); +} +impl Default for crypto_mutex_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() + } + } } +pub type CRYPTO_MUTEX = crypto_mutex_st; +pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free_all"] - pub fn BIO_free_all(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_clear"] + pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_find_type"] - pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_shutdown"] + pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_copy_next_retry"] - pub fn BIO_copy_next_retry(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_num_locks"] + pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_printf"] - pub fn BIO_printf( - bio: *mut BIO, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_locking_callback"] + pub fn CRYPTO_set_locking_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_indent"] - pub fn BIO_indent( - bio: *mut BIO, - indent: ::std::os::raw::c_uint, - max_indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_add_lock_callback"] + pub fn CRYPTO_set_add_lock_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + num: *mut ::std::os::raw::c_int, + amount: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_hexdump"] - pub fn BIO_hexdump( - bio: *mut BIO, - data: *const u8, - len: usize, - indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_locking_callback"] + pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors"] - pub fn ERR_print_errors(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_lock_name"] + pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_asn1"] - pub fn BIO_read_asn1( - bio: *mut BIO, - out: *mut *mut u8, - out_len: *mut usize, - max_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_callback"] + pub fn CRYPTO_THREADID_set_callback( + threadid_func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_mem"] - pub fn BIO_s_mem() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_numeric"] + pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_mem_buf"] - pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_pointer"] + pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_mem_contents"] - pub fn BIO_mem_contents( - bio: *const BIO, - out_contents: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_current"] + pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_mem_ptr"] - pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_id_callback"] + pub fn CRYPTO_set_id_callback( + func: ::std::option::Option ::std::os::raw::c_ulong>, + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_buf"] - pub fn BIO_set_mem_buf( - bio: *mut BIO, - b: *mut BUF_MEM, - take_ownership: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct CRYPTO_dynlock { + pub references: ::std::os::raw::c_int, + pub data: *mut CRYPTO_dynlock_value, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_eof_return"] - pub fn BIO_set_mem_eof_return( - bio: *mut BIO, - eof_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_CRYPTO_dynlock() { + 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!(CRYPTO_dynlock)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(data) + ) + ); +} +impl Default for CRYPTO_dynlock { + 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_fips_0_12_15_BIO_s_fd"] - pub fn BIO_s_fd() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_create_callback"] + pub fn CRYPTO_set_dynlock_create_callback( + dyn_create_function: ::std::option::Option< + unsafe extern "C" fn( + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fd"] - pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_lock_callback"] + pub fn CRYPTO_set_dynlock_lock_callback( + dyn_lock_function: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_fd"] - pub fn BIO_set_fd( - bio: *mut BIO, - fd: ::std::os::raw::c_int, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_destroy_callback"] + pub fn CRYPTO_set_dynlock_destroy_callback( + dyn_destroy_function: ::std::option::Option< + unsafe extern "C" fn( + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fd"] - pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_create_callback"] + pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_file"] - pub fn BIO_s_file() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_lock_callback"] + pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut CRYPTO_dynlock_value, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_file"] - pub fn BIO_new_file( - filename: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_destroy_callback"] + pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_dynlock_value, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fp"] - pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_library_init"] + pub fn CRYPTO_library_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fp"] - pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_is_confidential_build"] + pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_fp"] - pub fn BIO_set_fp( - bio: *mut BIO, - file: *mut FILE, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_has_asm"] + pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_filename"] - pub fn BIO_read_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BORINGSSL_self_test"] + pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_filename"] - pub fn BIO_write_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_append_filename"] - pub fn BIO_append_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_pre_sandbox_init"] + pub fn CRYPTO_pre_sandbox_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_rw_filename"] - pub fn BIO_rw_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode"] + pub fn FIPS_mode() -> ::std::os::raw::c_int; } +pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; +pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; +pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; +pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; +pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; +pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_tell"] - pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_read_counter"] + pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_seek"] - pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version"] + pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_socket"] - pub fn BIO_s_socket() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay_version"] + pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_socket"] - pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) - -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay"] + pub fn SSLeay() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_connect"] - pub fn BIO_s_connect() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version_num"] + pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_connect"] - pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_api_version_num"] + pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_hostname"] - pub fn BIO_set_conn_hostname( - bio: *mut BIO, - host_and_optional_port: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc_init"] + pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_port"] - pub fn BIO_set_conn_port( - bio: *mut BIO, - port_str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc_init"] + pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_int_port"] - pub fn BIO_set_conn_int_port( - bio: *mut BIO, - port: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_load_builtin_engines"] + pub fn ENGINE_load_builtin_engines(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_nbio"] - pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_register_all_complete"] + pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_do_connect"] - pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_load_builtin_modules"] + pub fn OPENSSL_load_builtin_modules(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_bio_pair"] - pub fn BIO_new_bio_pair( - out1: *mut *mut BIO, - writebuf1: usize, - out2: *mut *mut BIO, - writebuf2: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init_crypto"] + pub fn OPENSSL_init_crypto( + opts: u64, + settings: *const OPENSSL_INIT_SETTINGS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_read_request"] - pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init"] + pub fn OPENSSL_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_write_guarantee"] - pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanup"] + pub fn OPENSSL_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_shutdown_wr"] - pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode_set"] + pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_new_index"] - pub fn BIO_get_new_index() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_BIO_strings"] + pub fn ERR_load_BIO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_new"] - pub fn BIO_meth_new( - type_: ::std::os::raw::c_int, - name: *const ::std::os::raw::c_char, - ) -> *mut BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_ERR_strings"] + pub fn ERR_load_ERR_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_free"] - pub fn BIO_meth_free(method: *mut BIO_METHOD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_CRYPTO_strings"] + pub fn ERR_load_CRYPTO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_create"] - pub fn BIO_meth_set_create( - method: *mut BIO_METHOD, - create: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_crypto_strings"] + pub fn ERR_load_crypto_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_create"] - pub fn BIO_meth_get_create( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_RAND_strings"] + pub fn ERR_load_RAND_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_destroy"] - pub fn BIO_meth_set_destroy( - method: *mut BIO_METHOD, - destroy: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_free_strings"] + pub fn ERR_free_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_destroy"] - pub fn BIO_meth_get_destroy( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error"] + pub fn ERR_get_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_write"] - pub fn BIO_meth_set_write( - method: *mut BIO_METHOD, - write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line"] + pub fn ERR_get_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_read"] - pub fn BIO_meth_set_read( - method: *mut BIO_METHOD, - read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line_data"] + pub fn ERR_get_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_gets"] - pub fn BIO_meth_set_gets( - method: *mut BIO_METHOD, - gets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error"] + pub fn ERR_peek_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_gets"] - pub fn BIO_meth_get_gets( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line"] + pub fn ERR_peek_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_ctrl"] - pub fn BIO_meth_set_ctrl( - method: *mut BIO_METHOD, - ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line_data"] + pub fn ERR_peek_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_ctrl"] - pub fn BIO_meth_get_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_long, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error"] + pub fn ERR_peek_last_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_callback_ctrl"] - pub fn BIO_meth_set_callback_ctrl( - method: *mut BIO_METHOD, - callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line"] + pub fn ERR_peek_last_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_callback_ctrl"] - pub fn BIO_meth_get_callback_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: bio_info_cb, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line_data"] + pub fn ERR_peek_last_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_data"] - pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string_n"] + pub fn ERR_error_string_n( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + len: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_data"] - pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_lib_error_string"] + pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_init"] - pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_reason_error_string"] + pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } +pub type ERR_print_errors_callback_t = ::std::option::Option< + unsafe extern "C" fn( + str_: *const ::std::os::raw::c_char, + len: usize, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_init"] - pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors_cb"] + pub fn ERR_print_errors_cb( + callback: ERR_print_errors_callback_t, + ctx: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_new_index"] - pub fn BIO_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_fips_0_13_0_ERR_print_errors_fp"] + pub fn ERR_print_errors_fp(file: *mut FILE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_ex_data"] - pub fn BIO_set_ex_data( - bio: *mut BIO, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_error"] + pub fn ERR_clear_error(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_data"] - pub fn BIO_get_ex_data( - bio: *const BIO, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_mark"] + pub fn ERR_set_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_f_base64"] - pub fn BIO_f_base64() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_pop_to_mark"] + pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_special"] - pub fn BIO_set_retry_special(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_next_error_library"] + pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_write_buffer_size"] - pub fn BIO_set_write_buffer_size( - bio: *mut BIO, - buffer_size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_state"] + pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_shutdown"] - pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_thread_state"] + pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_shutdown"] - pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_func_error_string"] + pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_puts"] - pub fn BIO_meth_set_puts( - method: *mut BIO_METHOD, - puts: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string"] + pub fn ERR_error_string( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_puts"] - pub fn BIO_meth_get_puts( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_method_st { - pub type_: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub bwrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bread: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bputs: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub bgets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - pub create: - ::std::option::Option ::std::os::raw::c_int>, - pub destroy: - ::std::option::Option ::std::os::raw::c_int>, - pub callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_system_error"] + pub fn ERR_clear_system_error(); } -#[test] -fn bindgen_test_layout_bio_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(bio_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_method_st)) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_put_error"] + pub fn ERR_put_error( + library: ::std::os::raw::c_int, + unused: ::std::os::raw::c_int, + reason: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_uint, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(name) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_data"] + pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_dataf"] + pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_error_data"] + pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); +} +pub type OPENSSL_sk_free_func = + ::std::option::Option; +pub type OPENSSL_sk_copy_func = ::std::option::Option< + unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + a: *const *const ::std::os::raw::c_void, + b: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + obj: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_free_func = ::std::option::Option< + unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), +>; +pub type OPENSSL_sk_call_copy_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_copy_func, + arg2: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_cmp_func, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_delete_if_func, + arg2: *mut ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st { + _unused: [u8; 0], +} +pub type OPENSSL_STACK = stack_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new"] + pub fn OPENSSL_sk_new(comp: OPENSSL_sk_cmp_func) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new_null"] + pub fn OPENSSL_sk_new_null() -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_num"] + pub fn OPENSSL_sk_num(sk: *const OPENSSL_STACK) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_zero"] + pub fn OPENSSL_sk_zero(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_value"] + pub fn OPENSSL_sk_value(sk: *const OPENSSL_STACK, i: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set"] + pub fn OPENSSL_sk_set( + sk: *mut OPENSSL_STACK, + i: usize, + p: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_free"] + pub fn OPENSSL_sk_free(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop_free_ex"] + pub fn OPENSSL_sk_pop_free_ex( + sk: *mut OPENSSL_STACK, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bwrite) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_insert"] + pub fn OPENSSL_sk_insert( + sk: *mut OPENSSL_STACK, + p: *mut ::std::os::raw::c_void, + where_: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete"] + pub fn OPENSSL_sk_delete(sk: *mut OPENSSL_STACK, where_: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_ptr"] + pub fn OPENSSL_sk_delete_ptr( + sk: *mut OPENSSL_STACK, + p: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_if"] + pub fn OPENSSL_sk_delete_if( + sk: *mut OPENSSL_STACK, + call_func: OPENSSL_sk_call_delete_if_func, + func: OPENSSL_sk_delete_if_func, + data: *mut ::std::os::raw::c_void, ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_find"] + pub fn OPENSSL_sk_find( + sk: *const OPENSSL_STACK, + out_index: *mut usize, + p: *const ::std::os::raw::c_void, + call_cmp_func: OPENSSL_sk_call_cmp_func, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_unshift"] + pub fn OPENSSL_sk_unshift( + sk: *mut OPENSSL_STACK, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_shift"] + pub fn OPENSSL_sk_shift(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_push"] + pub fn OPENSSL_sk_push(sk: *mut OPENSSL_STACK, p: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop"] + pub fn OPENSSL_sk_pop(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_dup"] + pub fn OPENSSL_sk_dup(sk: *const OPENSSL_STACK) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_sort"] + pub fn OPENSSL_sk_sort(sk: *mut OPENSSL_STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_is_sorted"] + pub fn OPENSSL_sk_is_sorted(sk: *const OPENSSL_STACK) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set_cmp_func"] + pub fn OPENSSL_sk_set_cmp_func( + sk: *mut OPENSSL_STACK, + comp: OPENSSL_sk_cmp_func, + ) -> OPENSSL_sk_cmp_func; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_deep_copy"] + pub fn OPENSSL_sk_deep_copy( + sk: *const OPENSSL_STACK, + call_copy_func: OPENSSL_sk_call_copy_func, + copy_func: OPENSSL_sk_copy_func, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, + ) -> *mut OPENSSL_STACK; +} +pub type _STACK = OPENSSL_STACK; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_sk_pop_free"] + pub fn sk_pop_free(sk: *mut OPENSSL_STACK, free_func: OPENSSL_sk_free_func); +} +pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_void { + _unused: [u8; 0], +} +pub type sk_void_free_func = + ::std::option::Option; +pub type sk_void_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type sk_void_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_void, + arg2: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type sk_void_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_OPENSSL_STRING { + _unused: [u8; 0], +} +pub type sk_OPENSSL_STRING_free_func = + ::std::option::Option; +pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, +>; +pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_char, + arg2: *const *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_DATA = crypto_ex_data_st; +pub type CRYPTO_EX_free = ::std::option::Option< + unsafe extern "C" fn( + parent: *mut ::std::os::raw::c_void, + ptr: *mut ::std::os::raw::c_void, + ad: *mut CRYPTO_EX_DATA, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_cleanup_all_ex_data"] + pub fn CRYPTO_cleanup_all_ex_data(); +} +pub type CRYPTO_EX_dup = ::std::option::Option< + unsafe extern "C" fn( + to: *mut CRYPTO_EX_DATA, + from: *const CRYPTO_EX_DATA, + from_d: *mut *mut ::std::os::raw::c_void, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_unused = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct crypto_ex_data_st { + pub sk: *mut stack_st_void, +} +#[test] +fn bindgen_test_layout_crypto_ex_data_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bread) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bputs) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bio_method_st), + stringify!(crypto_ex_data_st), "::", - stringify!(bgets) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(ctrl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(create) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(destroy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(callback_ctrl) + stringify!(sk) ) ); } -impl Default for bio_method_st { +impl Default for crypto_ex_data_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6705,1053 +6729,908 @@ impl Default for bio_method_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_st { - pub method: *const BIO_METHOD, - pub ex_data: CRYPTO_EX_DATA, - pub callback_ex: BIO_callback_fn_ex, - pub cb_arg: *mut ::std::os::raw::c_char, - pub init: ::std::os::raw::c_int, - pub shutdown: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub retry_reason: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_int, - pub references: CRYPTO_refcount_t, - pub ptr: *mut ::std::os::raw::c_void, - pub next_bio: *mut BIO, - pub num_read: usize, - pub num_write: usize, -} -#[test] -fn bindgen_test_layout_bio_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(bio_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(method) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(callback_ex) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(cb_arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(shutdown) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(retry_reason) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(next_bio) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_read) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_write) - ) - ); -} -impl Default for bio_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() - } - } +#[derive(Debug, Copy, Clone)] +pub struct stack_st_BIO { + _unused: [u8; 0], } -pub type BN_ULONG = u64; +pub type sk_BIO_free_func = ::std::option::Option; +pub type sk_BIO_copy_func = + ::std::option::Option *mut BIO>; +pub type sk_BIO_cmp_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const *const BIO, arg2: *const *const BIO) -> ::std::os::raw::c_int, +>; +pub type sk_BIO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_new"] - pub fn BN_new() -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new"] + pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_init"] - pub fn BN_init(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free"] + pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_free"] - pub fn BN_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vfree"] + pub fn BIO_vfree(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_free"] - pub fn BN_clear_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_up_ref"] + pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dup"] - pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read"] + pub fn BIO_read( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_copy"] - pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_ex"] + pub fn BIO_read_ex( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + data_len: usize, + read_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear"] - pub fn BN_clear(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_gets"] + pub fn BIO_gets( + bio: *mut BIO, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_value_one"] - pub fn BN_value_one() -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write"] + pub fn BIO_write( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bits"] - pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_ex"] + pub fn BIO_write_ex( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + data_len: usize, + written_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bytes"] - pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_all"] + pub fn BIO_write_all( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_zero"] - pub fn BN_zero(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_puts"] + pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_one"] - pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_flush"] + pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_word"] - pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl"] + pub fn BIO_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + parg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_u64"] - pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ptr_ctrl"] + pub fn BIO_ptr_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_negative"] - pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_int_ctrl"] + pub fn BIO_int_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + iarg: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_negative"] - pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_reset"] + pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bin2bn"] - pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_eof"] + pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin"] - pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_flags"] + pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_le2bn"] - pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_test_flags"] + pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2le_padded"] - pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_read"] + pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin_padded"] - pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_write"] + pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2cbb_padded"] - pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_retry"] + pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2hex"] - pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_io_special"] + pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_hex2bn"] - pub fn BN_hex2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_reason"] + pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2dec"] - pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_reason"] + pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dec2bn"] - pub fn BN_dec2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_flags"] + pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_asc2bn"] - pub fn BN_asc2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_read"] + pub fn BIO_set_retry_read(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print"] - pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_write"] + pub fn BIO_set_retry_write(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print_fp"] - pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_flags"] + pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_word"] - pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_retry_flags"] + pub fn BIO_clear_retry_flags(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_u64"] - pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_type"] + pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_parse_asn1_unsigned"] - pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_name"] + pub fn BIO_method_name(b: *const BIO) -> *const ::std::os::raw::c_char; } +pub type bio_info_cb = ::std::option::Option< + unsafe extern "C" fn( + b: *mut BIO, + state: ::std::os::raw::c_int, + res: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long, +>; +pub type BIO_callback_fn_ex = ::std::option::Option< + unsafe extern "C" fn( + bio: *mut BIO, + oper: ::std::os::raw::c_int, + argp: *const ::std::os::raw::c_char, + len: usize, + argi: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + bio_ret: ::std::os::raw::c_int, + processed: *mut usize, + ) -> ::std::os::raw::c_long, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_marshal_asn1"] - pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_callback_ctrl"] + pub fn BIO_callback_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + fp: bio_info_cb, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_new"] - pub fn BN_CTX_new() -> *mut BN_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pending"] + pub fn BIO_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_free"] - pub fn BN_CTX_free(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_pending"] + pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_start"] - pub fn BN_CTX_start(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_wpending"] + pub fn BIO_wpending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_get"] - pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_close"] + pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_end"] - pub fn BN_CTX_end(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_read"] + pub fn BIO_number_read(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add"] - pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_written"] + pub fn BIO_number_written(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_uadd"] - pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_ex"] + pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add_word"] - pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_arg"] + pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub"] - pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_callback_arg"] + pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_usub"] - pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_push"] + pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub_word"] - pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pop"] + pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul"] - pub fn BN_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_next"] + pub fn BIO_next(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul_word"] - pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free_all"] + pub fn BIO_free_all(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqr"] - pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_find_type"] + pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div"] - pub fn BN_div( - quotient: *mut BIGNUM, - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_copy_next_retry"] + pub fn BIO_copy_next_retry(bio: *mut BIO); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_printf"] + pub fn BIO_printf( + bio: *mut BIO, + format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div_word"] - pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_indent"] + pub fn BIO_indent( + bio: *mut BIO, + indent: ::std::os::raw::c_uint, + max_indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqrt"] - pub fn BN_sqrt( - out_sqrt: *mut BIGNUM, - in_: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_hexdump"] + pub fn BIO_hexdump( + bio: *mut BIO, + data: *const u8, + len: usize, + indent: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp"] - pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors"] + pub fn ERR_print_errors(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp_word"] - pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_asn1"] + pub fn BIO_read_asn1( + bio: *mut BIO, + out: *mut *mut u8, + out_len: *mut usize, + max_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_ucmp"] - pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_mem"] + pub fn BIO_s_mem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_equal_consttime"] - pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_mem_buf"] + pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_abs_is_word"] - pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_mem_contents"] + pub fn BIO_mem_contents( + bio: *const BIO, + out_contents: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_zero"] - pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_mem_ptr"] + pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_one"] - pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_buf"] + pub fn BIO_set_mem_buf( + bio: *mut BIO, + b: *mut BUF_MEM, + take_ownership: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_word"] - pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_eof_return"] + pub fn BIO_set_mem_eof_return( + bio: *mut BIO, + eof_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_odd"] - pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_fd"] + pub fn BIO_s_fd() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_pow2"] - pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fd"] + pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift"] - pub fn BN_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fd"] + pub fn BIO_set_fd( + bio: *mut BIO, + fd: ::std::os::raw::c_int, + close_flag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift1"] - pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fd"] + pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift"] - pub fn BN_rshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_file"] + pub fn BIO_s_file() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift1"] - pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_file"] + pub fn BIO_new_file( + filename: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_bit"] - pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fp"] + pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_bit"] - pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fp"] + pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_bit_set"] - pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fp"] + pub fn BIO_set_fp( + bio: *mut BIO, + file: *mut FILE, + close_flag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mask_bits"] - pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_filename"] + pub fn BIO_read_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_count_low_zero_bits"] - pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_filename"] + pub fn BIO_write_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_word"] - pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_append_filename"] + pub fn BIO_append_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_pow2"] - pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_rw_filename"] + pub fn BIO_rw_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod_pow2"] - pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_tell"] + pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod"] - pub fn BN_nnmod( - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_seek"] + pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add"] - pub fn BN_mod_add( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_socket"] + pub fn BIO_s_socket() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add_quick"] - pub fn BN_mod_add_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_socket"] + pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) + -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub"] - pub fn BN_mod_sub( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_connect"] + pub fn BIO_s_connect() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub_quick"] - pub fn BN_mod_sub_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_connect"] + pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul"] - pub fn BN_mod_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_hostname"] + pub fn BIO_set_conn_hostname( + bio: *mut BIO, + host_and_optional_port: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqr"] - pub fn BN_mod_sqr( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_port"] + pub fn BIO_set_conn_port( + bio: *mut BIO, + port_str: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift"] - pub fn BN_mod_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_int_port"] + pub fn BIO_set_conn_int_port( + bio: *mut BIO, + port: *const ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift_quick"] - pub fn BN_mod_lshift_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_nbio"] + pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1"] - pub fn BN_mod_lshift1( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_do_connect"] + pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1_quick"] - pub fn BN_mod_lshift1_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_bio_pair"] + pub fn BIO_new_bio_pair( + out1: *mut *mut BIO, + writebuf1: usize, + out2: *mut *mut BIO, + writebuf2: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqrt"] - pub fn BN_mod_sqrt( - in_: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_read_request"] + pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand"] - pub fn BN_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_write_guarantee"] + pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand"] - pub fn BN_pseudo_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_shutdown_wr"] + pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range"] - pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_new_index"] + pub fn BIO_get_new_index() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range_ex"] - pub fn BN_rand_range_ex( - r: *mut BIGNUM, - min_inclusive: BN_ULONG, - max_exclusive: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_new"] + pub fn BIO_meth_new( + type_: ::std::os::raw::c_int, + name: *const ::std::os::raw::c_char, + ) -> *mut BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand_range"] - pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_gencb_st { - pub arg: *mut ::std::os::raw::c_void, - pub callback: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut bn_gencb_st, - ) -> ::std::os::raw::c_int, - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_free"] + pub fn BIO_meth_free(method: *mut BIO_METHOD); } -#[test] -fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bn_gencb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(callback) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_create"] + pub fn BIO_meth_set_create( + method: *mut BIO_METHOD, + create: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } -impl Default for bn_gencb_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_fips_0_13_0_BIO_meth_get_create"] + pub fn BIO_meth_get_create( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_new"] - pub fn BN_GENCB_new() -> *mut BN_GENCB; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_destroy"] + pub fn BIO_meth_set_destroy( + method: *mut BIO_METHOD, + destroy: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_free"] - pub fn BN_GENCB_free(callback: *mut BN_GENCB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_destroy"] + pub fn BIO_meth_get_destroy( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_set"] - pub fn BN_GENCB_set( - callback: *mut BN_GENCB, - f: ::std::option::Option< + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_write"] + pub fn BIO_meth_set_write( + method: *mut BIO_METHOD, + write: ::std::option::Option< unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut BN_GENCB, + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, - arg: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_call"] - pub fn BN_GENCB_call( - callback: *mut BN_GENCB, - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_get_arg"] - pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_generate_prime_ex"] - pub fn BN_generate_prime_ex( - ret: *mut BIGNUM, - bits: ::std::os::raw::c_int, - safe: ::std::os::raw::c_int, - add: *const BIGNUM, - rem: *const BIGNUM, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_read"] + pub fn BIO_meth_set_read( + method: *mut BIO_METHOD, + read: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } -pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; -pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; -pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; -pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_enhanced_miller_rabin_primality_test"] - pub fn BN_enhanced_miller_rabin_primality_test( - out_result: *mut bn_primality_result_t, - w: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_gets"] + pub fn BIO_meth_set_gets( + method: *mut BIO_METHOD, + gets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_primality_test"] - pub fn BN_primality_test( - is_probably_prime: *mut ::std::os::raw::c_int, - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_fasttest_ex"] - pub fn BN_is_prime_fasttest_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_ex"] - pub fn BN_is_prime_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_gets"] + pub fn BIO_meth_get_gets( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_gcd"] - pub fn BN_gcd( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_ctrl"] + pub fn BIO_meth_set_ctrl( + method: *mut BIO_METHOD, + ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse"] - pub fn BN_mod_inverse( - out: *mut BIGNUM, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_blinded"] - pub fn BN_mod_inverse_blinded( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_ctrl"] + pub fn BIO_meth_get_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_long, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_odd"] - pub fn BN_mod_inverse_odd( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_callback_ctrl"] + pub fn BIO_meth_set_callback_ctrl( + method: *mut BIO_METHOD, + callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_for_modulus"] - pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_consttime"] - pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_free"] - pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_callback_ctrl"] + pub fn BIO_meth_get_callback_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: bio_info_cb, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_copy"] - pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_data"] + pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_montgomery"] - pub fn BN_to_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_data"] + pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_from_montgomery"] - pub fn BN_from_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_init"] + pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul_montgomery"] - pub fn BN_mod_mul_montgomery( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_init"] + pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_exp"] - pub fn BN_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_new_index"] + pub fn BIO_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_fips_0_12_15_BN_mod_exp"] - pub fn BN_mod_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_ex_data"] + pub fn BIO_set_ex_data( + bio: *mut BIO, + 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_fips_0_12_15_BN_mod_exp_mont"] - pub fn BN_mod_exp_mont( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_data"] + pub fn BIO_get_ex_data( + bio: *const BIO, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_consttime"] - pub fn BN_mod_exp_mont_consttime( - rr: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_f_base64"] + pub fn BIO_f_base64() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2mpi"] - pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_special"] + pub fn BIO_set_retry_special(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mpi2bn"] - pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_shutdown"] + pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_word"] - pub fn BN_mod_exp_mont_word( - r: *mut BIGNUM, - a: BN_ULONG, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_shutdown"] + pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp2_mont"] - pub fn BN_mod_exp2_mont( - r: *mut BIGNUM, - a1: *const BIGNUM, - p1: *const BIGNUM, - a2: *const BIGNUM, - p2: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_puts"] + pub fn BIO_meth_set_puts( + method: *mut BIO_METHOD, + puts: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new"] - pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_puts"] + pub fn BIO_meth_get_puts( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_set"] - pub fn BN_MONT_CTX_set( - mont: *mut BN_MONT_CTX, - mod_: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_secmem"] + pub fn BIO_s_secmem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2binpad"] - pub fn BN_bn2binpad( - in_: *const BIGNUM, - out: *mut u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_write_buffer_size"] + pub fn BIO_set_write_buffer_size( + bio: *mut BIO, + buffer_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_secure_new"] - pub fn BN_secure_new() -> *mut BIGNUM; -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bignum_st { - pub d: *mut BN_ULONG, - pub width: ::std::os::raw::c_int, - pub dmax: ::std::os::raw::c_int, - pub neg: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_bignum_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!(bignum_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bignum_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bignum_st), - "::", - stringify!(d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, - 8usize, +pub struct bio_method_st { + pub type_: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub bwrite: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bread: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bputs: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, + pub bgets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, + pub create: + ::std::option::Option ::std::os::raw::c_int>, + pub destroy: + ::std::option::Option ::std::os::raw::c_int>, + pub callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, +} +#[test] +fn bindgen_test_layout_bio_method_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 80usize, + concat!("Size of: ", stringify!(bio_method_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bio_method_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(width) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(dmax) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(neg) + stringify!(bwrite) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(flags) + stringify!(bread) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bputs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bgets) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(ctrl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(create) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(destroy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(callback_ctrl) ) ); } -impl Default for bignum_st { +impl Default for bio_method_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7762,267 +7641,178 @@ impl Default for bignum_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_mont_ctx_st { - pub RR: BIGNUM, - pub N: BIGNUM, - pub n0: [BN_ULONG; 2usize], +pub struct bio_st { + pub method: *const BIO_METHOD, + pub ex_data: CRYPTO_EX_DATA, + pub callback_ex: BIO_callback_fn_ex, + pub cb_arg: *mut ::std::os::raw::c_char, + pub init: ::std::os::raw::c_int, + pub shutdown: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub retry_reason: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_int, + pub references: CRYPTO_refcount_t, + pub ptr: *mut ::std::os::raw::c_void, + pub next_bio: *mut BIO, + pub num_read: u64, + pub num_write: u64, } #[test] -fn bindgen_test_layout_bn_mont_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_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!(bn_mont_ctx_st)) + ::std::mem::size_of::(), + 88usize, + concat!("Size of: ", stringify!(bio_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + concat!("Alignment of ", stringify!(bio_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(RR) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ex_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(callback_ex) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(N) + stringify!(cb_arg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(n0) + stringify!(init) ) ); -} -impl Default for bn_mont_ctx_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_fips_0_12_15_BN_num_bits_word"] - pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2bit"] - pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2str"] - pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -pub type d2i_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type i2d_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ITEM_EXP = ASN1_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_VALUE_st { - _unused: [u8; 0], -} -pub type ASN1_VALUE = ASN1_VALUE_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_new"] - pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_free"] - pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i"] - pub fn ASN1_item_d2i( - out: *mut *mut ASN1_VALUE, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - ) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d"] - pub fn ASN1_item_i2d( - val: *mut ASN1_VALUE, - outp: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_dup"] - pub fn ASN1_item_dup( - it: *const ASN1_ITEM, - x: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_fp"] - pub fn ASN1_item_d2i_fp( - it: *const ASN1_ITEM, - in_: *mut FILE, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_bio"] - pub fn ASN1_item_d2i_bio( - it: *const ASN1_ITEM, - in_: *mut BIO, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_fp"] - pub fn ASN1_item_i2d_fp( - it: *const ASN1_ITEM, - out: *mut FILE, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_bio"] - pub fn ASN1_item_i2d_bio( - it: *const ASN1_ITEM, - out: *mut BIO, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_unpack"] - pub fn ASN1_item_unpack( - oct: *const ASN1_STRING, - it: *const ASN1_ITEM, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_pack"] - pub fn ASN1_item_pack( - obj: *mut ::std::os::raw::c_void, - it: *const ASN1_ITEM, - out: *mut *mut ASN1_STRING, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BOOLEAN"] - pub fn d2i_ASN1_BOOLEAN( - out: *mut ASN1_BOOLEAN, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> ASN1_BOOLEAN; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BOOLEAN"] - pub fn i2d_ASN1_BOOLEAN( - a: ASN1_BOOLEAN, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BOOLEAN_it"] - pub static ASN1_BOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TBOOLEAN_it"] - pub static ASN1_TBOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_FBOOLEAN_it"] - pub static ASN1_FBOOLEAN_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct asn1_string_st { - pub length: ::std::os::raw::c_int, - pub type_: ::std::os::raw::c_int, - pub data: *mut ::std::os::raw::c_uchar, - pub flags: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) + unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(shutdown) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_string_st)) + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(flags) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, + 44usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(length) + stringify!(retry_reason) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(type_) + stringify!(num) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 52usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(data) + stringify!(references) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(flags) + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(next_bio) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_read) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(num_write) ) ); } -impl Default for asn1_string_st { +impl Default for bio_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8031,1186 +7821,1039 @@ impl Default for asn1_string_st { } } } +pub type BN_ULONG = u64; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type_new"] - pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_new"] + pub fn BN_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_new"] - pub fn ASN1_STRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_init"] + pub fn BN_init(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_free"] - pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_free"] + pub fn BN_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_clear_free"] - pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_free"] + pub fn BN_clear_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_copy"] - pub fn ASN1_STRING_copy( - dst: *mut ASN1_STRING, - str_: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dup"] + pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_dup"] - pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_copy"] + pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type"] - pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear"] + pub fn BN_clear(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get0_data"] - pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_value_one"] + pub fn BN_value_one() -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_data"] - pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits"] + pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_length"] - pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bytes"] + pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_cmp"] - pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_zero"] + pub fn BN_zero(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set"] - pub fn ASN1_STRING_set( - str_: *mut ASN1_STRING, - data: *const ::std::os::raw::c_void, - len: ossl_ssize_t, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_one"] + pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set0"] - pub fn ASN1_STRING_set0( - str_: *mut ASN1_STRING, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_word"] + pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_new"] - pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_u64"] + pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_new"] - pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_negative"] + pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_new"] - pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_negative"] + pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_new"] - pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bin2bn"] + pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_new"] - pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin"] + pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_new"] - pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_le2bn"] + pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_new"] - pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2le_padded"] + pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_new"] - pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin_padded"] + pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_new"] - pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2cbb_padded"] + pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_free"] - pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2hex"] + pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_free"] - pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_hex2bn"] + pub fn BN_hex2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_free"] - pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2dec"] + pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_free"] - pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dec2bn"] + pub fn BN_dec2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_free"] - pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_asc2bn"] + pub fn BN_asc2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_free"] - pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print"] + pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_free"] - pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print_fp"] + pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_free"] - pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_word"] + pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_free"] - pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_u64"] + pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BMPSTRING"] - pub fn d2i_ASN1_BMPSTRING( - out: *mut *mut ASN1_BMPSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_flags"] + pub fn BN_get_flags(bn: *const BIGNUM, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALSTRING"] - pub fn d2i_ASN1_GENERALSTRING( - out: *mut *mut ASN1_GENERALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_parse_asn1_unsigned"] + pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_IA5STRING"] - pub fn d2i_ASN1_IA5STRING( - out: *mut *mut ASN1_IA5STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_marshal_asn1"] + pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OCTET_STRING"] - pub fn d2i_ASN1_OCTET_STRING( - out: *mut *mut ASN1_OCTET_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_new"] + pub fn BN_CTX_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLESTRING"] - pub fn d2i_ASN1_PRINTABLESTRING( - out: *mut *mut ASN1_PRINTABLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_free"] + pub fn BN_CTX_free(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_T61STRING"] - pub fn d2i_ASN1_T61STRING( - out: *mut *mut ASN1_T61STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_start"] + pub fn BN_CTX_start(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UNIVERSALSTRING"] - pub fn d2i_ASN1_UNIVERSALSTRING( - out: *mut *mut ASN1_UNIVERSALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_get"] + pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTF8STRING"] - pub fn d2i_ASN1_UTF8STRING( - out: *mut *mut ASN1_UTF8STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_end"] + pub fn BN_CTX_end(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_VISIBLESTRING"] - pub fn d2i_ASN1_VISIBLESTRING( - out: *mut *mut ASN1_VISIBLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add"] + pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BMPSTRING"] - pub fn i2d_ASN1_BMPSTRING( - in_: *const ASN1_BMPSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_uadd"] + pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALSTRING"] - pub fn i2d_ASN1_GENERALSTRING( - in_: *const ASN1_GENERALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add_word"] + pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_IA5STRING"] - pub fn i2d_ASN1_IA5STRING( - in_: *const ASN1_IA5STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub"] + pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OCTET_STRING"] - pub fn i2d_ASN1_OCTET_STRING( - in_: *const ASN1_OCTET_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_usub"] + pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLESTRING"] - pub fn i2d_ASN1_PRINTABLESTRING( - in_: *const ASN1_PRINTABLESTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub_word"] + pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_T61STRING"] - pub fn i2d_ASN1_T61STRING( - in_: *const ASN1_T61STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul"] + pub fn BN_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UNIVERSALSTRING"] - pub fn i2d_ASN1_UNIVERSALSTRING( - in_: *const ASN1_UNIVERSALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul_word"] + pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTF8STRING"] - pub fn i2d_ASN1_UTF8STRING( - in_: *const ASN1_UTF8STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqr"] + pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_VISIBLESTRING"] - pub fn i2d_ASN1_VISIBLESTRING( - in_: *const ASN1_VISIBLESTRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div"] + pub fn BN_div( + quotient: *mut BIGNUM, + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_it"] - pub static ASN1_BMPSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div_word"] + pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_it"] - pub static ASN1_GENERALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqrt"] + pub fn BN_sqrt( + out_sqrt: *mut BIGNUM, + in_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_it"] - pub static ASN1_IA5STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp"] + pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_it"] - pub static ASN1_OCTET_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp_word"] + pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_it"] - pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_ucmp"] + pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_it"] - pub static ASN1_T61STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_equal_consttime"] + pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_it"] - pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_abs_is_word"] + pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_it"] - pub static ASN1_UTF8STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_zero"] + pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_it"] - pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_one"] + pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_dup"] - pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_word"] + pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_cmp"] - pub fn ASN1_OCTET_STRING_cmp( - a: *const ASN1_OCTET_STRING, - b: *const ASN1_OCTET_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_odd"] + pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_set"] - pub fn ASN1_OCTET_STRING_set( - str_: *mut ASN1_OCTET_STRING, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_pow2"] + pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_to_UTF8"] - pub fn ASN1_STRING_to_UTF8( - out: *mut *mut ::std::os::raw::c_uchar, - in_: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift"] + pub fn BN_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_copy"] - pub fn ASN1_mbstring_copy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift1"] + pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_ncopy"] - pub fn ASN1_mbstring_ncopy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift"] + pub fn BN_rshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_by_NID"] - pub fn ASN1_STRING_set_by_NID( - out: *mut *mut ASN1_STRING, - in_: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - nid: ::std::os::raw::c_int, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift1"] + pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_add"] - pub fn ASN1_STRING_TABLE_add( - nid: ::std::os::raw::c_int, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, - mask: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_bit"] + pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_new"] - pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_bit"] + pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_free"] - pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_bit_set"] + pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIRECTORYSTRING"] - pub fn d2i_DIRECTORYSTRING( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mask_bits"] + pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIRECTORYSTRING"] - pub fn i2d_DIRECTORYSTRING( - in_: *const ASN1_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_count_low_zero_bits"] + pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_it"] - pub static DIRECTORYSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_word"] + pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_new"] - pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_pow2"] + pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_free"] - pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod_pow2"] + pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DISPLAYTEXT"] - pub fn d2i_DISPLAYTEXT( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod"] + pub fn BN_nnmod( + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DISPLAYTEXT"] - pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add"] + pub fn BN_mod_add( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_it"] - pub static DISPLAYTEXT_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add_quick"] + pub fn BN_mod_add_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_new"] - pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_free"] - pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub"] + pub fn BN_mod_sub( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BIT_STRING"] - pub fn d2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub_quick"] + pub fn BN_mod_sub_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BIT_STRING"] - pub fn i2d_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul"] + pub fn BN_mod_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_BIT_STRING"] - pub fn c2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqr"] + pub fn BN_mod_sqr( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_BIT_STRING"] - pub fn i2c_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift"] + pub fn BN_mod_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_it"] - pub static ASN1_BIT_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift_quick"] + pub fn BN_mod_lshift_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_num_bytes"] - pub fn ASN1_BIT_STRING_num_bytes( - str_: *const ASN1_BIT_STRING, - out: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1"] + pub fn BN_mod_lshift1( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set"] - pub fn ASN1_BIT_STRING_set( - str_: *mut ASN1_BIT_STRING, - d: *const ::std::os::raw::c_uchar, - length: ossl_ssize_t, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1_quick"] + pub fn BN_mod_lshift1_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set_bit"] - pub fn ASN1_BIT_STRING_set_bit( - str_: *mut ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqrt"] + pub fn BN_mod_sqrt( + in_: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_get_bit"] - pub fn ASN1_BIT_STRING_get_bit( - str_: *const ASN1_BIT_STRING, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand"] + pub fn BN_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_check"] - pub fn ASN1_BIT_STRING_check( - str_: *const ASN1_BIT_STRING, - flags: *const ::std::os::raw::c_uchar, - flags_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand"] + pub fn BN_pseudo_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_INTEGER { - _unused: [u8; 0], -} -pub type sk_ASN1_INTEGER_free_func = - ::std::option::Option; -pub type sk_ASN1_INTEGER_copy_func = - ::std::option::Option *mut ASN1_INTEGER>; -pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_INTEGER, - arg2: *mut *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_INTEGER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_new"] - pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range"] + pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_free"] - pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range_ex"] + pub fn BN_rand_range_ex( + r: *mut BIGNUM, + min_inclusive: BN_ULONG, + max_exclusive: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_dup"] - pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand_range"] + pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_INTEGER"] - pub fn d2i_ASN1_INTEGER( - out: *mut *mut ASN1_INTEGER, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct bn_gencb_st { + pub type_: u8, + pub arg: *mut ::std::os::raw::c_void, + pub callback: bn_gencb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_INTEGER"] - pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union bn_gencb_st__bindgen_ty_1 { + pub new_style: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut bn_gencb_st, + ) -> ::std::os::raw::c_int, + >, + pub old_style: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_INTEGER"] - pub fn c2i_ASN1_INTEGER( - in_: *mut *mut ASN1_INTEGER, - outp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; +#[test] +fn bindgen_test_layout_bn_gencb_st__bindgen_ty_1() { + 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!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).new_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(new_style) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).old_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(old_style) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_INTEGER"] - pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +impl Default for bn_gencb_st__bindgen_ty_1 { + 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_fips_0_12_15_ASN1_INTEGER_it"] - pub static ASN1_INTEGER_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(callback) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set_uint64"] - pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; +impl Default for bn_gencb_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_fips_0_12_15_ASN1_INTEGER_set_int64"] - pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_new"] + pub fn BN_GENCB_new() -> *mut BN_GENCB; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_uint64"] - pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_free"] + pub fn BN_GENCB_free(callback: *mut BN_GENCB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_int64"] - pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_INTEGER"] - pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_to_BN"] - pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set"] + pub fn BN_GENCB_set( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut BN_GENCB, + ) -> ::std::os::raw::c_int, + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_cmp"] - pub fn ASN1_INTEGER_cmp( - x: *const ASN1_INTEGER, - y: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_call"] + pub fn BN_GENCB_call( + callback: *mut BN_GENCB, + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_new"] - pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_get_arg"] + pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_free"] - pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_generate_prime_ex"] + pub fn BN_generate_prime_ex( + ret: *mut BIGNUM, + bits: ::std::os::raw::c_int, + safe: ::std::os::raw::c_int, + add: *const BIGNUM, + rem: *const BIGNUM, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } +pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; +pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; +pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; +pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_ENUMERATED"] - pub fn d2i_ASN1_ENUMERATED( - out: *mut *mut ASN1_ENUMERATED, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_enhanced_miller_rabin_primality_test"] + pub fn BN_enhanced_miller_rabin_primality_test( + out_result: *mut bn_primality_result_t, + w: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_ENUMERATED"] - pub fn i2d_ASN1_ENUMERATED( - in_: *const ASN1_ENUMERATED, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_primality_test"] + pub fn BN_primality_test( + is_probably_prime: *mut ::std::os::raw::c_int, + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_it"] - pub static ASN1_ENUMERATED_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_fasttest_ex"] + pub fn BN_is_prime_fasttest_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_uint64"] - pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_ex"] + pub fn BN_is_prime_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_int64"] - pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_gcd"] + pub fn BN_gcd( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_uint64"] - pub fn ASN1_ENUMERATED_get_uint64( - out: *mut u64, - a: *const ASN1_ENUMERATED, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse"] + pub fn BN_mod_inverse( + out: *mut BIGNUM, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_int64"] - pub fn ASN1_ENUMERATED_get_int64( - out: *mut i64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_blinded"] + pub fn BN_mod_inverse_blinded( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_ENUMERATED"] - pub fn BN_to_ASN1_ENUMERATED( - bn: *const BIGNUM, - ai: *mut ASN1_ENUMERATED, - ) -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_odd"] + pub fn BN_mod_inverse_odd( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_to_BN"] - pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_for_modulus"] + pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_new"] - pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_consttime"] + pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_free"] - pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_free"] + pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTCTIME"] - pub fn d2i_ASN1_UTCTIME( - out: *mut *mut ASN1_UTCTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_copy"] + pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTCTIME"] - pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_montgomery"] + pub fn BN_to_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_it"] - pub static ASN1_UTCTIME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_from_montgomery"] + pub fn BN_from_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_check"] - pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul_montgomery"] + pub fn BN_mod_mul_montgomery( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set"] - pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_exp"] + pub fn BN_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_adj"] - pub fn ASN1_UTCTIME_adj( - s: *mut ASN1_UTCTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp"] + pub fn BN_mod_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set_string"] - pub fn ASN1_UTCTIME_set_string( - s: *mut ASN1_UTCTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont"] + pub fn BN_mod_exp_mont( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_cmp_time_t"] - pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime"] + pub fn BN_mod_exp_mont_consttime( + rr: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_new"] - pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set_old"] + pub fn BN_GENCB_set_old( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_free"] - pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2mpi"] + pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALIZEDTIME"] - pub fn d2i_ASN1_GENERALIZEDTIME( - out: *mut *mut ASN1_GENERALIZEDTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mpi2bn"] + pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALIZEDTIME"] - pub fn i2d_ASN1_GENERALIZEDTIME( - in_: *const ASN1_GENERALIZEDTIME, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_word"] + pub fn BN_mod_exp_mont_word( + r: *mut BIGNUM, + a: BN_ULONG, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_it"] - pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_check"] - pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp2_mont"] + pub fn BN_mod_exp2_mont( + r: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set"] - pub fn ASN1_GENERALIZEDTIME_set( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new"] + pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_adj"] - pub fn ASN1_GENERALIZEDTIME_adj( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_set"] + pub fn BN_MONT_CTX_set( + mont: *mut BN_MONT_CTX, + mod_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set_string"] - pub fn ASN1_GENERALIZEDTIME_set_string( - s: *mut ASN1_GENERALIZEDTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2binpad"] + pub fn BN_bn2binpad( + in_: *const BIGNUM, + out: *mut u8, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_new"] - pub fn ASN1_TIME_new() -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_secure_new"] + pub fn BN_secure_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_free"] - pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_secure_new"] + pub fn BN_CTX_secure_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TIME"] - pub fn d2i_ASN1_TIME( - out: *mut *mut ASN1_TIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TIME"] - pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_it"] - pub static ASN1_TIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_diff"] - pub fn ASN1_TIME_diff( - out_days: *mut ::std::os::raw::c_int, - out_seconds: *mut ::std::os::raw::c_int, - from: *const ASN1_TIME, - to: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_posix"] - pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set"] - pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_adj"] - pub fn ASN1_TIME_adj( - s: *mut ASN1_TIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_check"] - pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_generalizedtime"] - pub fn ASN1_TIME_to_generalizedtime( - t: *const ASN1_TIME, - out: *mut *mut ASN1_GENERALIZEDTIME, - ) -> *mut ASN1_GENERALIZEDTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_string"] - pub fn ASN1_TIME_set_string( - s: *mut ASN1_TIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime_x2"] + pub fn BN_mod_exp_mont_consttime_x2( + rr1: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + m1: *const BIGNUM, + in_mont1: *const BN_MONT_CTX, + rr2: *mut BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m2: *const BIGNUM, + in_mont2: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_time_t"] - pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_posix"] - pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_new"] - pub fn ASN1_NULL_new() -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_free"] - pub fn ASN1_NULL_free(null: *mut ASN1_NULL); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_NULL"] - pub fn d2i_ASN1_NULL( - out: *mut *mut ASN1_NULL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_NULL"] - pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_it"] - pub static ASN1_NULL_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_OBJECT { - _unused: [u8; 0], -} -pub type sk_ASN1_OBJECT_free_func = - ::std::option::Option; -pub type sk_ASN1_OBJECT_copy_func = - ::std::option::Option *mut ASN1_OBJECT>; -pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_OBJECT, - arg2: *mut *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_create"] - pub fn ASN1_OBJECT_create( - nid: ::std::os::raw::c_int, - data: *const u8, - len: ::std::os::raw::c_int, - sn: *const ::std::os::raw::c_char, - ln: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_free"] - pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OBJECT"] - pub fn d2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OBJECT"] - pub fn i2d_ASN1_OBJECT(a: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_OBJECT"] - pub fn c2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_it"] - pub static ASN1_OBJECT_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct asn1_type_st { - pub type_: ::std::os::raw::c_int, - pub value: asn1_type_st__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union asn1_type_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub boolean: ASN1_BOOLEAN, - pub asn1_string: *mut ASN1_STRING, - pub object: *mut ASN1_OBJECT, - pub integer: *mut ASN1_INTEGER, - pub enumerated: *mut ASN1_ENUMERATED, - pub bit_string: *mut ASN1_BIT_STRING, - pub octet_string: *mut ASN1_OCTET_STRING, - pub printablestring: *mut ASN1_PRINTABLESTRING, - pub t61string: *mut ASN1_T61STRING, - pub ia5string: *mut ASN1_IA5STRING, - pub generalstring: *mut ASN1_GENERALSTRING, - pub bmpstring: *mut ASN1_BMPSTRING, - pub universalstring: *mut ASN1_UNIVERSALSTRING, - pub utctime: *mut ASN1_UTCTIME, - pub generalizedtime: *mut ASN1_GENERALIZEDTIME, - pub visiblestring: *mut ASN1_VISIBLESTRING, - pub utf8string: *mut ASN1_UTF8STRING, - pub set: *mut ASN1_STRING, - pub sequence: *mut ASN1_STRING, - pub asn1_value: *mut ASN1_VALUE, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bignum_st { + pub d: *mut BN_ULONG, + pub width: ::std::os::raw::c_int, + pub dmax: ::std::os::raw::c_int, + pub neg: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bignum_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!(asn1_type_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(bignum_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + concat!("Alignment of ", stringify!(bignum_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(ptr) + stringify!(d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(boolean) + stringify!(width) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(asn1_string) + stringify!(dmax) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(object) + stringify!(neg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(integer) + stringify!(flags) ) ); +} +impl Default for bignum_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 bn_mont_ctx_st { + pub RR: BIGNUM, + pub N: BIGNUM, + pub n0: [BN_ULONG; 2usize], +} +#[test] +fn bindgen_test_layout_bn_mont_ctx_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!(bn_mont_ctx_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(enumerated) + stringify!(RR) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bit_string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(octet_string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(printablestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(t61string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(ia5string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(bmpstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(universalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utctime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalizedtime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(visiblestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utf8string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(sequence) + stringify!(N) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(asn1_value) + stringify!(n0) ) ); } -impl Default for asn1_type_st__bindgen_ty_1 { +impl Default for bn_mont_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9219,391 +8862,224 @@ impl Default for asn1_type_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_type_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits_word"] + pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; } -impl Default for asn1_type_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_fips_0_13_0_ASN1_tag2bit"] + pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_TYPE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_tag2str"] + pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -pub type sk_ASN1_TYPE_free_func = ::std::option::Option; -pub type sk_ASN1_TYPE_copy_func = - ::std::option::Option *mut ASN1_TYPE>; -pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< +pub type d2i_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_TYPE, - arg2: *mut *const ASN1_TYPE, - ) -> ::std::os::raw::c_int, + arg1: *mut *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, >; -pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< +pub type i2d_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut ASN1_TYPE, - arg2: *mut ::std::os::raw::c_void, + arg1: *const ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int, >; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_new"] - pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; +pub type ASN1_ITEM_EXP = ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_VALUE_st { + _unused: [u8; 0], } +pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_free"] - pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_new"] + pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TYPE"] - pub fn d2i_ASN1_TYPE( - out: *mut *mut ASN1_TYPE, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TYPE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_free"] + pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TYPE"] - pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i"] + pub fn ASN1_item_d2i( + out: *mut *mut ASN1_VALUE, + inp: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + ) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ANY_it"] - pub static ASN1_ANY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d"] + pub fn ASN1_item_i2d( + val: *mut ASN1_VALUE, + outp: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_get"] - pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_dup"] + pub fn ASN1_dup( + i2d: i2d_of_void, + d2i: d2i_of_void, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set"] - pub fn ASN1_TYPE_set( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_dup"] + pub fn ASN1_item_dup( + it: *const ASN1_ITEM, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set1"] - pub fn ASN1_TYPE_set1( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_cmp"] - pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; -} -pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SEQUENCE_ANY"] - pub fn d2i_ASN1_SEQUENCE_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SEQUENCE_ANY"] - pub fn i2d_ASN1_SEQUENCE_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_fp"] + pub fn ASN1_item_d2i_fp( + it: *const ASN1_ITEM, + in_: *mut FILE, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SET_ANY"] - pub fn d2i_ASN1_SET_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_bio"] + pub fn ASN1_item_d2i_bio( + it: *const ASN1_ITEM, + in_: *mut BIO, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SET_ANY"] - pub fn i2d_ASN1_SET_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_fp"] + pub fn ASN1_item_i2d_fp( + it: *const ASN1_ITEM, + out: *mut FILE, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_print"] - pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_print"] - pub fn ASN1_GENERALIZEDTIME_print( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_bio"] + pub fn ASN1_item_i2d_bio( + it: *const ASN1_ITEM, out: *mut BIO, - a: *const ASN1_GENERALIZEDTIME, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_print"] - pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print"] - pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex"] - pub fn ASN1_STRING_print_ex( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_i2d_bio"] + pub fn ASN1_i2d_bio( + i2d: i2d_of_void, out: *mut BIO, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex_fp"] - pub fn ASN1_STRING_print_ex_fp( - fp: *mut FILE, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_INTEGER"] - pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_ENUMERATED"] - pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_OBJECT"] - pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_STRING"] - pub fn i2a_ASN1_STRING( - bp: *mut BIO, - a: *const ASN1_STRING, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2t_ASN1_OBJECT"] - pub fn i2t_ASN1_OBJECT( - buf: *mut ::std::os::raw::c_char, - buf_len: ::std::os::raw::c_int, - a: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_get_object"] - pub fn ASN1_get_object( - inp: *mut *const ::std::os::raw::c_uchar, - out_length: *mut ::std::os::raw::c_long, - out_tag: *mut ::std::os::raw::c_int, - out_class: *mut ::std::os::raw::c_int, - max_len: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_object"] - pub fn ASN1_put_object( - outp: *mut *mut ::std::os::raw::c_uchar, - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - xclass: ::std::os::raw::c_int, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_eoc"] - pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_object_size"] - pub fn ASN1_object_size( - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask"] - pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask_asc"] - pub fn ASN1_STRING_set_default_mask_asc( - p: *const ::std::os::raw::c_char, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get_default_mask"] - pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_cleanup"] - pub fn ASN1_STRING_TABLE_cleanup(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_new"] - pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_free"] - pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_unpack"] + pub fn ASN1_item_unpack( + oct: *const ASN1_STRING, + it: *const ASN1_ITEM, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLE"] - pub fn d2i_ASN1_PRINTABLE( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_pack"] + pub fn ASN1_item_pack( + obj: *mut ::std::os::raw::c_void, + it: *const ASN1_ITEM, out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLE"] - pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) - -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_it"] - pub static ASN1_PRINTABLE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BOOLEAN"] + pub fn d2i_ASN1_BOOLEAN( + out: *mut ASN1_BOOLEAN, + inp: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> ASN1_BOOLEAN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set"] - pub fn ASN1_INTEGER_set( - a: *mut ASN1_INTEGER, - v: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BOOLEAN"] + pub fn i2d_ASN1_BOOLEAN( + a: ASN1_BOOLEAN, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set"] - pub fn ASN1_ENUMERATED_set( - a: *mut ASN1_ENUMERATED, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BOOLEAN_it"] + pub static ASN1_BOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get"] - pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TBOOLEAN_it"] + pub static ASN1_TBOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get"] - pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; -} -pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_TLC_st { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_FBOOLEAN_it"] + pub static ASN1_FBOOLEAN_it: ASN1_ITEM; } -pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_TEMPLATE_st { - pub flags: u32, - pub tag: ::std::os::raw::c_int, - pub offset: ::std::os::raw::c_ulong, - pub field_name: *const ::std::os::raw::c_char, - pub item: *const ASN1_ITEM_st, +pub struct asn1_string_st { + pub length: ::std::os::raw::c_int, + pub type_: ::std::os::raw::c_int, + pub data: *mut ::std::os::raw::c_uchar, + pub flags: ::std::os::raw::c_long, } #[test] -fn bindgen_test_layout_ASN1_TEMPLATE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_string_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(asn1_string_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + concat!("Alignment of ", stringify!(asn1_string_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(flags) + stringify!(length) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(tag) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(offset) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(field_name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(item) + stringify!(flags) ) ); } -impl Default for ASN1_TEMPLATE_st { +impl Default for asn1_string_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9612,2423 +9088,1197 @@ impl Default for ASN1_TEMPLATE_st { } } } -pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; -pub type ASN1_ADB = ASN1_ADB_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct asn1_must_be_null_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_type_new"] + pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; } -pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_st { - pub flags: u32, - pub offset: ::std::os::raw::c_ulong, - pub unused: *mut ASN1_MUST_BE_NULL, - pub tbl: *const ASN1_ADB_TABLE, - pub tblcount: ::std::os::raw::c_long, - pub default_tt: *const ASN1_TEMPLATE, - pub null_tt: *const ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_new"] + pub fn ASN1_STRING_new() -> *mut ASN1_STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(unused) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tbl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tblcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(default_tt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(null_tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_free"] + pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); } -impl Default for ASN1_ADB_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_fips_0_13_0_ASN1_STRING_clear_free"] + pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_TABLE_st { - pub value: ::std::os::raw::c_int, - pub tt: ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_copy"] + pub fn ASN1_STRING_copy( + dst: *mut ASN1_STRING, + str_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_dup"] + pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; } -impl Default for ASN1_ADB_TABLE_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_fips_0_13_0_ASN1_STRING_type"] + pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ITEM_st { - pub itype: ::std::os::raw::c_char, - pub utype: ::std::os::raw::c_int, - pub templates: *const ASN1_TEMPLATE, - pub tcount: ::std::os::raw::c_long, - pub funcs: *const ::std::os::raw::c_void, - pub size: ::std::os::raw::c_long, - pub sname: *const ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get0_data"] + pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; } -#[test] -fn bindgen_test_layout_ASN1_ITEM_st() { - 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!(ASN1_ITEM_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ITEM_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(itype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(utype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(templates) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(tcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(funcs) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(sname) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_data"] + pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; } -impl Default for ASN1_ITEM_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_fips_0_13_0_ASN1_STRING_length"] + pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; } -pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; -pub type ASN1_free_func = ::std::option::Option; -pub type ASN1_d2i_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut ASN1_VALUE, ->; -pub type ASN1_i2d_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut ASN1_VALUE, - in_: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_d2i = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - opt: ::std::os::raw::c_char, - ctx: *mut ASN1_TLC, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_i2d = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - out: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_new_func = ::std::option::Option< - unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_free_func = - ::std::option::Option; -pub type ASN1_ex_print_func = ::std::option::Option< - unsafe extern "C" fn( - out: *mut BIO, - pval: *mut *mut ASN1_VALUE, - indent: ::std::os::raw::c_int, - fname: *const ::std::os::raw::c_char, - pctx: *const ASN1_PCTX, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_EXTERN_FUNCS_st { - pub app_data: *mut ::std::os::raw::c_void, - pub asn1_ex_new: ASN1_ex_new_func, - pub asn1_ex_free: ASN1_ex_free_func, - pub asn1_ex_clear: ASN1_ex_free_func, - pub asn1_ex_d2i: ASN1_ex_d2i, - pub asn1_ex_i2d: ASN1_ex_i2d, - pub asn1_ex_print: ASN1_ex_print_func, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_cmp"] + pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_clear) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_clear) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_print) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set"] + pub fn ASN1_STRING_set( + str_: *mut ASN1_STRING, + data: *const ::std::os::raw::c_void, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set0"] + pub fn ASN1_STRING_set0( + str_: *mut ASN1_STRING, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ); } -impl Default for ASN1_EXTERN_FUNCS_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_fips_0_13_0_ASN1_BMPSTRING_new"] + pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; } -pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; -pub type ASN1_aux_cb = ::std::option::Option< - unsafe extern "C" fn( - operation: ::std::os::raw::c_int, - in_: *mut *mut ASN1_VALUE, - it: *const ASN1_ITEM, - exarg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_AUX_st { - pub app_data: *mut ::std::os::raw::c_void, - pub flags: u32, - pub ref_offset: ::std::os::raw::c_int, - pub asn1_cb: ASN1_aux_cb, - pub enc_offset: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_new"] + pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; } -#[test] -fn bindgen_test_layout_ASN1_AUX_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(ref_offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(asn1_cb) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(enc_offset) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_new"] + pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; } -impl Default for ASN1_AUX_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_fips_0_13_0_ASN1_OCTET_STRING_new"] + pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; } -pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_SEQUENCE_it"] - pub static ASN1_SEQUENCE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_new"] + pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_new"] + pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; } -pub type sk_ASN1_VALUE_free_func = - ::std::option::Option; -pub type sk_ASN1_VALUE_copy_func = - ::std::option::Option *mut ASN1_VALUE>; -pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_VALUE, - arg2: *mut *const ASN1_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeBlock"] - pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_new"] + pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodedLength"] - pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_new"] + pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodedLength"] - pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_new"] + pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBase64"] - pub fn EVP_DecodeBase64( - out: *mut u8, - out_len: *mut usize, - max_out: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_free"] + pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_new"] - pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_free"] + pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_free"] - pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_free"] + pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeInit"] - pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_free"] + pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeUpdate"] - pub fn EVP_EncodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_free"] + pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeFinal"] - pub fn EVP_EncodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_free"] + pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeInit"] - pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_free"] + pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeUpdate"] - pub fn EVP_DecodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_free"] + pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeFinal"] - pub fn EVP_DecodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_free"] + pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBlock"] - pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BMPSTRING"] + pub fn d2i_ASN1_BMPSTRING( + out: *mut *mut ASN1_BMPSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BMPSTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_encode_ctx_st { - pub data_used: ::std::os::raw::c_uint, - pub data: [u8; 48usize], - pub eof_seen: ::std::os::raw::c_char, - pub error_encountered: ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALSTRING"] + pub fn d2i_ASN1_GENERALSTRING( + out: *mut *mut ASN1_GENERALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALSTRING; } -#[test] -fn bindgen_test_layout_evp_encode_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(eof_seen) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, - 53usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(error_encountered) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_IA5STRING"] + pub fn d2i_ASN1_IA5STRING( + out: *mut *mut ASN1_IA5STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_IA5STRING; } -impl Default for evp_encode_ctx_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_fips_0_13_0_d2i_ASN1_OCTET_STRING"] + pub fn d2i_ASN1_OCTET_STRING( + out: *mut *mut ASN1_OCTET_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OCTET_STRING; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct blake2b_state_st { - pub h: [u64; 8usize], - pub t_low: u64, - pub t_high: u64, - pub block: blake2b_state_st__bindgen_ty_1, - pub block_used: usize, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLESTRING"] + pub fn d2i_ASN1_PRINTABLESTRING( + out: *mut *mut ASN1_PRINTABLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_PRINTABLESTRING; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union blake2b_state_st__bindgen_ty_1 { - pub bytes: [u8; 128usize], - pub words: [u64; 16usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_T61STRING"] + pub fn d2i_ASN1_T61STRING( + out: *mut *mut ASN1_T61STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_T61STRING; } -#[test] -fn bindgen_test_layout_blake2b_state_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).words) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(words) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UNIVERSALSTRING"] + pub fn d2i_ASN1_UNIVERSALSTRING( + out: *mut *mut ASN1_UNIVERSALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UNIVERSALSTRING; } -impl Default for blake2b_state_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_blake2b_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(blake2b_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_low) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_high) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block_used) - ) - ); -} -impl Default for blake2b_state_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_fips_0_13_0_d2i_ASN1_UTF8STRING"] + pub fn d2i_ASN1_UTF8STRING( + out: *mut *mut ASN1_UTF8STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTF8STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Init"] - pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_VISIBLESTRING"] + pub fn d2i_ASN1_VISIBLESTRING( + out: *mut *mut ASN1_VISIBLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_VISIBLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Update"] - pub fn BLAKE2B256_Update( - b2b: *mut BLAKE2B_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BMPSTRING"] + pub fn i2d_ASN1_BMPSTRING( + in_: *const ASN1_BMPSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Final"] - pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALSTRING"] + pub fn i2d_ASN1_GENERALSTRING( + in_: *const ASN1_GENERALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256"] - pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bf_key_st { - pub P: [u32; 18usize], - pub S: [u32; 1024usize], -} -#[test] -fn bindgen_test_layout_bf_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 4168usize, - concat!("Size of: ", stringify!(bf_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(bf_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(P) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(S) - ) - ); -} -impl Default for bf_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_IA5STRING"] + pub fn i2d_ASN1_IA5STRING( + in_: *const ASN1_IA5STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_set_key"] - pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OCTET_STRING"] + pub fn i2d_ASN1_OCTET_STRING( + in_: *const ASN1_OCTET_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_encrypt"] - pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLESTRING"] + pub fn i2d_ASN1_PRINTABLESTRING( + in_: *const ASN1_PRINTABLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_decrypt"] - pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_T61STRING"] + pub fn i2d_ASN1_T61STRING( + in_: *const ASN1_T61STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_ecb_encrypt"] - pub fn BF_ecb_encrypt( - in_: *const u8, - out: *mut u8, - key: *const BF_KEY, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UNIVERSALSTRING"] + pub fn i2d_ASN1_UNIVERSALSTRING( + in_: *const ASN1_UNIVERSALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_cbc_encrypt"] - pub fn BF_cbc_encrypt( - in_: *const u8, - out: *mut u8, - length: usize, - schedule: *const BF_KEY, - ivec: *mut u8, - enc: ::std::os::raw::c_int, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbs_st { - pub data: *const u8, - pub len: usize, -} -#[test] -fn bindgen_test_layout_cbs_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!(cbs_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbs_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(len) - ) - ); -} -impl Default for cbs_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTF8STRING"] + pub fn i2d_ASN1_UTF8STRING( + in_: *const ASN1_UTF8STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_init"] - pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_VISIBLESTRING"] + pub fn i2d_ASN1_VISIBLESTRING( + in_: *const ASN1_VISIBLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_skip"] - pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BMPSTRING_it"] + pub static ASN1_BMPSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_data"] - pub fn CBS_data(cbs: *const CBS) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_it"] + pub static ASN1_GENERALSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_len"] - pub fn CBS_len(cbs: *const CBS) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_it"] + pub static ASN1_IA5STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_stow"] - pub fn CBS_stow( - cbs: *const CBS, - out_ptr: *mut *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_it"] + pub static ASN1_OCTET_STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_strdup"] - pub fn CBS_strdup( - cbs: *const CBS, - out_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_it"] + pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_contains_zero_byte"] - pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_it"] + pub static ASN1_T61STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_mem_equal"] - pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_it"] + pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8"] - pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_it"] + pub static ASN1_UTF8STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16"] - pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_it"] + pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16le"] - pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_dup"] + pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24"] - pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_cmp"] + pub fn ASN1_OCTET_STRING_cmp( + a: *const ASN1_OCTET_STRING, + b: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32"] - pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_set"] + pub fn ASN1_OCTET_STRING_set( + str_: *mut ASN1_OCTET_STRING, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32le"] - pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_to_UTF8"] + pub fn ASN1_STRING_to_UTF8( + out: *mut *mut ::std::os::raw::c_uchar, + in_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64"] - pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_copy"] + pub fn ASN1_mbstring_copy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64le"] - pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_ncopy"] + pub fn ASN1_mbstring_ncopy( + out: *mut *mut ASN1_STRING, + in_: *const u8, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + minsize: ossl_ssize_t, + maxsize: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_last_u8"] - pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_by_NID"] + pub fn ASN1_STRING_set_by_NID( + out: *mut *mut ASN1_STRING, + in_: *const ::std::os::raw::c_uchar, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_bytes"] - pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_add"] + pub fn ASN1_STRING_TABLE_add( + nid: ::std::os::raw::c_int, + minsize: ::std::os::raw::c_long, + maxsize: ::std::os::raw::c_long, + mask: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_copy_bytes"] - pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_new"] + pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8_length_prefixed"] - pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_free"] + pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16_length_prefixed"] - pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIRECTORYSTRING"] + pub fn d2i_DIRECTORYSTRING( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24_length_prefixed"] - pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIRECTORYSTRING"] + pub fn i2d_DIRECTORYSTRING( + in_: *const ASN1_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_until_first"] - pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_it"] + pub static DIRECTORYSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1"] - pub fn CBS_get_asn1( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_new"] + pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_element"] - pub fn CBS_get_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_free"] + pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_peek_asn1_tag"] - pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DISPLAYTEXT"] + pub fn d2i_DISPLAYTEXT( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1"] - pub fn CBS_get_any_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DISPLAYTEXT"] + pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1_element"] - pub fn CBS_get_any_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_it"] + pub static DISPLAYTEXT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_ber_asn1_element"] - pub fn CBS_get_any_ber_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - out_ber_found: *mut ::std::os::raw::c_int, - out_indefinite: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_new"] + pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_uint64"] - pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_free"] + pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_int64"] - pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BIT_STRING"] + pub fn d2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_bool"] - pub fn CBS_get_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BIT_STRING"] + pub fn i2d_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1"] - pub fn CBS_get_optional_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_BIT_STRING"] + pub fn c2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_octet_string"] - pub fn CBS_get_optional_asn1_octet_string( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_BIT_STRING"] + pub fn i2c_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_uint64"] - pub fn CBS_get_optional_asn1_uint64( - cbs: *mut CBS, - out: *mut u64, - tag: CBS_ASN1_TAG, - default_value: u64, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_it"] + pub static ASN1_BIT_STRING_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_num_bytes"] + pub fn ASN1_BIT_STRING_num_bytes( + str_: *const ASN1_BIT_STRING, + out: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_bool"] - pub fn CBS_get_optional_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - default_value: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set"] + pub fn ASN1_BIT_STRING_set( + str_: *mut ASN1_BIT_STRING, + d: *const ::std::os::raw::c_uchar, + length: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_bitstring"] - pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set_bit"] + pub fn ASN1_BIT_STRING_set_bit( + str_: *mut ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_bitstring_has_bit"] - pub fn CBS_asn1_bitstring_has_bit( - cbs: *const CBS, - bit: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_get_bit"] + pub fn ASN1_BIT_STRING_get_bit( + str_: *const ASN1_BIT_STRING, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_integer"] - pub fn CBS_is_valid_asn1_integer( - cbs: *const CBS, - out_is_negative: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_check"] + pub fn ASN1_BIT_STRING_check( + str_: *const ASN1_BIT_STRING, + flags: *const ::std::os::raw::c_uchar, + flags_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_INTEGER { + _unused: [u8; 0], +} +pub type sk_ASN1_INTEGER_free_func = + ::std::option::Option; +pub type sk_ASN1_INTEGER_copy_func = + ::std::option::Option *mut ASN1_INTEGER>; +pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_INTEGER, + arg2: *const *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_INTEGER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_unsigned_asn1_integer"] - pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_new"] + pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_oid_to_text"] - pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_free"] + pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_generalized_time"] - pub fn CBS_parse_generalized_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_dup"] + pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_utc_time"] - pub fn CBS_parse_utc_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_INTEGER"] + pub fn d2i_ASN1_INTEGER( + out: *mut *mut ASN1_INTEGER, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_int64"] - pub fn CBS_get_optional_asn1_int64( - cbs: *mut CBS, - out: *mut i64, - tag: CBS_ASN1_TAG, - default_value: i64, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_INTEGER"] + pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_buffer_st { - pub buf: *mut u8, - pub len: usize, - pub cap: usize, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_INTEGER"] + pub fn c2i_ASN1_INTEGER( + in_: *mut *mut ASN1_INTEGER, + outp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } -#[test] -fn bindgen_test_layout_cbb_buffer_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(cap) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_INTEGER"] + pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -impl Default for cbb_buffer_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_fips_0_13_0_ASN1_INTEGER_it"] + pub static ASN1_INTEGER_it: ASN1_ITEM; } -impl cbb_buffer_st { - #[inline] - pub fn can_resize(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn error(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - can_resize: ::std::os::raw::c_uint, - error: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; - can_resize as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let error: u32 = unsafe { ::std::mem::transmute(error) }; - error as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_uint64"] + pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_child_st { - pub base: *mut cbb_buffer_st, - pub offset: usize, - pub pending_len_len: u8, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u16; 3usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_int64"] + pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_child_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(pending_len_len) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get_uint64"] + pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } -impl Default for cbb_child_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_fips_0_13_0_ASN1_INTEGER_get_int64"] + pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } -impl cbb_child_st { - #[inline] - pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - pending_is_asn1: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; - pending_is_asn1 as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_INTEGER"] + pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct cbb_st { - pub child: *mut CBB, - pub is_child: ::std::os::raw::c_char, - pub u: cbb_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_to_BN"] + pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union cbb_st__bindgen_ty_1 { - pub base: cbb_buffer_st, - pub child: cbb_child_st, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_cmp"] + pub fn ASN1_INTEGER_cmp( + x: *const ASN1_INTEGER, + y: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_cbb_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(child) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_new"] + pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; } -impl Default for cbb_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_cbb_st() { - 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!(cbb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(is_child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) - ); -} -impl Default for cbb_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_fips_0_12_15_CBB_zero"] - pub fn CBB_zero(cbb: *mut CBB); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init"] - pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init_fixed"] - pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_free"] + pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_cleanup"] - pub fn CBB_cleanup(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_ENUMERATED"] + pub fn d2i_ASN1_ENUMERATED( + out: *mut *mut ASN1_ENUMERATED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_finish"] - pub fn CBB_finish( - cbb: *mut CBB, - out_data: *mut *mut u8, - out_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_ENUMERATED"] + pub fn i2d_ASN1_ENUMERATED( + in_: *const ASN1_ENUMERATED, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush"] - pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_data"] - pub fn CBB_data(cbb: *const CBB) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_len"] - pub fn CBB_len(cbb: *const CBB) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_it"] + pub static ASN1_ENUMERATED_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8_length_prefixed"] - pub fn CBB_add_u8_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_uint64"] + pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16_length_prefixed"] - pub fn CBB_add_u16_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_int64"] + pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24_length_prefixed"] - pub fn CBB_add_u24_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_uint64"] + pub fn ASN1_ENUMERATED_get_uint64( + out: *mut u64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1"] - pub fn CBB_add_asn1( - cbb: *mut CBB, - out_contents: *mut CBB, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_int64"] + pub fn ASN1_ENUMERATED_get_int64( + out: *mut i64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_bytes"] - pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_ENUMERATED"] + pub fn BN_to_ASN1_ENUMERATED( + bn: *const BIGNUM, + ai: *mut ASN1_ENUMERATED, + ) -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_zeros"] - pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_to_BN"] + pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_space"] - pub fn CBB_add_space( - cbb: *mut CBB, - out_data: *mut *mut u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_new"] + pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_reserve"] - pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_free"] + pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_did_write"] - pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UTCTIME"] + pub fn d2i_ASN1_UTCTIME( + out: *mut *mut ASN1_UTCTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8"] - pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTCTIME"] + pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16"] - pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_it"] + pub static ASN1_UTCTIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16le"] - pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_check"] + pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24"] - pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set"] + pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32"] - pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_adj"] + pub fn ASN1_UTCTIME_adj( + s: *mut ASN1_UTCTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32le"] - pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set_string"] + pub fn ASN1_UTCTIME_set_string( + s: *mut ASN1_UTCTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64"] - pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_cmp_time_t"] + pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64le"] - pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_new"] + pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_discard_child"] - pub fn CBB_discard_child(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_free"] + pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64"] - pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALIZEDTIME"] + pub fn d2i_ASN1_GENERALIZEDTIME( + out: *mut *mut ASN1_GENERALIZEDTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64_with_tag"] - pub fn CBB_add_asn1_uint64_with_tag( - cbb: *mut CBB, - value: u64, - tag: CBS_ASN1_TAG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALIZEDTIME"] + pub fn i2d_ASN1_GENERALIZEDTIME( + in_: *const ASN1_GENERALIZEDTIME, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64"] - pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_it"] + pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64_with_tag"] - pub fn CBB_add_asn1_int64_with_tag( - cbb: *mut CBB, - value: i64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_check"] + pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_octet_string"] - pub fn CBB_add_asn1_octet_string( - cbb: *mut CBB, - data: *const u8, - data_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set"] + pub fn ASN1_GENERALIZEDTIME_set( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_bool"] - pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_adj"] + pub fn ASN1_GENERALIZEDTIME_adj( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_oid_from_text"] - pub fn CBB_add_asn1_oid_from_text( - cbb: *mut CBB, - text: *const ::std::os::raw::c_char, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set_string"] + pub fn ASN1_GENERALIZEDTIME_set_string( + s: *mut ASN1_GENERALIZEDTIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush_asn1_set_of"] - pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_chacha_20"] - pub fn CRYPTO_chacha_20( - out: *mut u8, - in_: *const u8, - in_len: usize, - key: *const u8, - nonce: *const u8, - counter: u32, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_new"] + pub fn ASN1_TIME_new() -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc4"] - pub fn EVP_rc4() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_free"] + pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_cbc"] - pub fn EVP_des_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TIME"] + pub fn d2i_ASN1_TIME( + out: *mut *mut ASN1_TIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ecb"] - pub fn EVP_des_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TIME"] + pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede"] - pub fn EVP_des_ede() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_it"] + pub static ASN1_TIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3"] - pub fn EVP_des_ede3() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_diff"] + pub fn ASN1_TIME_diff( + out_days: *mut ::std::os::raw::c_int, + out_seconds: *mut ::std::os::raw::c_int, + from: *const ASN1_TIME, + to: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede_cbc"] - pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_posix"] + pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_cbc"] - pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set"] + pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ecb"] - pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_adj"] + pub fn ASN1_TIME_adj( + s: *mut ASN1_TIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc"] - pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_check"] + pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ctr"] - pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_generalizedtime"] + pub fn ASN1_TIME_to_generalizedtime( + t: *const ASN1_TIME, + out: *mut *mut ASN1_GENERALIZEDTIME, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ofb"] - pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string"] + pub fn ASN1_TIME_set_string( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ecb"] - pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_tm"] + pub fn ASN1_TIME_to_tm(t: *const ASN1_TIME, out: *mut tm) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc"] - pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string_X509"] + pub fn ASN1_TIME_set_string_X509( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ctr"] - pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_time_t"] + pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ofb"] - pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_posix"] + pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_xts"] - pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_new"] + pub fn ASN1_NULL_new() -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_enc_null"] - pub fn EVP_enc_null() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_free"] + pub fn ASN1_NULL_free(null: *mut ASN1_NULL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_cbc"] - pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_NULL"] + pub fn d2i_ASN1_NULL( + out: *mut *mut ASN1_NULL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_40_cbc"] - pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_NULL"] + pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbynid"] - pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_it"] + pub static ASN1_NULL_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_init"] - pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_new"] - pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cleanup"] - pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_free"] - pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_copy"] - pub fn EVP_CIPHER_CTX_copy( - out: *mut EVP_CIPHER_CTX, - in_: *const EVP_CIPHER_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_reset"] - pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit_ex"] - pub fn EVP_CipherInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - engine: *mut ENGINE, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit_ex"] - pub fn EVP_EncryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit_ex"] - pub fn EVP_DecryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptUpdate"] - pub fn EVP_EncryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal_ex"] - pub fn EVP_EncryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptUpdate"] - pub fn EVP_DecryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal_ex"] - pub fn EVP_DecryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherUpdate"] - pub fn EVP_CipherUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal_ex"] - pub fn EVP_CipherFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cipher"] - pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_nid"] - pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_encrypting"] - pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_block_size"] - pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_key_length"] - pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_iv_length"] - pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_get_app_data"] - pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_app_data"] - pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_flags"] - pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_mode"] - pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_ctrl"] - pub fn EVP_CIPHER_CTX_ctrl( - ctx: *mut EVP_CIPHER_CTX, - command: ::std::os::raw::c_int, - arg: ::std::os::raw::c_int, - ptr: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_padding"] - pub fn EVP_CIPHER_CTX_set_padding( - ctx: *mut EVP_CIPHER_CTX, - pad: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_key_length"] - pub fn EVP_CIPHER_CTX_set_key_length( - ctx: *mut EVP_CIPHER_CTX, - key_len: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_nid"] - pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_block_size"] - pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_key_length"] - pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_iv_length"] - pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_flags"] - pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_mode"] - pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_OBJECT { + _unused: [u8; 0], } +pub type sk_ASN1_OBJECT_free_func = + ::std::option::Option; +pub type sk_ASN1_OBJECT_copy_func = + ::std::option::Option *mut ASN1_OBJECT>; +pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_OBJECT, + arg2: *const *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_BytesToKey"] - pub fn EVP_BytesToKey( - type_: *const EVP_CIPHER, - md: *const EVP_MD, - salt: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_create"] + pub fn ASN1_OBJECT_create( + nid: ::std::os::raw::c_int, data: *const u8, - data_len: usize, - count: ::std::os::raw::c_uint, - key: *mut u8, - iv: *mut u8, - ) -> ::std::os::raw::c_int; + len: usize, + sn: *const ::std::os::raw::c_char, + ln: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha1"] - pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_free"] + pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha1"] - pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_OBJECT"] + pub fn d2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha256"] - pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OBJECT"] + pub fn i2d_ASN1_OBJECT(in_: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha256"] - pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_OBJECT"] + pub fn c2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit"] - pub fn EVP_CipherInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_it"] + pub static ASN1_OBJECT_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit"] - pub fn EVP_EncryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct asn1_type_st { + pub type_: ::std::os::raw::c_int, + pub value: asn1_type_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit"] - pub fn EVP_DecryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal"] - pub fn EVP_CipherFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal"] - pub fn EVP_EncryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal"] - pub fn EVP_DecryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Cipher"] - pub fn EVP_Cipher( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_cipher_alias"] - pub fn EVP_add_cipher_alias( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbyname"] - pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_gcm"] - pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_gcm"] - pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ecb"] - pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cbc"] - pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ctr"] - pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_gcm"] - pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ofb"] - pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_ecb"] - pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb128"] - pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb"] - pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb1"] - pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb8"] - pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb128"] - pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb"] - pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb1"] - pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb8"] - pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb128"] - pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb"] - pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb1"] - pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb8"] - pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_ecb"] - pub fn EVP_bf_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cbc"] - pub fn EVP_bf_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cfb"] - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_ecb"] - pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_cbc"] - pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_flags"] - pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_ctx_st { - pub cipher: *const EVP_CIPHER, - pub app_data: *mut ::std::os::raw::c_void, - pub cipher_data: *mut ::std::os::raw::c_void, - pub key_len: ::std::os::raw::c_uint, - pub encrypt: ::std::os::raw::c_int, - pub flags: u32, - pub oiv: [u8; 16usize], - pub iv: [u8; 16usize], - pub buf: [u8; 32usize], - pub buf_len: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_uint, - pub final_used: ::std::os::raw::c_int, - pub final_: [u8; 32usize], - pub poisoned: ::std::os::raw::c_int, +#[repr(C)] +#[derive(Copy, Clone)] +pub union asn1_type_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub boolean: ASN1_BOOLEAN, + pub asn1_string: *mut ASN1_STRING, + pub object: *mut ASN1_OBJECT, + pub integer: *mut ASN1_INTEGER, + pub enumerated: *mut ASN1_ENUMERATED, + pub bit_string: *mut ASN1_BIT_STRING, + pub octet_string: *mut ASN1_OCTET_STRING, + pub printablestring: *mut ASN1_PRINTABLESTRING, + pub t61string: *mut ASN1_T61STRING, + pub ia5string: *mut ASN1_IA5STRING, + pub generalstring: *mut ASN1_GENERALSTRING, + pub bmpstring: *mut ASN1_BMPSTRING, + pub universalstring: *mut ASN1_UNIVERSALSTRING, + pub utctime: *mut ASN1_UTCTIME, + pub generalizedtime: *mut ASN1_GENERALIZEDTIME, + pub visiblestring: *mut ASN1_VISIBLESTRING, + pub utf8string: *mut ASN1_UTF8STRING, + pub set: *mut ASN1_STRING, + pub sequence: *mut ASN1_STRING, + pub asn1_value: *mut ASN1_VALUE, } #[test] -fn bindgen_test_layout_evp_cipher_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 152usize, - concat!("Size of: ", stringify!(evp_cipher_ctx_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(asn1_type_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) + concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(cipher) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(app_data) + stringify!(boolean) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(cipher_data) + stringify!(asn1_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(key_len) + stringify!(object) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, - 28usize, + unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(encrypt) + stringify!(integer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(flags) + stringify!(enumerated) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(oiv) + stringify!(bit_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 52usize, + unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(iv) + stringify!(octet_string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 68usize, + unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(buf) + stringify!(printablestring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, - 100usize, + unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(buf_len) + stringify!(t61string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(num) + stringify!(ia5string) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(final_used) + stringify!(generalstring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, - 112usize, + unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(final_) + stringify!(bmpstring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, - 144usize, + unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_ctx_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(poisoned) + stringify!(universalstring) ) ); -} -impl Default for evp_cipher_ctx_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 evp_cipher_info_st { - pub cipher: *const EVP_CIPHER, - pub iv: [::std::os::raw::c_uchar; 16usize], -} -#[test] -fn bindgen_test_layout_evp_cipher_info_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!(evp_cipher_info_st)) + unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utctime) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_info_st)) + unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalizedtime) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_info_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(cipher) + stringify!(visiblestring) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(evp_cipher_info_st), + stringify!(asn1_type_st__bindgen_ty_1), "::", - stringify!(iv) + stringify!(utf8string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(set) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(sequence) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_value) ) ); } -impl Default for evp_cipher_info_st { +impl Default for asn1_type_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12037,108 +10287,42 @@ impl Default for evp_cipher_info_st { } } } -pub type EVP_CIPHER_INFO = evp_cipher_info_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_CMAC"] - pub fn AES_CMAC( - out: *mut u8, - key: *const u8, - key_len: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_new"] - pub fn CMAC_CTX_new() -> *mut CMAC_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_free"] - pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_copy"] - pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Init"] - pub fn CMAC_Init( - ctx: *mut CMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, - cipher: *const EVP_CIPHER, - engine: *mut ENGINE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Reset"] - pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Update"] - pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Final"] - pub fn CMAC_Final( - ctx: *mut CMAC_CTX, - out: *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct conf_value_st { - pub section: *mut ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, -} #[test] -fn bindgen_test_layout_conf_value_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_type_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!(conf_value_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(asn1_type_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(conf_value_st)) + concat!("Alignment of ", stringify!(asn1_type_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), + stringify!(asn1_type_st), "::", - stringify!(name) + stringify!(type_) ) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 16usize, + 8usize, concat!( "Offset of field: ", - stringify!(conf_value_st), + stringify!(asn1_type_st), "::", stringify!(value) ) ); } -impl Default for conf_value_st { +impl Default for asn1_type_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12149,188 +10333,345 @@ impl Default for conf_value_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_CONF_VALUE { +pub struct stack_st_ASN1_TYPE { _unused: [u8; 0], } -pub type sk_CONF_VALUE_free_func = - ::std::option::Option; -pub type sk_CONF_VALUE_copy_func = - ::std::option::Option *mut CONF_VALUE>; -pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< +pub type sk_ASN1_TYPE_free_func = ::std::option::Option; +pub type sk_ASN1_TYPE_copy_func = + ::std::option::Option *mut ASN1_TYPE>; +pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const CONF_VALUE, - arg2: *mut *const CONF_VALUE, + arg1: *const *const ASN1_TYPE, + arg2: *const *const ASN1_TYPE, ) -> ::std::os::raw::c_int, >; -pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< +pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut CONF_VALUE, + arg1: *mut ASN1_TYPE, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lhash_st_CONF_VALUE { - _unused: [u8; 0], -} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_new"] - pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_new"] + pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_free"] - pub fn NCONF_free(conf: *mut CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_free"] + pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load"] - pub fn NCONF_load( - conf: *mut CONF, - filename: *const ::std::os::raw::c_char, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TYPE"] + pub fn d2i_ASN1_TYPE( + out: *mut *mut ASN1_TYPE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load_bio"] - pub fn NCONF_load_bio( - conf: *mut CONF, - bio: *mut BIO, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TYPE"] + pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_section"] - pub fn NCONF_get_section( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - ) -> *const stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ANY_it"] + pub static ASN1_ANY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_string"] - pub fn NCONF_get_string( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_get"] + pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_load_file"] - pub fn CONF_modules_load_file( - filename: *const ::std::os::raw::c_char, - appname: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set"] + pub fn ASN1_TYPE_set( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_free"] - pub fn CONF_modules_free(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set1"] + pub fn ASN1_TYPE_set1( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_config"] - pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_cmp"] + pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; } +pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_no_config"] - pub fn OPENSSL_no_config(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SEQUENCE_ANY"] + pub fn d2i_ASN1_SEQUENCE_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Init"] - pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SEQUENCE_ANY"] + pub fn i2d_ASN1_SEQUENCE_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Update"] - pub fn SHA1_Update( - sha: *mut SHA_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SET_ANY"] + pub fn d2i_ASN1_SET_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SET_ANY"] + pub fn i2d_ASN1_SET_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Final"] - pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_print"] + pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1"] - pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_print"] + pub fn ASN1_GENERALIZEDTIME_print( + out: *mut BIO, + a: *const ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Transform"] - pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_print"] + pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print"] + pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex"] + pub fn ASN1_STRING_print_ex( + out: *mut BIO, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex_fp"] + pub fn ASN1_STRING_print_ex_fp( + fp: *mut FILE, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_INTEGER"] + pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_ENUMERATED"] + pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_OBJECT"] + pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_STRING"] + pub fn i2a_ASN1_STRING( + bp: *mut BIO, + a: *const ASN1_STRING, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2t_ASN1_OBJECT"] + pub fn i2t_ASN1_OBJECT( + buf: *mut ::std::os::raw::c_char, + buf_len: ::std::os::raw::c_int, + a: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_get_object"] + pub fn ASN1_get_object( + inp: *mut *const ::std::os::raw::c_uchar, + out_length: *mut ::std::os::raw::c_long, + out_tag: *mut ::std::os::raw::c_int, + out_class: *mut ::std::os::raw::c_int, + max_len: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_object"] + pub fn ASN1_put_object( + outp: *mut *mut ::std::os::raw::c_uchar, + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + xclass: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_eoc"] + pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_object_size"] + pub fn ASN1_object_size( + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_new"] + pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_free"] + pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLE"] + pub fn d2i_ASN1_PRINTABLE( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLE"] + pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_it"] + pub static ASN1_PRINTABLE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set"] + pub fn ASN1_INTEGER_set( + a: *mut ASN1_INTEGER, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set"] + pub fn ASN1_ENUMERATED_set( + a: *mut ASN1_ENUMERATED, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get"] + pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get"] + pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask"] + pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask_asc"] + pub fn ASN1_STRING_set_default_mask_asc( + p: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get_default_mask"] + pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_cleanup"] + pub fn ASN1_STRING_TABLE_cleanup(); +} +pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_TLC_st { + _unused: [u8; 0], } +pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha_state_st { - pub h: [u32; 5usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +pub struct ASN1_TEMPLATE_st { + pub flags: u32, + pub tag: ::std::os::raw::c_int, + pub offset: ::std::os::raw::c_ulong, + pub field_name: *const ::std::os::raw::c_char, + pub item: *const ASN1_ITEM_st, } #[test] -fn bindgen_test_layout_sha_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_TEMPLATE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(sha_state_st)) + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(h) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(Nl) + stringify!(tag) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(Nh) + stringify!(offset) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 28usize, + unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(data) + stringify!(field_name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 92usize, + unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha_state_st), + stringify!(ASN1_TEMPLATE_st), "::", - stringify!(num) + stringify!(item) ) ); } -impl Default for sha_state_st { +impl Default for ASN1_TEMPLATE_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12339,140 +10680,111 @@ impl Default for sha_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Init"] - pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Update"] - pub fn SHA224_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Final"] - pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224"] - pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; +pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; +pub type ASN1_ADB = ASN1_ADB_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct asn1_must_be_null_st { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Init"] - pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Update"] - pub fn SHA256_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Final"] - pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256"] - pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Transform"] - pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_TransformBlocks"] - pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha256_state_st { - pub h: [u32; 8usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, +pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_st { + pub flags: u32, + pub offset: ::std::os::raw::c_ulong, + pub unused: *mut ASN1_MUST_BE_NULL, + pub tbl: *const ASN1_ADB_TABLE, + pub tblcount: ::std::os::raw::c_long, + pub default_tt: *const ASN1_TEMPLATE, + pub null_tt: *const ASN1_TEMPLATE, } #[test] -fn bindgen_test_layout_sha256_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ADB_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 112usize, - concat!("Size of: ", stringify!(sha256_state_st)) + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(ASN1_ADB_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha256_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(h) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(Nl) + stringify!(offset) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(Nh) + stringify!(unused) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(data) + stringify!(tbl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(num) + stringify!(tblcount) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(ASN1_ADB_st), "::", - stringify!(md_len) + stringify!(default_tt) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(null_tt) ) ); } -impl Default for sha256_state_st { +impl Default for ASN1_ADB_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12481,137 +10793,154 @@ impl Default for sha256_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Init"] - pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Update"] - pub fn SHA384_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Final"] - pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384"] - pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Init"] - pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Update"] - pub fn SHA512_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Final"] - pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_TABLE_st { + pub value: ::std::os::raw::c_int, + pub tt: ASN1_TEMPLATE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512"] - pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; +#[test] +fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(value) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(tt) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Transform"] - pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); +impl Default for ASN1_ADB_TABLE_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 sha512_state_st { - pub h: [u64; 8usize], - pub Nl: u64, - pub Nh: u64, - pub p: [u8; 128usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, +pub struct ASN1_ITEM_st { + pub itype: ::std::os::raw::c_char, + pub utype: ::std::os::raw::c_int, + pub templates: *const ASN1_TEMPLATE, + pub tcount: ::std::os::raw::c_long, + pub funcs: *const ::std::os::raw::c_void, + pub size: ::std::os::raw::c_long, + pub sname: *const ::std::os::raw::c_char, } #[test] -fn bindgen_test_layout_sha512_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ASN1_ITEM_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(sha512_state_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(ASN1_ITEM_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(sha512_state_st)) + concat!("Alignment of ", stringify!(ASN1_ITEM_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(h) + stringify!(itype) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(Nl) + stringify!(utype) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(Nh) + stringify!(templates) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(p) + stringify!(tcount) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 208usize, + unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(num) + stringify!(funcs) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 212usize, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(ASN1_ITEM_st), "::", - stringify!(md_len) + stringify!(size) ) ); -} -impl Default for sha512_state_st { - fn default() -> Self { + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(sname) + ) + ); +} +impl Default for ASN1_ITEM_st { + fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); @@ -12619,1638 +10948,2125 @@ impl Default for sha512_state_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Init"] - pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Update"] - pub fn SHA512_256_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; +pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; +pub type ASN1_free_func = ::std::option::Option; +pub type ASN1_d2i_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + length: ::std::os::raw::c_long, + ) -> *mut ASN1_VALUE, +>; +pub type ASN1_i2d_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut ASN1_VALUE, + in_: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_d2i = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + opt: ::std::os::raw::c_char, + ctx: *mut ASN1_TLC, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_i2d = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + out: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_new_func = ::std::option::Option< + unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_free_func = + ::std::option::Option; +pub type ASN1_ex_print_func = ::std::option::Option< + unsafe extern "C" fn( + out: *mut BIO, + pval: *mut *mut ASN1_VALUE, + indent: ::std::os::raw::c_int, + fname: *const ::std::os::raw::c_char, + pctx: *const ASN1_PCTX, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_EXTERN_FUNCS_st { + pub app_data: *mut ::std::os::raw::c_void, + pub asn1_ex_new: ASN1_ex_new_func, + pub asn1_ex_free: ASN1_ex_free_func, + pub asn1_ex_d2i: ASN1_ex_d2i, + pub asn1_ex_i2d: ASN1_ex_i2d, + pub asn1_ex_print: ASN1_ex_print_func, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Final"] - pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { + 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!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_new) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_free) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_d2i) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_i2d) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_print) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256"] - pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; +impl Default for ASN1_EXTERN_FUNCS_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_fips_0_12_15_OPENSSL_malloc"] - pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; +pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; +pub type ASN1_aux_cb = ::std::option::Option< + unsafe extern "C" fn( + operation: ::std::os::raw::c_int, + in_: *mut *mut ASN1_VALUE, + it: *const ASN1_ITEM, + exarg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_AUX_st { + pub app_data: *mut ::std::os::raw::c_void, + pub flags: u32, + pub ref_offset: ::std::os::raw::c_int, + pub asn1_cb: ASN1_aux_cb, + pub enc_offset: ::std::os::raw::c_int, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_free"] - pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); +#[test] +fn bindgen_test_layout_ASN1_AUX_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(ref_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(asn1_cb) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(enc_offset) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_realloc"] - pub fn OPENSSL_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanse"] - pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_memcmp"] - pub fn CRYPTO_memcmp( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_hash32"] - pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; +impl Default for ASN1_AUX_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() + } + } } +pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strhash"] - pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_SEQUENCE_it"] + pub static ASN1_SEQUENCE_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strdup"] - pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_VALUE { + _unused: [u8; 0], } +pub type sk_ASN1_VALUE_free_func = + ::std::option::Option; +pub type sk_ASN1_VALUE_copy_func = + ::std::option::Option *mut ASN1_VALUE>; +pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_VALUE, + arg2: *const *const ASN1_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strnlen"] - pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeBlock"] + pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_tolower"] - pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodedLength"] + pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strcasecmp"] - pub fn OPENSSL_strcasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodedLength"] + pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strncasecmp"] - pub fn OPENSSL_strncasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - n: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBase64"] + pub fn EVP_DecodeBase64( + out: *mut u8, + out_len: *mut usize, + max_out: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_snprintf"] - pub fn BIO_snprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_new"] + pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vsnprintf"] - pub fn BIO_vsnprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_free"] + pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_vasprintf"] - pub fn OPENSSL_vasprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeInit"] + pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_asprintf"] - pub fn OPENSSL_asprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeUpdate"] + pub fn EVP_EncodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strndup"] - pub fn OPENSSL_strndup( - str_: *const ::std::os::raw::c_char, - size: usize, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeFinal"] + pub fn EVP_EncodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_memdup"] - pub fn OPENSSL_memdup( - data: *const ::std::os::raw::c_void, - size: usize, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeInit"] + pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcpy"] - pub fn OPENSSL_strlcpy( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeUpdate"] + pub fn EVP_DecodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcat"] - pub fn OPENSSL_strlcat( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeFinal"] + pub fn EVP_DecodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc"] - pub fn CRYPTO_malloc( - size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBlock"] + pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_realloc"] - pub fn CRYPTO_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_encode_ctx_st { + pub data_used: ::std::os::raw::c_uint, + pub data: [u8; 48usize], + pub eof_seen: ::std::os::raw::c_char, + pub error_encountered: ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_free"] - pub fn CRYPTO_free( - ptr: *mut ::std::os::raw::c_void, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, +#[test] +fn bindgen_test_layout_evp_encode_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(eof_seen) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, + 53usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(error_encountered) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_clear_free"] - pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_mem_functions"] - pub fn CRYPTO_set_mem_functions( - m: ::std::option::Option< - unsafe extern "C" fn( - arg1: usize, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - r: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: usize, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - f: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_malloc_init"] - pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; +impl Default for evp_encode_ctx_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_fips_0_12_15_CRYPTO_secure_malloc_initialized"] - pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct blake2b_state_st { + pub h: [u64; 8usize], + pub t_low: u64, + pub t_high: u64, + pub block: [u8; 128usize], + pub block_used: usize, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_used"] - pub fn CRYPTO_secure_used() -> usize; +#[test] +fn bindgen_test_layout_blake2b_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(blake2b_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(blake2b_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_low) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_high) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block_used) + ) + ); +} +impl Default for blake2b_state_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_fips_0_12_15_OPENSSL_secure_malloc"] - pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Init"] + pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_secure_clear_free"] - pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Update"] + pub fn BLAKE2B256_Update( + b2b: *mut BLAKE2B_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_library_init"] - pub fn CRYPTO_library_init(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Final"] + pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_is_confidential_build"] - pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256"] + pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bf_key_st { + pub P: [u32; 18usize], + pub S: [u32; 1024usize], +} +#[test] +fn bindgen_test_layout_bf_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 4168usize, + concat!("Size of: ", stringify!(bf_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(bf_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(P) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(S) + ) + ); } +impl Default for bf_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() + } + } +} +pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_has_asm"] - pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_set_key"] + pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_self_test"] - pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_encrypt"] + pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_integrity_test"] - pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_decrypt"] + pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_pre_sandbox_init"] - pub fn CRYPTO_pre_sandbox_init(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_ecb_encrypt"] + pub fn BF_ecb_encrypt( + in_: *const u8, + out: *mut u8, + key: *const BF_KEY, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_mode"] - pub fn FIPS_mode() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_cbc_encrypt"] + pub fn BF_cbc_encrypt( + in_: *const u8, + out: *mut u8, + length: usize, + schedule: *const BF_KEY, + ivec: *mut u8, + enc: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbs_st { + pub data: *const u8, + pub len: usize, +} +#[test] +fn bindgen_test_layout_cbs_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!(cbs_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbs_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(len) + ) + ); +} +impl Default for cbs_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() + } + } } -pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; -pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; -pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; -pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; -pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; -pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_read_counter"] - pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_init"] + pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version"] - pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_skip"] + pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay_version"] - pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_data"] + pub fn CBS_data(cbs: *const CBS) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay"] - pub fn SSLeay() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_len"] + pub fn CBS_len(cbs: *const CBS) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version_num"] - pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_stow"] + pub fn CBS_stow( + cbs: *const CBS, + out_ptr: *mut *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_api_version_num"] - pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_strdup"] + pub fn CBS_strdup( + cbs: *const CBS, + out_ptr: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc_init"] - pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_contains_zero_byte"] + pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_malloc_init"] - pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_mem_equal"] + pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_load_builtin_engines"] - pub fn ENGINE_load_builtin_engines(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8"] + pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_register_all_complete"] - pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16"] + pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_load_builtin_modules"] - pub fn OPENSSL_load_builtin_modules(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16le"] + pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_init_crypto"] - pub fn OPENSSL_init_crypto( - opts: u64, - settings: *const OPENSSL_INIT_SETTINGS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24"] + pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanup"] - pub fn OPENSSL_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32"] + pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_mode_set"] - pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32le"] + pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_keypair"] - pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64"] + pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519"] - pub fn X25519( - out_shared_key: *mut u8, - private_key: *const u8, - peer_public_value: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64le"] + pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_public_from_private"] - pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_last_u8"] + pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair"] - pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_bytes"] + pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_sign"] - pub fn ED25519_sign( - out_sig: *mut u8, - message: *const u8, - message_len: usize, - private_key: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_copy_bytes"] + pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_verify"] - pub fn ED25519_verify( - message: *const u8, - message_len: usize, - signature: *const u8, - public_key: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8_length_prefixed"] + pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair_from_seed"] - pub fn ED25519_keypair_from_seed( - out_public_key: *mut u8, - out_private_key: *mut u8, - seed: *const u8, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16_length_prefixed"] + pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } -pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; -pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; -pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_new"] - pub fn SPAKE2_CTX_new( - my_role: spake2_role_t, - my_name: *const u8, - my_name_len: usize, - their_name: *const u8, - their_name_len: usize, - ) -> *mut SPAKE2_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24_length_prefixed"] + pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_free"] - pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_until_first"] + pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_generate_msg"] - pub fn SPAKE2_generate_msg( - ctx: *mut SPAKE2_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - password: *const u8, - password_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64_decimal"] + pub fn CBS_get_u64_decimal(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_process_msg"] - pub fn SPAKE2_process_msg( - ctx: *mut SPAKE2_CTX, - out_key: *mut u8, - out_key_len: *mut usize, - max_out_key_len: usize, - their_msg: *const u8, - their_msg_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1"] + pub fn CBS_get_asn1( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct DES_cblock_st { - pub bytes: [u8; 8usize], -} -#[test] -fn bindgen_test_layout_DES_cblock_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!(DES_cblock_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(DES_cblock_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DES_cblock_st), - "::", - stringify!(bytes) - ) - ); -} -pub type DES_cblock = DES_cblock_st; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct DES_ks { - pub subkeys: [[u32; 2usize]; 16usize], -} -#[test] -fn bindgen_test_layout_DES_ks() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(DES_ks)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(DES_ks)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subkeys) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DES_ks), - "::", - stringify!(subkeys) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_element"] + pub fn CBS_get_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } -pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_key"] - pub fn DES_set_key(key: *const DES_cblock, schedule: *mut DES_key_schedule); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_peek_asn1_tag"] + pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_odd_parity"] - pub fn DES_set_odd_parity(key: *mut DES_cblock); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1"] + pub fn CBS_get_any_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb_encrypt"] - pub fn DES_ecb_encrypt( - in_: *const DES_cblock, - out: *mut DES_cblock, - schedule: *const DES_key_schedule, - is_encrypt: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1_element"] + pub fn CBS_get_any_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ncbc_encrypt"] - pub fn DES_ncbc_encrypt( - in_: *const u8, - out: *mut u8, - len: usize, - schedule: *const DES_key_schedule, - ivec: *mut DES_cblock, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_ber_asn1_element"] + pub fn CBS_get_any_ber_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + out_ber_found: *mut ::std::os::raw::c_int, + out_indefinite: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb3_encrypt"] - pub fn DES_ecb3_encrypt( - input: *const DES_cblock, - output: *mut DES_cblock, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_uint64"] + pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede3_cbc_encrypt"] - pub fn DES_ede3_cbc_encrypt( - in_: *const u8, - out: *mut u8, - len: usize, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ivec: *mut DES_cblock, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_int64"] + pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede2_cbc_encrypt"] - pub fn DES_ede2_cbc_encrypt( - in_: *const u8, - out: *mut u8, - len: usize, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ivec: *mut DES_cblock, - enc: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_bool"] + pub fn CBS_get_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1"] + pub fn CBS_get_optional_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_octet_string"] + pub fn CBS_get_optional_asn1_octet_string( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_new"] - pub fn DH_new() -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_uint64"] + pub fn CBS_get_optional_asn1_uint64( + cbs: *mut CBS, + out: *mut u64, + tag: CBS_ASN1_TAG, + default_value: u64, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_free"] - pub fn DH_free(dh: *mut DH); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_bool"] + pub fn CBS_get_optional_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + default_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_up_ref"] - pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_bitstring"] + pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_bits"] - pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_bitstring_has_bit"] + pub fn CBS_asn1_bitstring_has_bit( + cbs: *const CBS, + bit: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pub_key"] - pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_integer"] + pub fn CBS_is_valid_asn1_integer( + cbs: *const CBS, + out_is_negative: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_priv_key"] - pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_unsigned_asn1_integer"] + pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_p"] - pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_oid"] + pub fn CBS_is_valid_asn1_oid(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_q"] - pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_oid_to_text"] + pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_g"] - pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_generalized_time"] + pub fn CBS_parse_generalized_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_key"] - pub fn DH_get0_key( - dh: *const DH, - out_pub_key: *mut *const BIGNUM, - out_priv_key: *mut *const BIGNUM, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_key"] - pub fn DH_set0_key( - dh: *mut DH, - pub_key: *mut BIGNUM, - priv_key: *mut BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_utc_time"] + pub fn CBS_parse_utc_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pqg"] - pub fn DH_get0_pqg( - dh: *const DH, - out_p: *mut *const BIGNUM, - out_q: *mut *const BIGNUM, - out_g: *mut *const BIGNUM, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_pqg"] - pub fn DH_set0_pqg( - dh: *mut DH, - p: *mut BIGNUM, - q: *mut BIGNUM, - g: *mut BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_int64"] + pub fn CBS_get_optional_asn1_int64( + cbs: *mut CBS, + out: *mut i64, + tag: CBS_ASN1_TAG, + default_value: i64, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set_length"] - pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) - -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_buffer_st { + pub buf: *mut u8, + pub len: usize, + pub cap: usize, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 7usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_rfc7919_2048"] - pub fn DH_get_rfc7919_2048() -> *mut DH; +#[test] +fn bindgen_test_layout_cbb_buffer_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(cap) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_1536"] - pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; +impl Default for cbb_buffer_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_fips_0_12_15_BN_get_rfc3526_prime_2048"] - pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; +impl cbb_buffer_st { + #[inline] + pub fn can_resize(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn error(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + can_resize: ::std::os::raw::c_uint, + error: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; + can_resize as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let error: u32 = unsafe { ::std::mem::transmute(error) }; + error as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_3072"] - pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_child_st { + pub base: *mut cbb_buffer_st, + pub offset: usize, + pub pending_len_len: u8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u16; 3usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_4096"] - pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; +#[test] +fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_child_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(pending_len_len) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_6144"] - pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; +impl Default for cbb_child_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_fips_0_12_15_BN_get_rfc3526_prime_8192"] - pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; +impl cbb_child_st { + #[inline] + pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pending_is_asn1: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; + pending_is_asn1 as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters_ex"] - pub fn DH_generate_parameters_ex( - dh: *mut DH, - prime_bits: ::std::os::raw::c_int, - generator: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct cbb_st { + pub child: *mut CBB, + pub is_child: ::std::os::raw::c_char, + pub u: cbb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_key"] - pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union cbb_st__bindgen_ty_1 { + pub base: cbb_buffer_st, + pub child: cbb_child_st, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key_padded"] - pub fn DH_compute_key_padded( - out: *mut u8, - peers_key: *const BIGNUM, - dh: *mut DH, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_cbb_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(child) + ) + ); +} +impl Default for cbb_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_cbb_st() { + 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!(cbb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(is_child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, + 16usize, + concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) + ); +} +impl Default for cbb_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_fips_0_12_15_DH_compute_key_hashed"] - pub fn DH_compute_key_hashed( - dh: *mut DH, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - peers_key: *const BIGNUM, - digest: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_zero"] + pub fn CBB_zero(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_size"] - pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init"] + pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_num_bits"] - pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init_fixed"] + pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check"] - pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_cleanup"] + pub fn CBB_cleanup(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check_pub_key"] - pub fn DH_check_pub_key( - dh: *const DH, - pub_key: *const BIGNUM, - out_flags: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_finish"] + pub fn CBB_finish( + cbb: *mut CBB, + out_data: *mut *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DHparams_dup"] - pub fn DHparams_dup(dh: *const DH) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush"] + pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_parse_parameters"] - pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_data"] + pub fn CBB_data(cbb: *const CBB) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_marshal_parameters"] - pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_len"] + pub fn CBB_len(cbb: *const CBB) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters"] - pub fn DH_generate_parameters( - prime_len: ::std::os::raw::c_int, - generator: ::std::os::raw::c_int, - callback: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *mut ::std::os::raw::c_void, - ), - >, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8_length_prefixed"] + pub fn CBB_add_u8_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams"] - pub fn d2i_DHparams( - ret: *mut *mut DH, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16_length_prefixed"] + pub fn CBB_add_u16_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DHparams"] - pub fn i2d_DHparams( - in_: *const DH, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24_length_prefixed"] + pub fn CBB_add_u24_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key"] - pub fn DH_compute_key( - out: *mut u8, - peers_key: *const BIGNUM, - dh: *mut DH, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1"] + pub fn CBB_add_asn1( + cbb: *mut CBB, + out_contents: *mut CBB, + tag: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_2048_256"] - pub fn DH_get_2048_256() -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_bytes"] + pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md4"] - pub fn EVP_md4() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_zeros"] + pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5"] - pub fn EVP_md5() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_space"] + pub fn CBB_add_space( + cbb: *mut CBB, + out_data: *mut *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ripemd160"] - pub fn EVP_ripemd160() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_reserve"] + pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha1"] - pub fn EVP_sha1() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_did_write"] + pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha224"] - pub fn EVP_sha224() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8"] + pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha256"] - pub fn EVP_sha256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16"] + pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha384"] - pub fn EVP_sha384() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16le"] + pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512"] - pub fn EVP_sha512() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24"] + pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512_256"] - pub fn EVP_sha512_256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32"] + pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_224"] - pub fn EVP_sha3_224() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32le"] + pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_256"] - pub fn EVP_sha3_256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64"] + pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_384"] - pub fn EVP_sha3_384() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64le"] + pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_512"] - pub fn EVP_sha3_512() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_discard_child"] + pub fn CBB_discard_child(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_blake2b256"] - pub fn EVP_blake2b256() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64"] + pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5_sha1"] - pub fn EVP_md5_sha1() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64_with_tag"] + pub fn CBB_add_asn1_uint64_with_tag( + cbb: *mut CBB, + value: u64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbynid"] - pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64"] + pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyobj"] - pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64_with_tag"] + pub fn CBB_add_asn1_int64_with_tag( + cbb: *mut CBB, + value: i64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_init"] - pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_octet_string"] + pub fn CBB_add_asn1_octet_string( + cbb: *mut CBB, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_new"] - pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_bool"] + pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanup"] - pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_oid_from_text"] + pub fn CBB_add_asn1_oid_from_text( + cbb: *mut CBB, + text: *const ::std::os::raw::c_char, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanse"] - pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush_asn1_set_of"] + pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_free"] - pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_chacha_20"] + pub fn CRYPTO_chacha_20( + out: *mut u8, + in_: *const u8, + in_len: usize, + key: *const u8, + nonce: *const u8, + counter: u32, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy_ex"] - pub fn EVP_MD_CTX_copy_ex( - out: *mut EVP_MD_CTX, - in_: *const EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc4"] + pub fn EVP_rc4() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_move"] - pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_cbc"] + pub fn EVP_des_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_reset"] - pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ecb"] + pub fn EVP_des_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit_ex"] - pub fn EVP_DigestInit_ex( - ctx: *mut EVP_MD_CTX, - type_: *const EVP_MD, - engine: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede"] + pub fn EVP_des_ede() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit"] - pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3"] + pub fn EVP_des_ede3() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestUpdate"] - pub fn EVP_DigestUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede_cbc"] + pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal_ex"] - pub fn EVP_DigestFinal_ex( - ctx: *mut EVP_MD_CTX, - md_out: *mut u8, - out_size: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_cbc"] + pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal"] - pub fn EVP_DigestFinal( - ctx: *mut EVP_MD_CTX, - md_out: *mut u8, - out_size: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ecb"] + pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Digest"] - pub fn EVP_Digest( - data: *const ::std::os::raw::c_void, - len: usize, - md_out: *mut u8, - md_out_size: *mut ::std::os::raw::c_uint, - type_: *const EVP_MD, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc"] + pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_type"] - pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ctr"] + pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_flags"] - pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ofb"] + pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_size"] - pub fn EVP_MD_size(md: *const EVP_MD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ecb"] + pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_block_size"] - pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc"] + pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_md"] - pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ctr"] + pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_size"] - pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ofb"] + pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_block_size"] - pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_xts"] + pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_type"] - pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_wrap"] + pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_digest_algorithm"] - pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_enc_null"] + pub fn EVP_enc_null() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_digest_algorithm"] - pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc2_cbc"] + pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_enable"] - pub fn EVP_MD_unstable_sha3_enable(enable: bool); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc2_40_cbc"] + pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_is_enabled"] - pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_chacha20_poly1305"] + pub fn EVP_chacha20_poly1305() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy"] - pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbynid"] + pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_digest"] - pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_init"] + pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyname"] - pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_new"] + pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_create"] - pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cleanup"] + pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_destroy"] - pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_free"] + pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinalXOF"] - pub fn EVP_DigestFinalXOF( - ctx: *mut EVP_MD_CTX, - out: *mut u8, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_copy"] + pub fn EVP_CIPHER_CTX_copy( + out: *mut EVP_CIPHER_CTX, + in_: *const EVP_CIPHER_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_meth_get_flags"] - pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_reset"] + pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_flags"] - pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit_ex"] + pub fn EVP_CipherInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, + key: *const u8, + iv: *const u8, + enc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_nid"] - pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit_ex"] + pub fn EVP_EncryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_pkey_ctx"] - pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evp_md_pctx_ops { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct env_md_ctx_st { - pub digest: *const EVP_MD, - pub md_data: *mut ::std::os::raw::c_void, - pub pctx: *mut EVP_PKEY_CTX, - pub pctx_ops: *const evp_md_pctx_ops, - pub flags: ::std::os::raw::c_ulong, -} -#[test] -fn bindgen_test_layout_env_md_ctx_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!(env_md_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(env_md_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(digest) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(md_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(pctx) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(pctx_ops) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for env_md_ctx_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() - } - } + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit_ex"] + pub fn EVP_DecryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md_null"] - pub fn EVP_md_null() -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptUpdate"] + pub fn EVP_EncryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_new"] - pub fn ENGINE_new() -> *mut ENGINE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal_ex"] + pub fn EVP_EncryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_free"] - pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptUpdate"] + pub fn EVP_DecryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_RSA_method"] - pub fn ENGINE_set_RSA_method( - engine: *mut ENGINE, - method: *const RSA_METHOD, - method_size: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal_ex"] + pub fn EVP_DecryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_RSA_method"] - pub fn ENGINE_get_RSA_method(engine: *const ENGINE) -> *mut RSA_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherUpdate"] + pub fn EVP_CipherUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_ECDSA_method"] - pub fn ENGINE_set_ECDSA_method( - engine: *mut ENGINE, - method: *const ECDSA_METHOD, - method_size: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal_ex"] + pub fn EVP_CipherFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_ECDSA_method"] - pub fn ENGINE_get_ECDSA_method(engine: *const ENGINE) -> *mut ECDSA_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cipher"] + pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_ref"] - pub fn METHOD_ref(method: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_nid"] + pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_unref"] - pub fn METHOD_unref(method: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct openssl_method_common_st { - pub references: ::std::os::raw::c_int, - pub is_static: ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_openssl_method_common_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!(openssl_method_common_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(openssl_method_common_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(openssl_method_common_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_static) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(openssl_method_common_st), - "::", - stringify!(is_static) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_encrypting"] + pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_new"] - pub fn DSA_new() -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_block_size"] + pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_free"] - pub fn DSA_free(dsa: *mut DSA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_key_length"] + pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_up_ref"] - pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_iv_length"] + pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_bits"] - pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_get_app_data"] + pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pub_key"] - pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_app_data"] + pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_priv_key"] - pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_flags"] + pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_p"] - pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_mode"] + pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_q"] - pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_ctrl"] + pub fn EVP_CIPHER_CTX_ctrl( + ctx: *mut EVP_CIPHER_CTX, + command: ::std::os::raw::c_int, + arg: ::std::os::raw::c_int, + ptr: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_g"] - pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_padding"] + pub fn EVP_CIPHER_CTX_set_padding( + ctx: *mut EVP_CIPHER_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_key"] - pub fn DSA_get0_key( - dsa: *const DSA, - out_pub_key: *mut *const BIGNUM, - out_priv_key: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_key_length"] + pub fn EVP_CIPHER_CTX_set_key_length( + ctx: *mut EVP_CIPHER_CTX, + key_len: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pqg"] - pub fn DSA_get0_pqg( - dsa: *const DSA, - out_p: *mut *const BIGNUM, - out_q: *mut *const BIGNUM, - out_g: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_nid"] + pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_key"] - pub fn DSA_set0_key( - dsa: *mut DSA, - pub_key: *mut BIGNUM, - priv_key: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_name"] + pub fn EVP_CIPHER_name(cipher: *const EVP_CIPHER) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_pqg"] - pub fn DSA_set0_pqg( - dsa: *mut DSA, - p: *mut BIGNUM, - q: *mut BIGNUM, - g: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_block_size"] + pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_parameters_ex"] - pub fn DSA_generate_parameters_ex( - dsa: *mut DSA, - bits: ::std::os::raw::c_uint, - seed: *const u8, - seed_len: usize, - out_counter: *mut ::std::os::raw::c_int, - out_h: *mut ::std::os::raw::c_ulong, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_key_length"] + pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSAparams_dup"] - pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_iv_length"] + pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_key"] - pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DSA_SIG_st { - pub r: *mut BIGNUM, - pub s: *mut BIGNUM, -} -#[test] -fn bindgen_test_layout_DSA_SIG_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!(DSA_SIG_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(DSA_SIG_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DSA_SIG_st), - "::", - stringify!(r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DSA_SIG_st), - "::", - stringify!(s) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_flags"] + pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; } -impl Default for DSA_SIG_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_fips_0_13_0_EVP_CIPHER_mode"] + pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_new"] - pub fn DSA_SIG_new() -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_BytesToKey"] + pub fn EVP_BytesToKey( + type_: *const EVP_CIPHER, + md: *const EVP_MD, + salt: *const u8, + data: *const u8, + data_len: usize, + count: ::std::os::raw::c_uint, + key: *mut u8, + iv: *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_free"] - pub fn DSA_SIG_free(sig: *mut DSA_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha1"] + pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_get0"] - pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha1"] + pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_set0"] - pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha256"] + pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_sign"] - pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha256"] + pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_verify"] - pub fn DSA_do_verify( - digest: *const u8, - digest_len: usize, - sig: *mut DSA_SIG, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit"] + pub fn EVP_CipherInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + enc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_check_signature"] - pub fn DSA_do_check_signature( - out_valid: *mut ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *mut DSA_SIG, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit"] + pub fn EVP_EncryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_sign"] - pub fn DSA_sign( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out_sig: *mut u8, - out_siglen: *mut ::std::os::raw::c_uint, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit"] + pub fn EVP_DecryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_verify"] - pub fn DSA_verify( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal"] + pub fn EVP_CipherFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_check_signature"] - pub fn DSA_check_signature( - out_valid: *mut ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - dsa: *const DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal"] + pub fn EVP_EncryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_size"] - pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal"] + pub fn EVP_DecryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_parse"] - pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Cipher"] + pub fn EVP_Cipher( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_marshal"] - pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbyname"] + pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_public_key"] - pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_gcm"] + pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_public_key"] - pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_gcm"] + pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_private_key"] - pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ccm"] + pub fn EVP_aes_128_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_private_key"] - pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ccm"] + pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_parameters"] - pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ccm"] + pub fn EVP_aes_256_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_parameters"] - pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ecb"] + pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_dup_DH"] - pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cbc"] + pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_new_index"] - pub fn DSA_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_fips_0_13_0_EVP_aes_192_ctr"] + pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set_ex_data"] - pub fn DSA_set_ex_data( - dsa: *mut DSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_gcm"] + pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_data"] - pub fn DSA_get_ex_data( - dsa: *const DSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ofb"] + pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_SIG"] - pub fn d2i_DSA_SIG( - out_sig: *mut *mut DSA_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_ecb"] + pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_SIG"] - pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb128"] + pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPublicKey"] - pub fn d2i_DSAPublicKey( - out: *mut *mut DSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb"] + pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPublicKey"] - pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb1"] + pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey"] - pub fn d2i_DSAPrivateKey( - out: *mut *mut DSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb8"] + pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey"] - pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb128"] + pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAparams"] - pub fn d2i_DSAparams( - out: *mut *mut DSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb"] + pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAparams"] - pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb1"] + pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb8"] + pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb128"] + pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb"] + pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb1"] + pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb8"] + pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_ecb"] + pub fn EVP_bf_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cbc"] + pub fn EVP_bf_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cfb"] + pub fn EVP_bf_cfb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_ecb"] + pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_cbc"] + pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_flags"] + pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_cipher_alias"] + pub fn EVP_add_cipher_alias( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Copy, Clone)] -pub struct dsa_st { - pub version: ::std::os::raw::c_long, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub g: *mut BIGNUM, - pub pub_key: *mut BIGNUM, - pub priv_key: *mut BIGNUM, - pub flags: ::std::os::raw::c_int, - pub method_mont_lock: CRYPTO_MUTEX, - pub method_mont_p: *mut BN_MONT_CTX, - pub method_mont_q: *mut BN_MONT_CTX, - pub references: CRYPTO_refcount_t, - pub ex_data: CRYPTO_EX_DATA, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_cipher_ctx_st { + pub cipher: *const EVP_CIPHER, + pub app_data: *mut ::std::os::raw::c_void, + pub cipher_data: *mut ::std::os::raw::c_void, + pub key_len: ::std::os::raw::c_uint, + pub encrypt: ::std::os::raw::c_int, + pub flags: u32, + pub oiv: [u8; 16usize], + pub iv: [u8; 16usize], + pub buf: [u8; 32usize], + pub buf_len: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_uint, + pub final_used: ::std::os::raw::c_int, + pub final_: [u8; 32usize], + pub poisoned: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_dsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_cipher_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(dsa_st)) + ::std::mem::size_of::(), + 152usize, + concat!("Size of: ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(dsa_st)) + concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(version) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, 8usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(p)) + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(app_data) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, 16usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(q)) + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(cipher_data) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, 24usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(g)) + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(key_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(encrypt) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pub_key) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(pub_key) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).priv_key) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, + 36usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(priv_key) + stringify!(oiv) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 52usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(flags) + stringify!(iv) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_lock) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(buf_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, + 108usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(method_mont_lock) + stringify!(final_used) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_p) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, 112usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(method_mont_p) + stringify!(final_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_q) as usize - ptr as usize }, - 120usize, + unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(method_mont_q) + stringify!(poisoned) ) ); +} +impl Default for evp_cipher_ctx_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 evp_cipher_info_st { + pub cipher: *const EVP_CIPHER, + pub iv: [::std::os::raw::c_uchar; 16usize], +} +#[test] +fn bindgen_test_layout_evp_cipher_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 128usize, + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_info_st), "::", - stringify!(references) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 136usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(dsa_st), + stringify!(evp_cipher_info_st), "::", - stringify!(ex_data) + stringify!(iv) ) ); } -impl Default for dsa_st { +impl Default for evp_cipher_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14259,1074 +13075,1002 @@ impl Default for dsa_st { } } } -#[repr(u32)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum point_conversion_form_t { - POINT_CONVERSION_COMPRESSED = 2, - POINT_CONVERSION_UNCOMPRESSED = 4, - POINT_CONVERSION_HYBRID = 6, +pub type EVP_CIPHER_INFO = evp_cipher_info_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_CMAC"] + pub fn AES_CMAC( + out: *mut u8, + key: *const u8, + key_len: usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_by_curve_name"] - pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_new"] + pub fn CMAC_CTX_new() -> *mut CMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_free"] - pub fn EC_GROUP_free(group: *mut EC_GROUP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_free"] + pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_dup"] - pub fn EC_GROUP_dup(a: *const EC_GROUP) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_copy"] + pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_cmp"] - pub fn EC_GROUP_cmp( - a: *const EC_GROUP, - b: *const EC_GROUP, - ignored: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Init"] + pub fn CMAC_Init( + ctx: *mut CMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_generator"] - pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Reset"] + pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_order"] - pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Update"] + pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_order_bits"] - pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Final"] + pub fn CMAC_Final( + ctx: *mut CMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_cofactor"] - pub fn EC_GROUP_get_cofactor( - group: *const EC_GROUP, - cofactor: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_get0_cipher_ctx"] + pub fn CMAC_CTX_get0_cipher_ctx(ctx: *mut CMAC_CTX) -> *mut EVP_CIPHER_CTX; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_GFp"] - pub fn EC_GROUP_get_curve_GFp( - group: *const EC_GROUP, - out_p: *mut BIGNUM, - out_a: *mut BIGNUM, - out_b: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct conf_value_st { + pub section: *mut ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_name"] - pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_conf_value_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!(conf_value_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(conf_value_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(section) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(value) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_degree"] - pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; +impl Default for conf_value_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_fips_0_12_15_EC_curve_nid2nist"] - pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CONF_VALUE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_curve_nist2nid"] - pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +pub type sk_CONF_VALUE_free_func = + ::std::option::Option; +pub type sk_CONF_VALUE_copy_func = + ::std::option::Option *mut CONF_VALUE>; +pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CONF_VALUE, + arg2: *const *const CONF_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CONF_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lhash_st_CONF_VALUE { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_new"] - pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_new"] + pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_free"] - pub fn EC_POINT_free(point: *mut EC_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_free"] + pub fn NCONF_free(conf: *mut CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_copy"] - pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load"] + pub fn NCONF_load( + conf: *mut CONF, + filename: *const ::std::os::raw::c_char, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dup"] - pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load_bio"] + pub fn NCONF_load_bio( + conf: *mut CONF, + bio: *mut BIO, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_to_infinity"] - pub fn EC_POINT_set_to_infinity( - group: *const EC_GROUP, - point: *mut EC_POINT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_section"] + pub fn NCONF_get_section( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + ) -> *const stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_at_infinity"] - pub fn EC_POINT_is_at_infinity( - group: *const EC_GROUP, - point: *const EC_POINT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_string"] + pub fn NCONF_get_string( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_on_curve"] - pub fn EC_POINT_is_on_curve( - group: *const EC_GROUP, - point: *const EC_POINT, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_load_file"] + pub fn CONF_modules_load_file( + filename: *const ::std::os::raw::c_char, + appname: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_cmp"] - pub fn EC_POINT_cmp( - group: *const EC_GROUP, - a: *const EC_POINT, - b: *const EC_POINT, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_get1_default_config_file"] + pub fn CONF_get1_default_config_file() -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates_GFp"] - pub fn EC_POINT_get_affine_coordinates_GFp( - group: *const EC_GROUP, - point: *const EC_POINT, - x: *mut BIGNUM, - y: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_free"] + pub fn CONF_modules_free(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates"] - pub fn EC_POINT_get_affine_coordinates( - group: *const EC_GROUP, - point: *const EC_POINT, - x: *mut BIGNUM, - y: *mut BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_unload"] + pub fn CONF_modules_unload(all: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates_GFp"] - pub fn EC_POINT_set_affine_coordinates_GFp( - group: *const EC_GROUP, - point: *mut EC_POINT, - x: *const BIGNUM, - y: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_finish"] + pub fn CONF_modules_finish(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates"] - pub fn EC_POINT_set_affine_coordinates( - group: *const EC_GROUP, - point: *mut EC_POINT, - x: *const BIGNUM, - y: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_config"] + pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2oct"] - pub fn EC_POINT_point2oct( - group: *const EC_GROUP, - point: *const EC_POINT, - form: point_conversion_form_t, - buf: *mut u8, - len: usize, - ctx: *mut BN_CTX, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_no_config"] + pub fn OPENSSL_no_config(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2cbb"] - pub fn EC_POINT_point2cbb( - out: *mut CBB, - group: *const EC_GROUP, - point: *const EC_POINT, - form: point_conversion_form_t, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_keypair"] + pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_oct2point"] - pub fn EC_POINT_oct2point( - group: *const EC_GROUP, - point: *mut EC_POINT, - buf: *const u8, - len: usize, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519"] + pub fn X25519( + out_shared_key: *mut u8, + private_key: *const u8, + peer_public_value: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_compressed_coordinates_GFp"] - pub fn EC_POINT_set_compressed_coordinates_GFp( - group: *const EC_GROUP, - point: *mut EC_POINT, - x: *const BIGNUM, - y_bit: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_public_from_private"] + pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_add"] - pub fn EC_POINT_add( - group: *const EC_GROUP, - r: *mut EC_POINT, - a: *const EC_POINT, - b: *const EC_POINT, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair"] + pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dbl"] - pub fn EC_POINT_dbl( - group: *const EC_GROUP, - r: *mut EC_POINT, - a: *const EC_POINT, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_sign"] + pub fn ED25519_sign( + out_sig: *mut u8, + message: *const u8, + message_len: usize, + private_key: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_invert"] - pub fn EC_POINT_invert( - group: *const EC_GROUP, - a: *mut EC_POINT, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_verify"] + pub fn ED25519_verify( + message: *const u8, + message_len: usize, + signature: *const u8, + public_key: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_mul"] - pub fn EC_POINT_mul( - group: *const EC_GROUP, - r: *mut EC_POINT, - n: *const BIGNUM, - q: *const EC_POINT, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair_from_seed"] + pub fn ED25519_keypair_from_seed( + out_public_key: *mut u8, + out_private_key: *mut u8, + seed: *const u8, + ); } +pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; +pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; +pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_curve_GFp"] - pub fn EC_GROUP_new_curve_GFp( - p: *const BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_new"] + pub fn SPAKE2_CTX_new( + my_role: spake2_role_t, + my_name: *const u8, + my_name_len: usize, + their_name: *const u8, + their_name_len: usize, + ) -> *mut SPAKE2_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_generator"] - pub fn EC_GROUP_set_generator( - group: *mut EC_GROUP, - generator: *const EC_POINT, - order: *const BIGNUM, - cofactor: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_free"] + pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_order"] - pub fn EC_GROUP_get_order( - group: *const EC_GROUP, - order: *mut BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_generate_msg"] + pub fn SPAKE2_generate_msg( + ctx: *mut SPAKE2_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + password: *const u8, + password_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_asn1_flag"] - pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_asn1_flag"] - pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ec_method_st { - _unused: [u8; 0], -} -pub type EC_METHOD = ec_method_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_method_of"] - pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_METHOD_get_field_type"] - pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_point_conversion_form"] - pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_process_msg"] + pub fn SPAKE2_process_msg( + ctx: *mut SPAKE2_CTX, + out_key: *mut u8, + out_key_len: *mut usize, + max_out_key_len: usize, + their_msg: *const u8, + their_msg_len: usize, + ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EC_builtin_curve { - pub nid: ::std::os::raw::c_int, - pub comment: *const ::std::os::raw::c_char, +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] +pub struct DES_cblock_st { + pub bytes: [u8; 8usize], } #[test] -fn bindgen_test_layout_EC_builtin_curve() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DES_cblock_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!(EC_builtin_curve)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DES_cblock_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EC_builtin_curve)) + ::std::mem::align_of::(), + 1usize, + concat!("Alignment of ", stringify!(DES_cblock_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nid) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(EC_builtin_curve), + stringify!(DES_cblock_st), "::", - stringify!(nid) + stringify!(bytes) ) ); +} +pub type DES_cblock = DES_cblock_st; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] +pub struct DES_ks { + pub subkeys: [[u32; 2usize]; 16usize], +} +#[test] +fn bindgen_test_layout_DES_ks() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 128usize, + concat!("Size of: ", stringify!(DES_ks)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comment) as usize - ptr as usize }, - 8usize, + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(DES_ks)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subkeys) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(EC_builtin_curve), + stringify!(DES_ks), "::", - stringify!(comment) + stringify!(subkeys) ) ); } -impl Default for EC_builtin_curve { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} +pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_get_builtin_curves"] - pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) - -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_is_weak_key"] + pub fn DES_is_weak_key(key: *const DES_cblock) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_clear_free"] - pub fn EC_POINT_clear_free(point: *mut EC_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key"] + pub fn DES_set_key( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new"] - pub fn EC_KEY_new() -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key_unchecked"] + pub fn DES_set_key_unchecked(key: *const DES_cblock, schedule: *mut DES_key_schedule); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_method"] - pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_key_sched"] + pub fn DES_key_sched( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_by_curve_name"] - pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_odd_parity"] + pub fn DES_set_odd_parity(key: *mut DES_cblock); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_free"] - pub fn EC_KEY_free(key: *mut EC_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb_encrypt"] + pub fn DES_ecb_encrypt( + in_: *const DES_cblock, + out: *mut DES_cblock, + schedule: *const DES_key_schedule, + is_encrypt: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_dup"] - pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ncbc_encrypt"] + pub fn DES_ncbc_encrypt( + in_: *const u8, + out: *mut u8, + len: usize, + schedule: *const DES_key_schedule, + ivec: *mut DES_cblock, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_up_ref"] - pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb3_encrypt"] + pub fn DES_ecb3_encrypt( + input: *const DES_cblock, + output: *mut DES_cblock, + ks1: *const DES_key_schedule, + ks2: *const DES_key_schedule, + ks3: *const DES_key_schedule, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_is_opaque"] - pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede3_cbc_encrypt"] + pub fn DES_ede3_cbc_encrypt( + in_: *const u8, + out: *mut u8, + len: usize, + ks1: *const DES_key_schedule, + ks2: *const DES_key_schedule, + ks3: *const DES_key_schedule, + ivec: *mut DES_cblock, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_group"] - pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede2_cbc_encrypt"] + pub fn DES_ede2_cbc_encrypt( + in_: *const u8, + out: *mut u8, + len: usize, + ks1: *const DES_key_schedule, + ks2: *const DES_key_schedule, + ivec: *mut DES_cblock, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_group"] - pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new"] + pub fn DH_new() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_private_key"] - pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new_by_nid"] + pub fn DH_new_by_nid(nid: ::std::os::raw::c_int) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_private_key"] - pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_free"] + pub fn DH_free(dh: *mut DH); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_public_key"] - pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_up_ref"] + pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key"] - pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_bits"] + pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_enc_flags"] - pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pub_key"] + pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_enc_flags"] - pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_priv_key"] + pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_conv_form"] - pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_p"] + pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_conv_form"] - pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_q"] + pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_key"] - pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_g"] + pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_fips"] - pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_key"] + pub fn DH_get0_key( + dh: *const DH, + out_pub_key: *mut *const BIGNUM, + out_priv_key: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key_affine_coordinates"] - pub fn EC_KEY_set_public_key_affine_coordinates( - key: *mut EC_KEY, - x: *const BIGNUM, - y: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_key"] + pub fn DH_set0_key( + dh: *mut DH, + pub_key: *mut BIGNUM, + priv_key: *mut BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_key2buf"] - pub fn EC_KEY_key2buf( - key: *const EC_KEY, - form: point_conversion_form_t, - out_buf: *mut *mut ::std::os::raw::c_uchar, - ctx: *mut BN_CTX, - ) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pqg"] + pub fn DH_get0_pqg( + dh: *const DH, + out_p: *mut *const BIGNUM, + out_q: *mut *const BIGNUM, + out_g: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key"] - pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_pqg"] + pub fn DH_set0_pqg( + dh: *mut DH, + p: *mut BIGNUM, + q: *mut BIGNUM, + g: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key_fips"] - pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set_length"] + pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_derive_from_secret"] - pub fn EC_KEY_derive_from_secret( - group: *const EC_GROUP, - secret: *const u8, - secret_len: usize, - ) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_2048"] + pub fn DH_get_rfc7919_2048() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_private_key"] - pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_4096"] + pub fn DH_get_rfc7919_4096() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_private_key"] - pub fn EC_KEY_marshal_private_key( - cbb: *mut CBB, - key: *const EC_KEY, - enc_flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_1536"] + pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_curve_name"] - pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_2048"] + pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_curve_name"] - pub fn EC_KEY_marshal_curve_name( - cbb: *mut CBB, - group: *const EC_GROUP, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_3072"] + pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_parameters"] - pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_4096"] + pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_new_index"] - pub fn EC_KEY_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_6144"] + pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_8192"] + pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters_ex"] + pub fn DH_generate_parameters_ex( + dh: *mut DH, + prime_bits: ::std::os::raw::c_int, + generator: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_ex_data"] - pub fn EC_KEY_set_ex_data( - r: *mut EC_KEY, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_key"] + pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_padded"] + pub fn DH_compute_key_padded( + out: *mut u8, + peers_key: *const BIGNUM, + dh: *mut DH, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_data"] - pub fn EC_KEY_get_ex_data( - r: *const EC_KEY, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_hashed"] + pub fn DH_compute_key_hashed( + dh: *mut DH, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + peers_key: *const BIGNUM, + digest: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_method_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: - ::std::option::Option ::std::os::raw::c_int>, - pub finish: - ::std::option::Option ::std::os::raw::c_int>, - pub group_order_size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - eckey: *mut EC_KEY, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_size"] + pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_ecdsa_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).group_order_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(group_order_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(flags) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_num_bits"] + pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; } -impl Default for ecdsa_method_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_fips_0_13_0_DH_check"] + pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_asn1_flag"] - pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_check_pub_key"] + pub fn DH_check_pub_key( + dh: *const DH, + pub_key: *const BIGNUM, + out_flags: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECPrivateKey"] - pub fn d2i_ECPrivateKey( - out_key: *mut *mut EC_KEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DHparams_dup"] + pub fn DHparams_dup(dh: *const DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey"] - pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_parse_parameters"] + pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECParameters"] - pub fn d2i_ECParameters( - out_key: *mut *mut EC_KEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_marshal_parameters"] + pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECParameters"] - pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters"] + pub fn DH_generate_parameters( + prime_len: ::std::os::raw::c_int, + generator: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_o2i_ECPublicKey"] - pub fn o2i_ECPublicKey( - out_key: *mut *mut EC_KEY, - inp: *mut *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DHparams"] + pub fn d2i_DHparams( + ret: *mut *mut DH, + inp: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut EC_KEY; + ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2o_ECPublicKey"] - pub fn i2o_ECPublicKey( - key: *const EC_KEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams"] + pub fn i2d_DHparams( + in_: *const DH, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key"] - pub fn ECDH_compute_key( - out: *mut ::std::os::raw::c_void, - outlen: usize, - pub_key: *const EC_POINT, - priv_key: *const EC_KEY, - kdf: ::std::option::Option< - unsafe extern "C" fn( - in_: *const ::std::os::raw::c_void, - inlen: usize, - out: *mut ::std::os::raw::c_void, - outlen: *mut usize, - ) -> *mut ::std::os::raw::c_void, - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key"] + pub fn DH_compute_key( + out: *mut u8, + peers_key: *const BIGNUM, + dh: *mut DH, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key_fips"] - pub fn ECDH_compute_key_fips( - out: *mut u8, - out_len: usize, - pub_key: *const EC_POINT, - priv_key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_2048_256"] + pub fn DH_get_2048_256() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign"] - pub fn ECDSA_sign( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_clear_flags"] + pub fn DH_clear_flags(dh: *mut DH, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_verify"] - pub fn ECDSA_verify( - type_: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md4"] + pub fn EVP_md4() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_size"] - pub fn ECDSA_size(key: *const EC_KEY) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5"] + pub fn EVP_md5() -> *const EVP_MD; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_sig_st { - pub r: *mut BIGNUM, - pub s: *mut BIGNUM, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ripemd160"] + pub fn EVP_ripemd160() -> *const EVP_MD; } -#[test] -fn bindgen_test_layout_ecdsa_sig_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!(ecdsa_sig_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_sig_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_sig_st), - "::", - stringify!(r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_sig_st), - "::", - stringify!(s) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha1"] + pub fn EVP_sha1() -> *const EVP_MD; } -impl Default for ecdsa_sig_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_fips_0_13_0_EVP_sha224"] + pub fn EVP_sha224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_new"] - pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha256"] + pub fn EVP_sha256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_free"] - pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha384"] + pub fn EVP_sha384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_r"] - pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512"] + pub fn EVP_sha512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_s"] - pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_224"] + pub fn EVP_sha512_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0"] - pub fn ECDSA_SIG_get0( - sig: *const ECDSA_SIG, - out_r: *mut *const BIGNUM, - out_s: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_256"] + pub fn EVP_sha512_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_set0"] - pub fn ECDSA_SIG_set0( - sig: *mut ECDSA_SIG, - r: *mut BIGNUM, - s: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_224"] + pub fn EVP_sha3_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_sign"] - pub fn ECDSA_do_sign( - digest: *const u8, - digest_len: usize, - key: *const EC_KEY, - ) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_256"] + pub fn EVP_sha3_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_verify"] - pub fn ECDSA_do_verify( - digest: *const u8, - digest_len: usize, - sig: *const ECDSA_SIG, - key: *const EC_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_384"] + pub fn EVP_sha3_384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_parse"] - pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_512"] + pub fn EVP_sha3_512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_from_bytes"] - pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake128"] + pub fn EVP_shake128() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_marshal"] - pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake256"] + pub fn EVP_shake256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_to_bytes"] - pub fn ECDSA_SIG_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - sig: *const ECDSA_SIG, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_blake2b256"] + pub fn EVP_blake2b256() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5_sha1"] + pub fn EVP_md5_sha1() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbynid"] + pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyobj"] + pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_init"] + pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_new"] + pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanup"] + pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanse"] + pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_free"] + pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy_ex"] + pub fn EVP_MD_CTX_copy_ex( + out: *mut EVP_MD_CTX, + in_: *const EVP_MD_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_max_len"] - pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_move"] + pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] - pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( - digest: *const u8, - digest_len: usize, - eckey: *const EC_KEY, - nonce: *const u8, - nonce_len: usize, - ) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_reset"] + pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECDSA_SIG"] - pub fn d2i_ECDSA_SIG( - out: *mut *mut ECDSA_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ECDSA_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit_ex"] + pub fn EVP_DigestInit_ex( + ctx: *mut EVP_MD_CTX, + type_: *const EVP_MD, + engine: *mut ENGINE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECDSA_SIG"] - pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit"] + pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm"] - pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestUpdate"] + pub fn EVP_DigestUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_192_gcm"] - pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal_ex"] + pub fn EVP_DigestFinal_ex( + ctx: *mut EVP_MD_CTX, + md_out: *mut u8, + out_size: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm"] - pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal"] + pub fn EVP_DigestFinal( + ctx: *mut EVP_MD_CTX, + md_out: *mut u8, + out_size: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_chacha20_poly1305"] - pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Digest"] + pub fn EVP_Digest( + data: *const ::std::os::raw::c_void, + len: usize, + md_out: *mut u8, + out_size: *mut ::std::os::raw::c_uint, + type_: *const EVP_MD, + impl_: *mut ENGINE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_xchacha20_poly1305"] - pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_type"] + pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ctr_hmac_sha256"] - pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_flags"] + pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_ctr_hmac_sha256"] - pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_size"] + pub fn EVP_MD_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_siv"] - pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_block_size"] + pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_siv"] - pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_md"] + pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_randnonce"] - pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_size"] + pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_randnonce"] - pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_block_size"] + pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth"] - pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_type"] + pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth_8"] - pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_digest_algorithm"] + pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_matter"] - pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_digest_algorithm"] + pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_has_aes_hardware"] - pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy"] + pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_key_length"] - pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyname"] + pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_nonce_length"] - pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_create"] + pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_overhead"] - pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_destroy"] + pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_tag_len"] - pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinalXOF"] + pub fn EVP_DigestFinalXOF( + ctx: *mut EVP_MD_CTX, + out: *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_meth_get_flags"] + pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_nid"] + pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_pkey_ctx"] + pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); } #[repr(C)] -#[derive(Copy, Clone)] -pub union evp_aead_ctx_st_state { - pub opaque: [u8; 580usize], - pub alignment: u64, - pub ptr: *mut ::std::os::raw::c_void, +#[derive(Debug, Copy, Clone)] +pub struct evp_md_pctx_ops { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct env_md_ctx_st { + pub digest: *const EVP_MD, + pub md_data: *mut ::std::os::raw::c_void, + pub update: ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + count: usize, + ), + >, + pub pctx: *mut EVP_PKEY_CTX, + pub pctx_ops: *const evp_md_pctx_ops, + pub flags: ::std::os::raw::c_ulong, } #[test] -fn bindgen_test_layout_evp_aead_ctx_st_state() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_env_md_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 584usize, - concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(env_md_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(evp_aead_ctx_st_state)) + concat!("Alignment of ", stringify!(env_md_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st_state), + stringify!(env_md_ctx_st), "::", - stringify!(opaque) + stringify!(digest) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_data) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st_state), + stringify!(env_md_ctx_st), "::", - stringify!(alignment) + stringify!(md_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).update) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st_state), + stringify!(env_md_ctx_st), "::", - stringify!(ptr) + stringify!(update) ) ); -} -impl Default for evp_aead_ctx_st_state { - 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(Copy, Clone)] -pub struct evp_aead_ctx_st { - pub aead: *const EVP_AEAD, - pub state: evp_aead_ctx_st_state, - pub state_offset: u8, - pub tag_len: u8, -} -#[test] -fn bindgen_test_layout_evp_aead_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 600usize, - concat!("Size of: ", stringify!(evp_aead_ctx_st)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_aead_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_aead_ctx_st), - "::", - stringify!(aead) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st), + stringify!(env_md_ctx_st), "::", - stringify!(state) + stringify!(pctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, - 592usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st), + stringify!(env_md_ctx_st), "::", - stringify!(state_offset) + stringify!(pctx_ops) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, - 593usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(evp_aead_ctx_st), + stringify!(env_md_ctx_st), "::", - stringify!(tag_len) + stringify!(flags) ) ); } -impl Default for evp_aead_ctx_st { +impl Default for env_md_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -15336,1147 +14080,1207 @@ impl Default for evp_aead_ctx_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_zero"] - pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_enable"] + pub fn EVP_MD_unstable_sha3_enable(enable: bool); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_new"] - pub fn EVP_AEAD_CTX_new( - aead: *const EVP_AEAD, - key: *const u8, - key_len: usize, - tag_len: usize, - ) -> *mut EVP_AEAD_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_is_enabled"] + pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_free"] - pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_flags"] + pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init"] - pub fn EVP_AEAD_CTX_init( - ctx: *mut EVP_AEAD_CTX, - aead: *const EVP_AEAD, - key: *const u8, - key_len: usize, - tag_len: usize, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_digest"] + pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_cleanup"] - pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md_null"] + pub fn EVP_md_null() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal"] - pub fn EVP_AEAD_CTX_seal( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_new"] + pub fn DSA_new() -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open"] - pub fn EVP_AEAD_CTX_open( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_free"] + pub fn DSA_free(dsa: *mut DSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal_scatter"] - pub fn EVP_AEAD_CTX_seal_scatter( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - out_tag: *mut u8, - out_tag_len: *mut usize, - max_out_tag_len: usize, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - extra_in: *const u8, - extra_in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_up_ref"] + pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open_gather"] - pub fn EVP_AEAD_CTX_open_gather( - ctx: *const EVP_AEAD_CTX, - out: *mut u8, - nonce: *const u8, - nonce_len: usize, - in_: *const u8, - in_len: usize, - in_tag: *const u8, - in_tag_len: usize, - ad: *const u8, - ad_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print"] + pub fn DSA_print( + bio: *mut BIO, + dsa: *const DSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_aead"] - pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print_fp"] + pub fn DSA_print_fp( + fp: *mut FILE, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls"] - pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_bits"] + pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] - pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pub_key"] + pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls"] - pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_priv_key"] + pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] - pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_p"] + pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls"] - pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_q"] + pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] - pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_g"] + pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls"] - pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_key"] + pub fn DSA_get0_key( + dsa: *const DSA, + out_pub_key: *mut *const BIGNUM, + out_priv_key: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] - pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pqg"] + pub fn DSA_get0_pqg( + dsa: *const DSA, + out_p: *mut *const BIGNUM, + out_q: *mut *const BIGNUM, + out_g: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_null_sha1_tls"] - pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_key"] + pub fn DSA_set0_key( + dsa: *mut DSA, + pub_key: *mut BIGNUM, + priv_key: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls12"] - pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_pqg"] + pub fn DSA_set0_pqg( + dsa: *mut DSA, + p: *mut BIGNUM, + q: *mut BIGNUM, + g: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls12"] - pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_parameters_ex"] + pub fn DSA_generate_parameters_ex( + dsa: *mut DSA, + bits: ::std::os::raw::c_uint, + seed: *const u8, + seed_len: usize, + out_counter: *mut ::std::os::raw::c_int, + out_h: *mut ::std::os::raw::c_ulong, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls13"] - pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSAparams_dup"] + pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls13"] - pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_key"] + pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; } -pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; -pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; -pub type evp_aead_direction_t = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init_with_direction"] - pub fn EVP_AEAD_CTX_init_with_direction( - ctx: *mut EVP_AEAD_CTX, - aead: *const EVP_AEAD, - key: *const u8, - key_len: usize, - tag_len: usize, - dir: evp_aead_direction_t, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct DSA_SIG_st { + pub r: *mut BIGNUM, + pub s: *mut BIGNUM, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_get_iv"] - pub fn EVP_AEAD_CTX_get_iv( - ctx: *const EVP_AEAD_CTX, - out_iv: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_DSA_SIG_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!(DSA_SIG_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(DSA_SIG_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(DSA_SIG_st), + "::", + stringify!(r) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(DSA_SIG_st), + "::", + stringify!(s) + ) + ); +} +impl Default for DSA_SIG_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_fips_0_12_15_EVP_AEAD_CTX_tag_len"] - pub fn EVP_AEAD_CTX_tag_len( - ctx: *const EVP_AEAD_CTX, - out_tag_len: *mut usize, - in_len: usize, - extra_in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_new"] + pub fn DSA_SIG_new() -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_get_iv_from_ipv4_nanosecs"] - pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( - ipv4_address: u32, - nanosecs: u64, - out_iv: *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_free"] + pub fn DSA_SIG_free(sig: *mut DSA_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new"] - pub fn EVP_PKEY_new() -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_get0"] + pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_free"] - pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_set0"] + pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_up_ref"] - pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_sign"] + pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_is_opaque"] - pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_verify"] + pub fn DSA_do_verify( + digest: *const u8, + digest_len: usize, + sig: *mut DSA_SIG, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp"] - pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_check_signature"] + pub fn DSA_do_check_signature( + out_valid: *mut ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *mut DSA_SIG, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_copy_parameters"] - pub fn EVP_PKEY_copy_parameters( - to: *mut EVP_PKEY, - from: *const EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_sign"] + pub fn DSA_sign( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out_sig: *mut u8, + out_siglen: *mut ::std::os::raw::c_uint, + dsa: *const DSA, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_missing_parameters"] - pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_verify"] + pub fn DSA_verify( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_size"] - pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_check_signature"] + pub fn DSA_check_signature( + out_valid: *mut ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + dsa: *const DSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_bits"] - pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_size"] + pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_id"] - pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_parse"] + pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_type"] - pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_marshal"] + pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_RSA"] - pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_public_key"] + pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_RSA"] - pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_public_key"] + pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_RSA"] - pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_private_key"] + pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_RSA"] - pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_private_key"] + pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_DSA"] - pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_parameters"] + pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_DSA"] - pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_parameters"] + pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DSA"] - pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_dup_DH"] + pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DSA"] - pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_new_index"] + pub fn DSA_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_fips_0_12_15_EVP_PKEY_set1_EC_KEY"] - pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set_ex_data"] + pub fn DSA_set_ex_data( + dsa: *mut DSA, + 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_fips_0_12_15_EVP_PKEY_assign_EC_KEY"] - pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_data"] + pub fn DSA_get_ex_data( + dsa: *const DSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_EC_KEY"] - pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_SIG"] + pub fn d2i_DSA_SIG( + out_sig: *mut *mut DSA_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_EC_KEY"] - pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_SIG"] + pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign"] - pub fn EVP_PKEY_assign( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - key: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPublicKey"] + pub fn d2i_DSAPublicKey( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set_type"] - pub fn EVP_PKEY_set_type( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPublicKey"] + pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp_parameters"] - pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPrivateKey"] + pub fn d2i_DSAPrivateKey( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_public_key"] - pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPrivateKey"] + pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_public_key"] - pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAparams"] + pub fn d2i_DSAparams( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_private_key"] - pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAparams"] + pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key"] - pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum point_conversion_form_t { + POINT_CONVERSION_COMPRESSED = 2, + POINT_CONVERSION_UNCOMPRESSED = 4, + POINT_CONVERSION_HYBRID = 6, } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key_v2"] - pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p224"] + pub fn EC_group_p224() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_private_key"] - pub fn EVP_PKEY_new_raw_private_key( - type_: ::std::os::raw::c_int, - unused: *mut ENGINE, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p256"] + pub fn EC_group_p256() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_public_key"] - pub fn EVP_PKEY_new_raw_public_key( - type_: ::std::os::raw::c_int, - unused: *mut ENGINE, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p384"] + pub fn EC_group_p384() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_private_key"] - pub fn EVP_PKEY_get_raw_private_key( - pkey: *const EVP_PKEY, - out: *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p521"] + pub fn EC_group_p521() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_public_key"] - pub fn EVP_PKEY_get_raw_public_key( - pkey: *const EVP_PKEY, - out: *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_secp256k1"] + pub fn EC_group_secp256k1() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignInit"] - pub fn EVP_DigestSignInit( - ctx: *mut EVP_MD_CTX, - pctx: *mut *mut EVP_PKEY_CTX, - type_: *const EVP_MD, - e: *mut ENGINE, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_by_curve_name"] + pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignUpdate"] - pub fn EVP_DigestSignUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_cmp"] + pub fn EC_GROUP_cmp( + a: *const EC_GROUP, + b: *const EC_GROUP, + ignored: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignFinal"] - pub fn EVP_DigestSignFinal( - ctx: *mut EVP_MD_CTX, - out_sig: *mut u8, - out_sig_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_generator"] + pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSign"] - pub fn EVP_DigestSign( - ctx: *mut EVP_MD_CTX, - out_sig: *mut u8, - out_sig_len: *mut usize, - data: *const u8, - data_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_order"] + pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyInit"] - pub fn EVP_DigestVerifyInit( - ctx: *mut EVP_MD_CTX, - pctx: *mut *mut EVP_PKEY_CTX, - type_: *const EVP_MD, - e: *mut ENGINE, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_order_bits"] + pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyUpdate"] - pub fn EVP_DigestVerifyUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_cofactor"] + pub fn EC_GROUP_get_cofactor( + group: *const EC_GROUP, + cofactor: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyFinal"] - pub fn EVP_DigestVerifyFinal( - ctx: *mut EVP_MD_CTX, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_GFp"] + pub fn EC_GROUP_get_curve_GFp( + group: *const EC_GROUP, + out_p: *mut BIGNUM, + out_a: *mut BIGNUM, + out_b: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerify"] - pub fn EVP_DigestVerify( - ctx: *mut EVP_MD_CTX, - sig: *const u8, - sig_len: usize, - data: *const u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_name"] + pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit_ex"] - pub fn EVP_SignInit_ex( - ctx: *mut EVP_MD_CTX, - type_: *const EVP_MD, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_degree"] + pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit"] - pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nid2nist"] + pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignUpdate"] - pub fn EVP_SignUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nist2nid"] + pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignFinal"] - pub fn EVP_SignFinal( - ctx: *const EVP_MD_CTX, - sig: *mut u8, - out_sig_len: *mut ::std::os::raw::c_uint, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_new"] + pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit_ex"] - pub fn EVP_VerifyInit_ex( - ctx: *mut EVP_MD_CTX, - type_: *const EVP_MD, - impl_: *mut ENGINE, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_free"] + pub fn EC_POINT_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit"] - pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_copy"] + pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyUpdate"] - pub fn EVP_VerifyUpdate( - ctx: *mut EVP_MD_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dup"] + pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyFinal"] - pub fn EVP_VerifyFinal( - ctx: *mut EVP_MD_CTX, - sig: *const u8, - sig_len: usize, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_to_infinity"] + pub fn EC_POINT_set_to_infinity( + group: *const EC_GROUP, + point: *mut EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_public"] - pub fn EVP_PKEY_print_public( - out: *mut BIO, - pkey: *const EVP_PKEY, - indent: ::std::os::raw::c_int, - pctx: *mut ASN1_PCTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_at_infinity"] + pub fn EC_POINT_is_at_infinity( + group: *const EC_GROUP, + point: *const EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_private"] - pub fn EVP_PKEY_print_private( - out: *mut BIO, - pkey: *const EVP_PKEY, - indent: ::std::os::raw::c_int, - pctx: *mut ASN1_PCTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_on_curve"] + pub fn EC_POINT_is_on_curve( + group: *const EC_GROUP, + point: *const EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_params"] - pub fn EVP_PKEY_print_params( - out: *mut BIO, - pkey: *const EVP_PKEY, - indent: ::std::os::raw::c_int, - pctx: *mut ASN1_PCTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_cmp"] + pub fn EC_POINT_cmp( + group: *const EC_GROUP, + a: *const EC_POINT, + b: *const EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC"] - pub fn PKCS5_PBKDF2_HMAC( - password: *const ::std::os::raw::c_char, - password_len: usize, - salt: *const u8, - salt_len: usize, - iterations: ::std::os::raw::c_uint, - digest: *const EVP_MD, - key_len: usize, - out_key: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates_GFp"] + pub fn EC_POINT_get_affine_coordinates_GFp( + group: *const EC_GROUP, + point: *const EC_POINT, + x: *mut BIGNUM, + y: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC_SHA1"] - pub fn PKCS5_PBKDF2_HMAC_SHA1( - password: *const ::std::os::raw::c_char, - password_len: usize, - salt: *const u8, - salt_len: usize, - iterations: ::std::os::raw::c_uint, - key_len: usize, - out_key: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates"] + pub fn EC_POINT_get_affine_coordinates( + group: *const EC_GROUP, + point: *const EC_POINT, + x: *mut BIGNUM, + y: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PBE_scrypt"] - pub fn EVP_PBE_scrypt( - password: *const ::std::os::raw::c_char, - password_len: usize, - salt: *const u8, - salt_len: usize, - N: u64, - r: u64, - p: u64, - max_mem: usize, - out_key: *mut u8, - key_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates_GFp"] + pub fn EC_POINT_set_affine_coordinates_GFp( + group: *const EC_GROUP, + point: *mut EC_POINT, + x: *const BIGNUM, + y: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new"] - pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new_id"] - pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_free"] - pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_dup"] - pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_pkey"] - pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign_init"] - pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign"] - pub fn EVP_PKEY_sign( - ctx: *mut EVP_PKEY_CTX, - sig: *mut u8, - sig_len: *mut usize, - digest: *const u8, - digest_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates"] + pub fn EC_POINT_set_affine_coordinates( + group: *const EC_GROUP, + point: *mut EC_POINT, + x: *const BIGNUM, + y: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_init"] - pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2oct"] + pub fn EC_POINT_point2oct( + group: *const EC_GROUP, + point: *const EC_POINT, + form: point_conversion_form_t, + buf: *mut u8, + len: usize, + ctx: *mut BN_CTX, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify"] - pub fn EVP_PKEY_verify( - ctx: *mut EVP_PKEY_CTX, - sig: *const u8, - sig_len: usize, - digest: *const u8, - digest_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2cbb"] + pub fn EC_POINT_point2cbb( + out: *mut CBB, + group: *const EC_GROUP, + point: *const EC_POINT, + form: point_conversion_form_t, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt_init"] - pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt"] - pub fn EVP_PKEY_encrypt( - ctx: *mut EVP_PKEY_CTX, - out: *mut u8, - out_len: *mut usize, - in_: *const u8, - in_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_oct2point"] + pub fn EC_POINT_oct2point( + group: *const EC_GROUP, + point: *mut EC_POINT, + buf: *const u8, + len: usize, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt_init"] - pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_compressed_coordinates_GFp"] + pub fn EC_POINT_set_compressed_coordinates_GFp( + group: *const EC_GROUP, + point: *mut EC_POINT, + x: *const BIGNUM, + y_bit: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt"] - pub fn EVP_PKEY_decrypt( - ctx: *mut EVP_PKEY_CTX, - out: *mut u8, - out_len: *mut usize, - in_: *const u8, - in_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_add"] + pub fn EC_POINT_add( + group: *const EC_GROUP, + r: *mut EC_POINT, + a: *const EC_POINT, + b: *const EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover_init"] - pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dbl"] + pub fn EC_POINT_dbl( + group: *const EC_GROUP, + r: *mut EC_POINT, + a: *const EC_POINT, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover"] - pub fn EVP_PKEY_verify_recover( - ctx: *mut EVP_PKEY_CTX, - out: *mut u8, - out_len: *mut usize, - sig: *const u8, - siglen: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_invert"] + pub fn EC_POINT_invert( + group: *const EC_GROUP, + a: *mut EC_POINT, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_init"] - pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_mul"] + pub fn EC_POINT_mul( + group: *const EC_GROUP, + r: *mut EC_POINT, + n: *const BIGNUM, + q: *const EC_POINT, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_set_peer"] - pub fn EVP_PKEY_derive_set_peer( - ctx: *mut EVP_PKEY_CTX, - peer: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p256_xmd_sha256_sswu"] + pub fn EC_hash_to_curve_p256_xmd_sha256_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive"] - pub fn EVP_PKEY_derive( - ctx: *mut EVP_PKEY_CTX, - key: *mut u8, - out_key_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p384_xmd_sha384_sswu"] + pub fn EC_hash_to_curve_p384_xmd_sha384_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen_init"] - pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_free"] + pub fn EC_GROUP_free(group: *mut EC_GROUP); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen"] - pub fn EVP_PKEY_keygen( - ctx: *mut EVP_PKEY_CTX, - out_pkey: *mut *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_dup"] + pub fn EC_GROUP_dup(group: *const EC_GROUP) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encapsulate"] - pub fn EVP_PKEY_encapsulate( - ctx: *mut EVP_PKEY_CTX, - ciphertext: *mut u8, - ciphertext_len: *mut usize, - shared_secret: *mut u8, - shared_secret_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_curve_GFp"] + pub fn EC_GROUP_new_curve_GFp( + p: *const BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decapsulate"] - pub fn EVP_PKEY_decapsulate( - ctx: *mut EVP_PKEY_CTX, - shared_secret: *mut u8, - shared_secret_len: *mut usize, - ciphertext: *mut u8, - ciphertext_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_generator"] + pub fn EC_GROUP_set_generator( + group: *mut EC_GROUP, + generator: *const EC_POINT, + order: *const BIGNUM, + cofactor: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen_init"] - pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2bn"] + pub fn EC_POINT_point2bn( + group: *const EC_GROUP, + point: *const EC_POINT, + form: point_conversion_form_t, + ret: *mut BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen"] - pub fn EVP_PKEY_paramgen( - ctx: *mut EVP_PKEY_CTX, - out_pkey: *mut *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_bn2point"] + pub fn EC_POINT_bn2point( + group: *const EC_GROUP, + bn: *const BIGNUM, + point: *mut EC_POINT, + ctx: *mut BN_CTX, + ) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_signature_md"] - pub fn EVP_PKEY_CTX_set_signature_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_order"] + pub fn EC_GROUP_get_order( + group: *const EC_GROUP, + order: *mut BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_signature_md"] - pub fn EVP_PKEY_CTX_get_signature_md( - ctx: *mut EVP_PKEY_CTX, - out_md: *mut *const EVP_MD, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct EC_builtin_curve { + pub nid: ::std::os::raw::c_int, + pub comment: *const ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_padding"] - pub fn EVP_PKEY_CTX_set_rsa_padding( - ctx: *mut EVP_PKEY_CTX, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_EC_builtin_curve() { + 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!(EC_builtin_curve)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(EC_builtin_curve)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).nid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(EC_builtin_curve), + "::", + stringify!(nid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).comment) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(EC_builtin_curve), + "::", + stringify!(comment) + ) + ); +} +impl Default for EC_builtin_curve { + 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_fips_0_12_15_EVP_PKEY_CTX_get_rsa_padding"] - pub fn EVP_PKEY_CTX_get_rsa_padding( - ctx: *mut EVP_PKEY_CTX, - out_padding: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_get_builtin_curves"] + pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) + -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_saltlen"] - pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( - ctx: *mut EVP_PKEY_CTX, - salt_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_clear_free"] + pub fn EC_POINT_clear_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_pss_saltlen"] - pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( - ctx: *mut EVP_PKEY_CTX, - out_salt_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_asn1_flag"] + pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_bits"] - pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( - ctx: *mut EVP_PKEY_CTX, - bits: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_asn1_flag"] + pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] - pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( - ctx: *mut EVP_PKEY_CTX, - e: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_point_conversion_form"] + pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_oaep_md"] - pub fn EVP_PKEY_CTX_set_rsa_oaep_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_seed"] + pub fn EC_GROUP_set_seed( + group: *mut EC_GROUP, + p: *const ::std::os::raw::c_uchar, + len: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_oaep_md"] - pub fn EVP_PKEY_CTX_get_rsa_oaep_md( - ctx: *mut EVP_PKEY_CTX, - out_md: *mut *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_seed"] + pub fn EC_GROUP_get0_seed(group: *const EC_GROUP) -> *mut ::std::os::raw::c_uchar; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_mgf1_md"] - pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_seed_len"] + pub fn EC_GROUP_get_seed_len(group: *const EC_GROUP) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_mgf1_md"] - pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( - ctx: *mut EVP_PKEY_CTX, - out_md: *mut *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECPKParameters_print"] + pub fn ECPKParameters_print( + bio: *mut BIO, + group: *const EC_GROUP, + offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_method_st { + _unused: [u8; 0], +} +pub type EC_METHOD = ec_method_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set0_rsa_oaep_label"] - pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( - ctx: *mut EVP_PKEY_CTX, - label: *mut u8, - label_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_method_of"] + pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_rsa_oaep_label"] - pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( - ctx: *mut EVP_PKEY_CTX, - out_label: *mut *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_METHOD_get_field_type"] + pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] - pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( - ctx: *mut EVP_PKEY_CTX, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_new"] + pub fn ENGINE_new() -> *mut ENGINE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_kem_set_params"] - pub fn EVP_PKEY_CTX_kem_set_params( - ctx: *mut EVP_PKEY_CTX, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_free"] + pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_public_key"] - pub fn EVP_PKEY_kem_new_raw_public_key( - nid: ::std::os::raw::c_int, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_RSA"] + pub fn ENGINE_set_RSA(engine: *mut ENGINE, method: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_secret_key"] - pub fn EVP_PKEY_kem_new_raw_secret_key( - nid: ::std::os::raw::c_int, - in_: *const u8, - len: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_RSA"] + pub fn ENGINE_get_RSA(engine: *const ENGINE) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_key"] - pub fn EVP_PKEY_kem_new_raw_key( - nid: ::std::os::raw::c_int, - in_public: *const u8, - len_public: usize, - in_secret: *const u8, - len_secret: usize, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_EC"] + pub fn ENGINE_set_EC( + engine: *mut ENGINE, + method: *const EC_KEY_METHOD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0"] - pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_EC"] + pub fn ENGINE_get_EC(engine: *const ENGINE) -> *const EC_KEY_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_algorithms"] - pub fn OpenSSL_add_all_algorithms(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_cleanup"] + pub fn ENGINE_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_add_all_algorithms_conf"] - pub fn OPENSSL_add_all_algorithms_conf(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new"] + pub fn EC_KEY_new() -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_ciphers"] - pub fn OpenSSL_add_all_ciphers(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_method"] + pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_digests"] - pub fn OpenSSL_add_all_digests(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_by_curve_name"] + pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cleanup"] - pub fn EVP_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_free"] + pub fn EC_KEY_free(key: *mut EC_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_do_all_sorted"] - pub fn EVP_CIPHER_do_all_sorted( - callback: ::std::option::Option< - unsafe extern "C" fn( - cipher: *const EVP_CIPHER, - name: *const ::std::os::raw::c_char, - unused: *const ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ), - >, - arg: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_dup"] + pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_do_all_sorted"] - pub fn EVP_MD_do_all_sorted( - callback: ::std::option::Option< - unsafe extern "C" fn( - cipher: *const EVP_MD, - name: *const ::std::os::raw::c_char, - unused: *const ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ), - >, - arg: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_up_ref"] + pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PrivateKey"] - pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_is_opaque"] + pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PublicKey"] - pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_group"] + pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey"] - pub fn d2i_PrivateKey( - type_: ::std::os::raw::c_int, - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_group"] + pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AutoPrivateKey"] - pub fn d2i_AutoPrivateKey( - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_private_key"] + pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PublicKey"] - pub fn d2i_PublicKey( - type_: ::std::os::raw::c_int, - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_private_key"] + pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DH"] - pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_public_key"] + pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DH"] - pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key"] + pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_param_enc"] - pub fn EVP_PKEY_CTX_set_ec_param_enc( - ctx: *mut EVP_PKEY_CTX, - encoding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_enc_flags"] + pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_tls_encodedpoint"] - pub fn EVP_PKEY_set1_tls_encodedpoint( - pkey: *mut EVP_PKEY, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_enc_flags"] + pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_tls_encodedpoint"] - pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_conv_form"] + pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_base_id"] - pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_conv_form"] + pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] - pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_key"] + pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] - pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( - ctx: *mut EVP_PKEY_CTX, - salt_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_fips"] + pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] - pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( - ctx: *mut EVP_PKEY_CTX, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key_affine_coordinates"] + pub fn EC_KEY_set_public_key_affine_coordinates( + key: *mut EC_KEY, + x: *const BIGNUM, + y: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PUBKEY"] - pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_key2buf"] + pub fn EC_KEY_key2buf( + key: *const EC_KEY, + form: point_conversion_form_t, + out_buf: *mut *mut ::std::os::raw::c_uchar, + ctx: *mut BN_CTX, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PUBKEY"] - pub fn d2i_PUBKEY( - out: *mut *mut EVP_PKEY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key"] + pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PUBKEY"] - pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key_fips"] + pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PUBKEY"] - pub fn d2i_RSA_PUBKEY( - out: *mut *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_derive_from_secret"] + pub fn EC_KEY_derive_from_secret( + group: *const EC_GROUP, + secret: *const u8, + secret_len: usize, + ) -> *mut EC_KEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_private_key"] + pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_private_key"] + pub fn EC_KEY_marshal_private_key( + cbb: *mut CBB, + key: *const EC_KEY, + enc_flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_curve_name"] + pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_curve_name"] + pub fn EC_KEY_marshal_curve_name( + cbb: *mut CBB, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_parameters"] + pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_ex_new_index"] + pub fn EC_KEY_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_fips_0_13_0_EC_KEY_set_ex_data"] + pub fn EC_KEY_set_ex_data( + r: *mut EC_KEY, + 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_fips_0_13_0_EC_KEY_get_ex_data"] + pub fn EC_KEY_get_ex_data( + r: *const EC_KEY, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPrivateKey"] + pub fn d2i_ECPrivateKey( + out_key: *mut *mut EC_KEY, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut RSA; + ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_PUBKEY"] - pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPrivateKey"] + pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_PUBKEY"] - pub fn d2i_DSA_PUBKEY( - out: *mut *mut DSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECParameters"] + pub fn d2i_ECParameters( + out_key: *mut *mut EC_KEY, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut DSA; + ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY"] - pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECParameters"] + pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EC_PUBKEY"] - pub fn d2i_EC_PUBKEY( - out: *mut *mut EC_KEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPKParameters_bio"] + pub fn d2i_ECPKParameters_bio(bio: *mut BIO, out_group: *mut *mut EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPKParameters_bio"] + pub fn i2d_ECPKParameters_bio(bio: *mut BIO, group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_o2i_ECPublicKey"] + pub fn o2i_ECPublicKey( + out_key: *mut *mut EC_KEY, inp: *mut *const u8, len: ::std::os::raw::c_long, ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( - ctx: *mut EVP_PKEY_CTX, - nbits: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2o_ECPublicKey"] + pub fn i2o_ECPublicKey( + key: *const EC_KEY, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( - ctx: *mut EVP_PKEY_CTX, - qbits: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_default_method"] + pub fn EC_KEY_get_default_method() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_OpenSSL"] + pub fn EC_KEY_OpenSSL() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_new"] + pub fn EC_KEY_METHOD_new(eckey_meth: *const EC_KEY_METHOD) -> *mut EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_free"] + pub fn EC_KEY_METHOD_free(eckey_meth: *mut EC_KEY_METHOD); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_method"] + pub fn EC_KEY_set_method(ec: *mut EC_KEY, meth: *const EC_KEY_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_method"] + pub fn EC_KEY_get_method(ec: *const EC_KEY) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_sign_awslc"] + pub fn EC_KEY_METHOD_set_sign_awslc( + meth: *mut EC_KEY_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: ::std::os::raw::c_int, + sig: *mut u8, + siglen: *mut ::std::os::raw::c_uint, + k_inv: *const BIGNUM, + r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> ::std::os::raw::c_int, + >, + sign_sig: ::std::option::Option< + unsafe extern "C" fn( + digest: *const u8, + digest_len: ::std::os::raw::c_int, + in_kinv: *const BIGNUM, + in_r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> *mut ECDSA_SIG, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_init_awslc"] + pub fn EC_KEY_METHOD_set_init_awslc( + meth: *mut EC_KEY_METHOD, + init: ::std::option::Option< + unsafe extern "C" fn(key: *mut EC_KEY) -> ::std::os::raw::c_int, + >, + finish: ::std::option::Option, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_flags"] + pub fn EC_KEY_METHOD_set_flags( + meth: *mut EC_KEY_METHOD, + flags: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_pkey_st { - pub references: CRYPTO_refcount_t, - pub type_: ::std::os::raw::c_int, - pub pkey: evp_pkey_st__bindgen_ty_1, - pub ameth: *const EVP_PKEY_ASN1_METHOD, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_asn1_flag"] + pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key"] + pub fn ECDH_compute_key( + out: *mut ::std::os::raw::c_void, + outlen: usize, + pub_key: *const EC_POINT, + priv_key: *const EC_KEY, + kdf: ::std::option::Option< + unsafe extern "C" fn( + in_: *const ::std::os::raw::c_void, + inlen: usize, + out: *mut ::std::os::raw::c_void, + outlen: *mut usize, + ) -> *mut ::std::os::raw::c_void, + >, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key_fips"] + pub fn ECDH_compute_key_fips( + out: *mut u8, + out_len: usize, + pub_key: *const EC_POINT, + priv_key: *const EC_KEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign"] + pub fn ECDSA_sign( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *mut u8, + sig_len: *mut ::std::os::raw::c_uint, + key: *const EC_KEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_verify"] + pub fn ECDSA_verify( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + key: *const EC_KEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_size"] + pub fn ECDSA_size(key: *const EC_KEY) -> usize; } #[repr(C)] -#[derive(Copy, Clone)] -pub union evp_pkey_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_void, - pub rsa: *mut RSA, - pub dsa: *mut DSA, - pub dh: *mut DH, - pub ec: *mut EC_KEY, - pub kem_key: *mut KEM_KEY, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ecdsa_sig_st { + pub r: *mut BIGNUM, + pub s: *mut BIGNUM, } #[test] -fn bindgen_test_layout_evp_pkey_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_ecdsa_sig_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!(evp_pkey_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(ecdsa_sig_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(rsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dh) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dh) - ) + concat!("Alignment of ", stringify!(ecdsa_sig_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ec) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).r) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), + stringify!(ecdsa_sig_st), "::", - stringify!(ec) + stringify!(r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem_key) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), + stringify!(ecdsa_sig_st), "::", - stringify!(kem_key) + stringify!(s) ) ); } -impl Default for evp_pkey_st__bindgen_ty_1 { +impl Default for ecdsa_sig_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16485,207 +15289,303 @@ impl Default for evp_pkey_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_evp_pkey_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!(evp_pkey_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ameth) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(ameth) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_new"] + pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_free"] + pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_r"] + pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_s"] + pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0"] + pub fn ECDSA_SIG_get0( + sig: *const ECDSA_SIG, + out_r: *mut *const BIGNUM, + out_s: *mut *const BIGNUM, ); } -impl Default for evp_pkey_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_fips_0_13_0_ECDSA_SIG_set0"] + pub fn ECDSA_SIG_set0( + sig: *mut ECDSA_SIG, + r: *mut BIGNUM, + s: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF"] - pub fn HKDF( - out_key: *mut u8, - out_len: usize, - digest: *const EVP_MD, - secret: *const u8, - secret_len: usize, - salt: *const u8, - salt_len: usize, - info: *const u8, - info_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_sign"] + pub fn ECDSA_do_sign( + digest: *const u8, + digest_len: usize, + key: *const EC_KEY, + ) -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_verify"] + pub fn ECDSA_do_verify( + digest: *const u8, + digest_len: usize, + sig: *const ECDSA_SIG, + key: *const EC_KEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_extract"] - pub fn HKDF_extract( - out_key: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_parse"] + pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_from_bytes"] + pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_marshal"] + pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_to_bytes"] + pub fn ECDSA_SIG_to_bytes( + out_bytes: *mut *mut u8, out_len: *mut usize, - digest: *const EVP_MD, - secret: *const u8, - secret_len: usize, - salt: *const u8, - salt_len: usize, + sig: *const ECDSA_SIG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_expand"] - pub fn HKDF_expand( - out_key: *mut u8, - out_len: usize, - digest: *const EVP_MD, - prk: *const u8, - prk_len: usize, - info: *const u8, - info_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_max_len"] + pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Init"] - pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] + pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( + digest: *const u8, + digest_len: usize, + eckey: *const EC_KEY, + nonce: *const u8, + nonce_len: usize, + ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Update"] - pub fn MD5_Update( - md5: *mut MD5_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECDSA_SIG"] + pub fn d2i_ECDSA_SIG( + out: *mut *mut ECDSA_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Final"] - pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECDSA_SIG"] + pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5"] - pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm"] + pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Transform"] - pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_192_gcm"] + pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm"] + pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_chacha20_poly1305"] + pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_xchacha20_poly1305"] + pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ctr_hmac_sha256"] + pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_ctr_hmac_sha256"] + pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_siv"] + pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_siv"] + pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_randnonce"] + pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_randnonce"] + pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth"] + pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth_8"] + pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_matter"] + pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_has_aes_hardware"] + pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_key_length"] + pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_nonce_length"] + pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_overhead"] + pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_tag_len"] + pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct md5_state_st { - pub h: [u32; 4usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +#[derive(Copy, Clone)] +pub union evp_aead_ctx_st_state { + pub opaque: [u8; 564usize], + pub alignment: u64, + pub ptr: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_md5_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_aead_ctx_st_state() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 92usize, - concat!("Size of: ", stringify!(md5_state_st)) + ::std::mem::size_of::(), + 568usize, + concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(md5_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st_state), "::", - stringify!(h) + stringify!(opaque) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).alignment) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st_state), "::", - stringify!(Nl) + stringify!(alignment) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st_state), "::", - stringify!(Nh) + stringify!(ptr) ) ); +} +impl Default for evp_aead_ctx_st_state { + 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(Copy, Clone)] +pub struct evp_aead_ctx_st { + pub aead: *const EVP_AEAD, + pub state: evp_aead_ctx_st_state, + pub state_offset: u8, + pub tag_len: u8, +} +#[test] +fn bindgen_test_layout_evp_aead_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 584usize, + concat!("Size of: ", stringify!(evp_aead_ctx_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 24usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_aead_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st), "::", - stringify!(data) + stringify!(aead) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 88usize, + unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(md5_state_st), + stringify!(evp_aead_ctx_st), "::", - stringify!(num) + stringify!(state) ) ); -} -impl Default for md5_state_st { + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, + 576usize, + concat!( + "Offset of field: ", + stringify!(evp_aead_ctx_st), + "::", + stringify!(state_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, + 577usize, + concat!( + "Offset of field: ", + stringify!(evp_aead_ctx_st), + "::", + stringify!(tag_len) + ) + ); +} +impl Default for evp_aead_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16695,256 +15595,359 @@ impl Default for md5_state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC"] - pub fn HMAC( - evp_md: *const EVP_MD, - key: *const ::std::os::raw::c_void, - key_len: usize, - data: *const u8, - data_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_zero"] + pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_init"] - pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_new"] + pub fn EVP_AEAD_CTX_new( + aead: *const EVP_AEAD, + key: *const u8, + key_len: usize, + tag_len: usize, + ) -> *mut EVP_AEAD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_new"] - pub fn HMAC_CTX_new() -> *mut HMAC_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_free"] + pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanup"] - pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init"] + pub fn EVP_AEAD_CTX_init( + ctx: *mut EVP_AEAD_CTX, + aead: *const EVP_AEAD, + key: *const u8, + key_len: usize, + tag_len: usize, + impl_: *mut ENGINE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanse"] - pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_cleanup"] + pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_free"] - pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal"] + pub fn EVP_AEAD_CTX_seal( + ctx: *const EVP_AEAD_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init_ex"] - pub fn HMAC_Init_ex( - ctx: *mut HMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, - md: *const EVP_MD, - impl_: *mut ENGINE, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open"] + pub fn EVP_AEAD_CTX_open( + ctx: *const EVP_AEAD_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Update"] - pub fn HMAC_Update( - ctx: *mut HMAC_CTX, - data: *const u8, - data_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal_scatter"] + pub fn EVP_AEAD_CTX_seal_scatter( + ctx: *const EVP_AEAD_CTX, + out: *mut u8, + out_tag: *mut u8, + out_tag_len: *mut usize, + max_out_tag_len: usize, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + extra_in: *const u8, + extra_in_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Final"] - pub fn HMAC_Final( - ctx: *mut HMAC_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open_gather"] + pub fn EVP_AEAD_CTX_open_gather( + ctx: *const EVP_AEAD_CTX, out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + nonce: *const u8, + nonce_len: usize, + in_: *const u8, + in_len: usize, + in_tag: *const u8, + in_tag_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_size"] - pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_aead"] + pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_get_md"] - pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls"] + pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy_ex"] - pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] + pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_reset"] - pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls"] + pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init"] - pub fn HMAC_Init( - ctx: *mut HMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: ::std::os::raw::c_int, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] + pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy"] - pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls"] + pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hmac_methods_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] + pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; } -pub type HmacMethods = hmac_methods_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub union md_ctx_union { - pub md5: MD5_CTX, - pub sha1: SHA_CTX, - pub sha256: SHA256_CTX, - pub sha512: SHA512_CTX, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha384_tls"] + pub fn EVP_aead_aes_256_cbc_sha384_tls() -> *const EVP_AEAD; } -#[test] -fn bindgen_test_layout_md_ctx_union() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(md_ctx_union)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(md_ctx_union)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md5) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(md5) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sha1) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(sha1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sha256) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(sha256) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sha512) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md_ctx_union), - "::", - stringify!(sha512) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls"] + pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; } -impl Default for md_ctx_union { - 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_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] + pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct hmac_ctx_st { - pub md: *const EVP_MD, - pub methods: *const HmacMethods, - pub md_ctx: md_ctx_union, - pub i_ctx: md_ctx_union, - pub o_ctx: md_ctx_union, - pub state: i8, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_null_sha1_tls"] + pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; } -#[test] -fn bindgen_test_layout_hmac_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 672usize, - concat!("Size of: ", stringify!(hmac_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(hmac_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(hmac_ctx_st), - "::", - stringify!(md) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).methods) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(hmac_ctx_st), - "::", - stringify!(methods) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_ctx) as usize - ptr as usize }, - 16usize, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls12"] + pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls12"] + pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls13"] + pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls13"] + pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; +} +pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; +pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; +pub type evp_aead_direction_t = ::std::os::raw::c_uint; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init_with_direction"] + pub fn EVP_AEAD_CTX_init_with_direction( + ctx: *mut EVP_AEAD_CTX, + aead: *const EVP_AEAD, + key: *const u8, + key_len: usize, + tag_len: usize, + dir: evp_aead_direction_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_get_iv"] + pub fn EVP_AEAD_CTX_get_iv( + ctx: *const EVP_AEAD_CTX, + out_iv: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_tag_len"] + pub fn EVP_AEAD_CTX_tag_len( + ctx: *const EVP_AEAD_CTX, + out_tag_len: *mut usize, + in_len: usize, + extra_in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_get_iv_from_ipv4_nanosecs"] + pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( + ipv4_address: u32, + nanosecs: u64, + out_iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_dup"] + pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cmp"] + pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get0_data"] + pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_length"] + pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2nid"] + pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cbs2nid"] + pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_sn2nid"] + pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_ln2nid"] + pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2nid"] + pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2obj"] + pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get_undef"] + pub fn OBJ_get_undef() -> *const ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2sn"] + pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2ln"] + pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2cbb"] + pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2obj"] + pub fn OBJ_txt2obj( + s: *const ::std::os::raw::c_char, + dont_search_names: ::std::os::raw::c_int, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2txt"] + pub fn OBJ_obj2txt( + out: *mut ::std::os::raw::c_char, + out_len: ::std::os::raw::c_int, + obj: *const ASN1_OBJECT, + always_return_oid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_create"] + pub fn OBJ_create( + oid: *const ::std::os::raw::c_char, + short_name: *const ::std::os::raw::c_char, + long_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_algs"] + pub fn OBJ_find_sigid_algs( + sign_nid: ::std::os::raw::c_int, + out_digest_nid: *mut ::std::os::raw::c_int, + out_pkey_nid: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_by_algs"] + pub fn OBJ_find_sigid_by_algs( + out_sign_nid: *mut ::std::os::raw::c_int, + digest_nid: ::std::os::raw::c_int, + pkey_nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct obj_name_st { + pub type_: ::std::os::raw::c_int, + pub alias: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub data: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_obj_name_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!(obj_name_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(obj_name_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(md_ctx) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i_ctx) as usize - ptr as usize }, - 232usize, + unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(i_ctx) + stringify!(alias) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).o_ctx) as usize - ptr as usize }, - 448usize, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(o_ctx) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, - 664usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(hmac_ctx_st), + stringify!(obj_name_st), "::", - stringify!(state) + stringify!(data) ) ); } -impl Default for hmac_ctx_st { +impl Default for obj_name_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16953,1924 +15956,1322 @@ impl Default for hmac_ctx_st { } } } +pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_x25519_hkdf_sha256"] - pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_NAME_do_all_sorted"] + pub fn OBJ_NAME_do_all_sorted( + type_: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn(arg1: *const OBJ_NAME, arg: *mut ::std::os::raw::c_void), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_id"] - pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cleanup"] + pub fn OBJ_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_public_key_len"] - pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new"] + pub fn EVP_PKEY_new() -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_private_key_len"] - pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_free"] + pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_enc_len"] - pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_up_ref"] + pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_hkdf_sha256"] - pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_is_opaque"] + pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_id"] - pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp"] + pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_hkdf_md"] - pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_copy_parameters"] + pub fn EVP_PKEY_copy_parameters( + to: *mut EVP_PKEY, + from: *const EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_128_gcm"] - pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_missing_parameters"] + pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_256_gcm"] - pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_size"] + pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_chacha20_poly1305"] - pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_bits"] + pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_id"] - pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_id"] + pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_aead"] - pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_type"] + pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_zero"] - pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get0_name"] + pub fn EVP_MD_get0_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_cleanup"] - pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_name"] + pub fn EVP_MD_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_new"] - pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_RSA"] + pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_free"] - pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_RSA"] + pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_copy"] - pub fn EVP_HPKE_KEY_copy( - dst: *mut EVP_HPKE_KEY, - src: *const EVP_HPKE_KEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_RSA"] + pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_init"] - pub fn EVP_HPKE_KEY_init( - key: *mut EVP_HPKE_KEY, - kem: *const EVP_HPKE_KEM, - priv_key: *const u8, - priv_key_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_RSA"] + pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_generate"] - pub fn EVP_HPKE_KEY_generate( - key: *mut EVP_HPKE_KEY, - kem: *const EVP_HPKE_KEM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DSA"] + pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_kem"] - pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DSA"] + pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_public_key"] - pub fn EVP_HPKE_KEY_public_key( - key: *const EVP_HPKE_KEY, - out: *mut u8, - out_len: *mut usize, - max_out: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DSA"] + pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_private_key"] - pub fn EVP_HPKE_KEY_private_key( - key: *const EVP_HPKE_KEY, - out: *mut u8, - out_len: *mut usize, - max_out: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DSA"] + pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_zero"] - pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_EC_KEY"] + pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_cleanup"] - pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_EC_KEY"] + pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_new"] - pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_EC_KEY"] + pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_free"] - pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_EC_KEY"] + pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender"] - pub fn EVP_HPKE_CTX_setup_sender( - ctx: *mut EVP_HPKE_CTX, - out_enc: *mut u8, - out_enc_len: *mut usize, - max_enc: usize, - kem: *const EVP_HPKE_KEM, - kdf: *const EVP_HPKE_KDF, - aead: *const EVP_HPKE_AEAD, - peer_public_key: *const u8, - peer_public_key_len: usize, - info: *const u8, - info_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DH"] + pub fn EVP_PKEY_set1_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] - pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( - ctx: *mut EVP_HPKE_CTX, - out_enc: *mut u8, - out_enc_len: *mut usize, - max_enc: usize, - kem: *const EVP_HPKE_KEM, - kdf: *const EVP_HPKE_KDF, - aead: *const EVP_HPKE_AEAD, - peer_public_key: *const u8, - peer_public_key_len: usize, - info: *const u8, - info_len: usize, - seed: *const u8, - seed_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DH"] + pub fn EVP_PKEY_assign_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_recipient"] - pub fn EVP_HPKE_CTX_setup_recipient( - ctx: *mut EVP_HPKE_CTX, - key: *const EVP_HPKE_KEY, - kdf: *const EVP_HPKE_KDF, - aead: *const EVP_HPKE_AEAD, - enc: *const u8, - enc_len: usize, - info: *const u8, - info_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DH"] + pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DH"] + pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set_type"] + pub fn EVP_PKEY_set_type( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_open"] - pub fn EVP_HPKE_CTX_open( - ctx: *mut EVP_HPKE_CTX, - out: *mut u8, - out_len: *mut usize, - max_out_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp_parameters"] + pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_public_key"] + pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_public_key"] + pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_private_key"] + pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key"] + pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key_v2"] + pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_private_key"] + pub fn EVP_PKEY_new_raw_private_key( + type_: ::std::os::raw::c_int, + unused: *mut ENGINE, in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, - ) -> ::std::os::raw::c_int; + len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_seal"] - pub fn EVP_HPKE_CTX_seal( - ctx: *mut EVP_HPKE_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_public_key"] + pub fn EVP_PKEY_new_raw_public_key( + type_: ::std::os::raw::c_int, + unused: *mut ENGINE, + in_: *const u8, + len: usize, + ) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_private_key"] + pub fn EVP_PKEY_get_raw_private_key( + pkey: *const EVP_PKEY, out: *mut u8, out_len: *mut usize, - max_out_len: usize, - in_: *const u8, - in_len: usize, - ad: *const u8, - ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_export"] - pub fn EVP_HPKE_CTX_export( - ctx: *const EVP_HPKE_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_public_key"] + pub fn EVP_PKEY_get_raw_public_key( + pkey: *const EVP_PKEY, out: *mut u8, - secret_len: usize, - context: *const u8, - context_len: usize, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_max_overhead"] - pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignInit"] + pub fn EVP_DigestSignInit( + ctx: *mut EVP_MD_CTX, + pctx: *mut *mut EVP_PKEY_CTX, + type_: *const EVP_MD, + e: *mut ENGINE, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kem"] - pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignUpdate"] + pub fn EVP_DigestSignUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_aead"] - pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignFinal"] + pub fn EVP_DigestSignFinal( + ctx: *mut EVP_MD_CTX, + out_sig: *mut u8, + out_sig_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kdf"] - pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSign"] + pub fn EVP_DigestSign( + ctx: *mut EVP_MD_CTX, + out_sig: *mut u8, + out_sig_len: *mut usize, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_hpke_ctx_st { - pub kem: *const EVP_HPKE_KEM, - pub aead: *const EVP_HPKE_AEAD, - pub kdf: *const EVP_HPKE_KDF, - pub aead_ctx: EVP_AEAD_CTX, - pub base_nonce: [u8; 24usize], - pub exporter_secret: [u8; 64usize], - pub seq: u64, - pub is_sender: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyInit"] + pub fn EVP_DigestVerifyInit( + ctx: *mut EVP_MD_CTX, + pctx: *mut *mut EVP_PKEY_CTX, + type_: *const EVP_MD, + e: *mut ENGINE, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_evp_hpke_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 728usize, - concat!("Size of: ", stringify!(evp_hpke_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_hpke_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(kem) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(aead) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kdf) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(kdf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).aead_ctx) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(aead_ctx) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, - 624usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(base_nonce) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, - 648usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(exporter_secret) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, - 712usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(seq) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, - 720usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_ctx_st), - "::", - stringify!(is_sender) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyUpdate"] + pub fn EVP_DigestVerifyUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -impl Default for evp_hpke_ctx_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 evp_hpke_key_st { - pub kem: *const EVP_HPKE_KEM, - pub private_key: [u8; 32usize], - pub public_key: [u8; 32usize], -} -#[test] -fn bindgen_test_layout_evp_hpke_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 72usize, - concat!("Size of: ", stringify!(evp_hpke_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_hpke_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_key_st), - "::", - stringify!(kem) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_key) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_key_st), - "::", - stringify!(private_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).public_key) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(evp_hpke_key_st), - "::", - stringify!(public_key) - ) - ); -} -impl Default for evp_hpke_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 HRSS_private_key { - pub opaque: [u8; 1808usize], -} -#[test] -fn bindgen_test_layout_HRSS_private_key() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 1808usize, - concat!("Size of: ", stringify!(HRSS_private_key)) - ); - assert_eq!( - ::std::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(HRSS_private_key)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HRSS_private_key), - "::", - stringify!(opaque) - ) - ); -} -impl Default for HRSS_private_key { - 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_fips_0_13_0_EVP_DigestVerifyFinal"] + pub fn EVP_DigestVerifyFinal( + ctx: *mut EVP_MD_CTX, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct HRSS_public_key { - pub opaque: [u8; 1424usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerify"] + pub fn EVP_DigestVerify( + ctx: *mut EVP_MD_CTX, + sig: *const u8, + sig_len: usize, + data: *const u8, + len: usize, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_HRSS_public_key() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 1424usize, - concat!("Size of: ", stringify!(HRSS_public_key)) - ); - assert_eq!( - ::std::mem::align_of::(), - 1usize, - concat!("Alignment of ", stringify!(HRSS_public_key)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HRSS_public_key), - "::", - stringify!(opaque) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignInit_ex"] + pub fn EVP_SignInit_ex( + ctx: *mut EVP_MD_CTX, + type_: *const EVP_MD, + impl_: *mut ENGINE, + ) -> ::std::os::raw::c_int; } -impl Default for HRSS_public_key { - 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_fips_0_13_0_EVP_SignInit"] + pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_generate_key"] - pub fn HRSS_generate_key( - out_pub: *mut HRSS_public_key, - out_priv: *mut HRSS_private_key, - input: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignUpdate"] + pub fn EVP_SignUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_encap"] - pub fn HRSS_encap( - out_ciphertext: *mut u8, - out_shared_key: *mut u8, - in_pub: *const HRSS_public_key, - in_: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignFinal"] + pub fn EVP_SignFinal( + ctx: *const EVP_MD_CTX, + sig: *mut u8, + out_sig_len: *mut ::std::os::raw::c_uint, + pkey: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_decap"] - pub fn HRSS_decap( - out_shared_key: *mut u8, - in_priv: *const HRSS_private_key, - ciphertext: *const u8, - ciphertext_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit_ex"] + pub fn EVP_VerifyInit_ex( + ctx: *mut EVP_MD_CTX, + type_: *const EVP_MD, + impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_marshal_public_key"] - pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit"] + pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_parse_public_key"] - pub fn HRSS_parse_public_key( - out: *mut HRSS_public_key, - in_: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyUpdate"] + pub fn EVP_VerifyUpdate( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Init"] - pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyFinal"] + pub fn EVP_VerifyFinal( + ctx: *mut EVP_MD_CTX, + sig: *const u8, + sig_len: usize, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Update"] - pub fn MD4_Update( - md4: *mut MD4_CTX, - data: *const ::std::os::raw::c_void, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_public"] + pub fn EVP_PKEY_print_public( + out: *mut BIO, + pkey: *const EVP_PKEY, + indent: ::std::os::raw::c_int, + pctx: *mut ASN1_PCTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Final"] - pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_private"] + pub fn EVP_PKEY_print_private( + out: *mut BIO, + pkey: *const EVP_PKEY, + indent: ::std::os::raw::c_int, + pctx: *mut ASN1_PCTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4"] - pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_params"] + pub fn EVP_PKEY_print_params( + out: *mut BIO, + pkey: *const EVP_PKEY, + indent: ::std::os::raw::c_int, + pctx: *mut ASN1_PCTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Transform"] - pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC"] + pub fn PKCS5_PBKDF2_HMAC( + password: *const ::std::os::raw::c_char, + password_len: usize, + salt: *const u8, + salt_len: usize, + iterations: u32, + digest: *const EVP_MD, + key_len: usize, + out_key: *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct md4_state_st { - pub h: [u32; 4usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC_SHA1"] + pub fn PKCS5_PBKDF2_HMAC_SHA1( + password: *const ::std::os::raw::c_char, + password_len: usize, + salt: *const u8, + salt_len: usize, + iterations: u32, + key_len: usize, + out_key: *mut u8, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_md4_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 92usize, - concat!("Size of: ", stringify!(md4_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(md4_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(Nl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(Nh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(md4_state_st), - "::", - stringify!(num) - ) - ); -} -impl Default for md4_state_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_fips_0_13_0_EVP_PBE_scrypt"] + pub fn EVP_PBE_scrypt( + password: *const ::std::os::raw::c_char, + password_len: usize, + salt: *const u8, + salt_len: usize, + N: u64, + r: u64, + p: u64, + max_mem: usize, + out_key: *mut u8, + key_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_dup"] - pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new"] + pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cmp"] - pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new_id"] + pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_get0_data"] - pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_free"] + pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_length"] - pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_dup"] + pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2nid"] - pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_pkey"] + pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cbs2nid"] - pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign_init"] + pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_sn2nid"] - pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign"] + pub fn EVP_PKEY_sign( + ctx: *mut EVP_PKEY_CTX, + sig: *mut u8, + sig_len: *mut usize, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_ln2nid"] - pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_init"] + pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2nid"] - pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify"] + pub fn EVP_PKEY_verify( + ctx: *mut EVP_PKEY_CTX, + sig: *const u8, + sig_len: usize, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2obj"] - pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt_init"] + pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2sn"] - pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt"] + pub fn EVP_PKEY_encrypt( + ctx: *mut EVP_PKEY_CTX, + out: *mut u8, + out_len: *mut usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2ln"] - pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt_init"] + pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2cbb"] - pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt"] + pub fn EVP_PKEY_decrypt( + ctx: *mut EVP_PKEY_CTX, + out: *mut u8, + out_len: *mut usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2obj"] - pub fn OBJ_txt2obj( - s: *const ::std::os::raw::c_char, - dont_search_names: ::std::os::raw::c_int, - ) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover_init"] + pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2txt"] - pub fn OBJ_obj2txt( - out: *mut ::std::os::raw::c_char, - out_len: ::std::os::raw::c_int, - obj: *const ASN1_OBJECT, - always_return_oid: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover"] + pub fn EVP_PKEY_verify_recover( + ctx: *mut EVP_PKEY_CTX, + out: *mut u8, + out_len: *mut usize, + sig: *const u8, + siglen: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_create"] - pub fn OBJ_create( - oid: *const ::std::os::raw::c_char, - short_name: *const ::std::os::raw::c_char, - long_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_init"] + pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_algs"] - pub fn OBJ_find_sigid_algs( - sign_nid: ::std::os::raw::c_int, - out_digest_nid: *mut ::std::os::raw::c_int, - out_pkey_nid: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_set_peer"] + pub fn EVP_PKEY_derive_set_peer( + ctx: *mut EVP_PKEY_CTX, + peer: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_by_algs"] - pub fn OBJ_find_sigid_by_algs( - out_sign_nid: *mut ::std::os::raw::c_int, - digest_nid: ::std::os::raw::c_int, - pkey_nid: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive"] + pub fn EVP_PKEY_derive( + ctx: *mut EVP_PKEY_CTX, + key: *mut u8, + out_key_len: *mut usize, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct obj_name_st { - pub type_: ::std::os::raw::c_int, - pub alias: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub data: *const ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_obj_name_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!(obj_name_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(obj_name_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(alias) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(data) - ) - ); -} -impl Default for obj_name_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_fips_0_13_0_EVP_PKEY_keygen_init"] + pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } -pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cleanup"] - pub fn OBJ_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_keygen"] + pub fn EVP_PKEY_keygen( + ctx: *mut EVP_PKEY_CTX, + out_pkey: *mut *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_CRYPTO_BUFFER { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encapsulate"] + pub fn EVP_PKEY_encapsulate( + ctx: *mut EVP_PKEY_CTX, + ciphertext: *mut u8, + ciphertext_len: *mut usize, + shared_secret: *mut u8, + shared_secret_len: *mut usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509 { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decapsulate"] + pub fn EVP_PKEY_decapsulate( + ctx: *mut EVP_PKEY_CTX, + shared_secret: *mut u8, + shared_secret_len: *mut usize, + ciphertext: *const u8, + ciphertext_len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_CRL { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen_init"] + pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_raw_certificates"] - pub fn PKCS7_get_raw_certificates( - out_certs: *mut stack_st_CRYPTO_BUFFER, - cbs: *mut CBS, - pool: *mut CRYPTO_BUFFER_POOL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen"] + pub fn EVP_PKEY_paramgen( + ctx: *mut EVP_PKEY_CTX, + out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_certificates"] - pub fn PKCS7_get_certificates( - out_certs: *mut stack_st_X509, - cbs: *mut CBS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_signature_md"] + pub fn EVP_PKEY_CTX_set_signature_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_raw_certificates"] - pub fn PKCS7_bundle_raw_certificates( - out: *mut CBB, - certs: *const stack_st_CRYPTO_BUFFER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_signature_md"] + pub fn EVP_PKEY_CTX_get_signature_md( + ctx: *mut EVP_PKEY_CTX, + out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_certificates"] - pub fn PKCS7_bundle_certificates( - out: *mut CBB, - certs: *const stack_st_X509, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_padding"] + pub fn EVP_PKEY_CTX_set_rsa_padding( + ctx: *mut EVP_PKEY_CTX, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_CRLs"] - pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_padding"] + pub fn EVP_PKEY_CTX_get_rsa_padding( + ctx: *mut EVP_PKEY_CTX, + out_padding: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_CRLs"] - pub fn PKCS7_bundle_CRLs( - out: *mut CBB, - crls: *const stack_st_X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_saltlen"] + pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( + ctx: *mut EVP_PKEY_CTX, + salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_certificates"] - pub fn PKCS7_get_PEM_certificates( - out_certs: *mut stack_st_X509, - pem_bio: *mut BIO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_pss_saltlen"] + pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( + ctx: *mut EVP_PKEY_CTX, + out_salt_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_CRLs"] - pub fn PKCS7_get_PEM_CRLs( - out_crls: *mut stack_st_X509_CRL, - pem_bio: *mut BIO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_bits"] + pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( + ctx: *mut EVP_PKEY_CTX, + bits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGNED { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] + pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( + ctx: *mut EVP_PKEY_CTX, + e: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_PKCS7_SIGNED() { - 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!(PKCS7_SIGNED)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGNED)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(crl) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_oaep_md"] + pub fn EVP_PKEY_CTX_set_rsa_oaep_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -impl Default for PKCS7_SIGNED { - 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_fips_0_13_0_EVP_PKEY_CTX_get_rsa_oaep_md"] + pub fn EVP_PKEY_CTX_get_rsa_oaep_md( + ctx: *mut EVP_PKEY_CTX, + out_md: *mut *const EVP_MD, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGN_ENVELOPE { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_mgf1_md"] + pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_PKCS7_SIGN_ENVELOPE() { - 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!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(crl) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_mgf1_md"] + pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( + ctx: *mut EVP_PKEY_CTX, + out_md: *mut *const EVP_MD, + ) -> ::std::os::raw::c_int; } -impl Default for PKCS7_SIGN_ENVELOPE { - 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_fips_0_13_0_EVP_PKEY_CTX_set0_rsa_oaep_label"] + pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( + ctx: *mut EVP_PKEY_CTX, + label: *mut u8, + label_len: usize, + ) -> ::std::os::raw::c_int; } -pub type PKCS7_ENVELOPE = ::std::os::raw::c_void; -pub type PKCS7_DIGEST = ::std::os::raw::c_void; -pub type PKCS7_ENCRYPT = ::std::os::raw::c_void; -pub type PKCS7_SIGNER_INFO = ::std::os::raw::c_void; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct PKCS7 { - pub ber_bytes: *mut u8, - pub ber_len: usize, - pub type_: *mut ASN1_OBJECT, - pub d: PKCS7__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_rsa_oaep_label"] + pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( + ctx: *mut EVP_PKEY_CTX, + out_label: *mut *const u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union PKCS7__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub data: *mut ASN1_OCTET_STRING, - pub sign: *mut PKCS7_SIGNED, - pub enveloped: *mut PKCS7_ENVELOPE, - pub signed_and_enveloped: *mut PKCS7_SIGN_ENVELOPE, - pub digest: *mut PKCS7_DIGEST, - pub encrypted: *mut PKCS7_ENCRYPT, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_PKCS7__bindgen_ty_1() { - 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!(PKCS7__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enveloped) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(enveloped) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signed_and_enveloped) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(signed_and_enveloped) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(digest) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypted) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(encrypted) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), - "::", - stringify!(other) - ) - ); -} -impl Default for PKCS7__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_PKCS7() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(PKCS7)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7), - "::", - stringify!(ber_bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7), - "::", - stringify!(ber_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(PKCS7), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(PKCS7), "::", stringify!(d)) - ); -} -impl Default for PKCS7 { - 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_fips_0_13_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] + pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( + ctx: *mut EVP_PKEY_CTX, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7"] - pub fn d2i_PKCS7(out: *mut *mut PKCS7, inp: *mut *const u8, len: usize) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_kem_set_params"] + pub fn EVP_PKEY_CTX_kem_set_params( + ctx: *mut EVP_PKEY_CTX, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7_bio"] - pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_public_key"] + pub fn EVP_PKEY_kem_new_raw_public_key( + nid: ::std::os::raw::c_int, + in_: *const u8, + len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7"] - pub fn i2d_PKCS7(p7: *const PKCS7, out: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_secret_key"] + pub fn EVP_PKEY_kem_new_raw_secret_key( + nid: ::std::os::raw::c_int, + in_: *const u8, + len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7_bio"] - pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_key"] + pub fn EVP_PKEY_kem_new_raw_key( + nid: ::std::os::raw::c_int, + in_public: *const u8, + len_public: usize, + in_secret: *const u8, + len_secret: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_free"] - pub fn PKCS7_free(p7: *mut PKCS7); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_check_key"] + pub fn EVP_PKEY_kem_check_key(key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_data"] - pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dh_pad"] + pub fn EVP_PKEY_CTX_set_dh_pad( + ctx: *mut EVP_PKEY_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_digest"] - pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get_count"] + pub fn EVP_PKEY_asn1_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_encrypted"] - pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0"] + pub fn EVP_PKEY_asn1_get0(idx: ::std::os::raw::c_int) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_enveloped"] - pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find"] + pub fn EVP_PKEY_asn1_find( + _pe: *mut *mut ENGINE, + type_: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signed"] - pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find_str"] + pub fn EVP_PKEY_asn1_find_str( + _pe: *mut *mut ENGINE, + name: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signedAndEnveloped"] - pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0_info"] + pub fn EVP_PKEY_asn1_get0_info( + ppkey_id: *mut ::std::os::raw::c_int, + pkey_base_id: *mut ::std::os::raw::c_int, + ppkey_flags: *mut ::std::os::raw::c_int, + pinfo: *mut *const ::std::os::raw::c_char, + ppem_str: *mut *const ::std::os::raw::c_char, + ameth: *const EVP_PKEY_ASN1_METHOD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_sign"] - pub fn PKCS7_sign( - sign_cert: *mut X509, - pkey: *mut EVP_PKEY, - certs: *mut stack_st_X509, - data: *mut BIO, - flags: ::std::os::raw::c_int, - ) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get_pkey_type"] + pub fn EVP_MD_get_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } -pub type sk_CRYPTO_BUFFER_free_func = - ::std::option::Option; -pub type sk_CRYPTO_BUFFER_copy_func = - ::std::option::Option *mut CRYPTO_BUFFER>; -pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const CRYPTO_BUFFER, - arg2: *mut *const CRYPTO_BUFFER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_BUFFER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_new"] - pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_pkey_type"] + pub fn EVP_MD_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_free"] - pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_do_all_sorted"] + pub fn EVP_CIPHER_do_all_sorted( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_CIPHER, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new"] - pub fn CRYPTO_BUFFER_new( - data: *const u8, - len: usize, - pool: *mut CRYPTO_BUFFER_POOL, - ) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all_sorted"] + pub fn EVP_MD_do_all_sorted( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_alloc"] - pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all"] + pub fn EVP_MD_do_all( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_CBS"] - pub fn CRYPTO_BUFFER_new_from_CBS( - cbs: *const CBS, - pool: *mut CRYPTO_BUFFER_POOL, - ) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PrivateKey"] + pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_static_data_unsafe"] - pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( - data: *const u8, - len: usize, - pool: *mut CRYPTO_BUFFER_POOL, - ) -> *mut CRYPTO_BUFFER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PublicKey"] + pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_free"] - pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PrivateKey"] + pub fn d2i_PrivateKey( + type_: ::std::os::raw::c_int, + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_up_ref"] - pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AutoPrivateKey"] + pub fn d2i_AutoPrivateKey( + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_data"] - pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PublicKey"] + pub fn d2i_PublicKey( + type_: ::std::os::raw::c_int, + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_len"] - pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_param_enc"] + pub fn EVP_PKEY_CTX_set_ec_param_enc( + ctx: *mut EVP_PKEY_CTX, + encoding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_init_CBS"] - pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_tls_encodedpoint"] + pub fn EVP_PKEY_set1_tls_encodedpoint( + pkey: *mut EVP_PKEY, + in_: *const u8, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new"] - pub fn RSA_new() -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_tls_encodedpoint"] + pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new_method"] - pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_base_id"] + pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_free"] - pub fn RSA_free(rsa: *mut RSA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] + pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_up_ref"] - pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] + pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( + ctx: *mut EVP_PKEY_CTX, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_bits"] - pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] + pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( + ctx: *mut EVP_PKEY_CTX, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_n"] - pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PUBKEY"] + pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_e"] - pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PUBKEY"] + pub fn d2i_PUBKEY( + out: *mut *mut EVP_PKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_d"] - pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSA_PUBKEY"] + pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_p"] - pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSA_PUBKEY"] + pub fn d2i_RSA_PUBKEY( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_q"] - pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_PUBKEY"] + pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmp1"] - pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmq1"] - pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_PUBKEY"] + pub fn d2i_DSA_PUBKEY( + out: *mut *mut DSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_iqmp"] - pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EC_PUBKEY"] + pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_key"] - pub fn RSA_get0_key( - rsa: *const RSA, - out_n: *mut *const BIGNUM, - out_e: *mut *const BIGNUM, - out_d: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EC_PUBKEY"] + pub fn d2i_EC_PUBKEY( + out: *mut *mut EC_KEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_factors"] - pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign"] + pub fn EVP_PKEY_assign( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, + key: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_crt_params"] - pub fn RSA_get0_crt_params( - rsa: *const RSA, - out_dmp1: *mut *const BIGNUM, - out_dmq1: *mut *const BIGNUM, - out_iqmp: *mut *const BIGNUM, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_mac_key"] + pub fn EVP_PKEY_new_mac_key( + type_: ::std::os::raw::c_int, + engine: *mut ENGINE, + mac_key: *const u8, + mac_key_len: usize, + ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_key"] - pub fn RSA_set0_key( - rsa: *mut RSA, - n: *mut BIGNUM, - e: *mut BIGNUM, - d: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0"] + pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_factors"] - pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_algorithms"] + pub fn OpenSSL_add_all_algorithms(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_crt_params"] - pub fn RSA_set0_crt_params( - rsa: *mut RSA, - dmp1: *mut BIGNUM, - dmq1: *mut BIGNUM, - iqmp: *mut BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_add_all_algorithms_conf"] + pub fn OPENSSL_add_all_algorithms_conf(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_ex"] - pub fn RSA_generate_key_ex( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - e: *const BIGNUM, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_ciphers"] + pub fn OpenSSL_add_all_ciphers(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_fips"] - pub fn RSA_generate_key_fips( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_digests"] + pub fn OpenSSL_add_all_digests(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_encrypt"] - pub fn RSA_encrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cleanup"] + pub fn EVP_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_decrypt"] - pub fn RSA_decrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( + ctx: *mut EVP_PKEY_CTX, + nbits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_encrypt"] - pub fn RSA_public_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( + ctx: *mut EVP_PKEY_CTX, + qbits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_decrypt"] - pub fn RSA_private_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_ctrl_str"] + pub fn EVP_PKEY_CTX_ctrl_str( + ctx: *mut EVP_PKEY_CTX, + type_: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } +pub type EVP_PKEY_gen_cb = + ::std::option::Option ::std::os::raw::c_int>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign"] - pub fn RSA_sign( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - rsa: *mut RSA, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_cb"] + pub fn EVP_PKEY_CTX_set_cb(ctx: *mut EVP_PKEY_CTX, cb: EVP_PKEY_gen_cb); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_pss_mgf1"] - pub fn RSA_sign_pss_mgf1( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_app_data"] + pub fn EVP_PKEY_CTX_set_app_data(ctx: *mut EVP_PKEY_CTX, data: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_raw"] - pub fn RSA_sign_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_app_data"] + pub fn EVP_PKEY_CTX_get_app_data(ctx: *mut EVP_PKEY_CTX) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify"] - pub fn RSA_verify( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_keygen_info"] + pub fn EVP_PKEY_CTX_get_keygen_info( + ctx: *mut EVP_PKEY_CTX, + idx: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_pss_mgf1"] - pub fn RSA_verify_pss_mgf1( - rsa: *mut RSA, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF"] + pub fn HKDF( + out_key: *mut u8, + out_len: usize, + digest: *const EVP_MD, + secret: *const u8, + secret_len: usize, + salt: *const u8, + salt_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_raw"] - pub fn RSA_verify_raw( - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_extract"] + pub fn HKDF_extract( + out_key: *mut u8, out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_encrypt"] - pub fn RSA_private_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + digest: *const EVP_MD, + secret: *const u8, + secret_len: usize, + salt: *const u8, + salt_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_decrypt"] - pub fn RSA_public_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_expand"] + pub fn HKDF_expand( + out_key: *mut u8, + out_len: usize, + digest: *const EVP_MD, + prk: *const u8, + prk_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_size"] - pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_is_opaque"] - pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPublicKey_dup"] - pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPrivateKey_dup"] - pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_key"] - pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_fips"] - pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Init"] + pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS_mgf1"] - pub fn RSA_verify_PKCS1_PSS_mgf1( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Update"] + pub fn MD5_Update( + md5: *mut MD5_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS_mgf1"] - pub fn RSA_padding_add_PKCS1_PSS_mgf1( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Final"] + pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP_mgf1"] - pub fn RSA_padding_add_PKCS1_OAEP_mgf1( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, - md: *const EVP_MD, - mgf1md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5"] + pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_add_pkcs1_prefix"] - pub fn RSA_add_pkcs1_prefix( - out_msg: *mut *mut u8, - out_msg_len: *mut usize, - is_alloced: *mut ::std::os::raw::c_int, - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Transform"] + pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_public_key"] - pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct md5_state_st { + pub h: [u32; 4usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_key_from_bytes"] - pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; +#[test] +fn bindgen_test_layout_md5_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 92usize, + concat!("Size of: ", stringify!(md5_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(md5_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(md5_state_st), + "::", + stringify!(num) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_public_key"] - pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; +impl Default for md5_state_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_fips_0_12_15_RSA_public_key_to_bytes"] - pub fn RSA_public_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC"] + pub fn HMAC( + evp_md: *const EVP_MD, + key: *const ::std::os::raw::c_void, + key_len: usize, + data: *const u8, + data_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_private_key"] - pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_init"] + pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_from_bytes"] - pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_new"] + pub fn HMAC_CTX_new() -> *mut HMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_private_key"] - pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanup"] + pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_to_bytes"] - pub fn RSA_private_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanse"] + pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_new_index"] - pub fn RSA_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_fips_0_13_0_HMAC_CTX_free"] + pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set_ex_data"] - pub fn RSA_set_ex_data( - rsa: *mut RSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_ex"] + pub fn HMAC_Init_ex( + ctx: *mut HMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + md: *const EVP_MD, + impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_data"] - pub fn RSA_get_ex_data( - rsa: *const RSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_flags"] - pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_test_flags"] - pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Update"] + pub fn HMAC_Update( + ctx: *mut HMAC_CTX, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_blinding_on"] - pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Final"] + pub fn HMAC_Final( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key"] - pub fn RSA_generate_key( - bits: ::std::os::raw::c_int, - e: u64, - callback: *mut ::std::os::raw::c_void, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_size"] + pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey"] - pub fn d2i_RSAPublicKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_get_md"] + pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPublicKey"] - pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy_ex"] + pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey"] - pub fn d2i_RSAPrivateKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_reset"] + pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPrivateKey"] - pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_set_precomputed_key_export"] + pub fn HMAC_set_precomputed_key_export(ctx: *mut HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS"] - pub fn RSA_padding_add_PKCS1_PSS( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_get_precomputed_key"] + pub fn HMAC_get_precomputed_key( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS"] - pub fn RSA_verify_PKCS1_PSS( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_from_precomputed_key"] + pub fn HMAC_Init_from_precomputed_key( + ctx: *mut HMAC_CTX, + precomputed_key: *const u8, + precompute_key_len: usize, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP"] - pub fn RSA_padding_add_PKCS1_OAEP( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init"] + pub fn HMAC_Init( + ctx: *mut HMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: ::std::os::raw::c_int, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_print"] - pub fn RSA_print( - bio: *mut BIO, - rsa: *const RSA, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy"] + pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_pss_params"] - pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hmac_methods_st { + _unused: [u8; 0], } +pub type HmacMethods = hmac_methods_st; #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_meth_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: ::std::option::Option ::std::os::raw::c_int>, - pub finish: ::std::option::Option ::std::os::raw::c_int>, - pub size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - type_: ::std::os::raw::c_int, - m: *const u8, - m_length: ::std::os::raw::c_uint, - sigret: *mut u8, - siglen: *mut ::std::os::raw::c_uint, - rsa: *const RSA, - ) -> ::std::os::raw::c_int, - >, - pub sign_raw: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub decrypt: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub private_transform: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out: *mut u8, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +#[derive(Copy, Clone)] +pub union md_ctx_union { + pub md5: MD5_CTX, + pub sha1: SHA_CTX, + pub sha256: SHA256_CTX, + pub sha512: SHA512_CTX, } #[test] -fn bindgen_test_layout_rsa_meth_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_md_ctx_union() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(rsa_meth_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(md_ctx_union)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rsa_meth_st)) + concat!("Alignment of ", stringify!(md_ctx_union)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md5) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(common) + stringify!(md5) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).sha1) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(app_data) + stringify!(sha1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign_raw) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign_raw) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).decrypt) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(decrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_transform) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).sha256) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(private_transform) + stringify!(sha256) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).sha512) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_meth_st), + stringify!(md_ctx_union), "::", - stringify!(flags) + stringify!(sha512) ) ); } -impl Default for rsa_meth_st { +impl Default for md_ctx_union { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18880,284 +17281,91 @@ impl Default for rsa_meth_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct bn_blinding_st { - _unused: [u8; 0], -} -pub type BN_BLINDING = bn_blinding_st; -#[repr(C)] #[derive(Copy, Clone)] -pub struct rsa_st { - pub meth: *mut RSA_METHOD, - pub n: *mut BIGNUM, - pub e: *mut BIGNUM, - pub d: *mut BIGNUM, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub dmp1: *mut BIGNUM, - pub dmq1: *mut BIGNUM, - pub iqmp: *mut BIGNUM, - pub pss: *mut RSASSA_PSS_PARAMS, - pub ex_data: CRYPTO_EX_DATA, - pub references: CRYPTO_refcount_t, - pub flags: ::std::os::raw::c_int, - pub lock: CRYPTO_MUTEX, - pub mont_n: *mut BN_MONT_CTX, - pub mont_p: *mut BN_MONT_CTX, - pub mont_q: *mut BN_MONT_CTX, - pub d_fixed: *mut BIGNUM, - pub dmp1_fixed: *mut BIGNUM, - pub dmq1_fixed: *mut BIGNUM, - pub inv_small_mod_large_mont: *mut BIGNUM, - pub num_blindings: usize, - pub blindings: *mut *mut BN_BLINDING, - pub blindings_inuse: *mut ::std::os::raw::c_uchar, - pub blinding_fork_generation: u64, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +pub struct hmac_ctx_st { + pub md: *const EVP_MD, + pub methods: *const HmacMethods, + pub md_ctx: md_ctx_union, + pub i_ctx: md_ctx_union, + pub o_ctx: md_ctx_union, + pub state: i8, } #[test] -fn bindgen_test_layout_rsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_hmac_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 248usize, - concat!("Size of: ", stringify!(rsa_st)) + ::std::mem::size_of::(), + 672usize, + concat!("Size of: ", stringify!(hmac_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rsa_st)) + concat!("Alignment of ", stringify!(hmac_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).meth) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(meth) + stringify!(md) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).methods) as usize - ptr as usize }, 8usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(n)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).e) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(e)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(d)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 32usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 40usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iqmp) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(iqmp) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pss) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(pss) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).lock) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_n) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_n) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_p) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_q) as usize - ptr as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d_fixed) as usize - ptr as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(d_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1_fixed) as usize - ptr as usize }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1_fixed) as usize - ptr as usize }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inv_small_mod_large_mont) as usize - ptr as usize }, - 200usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(inv_small_mod_large_mont) + stringify!(methods) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_blindings) as usize - ptr as usize }, - 208usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_ctx) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(num_blindings) + stringify!(md_ctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings) as usize - ptr as usize }, - 216usize, + unsafe { ::std::ptr::addr_of!((*ptr).i_ctx) as usize - ptr as usize }, + 232usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(blindings) + stringify!(i_ctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings_inuse) as usize - ptr as usize }, - 224usize, + unsafe { ::std::ptr::addr_of!((*ptr).o_ctx) as usize - ptr as usize }, + 448usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(blindings_inuse) + stringify!(o_ctx) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blinding_fork_generation) as usize - ptr as usize }, - 232usize, + unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize }, + 664usize, concat!( "Offset of field: ", - stringify!(rsa_st), + stringify!(hmac_ctx_st), "::", - stringify!(blinding_fork_generation) + stringify!(state) ) ); } -impl Default for rsa_st { +impl Default for hmac_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19166,1750 +17374,2461 @@ impl Default for rsa_st { } } } -impl rsa_st { - #[inline] - pub fn private_key_frozen(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_private_key_frozen(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - private_key_frozen: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let private_key_frozen: u32 = unsafe { ::std::mem::transmute(private_key_frozen) }; - private_key_frozen as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_x25519_hkdf_sha256"] + pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; } -pub type sk_X509_free_func = ::std::option::Option; -pub type sk_X509_copy_func = - ::std::option::Option *mut X509>; -pub type sk_X509_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const X509, arg2: *mut *const X509) -> ::std::os::raw::c_int, ->; -pub type sk_X509_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_it"] - pub static X509_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_id"] + pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_up_ref"] - pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_public_key_len"] + pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_chain_up_ref"] - pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_private_key_len"] + pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_dup"] - pub fn X509_dup(x509: *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_enc_len"] + pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_free"] - pub fn X509_free(x509: *mut X509); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_hkdf_sha256"] + pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509"] - pub fn d2i_X509( - out: *mut *mut X509, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_id"] + pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_parse_from_buffer"] - pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_hkdf_md"] + pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509"] - pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_128_gcm"] + pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_version"] - pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_256_gcm"] + pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_serialNumber"] - pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_chacha20_poly1305"] + pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notBefore"] - pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_id"] + pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notAfter"] - pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_aead"] + pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_issuer_name"] - pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_zero"] + pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_subject_name"] - pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_cleanup"] + pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_X509_PUBKEY"] - pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_new"] + pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_pubkey"] - pub fn X509_get_pubkey(x509: *mut X509) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_free"] + pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_pubkey_bitstr"] - pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_copy"] + pub fn EVP_HPKE_KEY_copy( + dst: *mut EVP_HPKE_KEY, + src: *const EVP_HPKE_KEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_uids"] - pub fn X509_get0_uids( - x509: *const X509, - out_issuer_uid: *mut *const ASN1_BIT_STRING, - out_subject_uid: *mut *const ASN1_BIT_STRING, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_EXTENSION { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_move"] + pub fn EVP_HPKE_KEY_move(out: *mut EVP_HPKE_KEY, in_: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_extensions"] - pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_init"] + pub fn EVP_HPKE_KEY_init( + key: *mut EVP_HPKE_KEY, + kem: *const EVP_HPKE_KEM, + priv_key: *const u8, + priv_key_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_count"] - pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_generate"] + pub fn EVP_HPKE_KEY_generate( + key: *mut EVP_HPKE_KEY, + kem: *const EVP_HPKE_KEM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_NID"] - pub fn X509_get_ext_by_NID( - x: *const X509, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_kem"] + pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_OBJ"] - pub fn X509_get_ext_by_OBJ( - x: *const X509, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_public_key"] + pub fn EVP_HPKE_KEY_public_key( + key: *const EVP_HPKE_KEY, + out: *mut u8, + out_len: *mut usize, + max_out: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_critical"] - pub fn X509_get_ext_by_critical( - x: *const X509, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_private_key"] + pub fn EVP_HPKE_KEY_private_key( + key: *const EVP_HPKE_KEY, + out: *mut u8, + out_len: *mut usize, + max_out: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext"] - pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_zero"] + pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_tbs_sigalg"] - pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_cleanup"] + pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_signature"] - pub fn X509_get0_signature( - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - x509: *const X509, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_new"] + pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_signature_nid"] - pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_free"] + pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_tbs"] - pub fn i2d_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender"] + pub fn EVP_HPKE_CTX_setup_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + kem: *const EVP_HPKE_KEM, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_new"] - pub fn X509_new() -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_version"] - pub fn X509_set_version( - x509: *mut X509, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + kem: *const EVP_HPKE_KEM, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_serialNumber"] - pub fn X509_set_serialNumber( - x509: *mut X509, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_recipient"] + pub fn EVP_HPKE_CTX_setup_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notBefore"] - pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notAfter"] - pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notBefore"] - pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notAfter"] - pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_issuer_name"] - pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender"] + pub fn EVP_HPKE_CTX_setup_auth_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_subject_name"] - pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_pubkey"] - pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_recipient"] + pub fn EVP_HPKE_CTX_setup_auth_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, + peer_public_key: *const u8, + peer_public_key_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_delete_ext"] - pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_open"] + pub fn EVP_HPKE_CTX_open( + ctx: *mut EVP_HPKE_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add_ext"] - pub fn X509_add_ext( - x: *mut X509, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_seal"] + pub fn EVP_HPKE_CTX_seal( + ctx: *mut EVP_HPKE_CTX, + out: *mut u8, + out_len: *mut usize, + max_out_len: usize, + in_: *const u8, + in_len: usize, + ad: *const u8, + ad_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign"] - pub fn X509_sign( - x509: *mut X509, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_export"] + pub fn EVP_HPKE_CTX_export( + ctx: *const EVP_HPKE_CTX, + out: *mut u8, + secret_len: usize, + context: *const u8, + context_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign_ctx"] - pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_max_overhead"] + pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_tbs"] - pub fn i2d_re_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kem"] + pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_algo"] - pub fn X509_set1_signature_algo( - x509: *mut X509, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_aead"] + pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_value"] - pub fn X509_set1_signature_value( - x509: *mut X509, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kdf"] + pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_AUX"] - pub fn i2d_X509_AUX( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct evp_hpke_ctx_st { + pub kem: *const EVP_HPKE_KEM, + pub aead: *const EVP_HPKE_AEAD, + pub kdf: *const EVP_HPKE_KDF, + pub aead_ctx: EVP_AEAD_CTX, + pub base_nonce: [u8; 24usize], + pub exporter_secret: [u8; 64usize], + pub seq: u64, + pub is_sender: ::std::os::raw::c_int, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_AUX"] - pub fn d2i_X509_AUX( - x509: *mut *mut X509, - inp: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut X509; +#[test] +fn bindgen_test_layout_evp_hpke_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 712usize, + concat!("Size of: ", stringify!(evp_hpke_ctx_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_hpke_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(kem) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).aead) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(aead) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).kdf) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(kdf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).aead_ctx) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(aead_ctx) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, + 608usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(base_nonce) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, + 632usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(exporter_secret) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, + 696usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(seq) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, + 704usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_ctx_st), + "::", + stringify!(is_sender) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_set1"] - pub fn X509_alias_set1( - x509: *mut X509, - name: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for evp_hpke_ctx_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_fips_0_12_15_X509_keyid_set1"] - pub fn X509_keyid_set1( - x509: *mut X509, - id: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_hpke_key_st { + pub kem: *const EVP_HPKE_KEM, + pub private_key: [u8; 32usize], + pub public_key: [u8; 32usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_get0"] - pub fn X509_alias_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; +#[test] +fn bindgen_test_layout_evp_hpke_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 72usize, + concat!("Size of: ", stringify!(evp_hpke_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_hpke_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).kem) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_key_st), + "::", + stringify!(kem) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).private_key) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_key_st), + "::", + stringify!(private_key) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).public_key) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(evp_hpke_key_st), + "::", + stringify!(public_key) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_keyid_get0"] - pub fn X509_keyid_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; +impl Default for evp_hpke_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() + } + } } -pub type sk_X509_CRL_free_func = ::std::option::Option; -pub type sk_X509_CRL_copy_func = - ::std::option::Option *mut X509_CRL>; -pub type sk_X509_CRL_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_CRL, - arg2: *mut *const X509_CRL, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_CRL_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_CRL, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_it"] - pub static X509_CRL_it: ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct HRSS_private_key { + pub opaque: [u8; 1808usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_up_ref"] - pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_HRSS_private_key() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 1808usize, + concat!("Size of: ", stringify!(HRSS_private_key)) + ); + assert_eq!( + ::std::mem::align_of::(), + 1usize, + concat!("Alignment of ", stringify!(HRSS_private_key)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HRSS_private_key), + "::", + stringify!(opaque) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_dup"] - pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; +impl Default for HRSS_private_key { + 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_fips_0_12_15_X509_CRL_free"] - pub fn X509_CRL_free(crl: *mut X509_CRL); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct HRSS_public_key { + pub opaque: [u8; 1424usize], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_CRL"] - pub fn d2i_X509_CRL( - out: *mut *mut X509_CRL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_CRL"] - pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_HRSS_public_key() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 1424usize, + concat!("Size of: ", stringify!(HRSS_public_key)) + ); + assert_eq!( + ::std::mem::align_of::(), + 1usize, + concat!("Alignment of ", stringify!(HRSS_public_key)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HRSS_public_key), + "::", + stringify!(opaque) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_version"] - pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; +impl Default for HRSS_public_key { + 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_fips_0_12_15_X509_CRL_get0_lastUpdate"] - pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_generate_key"] + pub fn HRSS_generate_key( + out_pub: *mut HRSS_public_key, + out_priv: *mut HRSS_private_key, + input: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_nextUpdate"] - pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_encap"] + pub fn HRSS_encap( + out_ciphertext: *mut u8, + out_shared_key: *mut u8, + in_pub: *const HRSS_public_key, + in_: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_issuer"] - pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_REVOKED { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_decap"] + pub fn HRSS_decap( + out_shared_key: *mut u8, + in_priv: *const HRSS_private_key, + ciphertext: *const u8, + ciphertext_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_REVOKED"] - pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_marshal_public_key"] + pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_extensions"] - pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_parse_public_key"] + pub fn HRSS_parse_public_key( + out: *mut HRSS_public_key, + in_: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_count"] - pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Init"] + pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_NID"] - pub fn X509_CRL_get_ext_by_NID( - x: *const X509_CRL, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Update"] + pub fn MD4_Update( + md4: *mut MD4_CTX, + data: *const ::std::os::raw::c_void, + len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_OBJ"] - pub fn X509_CRL_get_ext_by_OBJ( - x: *const X509_CRL, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Final"] + pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_critical"] - pub fn X509_CRL_get_ext_by_critical( - x: *const X509_CRL, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4"] + pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext"] - pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Transform"] + pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_signature"] - pub fn X509_CRL_get0_signature( - crl: *const X509_CRL, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct md4_state_st { + pub h: [u32; 4usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, +} +#[test] +fn bindgen_test_layout_md4_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 92usize, + concat!("Size of: ", stringify!(md4_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(md4_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(md4_state_st), + "::", + stringify!(num) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_signature_nid"] - pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; +impl Default for md4_state_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_fips_0_12_15_i2d_X509_CRL_tbs"] - pub fn i2d_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CRYPTO_BUFFER { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_new"] - pub fn X509_CRL_new() -> *mut X509_CRL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509 { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_CRL { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_version"] - pub fn X509_CRL_set_version( - crl: *mut X509_CRL, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_raw_certificates"] + pub fn PKCS7_get_raw_certificates( + out_certs: *mut stack_st_CRYPTO_BUFFER, + cbs: *mut CBS, + pool: *mut CRYPTO_BUFFER_POOL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_issuer_name"] - pub fn X509_CRL_set_issuer_name( - crl: *mut X509_CRL, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_certificates"] + pub fn PKCS7_get_certificates( + out_certs: *mut stack_st_X509, + cbs: *mut CBS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_lastUpdate"] - pub fn X509_CRL_set1_lastUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_raw_certificates"] + pub fn PKCS7_bundle_raw_certificates( + out: *mut CBB, + certs: *const stack_st_CRYPTO_BUFFER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_nextUpdate"] - pub fn X509_CRL_set1_nextUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_certificates"] + pub fn PKCS7_bundle_certificates( + out: *mut CBB, + certs: *const stack_st_X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_delete_ext"] - pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) - -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_CRLs"] + pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add_ext"] - pub fn X509_CRL_add_ext( - x: *mut X509_CRL, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_CRLs"] + pub fn PKCS7_bundle_CRLs( + out: *mut CBB, + crls: *const stack_st_X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign"] - pub fn X509_CRL_sign( - crl: *mut X509_CRL, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_certificates"] + pub fn PKCS7_get_PEM_certificates( + out_certs: *mut stack_st_X509, + pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign_ctx"] - pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_CRL_tbs"] - pub fn i2d_re_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_CRLs"] + pub fn PKCS7_get_PEM_CRLs( + out_crls: *mut stack_st_X509_CRL, + pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_signature_algo"] - pub fn X509_CRL_set1_signature_algo( - crl: *mut X509_CRL, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct pkcs7_st { + pub type_: *mut ASN1_OBJECT, + pub d: pkcs7_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union pkcs7_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub data: *mut ASN1_OCTET_STRING, + pub sign: *mut PKCS7_SIGNED, + pub enveloped: *mut PKCS7_ENVELOPE, + pub signed_and_enveloped: *mut PKCS7_SIGN_ENVELOPE, + pub digest: *mut PKCS7_DIGEST, + pub encrypted: *mut PKCS7_ENCRYPT, + pub other: *mut ASN1_TYPE, +} +#[test] +fn bindgen_test_layout_pkcs7_st__bindgen_ty_1() { + 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!(pkcs7_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(pkcs7_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(sign) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enveloped) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(enveloped) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signed_and_enveloped) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(signed_and_enveloped) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).digest) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(digest) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).encrypted) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(encrypted) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); +} +impl Default for pkcs7_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_pkcs7_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!(pkcs7_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(pkcs7_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), + "::", + stringify!(d) + ) + ); +} +impl Default for pkcs7_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 pkcs7_signed_st { + pub version: *mut ASN1_INTEGER, + pub md_algs: *mut stack_st_X509_ALGOR, + pub contents: *mut PKCS7, + pub cert: *mut stack_st_X509, + pub crl: *mut stack_st_X509_CRL, + pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO, +} +#[test] +fn bindgen_test_layout_pkcs7_signed_st() { + 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!(pkcs7_signed_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(pkcs7_signed_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(version) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_algs) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(md_algs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).contents) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(contents) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signer_info) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(signer_info) + ) + ); +} +impl Default for pkcs7_signed_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_fips_0_12_15_X509_CRL_set1_signature_value"] - pub fn X509_CRL_set1_signature_value( - crl: *mut X509_CRL, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_new"] + pub fn PKCS7_new() -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_it"] - pub static X509_REQ_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_free"] + pub fn PKCS7_free(a: *mut PKCS7); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_dup"] - pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7"] + pub fn d2i_PKCS7( + a: *mut *mut PKCS7, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_free"] - pub fn X509_REQ_free(req: *mut X509_REQ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7"] + pub fn i2d_PKCS7( + a: *mut PKCS7, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REQ"] - pub fn d2i_X509_REQ( - out: *mut *mut X509_REQ, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_it"] + pub static PKCS7_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REQ"] - pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_new"] + pub fn PKCS7_RECIP_INFO_new() -> *mut PKCS7_RECIP_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_version"] - pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_free"] + pub fn PKCS7_RECIP_INFO_free(a: *mut PKCS7_RECIP_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_subject_name"] - pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_RECIP_INFO"] + pub fn d2i_PKCS7_RECIP_INFO( + a: *mut *mut PKCS7_RECIP_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_RECIP_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_pubkey"] - pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_RECIP_INFO"] + pub fn i2d_PKCS7_RECIP_INFO( + a: *mut PKCS7_RECIP_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get0_signature"] - pub fn X509_REQ_get0_signature( - req: *const X509_REQ, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_it"] + pub static PKCS7_RECIP_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_signature_nid"] - pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_new"] + pub fn PKCS7_SIGNER_INFO_new() -> *mut PKCS7_SIGNER_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_new"] - pub fn X509_REQ_new() -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_free"] + pub fn PKCS7_SIGNER_INFO_free(a: *mut PKCS7_SIGNER_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_version"] - pub fn X509_REQ_set_version( - req: *mut X509_REQ, - version: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_SIGNER_INFO"] + pub fn d2i_PKCS7_SIGNER_INFO( + a: *mut *mut PKCS7_SIGNER_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_SIGNER_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_subject_name"] - pub fn X509_REQ_set_subject_name( - req: *mut X509_REQ, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_SIGNER_INFO"] + pub fn i2d_PKCS7_SIGNER_INFO( + a: *mut PKCS7_SIGNER_INFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_pubkey"] - pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign"] - pub fn X509_REQ_sign( - req: *mut X509_REQ, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign_ctx"] - pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_REQ_tbs"] - pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_algo"] - pub fn X509_REQ_set1_signature_algo( - req: *mut X509_REQ, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_value"] - pub fn X509_REQ_set1_signature_value( - req: *mut X509_REQ, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_it"] + pub static PKCS7_SIGNER_INFO_it: ASN1_ITEM; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME_ENTRY { +pub struct stack_st_PKCS7_RECIP_INFO { _unused: [u8; 0], } -pub type sk_X509_NAME_ENTRY_free_func = - ::std::option::Option; -pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +pub type sk_PKCS7_RECIP_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_RECIP_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_RECIP_INFO) -> *mut PKCS7_RECIP_INFO, >; -pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< +pub type sk_PKCS7_RECIP_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME_ENTRY, - arg2: *mut *const X509_NAME_ENTRY, + arg1: *const *const PKCS7_RECIP_INFO, + arg2: *const *const PKCS7_RECIP_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< +pub type sk_PKCS7_RECIP_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME_ENTRY, + arg1: *mut PKCS7_RECIP_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME { +pub struct stack_st_PKCS7_SIGNER_INFO { _unused: [u8; 0], } -pub type sk_X509_NAME_free_func = ::std::option::Option; -pub type sk_X509_NAME_copy_func = - ::std::option::Option *mut X509_NAME>; -pub type sk_X509_NAME_cmp_func = ::std::option::Option< +pub type sk_PKCS7_SIGNER_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_SIGNER_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_SIGNER_INFO) -> *mut PKCS7_SIGNER_INFO, +>; +pub type sk_PKCS7_SIGNER_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME, - arg2: *mut *const X509_NAME, + arg1: *const *const PKCS7_SIGNER_INFO, + arg2: *const *const PKCS7_SIGNER_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_delete_if_func = ::std::option::Option< +pub type sk_PKCS7_SIGNER_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME, + arg1: *mut PKCS7_SIGNER_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_it"] - pub static X509_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_dup"] + pub fn PKCS7_dup(p7: *mut PKCS7) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_new"] - pub fn X509_NAME_new() -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_bio"] + pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_free"] - pub fn X509_NAME_free(name: *mut X509_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_bio"] + pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME"] - pub fn d2i_X509_NAME( - out: *mut *mut X509_NAME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signed_attribute"] + pub fn PKCS7_get_signed_attribute( + si: *const PKCS7_SIGNER_INFO, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME"] - pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signer_info"] + pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_dup"] - pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_set"] + pub fn PKCS7_RECIP_INFO_set( + p7i: *mut PKCS7_RECIP_INFO, + x509: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get0_der"] - pub fn X509_NAME_get0_der( - name: *mut X509_NAME, - out_der: *mut *const u8, - out_der_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_set"] + pub fn PKCS7_SIGNER_INFO_set( + p7i: *mut PKCS7_SIGNER_INFO, + x509: *mut X509, + pkey: *mut EVP_PKEY, + dgst: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_set"] - pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_certificate"] + pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_entry_count"] - pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_crl"] + pub fn PKCS7_add_crl(p7: *mut PKCS7, x509: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_NID"] - pub fn X509_NAME_get_index_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_recipient_info"] + pub fn PKCS7_add_recipient_info( + p7: *mut PKCS7, + ri: *mut PKCS7_RECIP_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_OBJ"] - pub fn X509_NAME_get_index_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_signer"] + pub fn PKCS7_add_signer(p7: *mut PKCS7, p7i: *mut PKCS7_SIGNER_INFO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_entry"] - pub fn X509_NAME_get_entry( - name: *const X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_content_new"] + pub fn PKCS7_content_new(p7: *mut PKCS7, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_delete_entry"] - pub fn X509_NAME_delete_entry( - name: *mut X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_cipher"] + pub fn PKCS7_set_cipher(p7: *mut PKCS7, cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry"] - pub fn X509_NAME_add_entry( - name: *mut X509_NAME, - entry: *const X509_NAME_ENTRY, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_content"] + pub fn PKCS7_set_content(p7: *mut PKCS7, p7_data: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_OBJ"] - pub fn X509_NAME_add_entry_by_OBJ( - name: *mut X509_NAME, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_type"] + pub fn PKCS7_set_type(p7: *mut PKCS7, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_NID"] - pub fn X509_NAME_add_entry_by_NID( - name: *mut X509_NAME, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_get0_alg"] + pub fn PKCS7_RECIP_INFO_get0_alg(ri: *mut PKCS7_RECIP_INFO, penc: *mut *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_txt"] - pub fn X509_NAME_add_entry_by_txt( - name: *mut X509_NAME, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_get0_algs"] + pub fn PKCS7_SIGNER_INFO_get0_algs( + si: *mut PKCS7_SIGNER_INFO, + pk: *mut *mut EVP_PKEY, + pdig: *mut *mut X509_ALGOR, + psig: *mut *mut X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_it"] - pub static X509_NAME_ENTRY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_data"] + pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_new"] - pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_digest"] + pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_free"] - pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_encrypted"] + pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME_ENTRY"] - pub fn d2i_X509_NAME_ENTRY( - out: *mut *mut X509_NAME_ENTRY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_enveloped"] + pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME_ENTRY"] - pub fn i2d_X509_NAME_ENTRY( - in_: *const X509_NAME_ENTRY, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signed"] + pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_dup"] - pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signedAndEnveloped"] + pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_object"] - pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_sign"] + pub fn PKCS7_sign( + sign_cert: *mut X509, + pkey: *mut EVP_PKEY, + certs: *mut stack_st_X509, + data: *mut BIO, + flags: ::std::os::raw::c_int, + ) -> *mut PKCS7; } +pub type sk_CRYPTO_BUFFER_free_func = + ::std::option::Option; +pub type sk_CRYPTO_BUFFER_copy_func = + ::std::option::Option *mut CRYPTO_BUFFER>; +pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CRYPTO_BUFFER, + arg2: *const *const CRYPTO_BUFFER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_BUFFER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_object"] - pub fn X509_NAME_ENTRY_set_object( - entry: *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_new"] + pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_data"] - pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_free"] + pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_data"] - pub fn X509_NAME_ENTRY_set_data( - entry: *mut X509_NAME_ENTRY, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new"] + pub fn CRYPTO_BUFFER_new( + data: *const u8, + len: usize, + pool: *mut CRYPTO_BUFFER_POOL, + ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set"] - pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_alloc"] + pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_OBJ"] - pub fn X509_NAME_ENTRY_create_by_OBJ( - out: *mut *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_CBS"] + pub fn CRYPTO_BUFFER_new_from_CBS( + cbs: *const CBS, + pool: *mut CRYPTO_BUFFER_POOL, + ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_NID"] - pub fn X509_NAME_ENTRY_create_by_NID( - out: *mut *mut X509_NAME_ENTRY, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_static_data_unsafe"] + pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( + data: *const u8, + len: usize, + pool: *mut CRYPTO_BUFFER_POOL, + ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_txt"] - pub fn X509_NAME_ENTRY_create_by_txt( - out: *mut *mut X509_NAME_ENTRY, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_free"] + pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_it"] - pub static X509_EXTENSION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_up_ref"] + pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_new"] - pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_data"] + pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_free"] - pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_len"] + pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSION"] - pub fn d2i_X509_EXTENSION( - out: *mut *mut X509_EXTENSION, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_init_CBS"] + pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSION"] - pub fn i2d_X509_EXTENSION( - alg: *const X509_EXTENSION, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_public_key"] + pub fn RSA_new_public_key(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_dup"] - pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key"] + pub fn RSA_new_private_key( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_NID"] - pub fn X509_EXTENSION_create_by_NID( - ex: *mut *mut X509_EXTENSION, - nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new"] + pub fn RSA_new() -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_OBJ"] - pub fn X509_EXTENSION_create_by_OBJ( - ex: *mut *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_method"] + pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_object"] - pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_free"] + pub fn RSA_free(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_data"] - pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_up_ref"] + pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_critical"] - pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_bits"] + pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_object"] - pub fn X509_EXTENSION_set_object( - ex: *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_n"] + pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_critical"] - pub fn X509_EXTENSION_set_critical( - ex: *mut X509_EXTENSION, - crit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_e"] + pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_data"] - pub fn X509_EXTENSION_set_data( - ex: *mut X509_EXTENSION, - data: *const ASN1_OCTET_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_d"] + pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; } -pub type sk_X509_EXTENSION_free_func = - ::std::option::Option; -pub type sk_X509_EXTENSION_copy_func = - ::std::option::Option *mut X509_EXTENSION>; -pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_EXTENSION, - arg2: *mut *const X509_EXTENSION, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_EXTENSION, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSIONS_it"] - pub static X509_EXTENSIONS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_p"] + pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSIONS"] - pub fn d2i_X509_EXTENSIONS( - out: *mut *mut X509_EXTENSIONS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSIONS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_q"] + pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSIONS"] - pub fn i2d_X509_EXTENSIONS( - alg: *const X509_EXTENSIONS, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmp1"] + pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_count"] - pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmq1"] + pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_NID"] - pub fn X509v3_get_ext_by_NID( - x: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_iqmp"] + pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_OBJ"] - pub fn X509v3_get_ext_by_OBJ( - x: *const stack_st_X509_EXTENSION, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_key"] + pub fn RSA_get0_key( + rsa: *const RSA, + out_n: *mut *const BIGNUM, + out_e: *mut *const BIGNUM, + out_d: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_critical"] - pub fn X509v3_get_ext_by_critical( - x: *const stack_st_X509_EXTENSION, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_factors"] + pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext"] - pub fn X509v3_get_ext( - x: *const stack_st_X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_crt_params"] + pub fn RSA_get0_crt_params( + rsa: *const RSA, + out_dmp1: *mut *const BIGNUM, + out_dmq1: *mut *const BIGNUM, + out_iqmp: *mut *const BIGNUM, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_delete_ext"] - pub fn X509v3_delete_ext( - x: *mut stack_st_X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_key"] + pub fn RSA_set0_key( + rsa: *mut RSA, + n: *mut BIGNUM, + e: *mut BIGNUM, + d: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_add_ext"] - pub fn X509v3_add_ext( - x: *mut *mut stack_st_X509_EXTENSION, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_EXTENSION; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ALGOR { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_factors"] + pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) + -> ::std::os::raw::c_int; } -pub type sk_X509_ALGOR_free_func = - ::std::option::Option; -pub type sk_X509_ALGOR_copy_func = - ::std::option::Option *mut X509_ALGOR>; -pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ALGOR, - arg2: *mut *const X509_ALGOR, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ALGOR, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_it"] - pub static X509_ALGOR_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_crt_params"] + pub fn RSA_set0_crt_params( + rsa: *mut RSA, + dmp1: *mut BIGNUM, + dmq1: *mut BIGNUM, + iqmp: *mut BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_new"] - pub fn X509_ALGOR_new() -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_default_method"] + pub fn RSA_get_default_method() -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_dup"] - pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_new"] + pub fn RSA_meth_new( + name: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_free"] - pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_method"] + pub fn RSA_set_method(rsa: *mut RSA, meth: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ALGOR"] - pub fn d2i_X509_ALGOR( - out: *mut *mut X509_ALGOR, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_method"] + pub fn RSA_get_method(rsa: *const RSA) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ALGOR"] - pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_free"] + pub fn RSA_meth_free(meth: *mut RSA_METHOD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set0"] - pub fn X509_ALGOR_set0( - alg: *mut X509_ALGOR, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_init"] + pub fn RSA_meth_set_init( + meth: *mut RSA_METHOD, + init: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_get0"] - pub fn X509_ALGOR_get0( - out_obj: *mut *const ASN1_OBJECT, - out_param_type: *mut ::std::os::raw::c_int, - out_param_value: *mut *const ::std::os::raw::c_void, - alg: *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_finish"] + pub fn RSA_meth_set_finish( + meth: *mut RSA_METHOD, + finish: ::std::option::Option ::std::os::raw::c_int>, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set_md"] - pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_dec"] + pub fn RSA_meth_set_priv_dec( + meth: *mut RSA_METHOD, + priv_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_cmp"] - pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_enc"] + pub fn RSA_meth_set_priv_enc( + meth: *mut RSA_METHOD, + priv_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_meth_set_pub_dec"] + pub fn RSA_meth_set_pub_dec( + meth: *mut RSA_METHOD, + pub_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_pub_enc"] + pub fn RSA_meth_set_pub_enc( + meth: *mut RSA_METHOD, + pub_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_meth_set0_app_data"] + pub fn RSA_meth_set0_app_data( + meth: *mut RSA_METHOD, + app_data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_meth_set_sign"] + pub fn RSA_meth_set_sign( + meth: *mut RSA_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + m: *const ::std::os::raw::c_uchar, + m_length: ::std::os::raw::c_uint, + sigret: *mut ::std::os::raw::c_uchar, + siglen: *mut ::std::os::raw::c_uint, + rsa: *const RSA, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_ex"] + pub fn RSA_generate_key_ex( + rsa: *mut RSA, + bits: ::std::os::raw::c_int, + e: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_fips"] + pub fn RSA_generate_key_fips( + rsa: *mut RSA, + bits: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_encrypt"] + pub fn RSA_encrypt( + rsa: *mut RSA, + out_len: *mut usize, out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_decrypt"] + pub fn RSA_decrypt( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_public_encrypt"] + pub fn RSA_public_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_decrypt"] + pub fn RSA_private_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign"] + pub fn RSA_sign( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_sign_pss_mgf1"] + pub fn RSA_sign_pss_mgf1( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_13_0_RSA_sign_raw"] + pub fn RSA_sign_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify"] + pub fn RSA_verify( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_pss_mgf1"] + pub fn RSA_verify_pss_mgf1( + rsa: *mut RSA, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_raw"] + pub fn RSA_verify_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_encrypt"] + pub fn RSA_private_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_decrypt"] + pub fn RSA_public_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_size"] + pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_is_opaque"] + pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSAPublicKey_dup"] + pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSAPrivateKey_dup"] + pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_check_key"] + pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_check_fips"] + pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_PKCS1_PSS_mgf1"] + pub fn RSA_verify_PKCS1_PSS_mgf1( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_PSS_mgf1"] + pub fn RSA_padding_add_PKCS1_PSS_mgf1( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP_mgf1"] + pub fn RSA_padding_add_PKCS1_OAEP_mgf1( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + md: *const EVP_MD, + mgf1md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS1_MGF1"] + pub fn PKCS1_MGF1( + out: *mut u8, + len: usize, + seed: *const u8, + seed_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_add_pkcs1_prefix"] + pub fn RSA_add_pkcs1_prefix( + out_msg: *mut *mut u8, + out_msg_len: *mut usize, + is_alloced: *mut ::std::os::raw::c_int, + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_parse_public_key"] + pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_public_key_from_bytes"] + pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_marshal_public_key"] + pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_public_key_to_bytes"] + pub fn RSA_public_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_parse_private_key"] + pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_key_from_bytes"] + pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_marshal_private_key"] + pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_private_key_to_bytes"] + pub fn RSA_private_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_crt"] + pub fn RSA_new_private_key_no_crt( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_e"] + pub fn RSA_new_private_key_no_e(n: *const BIGNUM, d: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_new_public_key_large_e"] + pub fn RSA_new_public_key_large_e(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_new_private_key_large_e"] + pub fn RSA_new_private_key_large_e( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_ex_new_index"] + pub fn RSA_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_fips_0_12_15_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_fips_0_13_0_RSA_set_ex_data"] + pub fn RSA_set_ex_data( + rsa: *mut RSA, + 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_fips_0_12_15_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_fips_0_13_0_RSA_get_ex_data"] + pub fn RSA_get_ex_data( + rsa: *const RSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_flags"] + pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_set_flags"] + pub fn RSA_set_flags(rsa: *mut RSA, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_test_flags"] + pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_blinding_on"] + pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_blinding_off_temp_for_accp_compatibility"] + pub fn RSA_blinding_off_temp_for_accp_compatibility(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_pkey_ctx_ctrl"] + pub fn RSA_pkey_ctx_ctrl( + ctx: *mut EVP_PKEY_CTX, + optype: ::std::os::raw::c_int, + cmd: ::std::os::raw::c_int, + p1: ::std::os::raw::c_int, + p2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_generate_key"] + pub fn RSA_generate_key( + bits: ::std::os::raw::c_int, + e: u64, + callback: *mut ::std::os::raw::c_void, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPublicKey"] + pub fn d2i_RSAPublicKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_RSAPublicKey"] + pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPrivateKey"] + pub fn d2i_RSAPrivateKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_RSAPrivateKey"] + pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_padding_add_PKCS1_PSS"] + pub fn RSA_padding_add_PKCS1_PSS( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_verify_PKCS1_PSS"] + pub fn RSA_verify_PKCS1_PSS( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_padding_add_PKCS1_OAEP"] + pub fn RSA_padding_add_PKCS1_OAEP( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_print"] + pub fn RSA_print( + bio: *mut BIO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_print_fp"] + pub fn RSA_print_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_get0_pss_params"] + pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_new_method_no_e"] + pub fn RSA_new_method_no_e(engine: *const ENGINE, n: *const BIGNUM) -> *mut RSA; } +pub type sk_X509_free_func = ::std::option::Option; +pub type sk_X509_copy_func = + ::std::option::Option *mut X509>; +pub type sk_X509_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509, + arg2: *const *const X509, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_it"] + pub static X509_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_up_ref"] + pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_chain_up_ref"] + pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_dup"] + pub fn X509_dup(x509: *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_free"] + pub fn X509_free(x509: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509"] + pub fn d2i_X509( + out: *mut *mut X509, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_parse_from_buffer"] + pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509"] + pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get_version"] + pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_serialNumber"] + pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_notBefore"] + pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get0_notAfter"] + pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get_issuer_name"] + pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_subject_name"] + pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_X509_PUBKEY"] + pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_pubkey"] + pub fn X509_get0_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get_pubkey"] + pub fn X509_get_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_get0_pubkey_bitstr"] + pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; } -#[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_fips_0_13_0_X509_check_private_key"] + pub fn X509_check_private_key( + x509: *const X509, + pkey: *const EVP_PKEY, + ) -> ::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_fips_0_13_0_X509_get0_uids"] + pub fn X509_get0_uids( + x509: *const X509, + out_issuer_uid: *mut *const ASN1_BIT_STRING, + out_subject_uid: *mut *const ASN1_BIT_STRING, ); } -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_fips_0_13_0_X509_get_extension_flags"] + pub fn X509_get_extension_flags(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_pathlen"] + pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_key_usage"] + pub fn X509_get_key_usage(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_extended_key_usage"] + pub fn X509_get_extended_key_usage(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_subject_key_id"] + pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_key_id"] + pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ATTRIBUTE { +pub struct stack_st_GENERAL_NAME { _unused: [u8; 0], } -pub type sk_X509_ATTRIBUTE_free_func = - ::std::option::Option; -pub type sk_X509_ATTRIBUTE_copy_func = - ::std::option::Option *mut X509_ATTRIBUTE>; -pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< +pub type sk_GENERAL_NAME_free_func = + ::std::option::Option; +pub type sk_GENERAL_NAME_copy_func = + ::std::option::Option *mut GENERAL_NAME>; +pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_ATTRIBUTE, - arg2: *mut *const X509_ATTRIBUTE, + arg1: *const *const GENERAL_NAME, + arg2: *const *const GENERAL_NAME, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< +pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_ATTRIBUTE, + arg1: *mut GENERAL_NAME, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +pub type GENERAL_NAMES = stack_st_GENERAL_NAME; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_issuer"] + pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_serial"] + pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAME { +pub struct stack_st_X509_EXTENSION { _unused: [u8; 0], } -#[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: *mut x509_trust_st, - 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_fips_0_13_0_X509_get0_extensions"] + pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; } -#[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_fips_0_13_0_X509_get_ext_count"] + pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_NID"] + pub fn X509_get_ext_by_NID( + x: *const X509, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_OBJ"] + pub fn X509_get_ext_by_OBJ( + x: *const X509, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_critical"] + pub fn X509_get_ext_by_critical( + x: *const X509, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext"] + pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_d2i"] + pub fn X509_get_ext_d2i( + x509: *const X509, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_tbs_sigalg"] + pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_signature_info"] + pub fn X509_get_signature_info( + x509: *mut X509, + digest_nid: *mut ::std::os::raw::c_int, + pubkey_nid: *mut ::std::os::raw::c_int, + sec_bits: *mut ::std::os::raw::c_int, + flags: *mut u32, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_signature"] + pub fn X509_get0_signature( + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + x509: *const X509, ); } -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_fips_0_13_0_X509_get_signature_nid"] + pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_tbs"] + pub fn i2d_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } -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< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify"] + pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_email"] + pub fn X509_get1_email(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_ocsp"] + pub fn X509_get1_ocsp(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_email_free"] + pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_new"] + pub fn X509_new() -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_version"] + pub fn X509_set_version( + x509: *mut X509, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_serialNumber"] + pub fn X509_set_serialNumber( + x509: *mut X509, + serial: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notBefore"] + pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notAfter"] + pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notBefore"] + pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notAfter"] + pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_issuer_name"] + pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_subject_name"] + pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_pubkey"] + pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_delete_ext"] + pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add_ext"] + pub fn X509_add_ext( + x: *mut X509, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_ext_i2d"] + pub fn X509_add1_ext_i2d( + x: *mut X509, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign"] + pub fn X509_sign( + x509: *mut X509, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign_ctx"] + pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_tbs"] + pub fn i2d_re_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_algo"] + pub fn X509_set1_signature_algo( + x509: *mut X509, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_value"] + pub fn X509_set1_signature_value( + x509: *mut X509, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_AUX"] + pub fn i2d_X509_AUX(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_AUX"] + pub fn d2i_X509_AUX( + x509: *mut *mut X509, + inp: *mut *const u8, + length: ::std::os::raw::c_long, + ) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_set1"] + pub fn X509_alias_set1( + x509: *mut X509, + name: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_set1"] + pub fn X509_keyid_set1( + x509: *mut X509, + id: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_get0"] + pub fn X509_alias_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_get0"] + pub fn X509_keyid_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_trust_object"] + pub fn X509_add1_trust_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_reject_object"] + pub fn X509_add1_reject_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_trust_clear"] + pub fn X509_trust_clear(x509: *mut X509); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_reject_clear"] + pub fn X509_reject_clear(x509: *mut X509); +} +pub type sk_X509_CRL_free_func = ::std::option::Option; +pub type sk_X509_CRL_copy_func = + ::std::option::Option *mut X509_CRL>; +pub type sk_X509_CRL_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_TRUST, - arg2: *mut *const X509_TRUST, + arg1: *const *const X509_CRL, + arg2: *const *const X509_CRL, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_CRL_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_CRL, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_REVOKED { + _unused: [u8; 0], +} pub type sk_X509_REVOKED_free_func = ::std::option::Option; pub type sk_X509_REVOKED_copy_func = ::std::option::Option *mut X509_REVOKED>; pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_REVOKED, - arg2: *mut *const X509_REVOKED, + arg1: *const *const X509_REVOKED, + arg2: *const *const X509_REVOKED, ) -> ::std::os::raw::c_int, >; pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< @@ -20918,860 +19837,508 @@ pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAMES { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_it"] + pub static X509_CRL_it: ASN1_ITEM; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub version: ::std::os::raw::c_int, - pub enc_algor: *mut X509_ALGOR, - pub enc_pkey: *mut ASN1_OCTET_STRING, - pub dec_pkey: *mut EVP_PKEY, - pub key_length: ::std::os::raw::c_int, - pub key_data: *mut ::std::os::raw::c_char, - pub key_free: ::std::os::raw::c_int, - pub cipher: EVP_CIPHER_INFO, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_up_ref"] + pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::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::(), - 80usize, - 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).version) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_length) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_data) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_free) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(cipher) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_dup"] + pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; } -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_fips_0_13_0_X509_CRL_free"] + pub fn X509_CRL_free(crl: *mut X509_CRL); } -#[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_fips_0_13_0_d2i_X509_CRL"] + pub fn d2i_X509_CRL( + out: *mut *mut X509_CRL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *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_fips_0_13_0_i2d_X509_CRL"] + pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -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_fips_0_13_0_X509_CRL_get_version"] + pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_lastUpdate"] + pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } -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: *mut *const X509_INFO, - arg2: *mut *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, ->; -#[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_fips_0_13_0_X509_CRL_get0_nextUpdate"] + pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } -#[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) - ) - ); -} -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() - } - } -} -#[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) - ) - ); -} -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_fips_0_13_0_X509_CRL_get_issuer"] + pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_pathlen"] - pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_by_serial"] + pub fn X509_CRL_get0_by_serial( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + serial: *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get0_by_cert"] + pub fn X509_CRL_get0_by_cert( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + x509: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get_REVOKED"] + pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get0_extensions"] + pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_verify"] - pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_count"] + pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_verify"] - pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_NID"] + pub fn X509_CRL_get_ext_by_NID( + x: *const X509_CRL, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_verify"] - pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_OBJ"] + pub fn X509_CRL_get_ext_by_OBJ( + x: *const X509_CRL, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_critical"] + pub fn X509_CRL_get_ext_by_critical( + x: *const X509_CRL, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext"] + pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get_ext_d2i"] + pub fn X509_CRL_get_ext_d2i( + crl: *const X509_CRL, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *mut NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_signature"] + pub fn X509_CRL_get0_signature( + crl: *const X509_CRL, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_get_signature_nid"] + pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_CRL_tbs"] + pub fn i2d_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_dup"] - pub fn X509_ATTRIBUTE_dup(xa: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_verify"] + pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_dup"] - pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_new"] + pub fn X509_CRL_new() -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *mut time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set_version"] + pub fn X509_CRL_set_version( + crl: *mut X509_CRL, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_set_issuer_name"] + pub fn X509_CRL_set_issuer_name( + crl: *mut X509_CRL, + name: *mut X509_NAME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_set1_lastUpdate"] + pub fn X509_CRL_set1_lastUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *mut time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_nextUpdate"] + pub fn X509_CRL_set1_nextUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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: *mut time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add0_revoked"] + pub fn X509_CRL_add0_revoked( + crl: *mut X509_CRL, + rev: *mut X509_REVOKED, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_sort"] + pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_delete_ext"] + pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) + -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add_ext"] + pub fn X509_CRL_add_ext( + x: *mut X509_CRL, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add1_ext_i2d"] + pub fn X509_CRL_add1_ext_i2d( + x: *mut X509_CRL, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_sign"] + pub fn X509_CRL_sign( + crl: *mut X509_CRL, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_CRL_sign_ctx"] + pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_CRL_tbs"] + pub fn i2d_re_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_new"] - pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_algo"] + pub fn X509_CRL_set1_signature_algo( + crl: *mut X509_CRL, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_free"] - pub fn X509_PUBKEY_free(a: *mut X509_PUBKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_value"] + pub fn X509_CRL_set1_signature_value( + crl: *mut X509_CRL, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_PUBKEY"] - pub fn d2i_X509_PUBKEY( - a: *mut *mut X509_PUBKEY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_http_nbio"] + pub fn X509_CRL_http_nbio( + rctx: *mut OCSP_REQ_CTX, + pcrl: *mut *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_PUBKEY"] - pub fn i2d_X509_PUBKEY( - a: *const X509_PUBKEY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_it"] + pub static X509_REVOKED_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_it"] - pub static X509_PUBKEY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_new"] + pub fn X509_REVOKED_new() -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_set"] - pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_free"] + pub fn X509_REVOKED_free(rev: *mut X509_REVOKED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get"] - pub fn X509_PUBKEY_get(key: *mut X509_PUBKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REVOKED"] + pub fn d2i_X509_REVOKED( + out: *mut *mut X509_REVOKED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REVOKED"] + pub fn i2d_X509_REVOKED(alg: *const X509_REVOKED, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_free"] - pub fn X509_SIG_free(a: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_dup"] + pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - a: *mut *mut X509_SIG, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_serialNumber"] + pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_SIG"] - pub fn i2d_X509_SIG( - a: *const X509_SIG, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_serialNumber"] + pub fn X509_REVOKED_set_serialNumber( + revoked: *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_revocationDate"] + pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_new"] - pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_revocationDate"] + pub fn X509_REVOKED_set_revocationDate( + revoked: *mut X509_REVOKED, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_free"] - pub fn X509_ATTRIBUTE_free(a: *mut X509_ATTRIBUTE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_extensions"] + pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ATTRIBUTE"] - pub fn d2i_X509_ATTRIBUTE( - a: *mut *mut X509_ATTRIBUTE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_count"] + pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ATTRIBUTE"] - pub fn i2d_X509_ATTRIBUTE( - a: *const X509_ATTRIBUTE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_it"] - pub static X509_ATTRIBUTE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create"] - pub fn X509_ATTRIBUTE_create( + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_NID"] + pub fn X509_REVOKED_get_ext_by_NID( + x: *const X509_REVOKED, nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_trust_object"] - pub fn X509_add1_trust_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_reject_object"] - pub fn X509_add1_reject_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_trust_clear"] - pub fn X509_trust_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_reject_clear"] - pub fn X509_reject_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_new"] - pub fn X509_REVOKED_new() -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_free"] - pub fn X509_REVOKED_free(a: *mut X509_REVOKED); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REVOKED"] - pub fn d2i_X509_REVOKED( - a: *mut *mut X509_REVOKED, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_REVOKED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_OBJ"] + pub fn X509_REVOKED_get_ext_by_OBJ( + x: *const X509_REVOKED, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REVOKED"] - pub fn i2d_X509_REVOKED( - a: *const X509_REVOKED, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_critical"] + pub fn X509_REVOKED_get_ext_by_critical( + x: *const X509_REVOKED, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_it"] - pub static X509_REVOKED_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext"] + pub fn X509_REVOKED_get_ext( + x: *const X509_REVOKED, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add0_revoked"] - pub fn X509_CRL_add0_revoked( - crl: *mut X509_CRL, - rev: *mut X509_REVOKED, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_delete_ext"] + pub fn X509_REVOKED_delete_ext( + x: *mut X509_REVOKED, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_serial"] - pub fn X509_CRL_get0_by_serial( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - serial: *mut ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add_ext"] + pub fn X509_REVOKED_add_ext( + x: *mut X509_REVOKED, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_cert"] - pub fn X509_CRL_get0_by_cert( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_d2i"] + pub fn X509_REVOKED_get_ext_d2i( + revoked: *const X509_REVOKED, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_new"] - pub fn X509_PKEY_new() -> *mut X509_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add1_ext_i2d"] + pub fn X509_REVOKED_add1_ext_i2d( + x: *mut X509_REVOKED, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_free"] - pub fn X509_PKEY_free(a: *mut X509_PKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_it"] + pub static X509_REQ_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_dup"] + pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(a: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_free"] + pub fn X509_REQ_free(req: *mut X509_REQ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - a: *mut *mut NETSCAPE_SPKI, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REQ"] + pub fn d2i_X509_REQ( + out: *mut *mut X509_REQ, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - a: *const NETSCAPE_SPKI, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REQ"] + pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_version"] + pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_subject_name"] + pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(a: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_pubkey"] + pub fn X509_REQ_get0_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - a: *mut *mut NETSCAPE_SPKAC, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_pubkey"] + pub fn X509_REQ_get_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - a: *const NETSCAPE_SPKAC, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_check_private_key"] + pub fn X509_REQ_check_private_key( + req: *const X509_REQ, + pkey: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_new"] - pub fn X509_INFO_new() -> *mut X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_free"] - pub fn X509_INFO_free(a: *mut X509_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - a: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_count"] + pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_attr"] + pub fn X509_REQ_get_attr( + req: *const X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_by_NID"] + pub fn X509_REQ_get_attr_by_NID( + req: *const X509_REQ, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_by_OBJ"] + pub fn X509_REQ_get_attr_by_OBJ( + req: *const X509_REQ, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_extension_nid"] + pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_extensions"] + pub fn X509_REQ_get_extensions(req: *const X509_REQ) -> *mut stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_extension_nid"] - pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_signature"] + pub fn X509_REQ_get0_signature( + req: *const X509_REQ, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_extensions"] - pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_signature_nid"] + pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions_nid"] - pub fn X509_REQ_add_extensions_nid( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_verify"] + pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions"] - pub fn X509_REQ_add_extensions( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get1_email"] + pub fn X509_REQ_get1_email(req: *const X509_REQ) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_count"] - pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_new"] + pub fn X509_REQ_new() -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_NID"] - pub fn X509_REQ_get_attr_by_NID( - req: *const X509_REQ, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_version"] + pub fn X509_REQ_set_version( + req: *mut X509_REQ, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_OBJ"] - pub fn X509_REQ_get_attr_by_OBJ( - req: *const X509_REQ, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_subject_name"] + pub fn X509_REQ_set_subject_name( + req: *mut X509_REQ, + name: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr"] - pub fn X509_REQ_get_attr( - req: *const X509_REQ, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_pubkey"] + pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_delete_attr"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_delete_attr"] pub fn X509_REQ_delete_attr( req: *mut X509_REQ, loc: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr"] pub fn X509_REQ_add1_attr( req: *mut X509_REQ, - attr: *mut X509_ATTRIBUTE, + attr: *const X509_ATTRIBUTE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_OBJ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_OBJ"] pub fn X509_REQ_add1_attr_by_OBJ( req: *mut X509_REQ, obj: *const ASN1_OBJECT, @@ -21781,7 +20348,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_NID"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_NID"] pub fn X509_REQ_add1_attr_by_NID( req: *mut X509_REQ, nid: ::std::os::raw::c_int, @@ -21791,7 +20358,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_txt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_txt"] pub fn X509_REQ_add1_attr_by_txt( req: *mut X509_REQ, attrname: *const ::std::os::raw::c_char, @@ -21801,621 +20368,627 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sort"] - pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_serialNumber"] - pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_set_serialNumber"] - pub fn X509_REVOKED_set_serialNumber( - revoked: *mut X509_REVOKED, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add_extensions_nid"] + pub fn X509_REQ_add_extensions_nid( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_revocationDate"] - pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_set_revocationDate"] - pub fn X509_REVOKED_set_revocationDate( - revoked: *mut X509_REVOKED, - tm: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add_extensions"] + pub fn X509_REQ_add_extensions( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_extensions"] - pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_diff"] - pub fn X509_CRL_diff( - base: *mut X509_CRL, - newer: *mut X509_CRL, - skey: *mut EVP_PKEY, - md: *const EVP_MD, - flags: ::std::os::raw::c_uint, - ) -> *mut X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_check_private_key"] - pub fn X509_REQ_check_private_key( - x509: *mut X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_sign"] + pub fn X509_REQ_sign( + req: *mut X509_REQ, pkey: *mut EVP_PKEY, + md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_private_key"] - pub fn X509_check_private_key(x509: *mut X509, pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_sign_ctx"] + pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_REQ_tbs"] + pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_set1_signature_algo"] + pub fn X509_REQ_set1_signature_algo( + req: *mut X509_REQ, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x: *mut X509) -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set1_signature_value"] + pub fn X509_REQ_set1_signature_value( + req: *mut X509_REQ, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME_ENTRY { + _unused: [u8; 0], +} +pub type sk_X509_NAME_ENTRY_free_func = + ::std::option::Option; +pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +>; +pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME_ENTRY, + arg2: *const *const X509_NAME_ENTRY, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME_ENTRY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME { + _unused: [u8; 0], } +pub type sk_X509_NAME_free_func = ::std::option::Option; +pub type sk_X509_NAME_copy_func = + ::std::option::Option *mut X509_NAME>; +pub type sk_X509_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME, + arg2: *const *const X509_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_it"] + pub static X509_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_new"] + pub fn X509_NAME_new() -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_cmp"] - pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_free"] + pub fn X509_NAME_free(name: *mut X509_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash"] - pub fn X509_NAME_hash(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_NAME"] + pub fn d2i_X509_NAME( + out: *mut *mut X509_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_NAME"] + pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_dup"] + pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_cmp"] + pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - bp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get0_der"] + pub fn X509_NAME_get0_der( + name: *mut X509_NAME, + out_der: *mut *const u8, + out_der_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_print_fp"] - pub fn X509_print_fp(bp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_set"] + pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(bp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_entry_count"] + pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(bp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_index_by_NID"] + pub fn X509_NAME_get_index_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get_index_by_OBJ"] + pub fn X509_NAME_get_index_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_entry"] + pub fn X509_NAME_get_entry( name: *const X509_NAME, - obase: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_delete_entry"] + pub fn X509_NAME_delete_entry( + name: *mut X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry"] + pub fn X509_NAME_add_entry( + name: *mut X509_NAME, + entry: *const X509_NAME_ENTRY, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry_by_OBJ"] + pub fn X509_NAME_add_entry_by_OBJ( + name: *mut X509_NAME, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_NID"] + pub fn X509_NAME_add_entry_by_NID( + name: *mut X509_NAME, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry_by_txt"] + pub fn X509_NAME_add_entry_by_txt( + name: *mut X509_NAME, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_it"] + pub static X509_NAME_ENTRY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_d2i"] - pub fn X509_get_ext_d2i( - x509: *const X509, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_new"] + pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_ext_i2d"] - pub fn X509_add1_ext_i2d( - x: *mut X509, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_free"] + pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_d2i"] - pub fn X509_CRL_get_ext_d2i( - crl: *const X509_CRL, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_NAME_ENTRY"] + pub fn d2i_X509_NAME_ENTRY( + out: *mut *mut X509_NAME_ENTRY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add1_ext_i2d"] - pub fn X509_CRL_add1_ext_i2d( - x: *mut X509_CRL, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_NAME_ENTRY"] + pub fn i2d_X509_NAME_ENTRY( + in_: *const X509_NAME_ENTRY, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_count"] - pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_dup"] + pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_by_NID"] - pub fn X509_REVOKED_get_ext_by_NID( - x: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_object"] + pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_by_OBJ"] - pub fn X509_REVOKED_get_ext_by_OBJ( - x: *const X509_REVOKED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_object"] + pub fn X509_NAME_ENTRY_set_object( + entry: *mut X509_NAME_ENTRY, obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_by_critical"] - pub fn X509_REVOKED_get_ext_by_critical( - x: *const X509_REVOKED, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_data"] + pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext"] - pub fn X509_REVOKED_get_ext( - x: *const X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_data"] + pub fn X509_NAME_ENTRY_set_data( + entry: *mut X509_NAME_ENTRY, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_delete_ext"] - pub fn X509_REVOKED_delete_ext( - x: *mut X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set"] + pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_add_ext"] - pub fn X509_REVOKED_add_ext( - x: *mut X509_REVOKED, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_create_by_OBJ"] + pub fn X509_NAME_ENTRY_create_by_OBJ( + out: *mut *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_d2i"] - pub fn X509_REVOKED_get_ext_d2i( - revoked: *const X509_REVOKED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_create_by_NID"] + pub fn X509_NAME_ENTRY_create_by_NID( + out: *mut *mut X509_NAME_ENTRY, nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_add1_ext_i2d"] - pub fn X509_REVOKED_add1_ext_i2d( - x: *mut X509_REVOKED, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_create_by_txt"] + pub fn X509_NAME_ENTRY_create_by_txt( + out: *mut *mut X509_NAME_ENTRY, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_count"] - pub fn X509at_get_attr_count(x: *const stack_st_X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_it"] + pub static X509_PUBKEY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_by_NID"] - pub fn X509at_get_attr_by_NID( - x: *const stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_new"] + pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_by_OBJ"] - pub fn X509at_get_attr_by_OBJ( - sk: *const stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr"] - pub fn X509at_get_attr( - x: *const stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_delete_attr"] - pub fn X509at_delete_attr( - x: *mut stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr"] - pub fn X509at_add1_attr( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attr: *mut X509_ATTRIBUTE, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_free"] + pub fn X509_PUBKEY_free(key: *mut X509_PUBKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr_by_OBJ"] - pub fn X509at_add1_attr_by_OBJ( - x: *mut *mut stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_PUBKEY"] + pub fn d2i_X509_PUBKEY( + out: *mut *mut X509_PUBKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr_by_NID"] - pub fn X509at_add1_attr_by_NID( - x: *mut *mut stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_PUBKEY"] + pub fn i2d_X509_PUBKEY(key: *const X509_PUBKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_add1_attr_by_txt"] - pub fn X509at_add1_attr_by_txt( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_set"] + pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create_by_NID"] - pub fn X509_ATTRIBUTE_create_by_NID( - attr: *mut *mut X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get0"] + pub fn X509_PUBKEY_get0(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create_by_OBJ"] - pub fn X509_ATTRIBUTE_create_by_OBJ( - attr: *mut *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get"] + pub fn X509_PUBKEY_get(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create_by_txt"] - pub fn X509_ATTRIBUTE_create_by_txt( - attr: *mut *mut X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_set0_param"] + pub fn X509_PUBKEY_set0_param( + pub_: *mut X509_PUBKEY, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + key: *mut u8, + key_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_set1_object"] - pub fn X509_ATTRIBUTE_set1_object( - attr: *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get0_param"] + pub fn X509_PUBKEY_get0_param( + out_obj: *mut *mut ASN1_OBJECT, + out_key: *mut *const u8, + out_key_len: *mut ::std::os::raw::c_int, + out_alg: *mut *mut X509_ALGOR, + pub_: *mut X509_PUBKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_set1_data"] - pub fn X509_ATTRIBUTE_set1_data( - attr: *mut X509_ATTRIBUTE, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PUBKEY_get0_public_key"] + pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_get0_data"] - pub fn X509_ATTRIBUTE_get0_data( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - unused: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_it"] + pub static X509_EXTENSION_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_count"] - pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_new"] + pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_get0_object"] - pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_free"] + pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_get0_type"] - pub fn X509_ATTRIBUTE_get0_type( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - ) -> *mut ASN1_TYPE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_EXTENSION"] + pub fn d2i_X509_EXTENSION( + out: *mut *mut X509_EXTENSION, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_EXTENSION"] + pub fn i2d_X509_EXTENSION( + ex: *const X509_EXTENSION, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_dup"] + pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(a: *mut PKCS8_PRIV_KEY_INFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_create_by_NID"] + pub fn X509_EXTENSION_create_by_NID( + ex: *mut *mut X509_EXTENSION, + nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - a: *mut *mut PKCS8_PRIV_KEY_INFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_create_by_OBJ"] + pub fn X509_EXTENSION_create_by_OBJ( + ex: *mut *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - a: *const PKCS8_PRIV_KEY_INFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_get_object"] + pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_get_data"] + pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_get_critical"] + pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_object"] + pub fn X509_EXTENSION_set_object( + ex: *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_set0_param"] - pub fn X509_PUBKEY_set0_param( - pub_: *mut X509_PUBKEY, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - key: *mut u8, - key_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_critical"] + pub fn X509_EXTENSION_set_critical( + ex: *mut X509_EXTENSION, + crit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get0_param"] - pub fn X509_PUBKEY_get0_param( - out_obj: *mut *mut ASN1_OBJECT, - out_key: *mut *const u8, - out_key_len: *mut ::std::os::raw::c_int, - out_alg: *mut *mut X509_ALGOR, - pub_: *mut X509_PUBKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_data"] + pub fn X509_EXTENSION_set_data( + ex: *mut X509_EXTENSION, + data: *const ASN1_OCTET_STRING, ) -> ::std::os::raw::c_int; } +pub type sk_X509_EXTENSION_free_func = + ::std::option::Option; +pub type sk_X509_EXTENSION_copy_func = + ::std::option::Option *mut X509_EXTENSION>; +pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_EXTENSION, + arg2: *const *const X509_EXTENSION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_EXTENSION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get0_public_key"] - pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSIONS_it"] + pub static X509_EXTENSIONS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSIONS"] + pub fn d2i_X509_EXTENSIONS( + out: *mut *mut X509_EXTENSIONS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSIONS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_EXTENSIONS"] + pub fn i2d_X509_EXTENSIONS( + alg: *const X509_EXTENSIONS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *mut X509_TRUST; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_count"] + pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_get_ext_by_NID"] + pub fn X509v3_get_ext_by_NID( + x: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_add"] - pub fn X509_TRUST_add( - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_OBJ"] + pub fn X509v3_get_ext_by_OBJ( + x: *const stack_st_X509_EXTENSION, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_cleanup"] - pub fn X509_TRUST_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_critical"] + pub fn X509v3_get_ext_by_critical( + x: *const stack_st_X509_EXTENSION, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_get_ext"] + pub fn X509v3_get_ext( + x: *const stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_delete_ext"] + pub fn X509v3_delete_ext( + x: *mut stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509v3_add_ext"] + pub fn X509v3_add_ext( + x: *mut *mut stack_st_X509_EXTENSION, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut stack_st_X509_EXTENSION; } #[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, +pub struct otherName_st { + pub type_id: *mut ASN1_OBJECT, + pub value: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_otherName_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)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(otherName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) + concat!("Alignment of ", stringify!(otherName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(otherName_st), "::", - stringify!(hashAlgorithm) + stringify!(type_id) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(otherName_st), "::", - stringify!(maskGenAlgorithm) + stringify!(value) ) ); +} +impl Default for otherName_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() + } + } +} +pub type OTHERNAME = otherName_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct EDIPartyName_st { + pub nameAssigner: *mut ASN1_STRING, + pub partyName: *mut ASN1_STRING, +} +#[test] +fn bindgen_test_layout_EDIPartyName_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) + concat!("Size of: ", stringify!(EDIPartyName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(EDIPartyName_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(EDIPartyName_st), "::", - stringify!(trailerField) + stringify!(nameAssigner) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(rsa_pss_params_st), + stringify!(EDIPartyName_st), "::", - stringify!(maskHash) + stringify!(partyName) ) ); } -impl Default for rsa_pss_params_st { +impl Default for EDIPartyName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22424,1049 +20997,1142 @@ impl Default for rsa_pss_params_st { } } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(a: *mut RSA_PSS_PARAMS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - a: *mut *mut RSA_PSS_PARAMS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - a: *const RSA_PSS_PARAMS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_LOOKUP { - _unused: [u8; 0], -} -pub type sk_X509_LOOKUP_free_func = - ::std::option::Option; -pub type sk_X509_LOOKUP_copy_func = - ::std::option::Option *mut X509_LOOKUP>; -pub type sk_X509_LOOKUP_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_LOOKUP, - arg2: *mut *const X509_LOOKUP, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_LOOKUP_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_LOOKUP, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; +pub type EDIPARTYNAME = EDIPartyName_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], +#[derive(Copy, Clone)] +pub struct GENERAL_NAME_st { + pub type_: ::std::os::raw::c_int, + pub d: GENERAL_NAME_st__bindgen_ty_1, } -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: *mut *const X509_OBJECT, - arg2: *mut *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, ->; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_VERIFY_PARAM { - _unused: [u8; 0], -} -pub type sk_X509_VERIFY_PARAM_free_func = - ::std::option::Option; -pub type sk_X509_VERIFY_PARAM_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_VERIFY_PARAM) -> *mut X509_VERIFY_PARAM, ->; -pub type sk_X509_VERIFY_PARAM_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_VERIFY_PARAM, - arg2: *mut *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_VERIFY_PARAM_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_VERIFY_PARAM, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -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, ->; -pub type X509_STORE_CTX_verify_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_get_issuer_fn = ::std::option::Option< - unsafe extern "C" fn( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_issued_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - x: *mut X509, - issuer: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_revocation_fn = - ::std::option::Option ::std::os::raw::c_int>; -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, ->; -pub type X509_STORE_CTX_cert_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_policy_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_lookup_certs_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509, ->; -pub type X509_STORE_CTX_lookup_crls_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509_CRL, ->; -pub type X509_STORE_CTX_cleanup_fn = - ::std::option::Option ::std::os::raw::c_int>; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_OBJECT_idx_by_subject"] - pub fn X509_OBJECT_idx_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_retrieve_by_subject"] - pub fn X509_OBJECT_retrieve_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> *mut X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_retrieve_match"] - pub fn X509_OBJECT_retrieve_match( - h: *mut stack_st_X509_OBJECT, - x: *mut X509_OBJECT, - ) -> *mut X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_up_ref_count"] - pub fn X509_OBJECT_up_ref_count(a: *mut X509_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_free_contents"] - pub fn X509_OBJECT_free_contents(a: *mut X509_OBJECT); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(a: *const X509_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(a: *const X509_OBJECT) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_STORE_free"] - pub fn X509_STORE_free(v: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_STORE_get1_certs"] - pub fn X509_STORE_get1_certs(st: *mut X509_STORE_CTX, nm: *mut X509_NAME) - -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get1_crls"] - pub fn X509_STORE_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - ctx: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - ctx: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - ctx: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - ctx: *mut X509_STORE, - pm: *mut X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(ctx: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_verify"] - pub fn X509_STORE_set_verify(ctx: *mut X509_STORE, verify: X509_STORE_CTX_verify_fn); -} -extern "C" { - pub fn X509_STORE_CTX_set_verify(ctx: *mut X509_STORE_CTX, verify: X509_STORE_CTX_verify_fn); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_verify"] - pub fn X509_STORE_get_verify(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_fn; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(ctx: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_verify_cb"] - pub fn X509_STORE_get_verify_cb(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_cb; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_get_issuer"] - pub fn X509_STORE_set_get_issuer( - ctx: *mut X509_STORE, - get_issuer: X509_STORE_CTX_get_issuer_fn, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_get_issuer"] - pub fn X509_STORE_get_get_issuer(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_issuer_fn; +#[derive(Copy, Clone)] +pub union GENERAL_NAME_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub otherName: *mut OTHERNAME, + pub rfc822Name: *mut ASN1_IA5STRING, + pub dNSName: *mut ASN1_IA5STRING, + pub x400Address: *mut ASN1_STRING, + pub directoryName: *mut X509_NAME, + pub ediPartyName: *mut EDIPARTYNAME, + pub uniformResourceIdentifier: *mut ASN1_IA5STRING, + pub iPAddress: *mut ASN1_OCTET_STRING, + pub registeredID: *mut ASN1_OBJECT, + pub ip: *mut ASN1_OCTET_STRING, + pub dirn: *mut X509_NAME, + pub ia5: *mut ASN1_IA5STRING, + pub rid: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_check_issued"] - pub fn X509_STORE_set_check_issued( - ctx: *mut X509_STORE, - check_issued: X509_STORE_CTX_check_issued_fn, +#[test] +fn bindgen_test_layout_GENERAL_NAME_st__bindgen_ty_1() { + 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!(GENERAL_NAME_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(otherName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rfc822Name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dNSName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(x400Address) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(directoryName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ediPartyName) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ediPartyName) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(uniformResourceIdentifier) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(iPAddress) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(registeredID) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ip) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dirn) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ia5) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rid) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_issued"] - pub fn X509_STORE_get_check_issued(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_issued_fn; +impl Default for GENERAL_NAME_st__bindgen_ty_1 { + 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_fips_0_12_15_X509_STORE_set_check_revocation"] - pub fn X509_STORE_set_check_revocation( - ctx: *mut X509_STORE, - check_revocation: X509_STORE_CTX_check_revocation_fn, +#[test] +fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(d) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_revocation"] - pub fn X509_STORE_get_check_revocation( - ctx: *mut X509_STORE, - ) -> X509_STORE_CTX_check_revocation_fn; +impl Default for GENERAL_NAME_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_fips_0_12_15_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(ctx: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_new"] + pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_get_crl"] - pub fn X509_STORE_get_get_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_free"] + pub fn GENERAL_NAME_free(gen: *mut GENERAL_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(ctx: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAME"] + pub fn d2i_GENERAL_NAME( + out: *mut *mut GENERAL_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_crl"] - pub fn X509_STORE_get_check_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAME"] + pub fn i2d_GENERAL_NAME(in_: *mut GENERAL_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_cert_crl"] - pub fn X509_STORE_set_cert_crl(ctx: *mut X509_STORE, cert_crl: X509_STORE_CTX_cert_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_dup"] + pub fn GENERAL_NAME_dup(gen: *mut GENERAL_NAME) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_cert_crl"] - pub fn X509_STORE_get_cert_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_cert_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_new"] + pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_lookup_certs"] - pub fn X509_STORE_set_lookup_certs( - ctx: *mut X509_STORE, - lookup_certs: X509_STORE_CTX_lookup_certs_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_free"] + pub fn GENERAL_NAMES_free(gens: *mut GENERAL_NAMES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_lookup_certs"] - pub fn X509_STORE_get_lookup_certs(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_certs_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAMES"] + pub fn d2i_GENERAL_NAMES( + out: *mut *mut GENERAL_NAMES, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_lookup_crls"] - pub fn X509_STORE_set_lookup_crls( - ctx: *mut X509_STORE, - lookup_crls: X509_STORE_CTX_lookup_crls_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAMES"] + pub fn i2d_GENERAL_NAMES(in_: *mut GENERAL_NAMES, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_lookup_crls"] - pub fn X509_STORE_get_lookup_crls(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_crls_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_new"] + pub fn OTHERNAME_new() -> *mut OTHERNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_cleanup"] - pub fn X509_STORE_set_cleanup(ctx: *mut X509_STORE, cleanup: X509_STORE_CTX_cleanup_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_free"] + pub fn OTHERNAME_free(name: *mut OTHERNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_cleanup"] - pub fn X509_STORE_get_cleanup(ctx: *mut X509_STORE) -> X509_STORE_CTX_cleanup_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_new"] + pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_free"] + pub fn EDIPARTYNAME_free(name: *mut EDIPARTYNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_NAME_set0_value"] + pub fn GENERAL_NAME_set0_value( + gen: *mut GENERAL_NAME, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_zero"] - pub fn X509_STORE_CTX_zero(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_value"] + pub fn GENERAL_NAME_get0_value( + gen: *const GENERAL_NAME, + out_type: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_set0_othername"] + pub fn GENERAL_NAME_set0_othername( + gen: *mut GENERAL_NAME, + oid: *mut ASN1_OBJECT, + value: *mut ASN1_TYPE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_otherName"] + pub fn GENERAL_NAME_get0_otherName( + gen: *const GENERAL_NAME, + out_oid: *mut *mut ASN1_OBJECT, + out_value: *mut *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ALGOR { + _unused: [u8; 0], } +pub type sk_X509_ALGOR_free_func = + ::std::option::Option; +pub type sk_X509_ALGOR_copy_func = + ::std::option::Option *mut X509_ALGOR>; +pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ALGOR, + arg2: *const *const X509_ALGOR, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ALGOR, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_it"] + pub static X509_ALGOR_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_new"] + pub fn X509_ALGOR_new() -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_dup"] + pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *mut X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_free"] + pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ALGOR"] + pub fn d2i_X509_ALGOR( + out: *mut *mut X509_ALGOR, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ALGOR"] + pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_set0"] + pub fn X509_ALGOR_set0( + alg: *mut X509_ALGOR, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_get0"] + pub fn X509_ALGOR_get0( + out_obj: *mut *const ASN1_OBJECT, + out_param_type: *mut ::std::os::raw::c_int, + out_param_value: *mut *const ::std::os::raw::c_void, + alg: *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_by_subject"] - pub fn X509_STORE_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_set_md"] + pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_cmp"] + pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ATTRIBUTE { + _unused: [u8; 0], } +pub type sk_X509_ATTRIBUTE_free_func = + ::std::option::Option; +pub type sk_X509_ATTRIBUTE_copy_func = + ::std::option::Option *mut X509_ATTRIBUTE>; +pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ATTRIBUTE, + arg2: *const *const X509_ATTRIBUTE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ATTRIBUTE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_it"] + pub static X509_ATTRIBUTE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_new"] + pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_new"] - pub fn X509_LOOKUP_new(method: *mut X509_LOOKUP_METHOD) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_dup"] + pub fn X509_ATTRIBUTE_dup(attr: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_free"] + pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_init"] - pub fn X509_LOOKUP_init(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ATTRIBUTE"] + pub fn d2i_X509_ATTRIBUTE( + out: *mut *mut X509_ATTRIBUTE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_by_subject"] - pub fn X509_LOOKUP_by_subject( - ctx: *mut X509_LOOKUP, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ATTRIBUTE"] + pub fn i2d_X509_ATTRIBUTE( + alg: *const X509_ATTRIBUTE, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_LOOKUP_shutdown"] - pub fn X509_LOOKUP_shutdown(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create"] + pub fn X509_ATTRIBUTE_create( + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_NID"] + pub fn X509_ATTRIBUTE_create_by_NID( + attr: *mut *mut X509_ATTRIBUTE, + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_OBJ"] + pub fn X509_ATTRIBUTE_create_by_OBJ( + attr: *mut *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_txt"] + pub fn X509_ATTRIBUTE_create_by_txt( + attr: *mut *mut X509_ATTRIBUTE, + attrname: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_object"] + pub fn X509_ATTRIBUTE_set1_object( + attr: *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_set1_data"] + pub fn X509_ATTRIBUTE_set1_data( + attr: *mut X509_ATTRIBUTE, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_get0_data"] + pub fn X509_ATTRIBUTE_get0_data( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + unused: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_count"] + pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_get0_object"] + pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_get0_type"] + pub fn X509_ATTRIBUTE_get0_type( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + 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_fips_0_12_15_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( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_name"] - pub fn X509_VERIFY_PARAM_set1_name( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_depth"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set_time"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set_time_posix"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_add0_policy"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_policies"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_host"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add1_host"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, - namelen: usize, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set_hostflags"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get0_peername"] - pub fn X509_VERIFY_PARAM_get0_peername( - arg1: *mut X509_VERIFY_PARAM, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set1_email"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set1_ip"] + #[link_name = "\u{1}aws_lc_fips_0_13_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, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_set1_ip_asc"] + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_12_15_X509_VERIFY_PARAM_get0_name"] - pub fn X509_VERIFY_PARAM_get0_name( - param: *const X509_VERIFY_PARAM, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add0_table"] - pub fn X509_VERIFY_PARAM_add0_table(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get_count"] - pub fn X509_VERIFY_PARAM_get_count() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0"] - pub fn X509_VERIFY_PARAM_get0(id: ::std::os::raw::c_int) -> *const X509_VERIFY_PARAM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_lookup"] - pub fn X509_VERIFY_PARAM_lookup( - name: *const ::std::os::raw::c_char, - ) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_table_cleanup"] - pub fn X509_VERIFY_PARAM_table_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -pub type X509V3_EXT_METHOD = v3_ext_method; -pub type X509V3_EXT_NEW = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type X509V3_EXT_FREE = - ::std::option::Option; -pub type X509V3_EXT_D2I = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2D = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_I2V = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE, ->; -pub type X509V3_EXT_V2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - values: *const stack_st_CONF_VALUE, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2S = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; -pub type X509V3_EXT_S2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2R = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - out: *mut BIO, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_R2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_method { - pub ext_nid: ::std::os::raw::c_int, - pub ext_flags: ::std::os::raw::c_int, - pub it: *const ASN1_ITEM_st, - pub ext_new: X509V3_EXT_NEW, - pub ext_free: X509V3_EXT_FREE, - pub d2i: X509V3_EXT_D2I, - pub i2d: X509V3_EXT_I2D, - pub i2s: X509V3_EXT_I2S, - pub s2i: X509V3_EXT_S2I, - pub i2v: X509V3_EXT_I2V, - pub v2i: X509V3_EXT_V2I, - pub i2r: X509V3_EXT_I2R, - pub r2i: X509V3_EXT_R2I, - pub usr_data: *mut ::std::os::raw::c_void, +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_v3_ext_method() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 104usize, - concat!("Size of: ", stringify!(v3_ext_method)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(v3_ext_method)) + concat!("Alignment of ", stringify!(Netscape_spki_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_nid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spki_st), "::", - stringify!(ext_flags) + stringify!(spkac) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spki_st), "::", - stringify!(it) + stringify!(sig_algor) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spki_st), "::", - stringify!(d2i) + stringify!(signature) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2d) - ) +} +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_fips_0_13_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, +} +#[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!( - unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, - 48usize, + ::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!(v3_ext_method), + stringify!(Netscape_spkac_st), "::", - stringify!(i2s) + stringify!(pubkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(Netscape_spkac_st), "::", - stringify!(s2i) + stringify!(challenge) ) ); +} +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_fips_0_13_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::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, +} +#[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!( - unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, - 64usize, + ::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!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(i2v) + stringify!(hashAlgorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(v2i) + stringify!(maskGenAlgorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(i2r) + stringify!(saltLength) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, - 88usize, + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(r2i) + stringify!(trailerField) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 96usize, + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(v3_ext_method), + stringify!(rsa_pss_params_st), "::", - stringify!(usr_data) + stringify!(maskHash) ) ); } -impl Default for v3_ext_method { +impl Default for rsa_pss_params_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23475,361 +22141,944 @@ impl Default for v3_ext_method { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509V3_EXT_METHOD { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; } -pub type sk_X509V3_EXT_METHOD_free_func = - ::std::option::Option; -pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, ->; -pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509V3_EXT_METHOD, - arg2: *mut *const X509V3_EXT_METHOD, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509V3_EXT_METHOD, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct BASIC_CONSTRAINTS_st { - pub ca: ::std::os::raw::c_int, - pub pathlen: *mut ASN1_INTEGER, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_BASIC_CONSTRAINTS_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!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(ca) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(pathlen) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } -impl Default for BASIC_CONSTRAINTS_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_fips_0_13_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct otherName_st { - pub type_id: *mut ASN1_OBJECT, - pub value: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_otherName_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!(otherName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(otherName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(type_id) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; } -impl Default for otherName_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_fips_0_13_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; } -pub type OTHERNAME = otherName_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EDIPartyName_st { - pub nameAssigner: *mut ASN1_STRING, - pub partyName: *mut ASN1_STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_EDIPartyName_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!(EDIPartyName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EDIPartyName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(nameAssigner) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(partyName) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -impl Default for EDIPartyName_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_fips_0_13_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; } -pub type EDIPARTYNAME = EDIPartyName_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct GENERAL_NAME_st { - pub type_: ::std::os::raw::c_int, - pub d: GENERAL_NAME_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union GENERAL_NAME_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub otherName: *mut OTHERNAME, - pub rfc822Name: *mut ASN1_IA5STRING, - pub dNSName: *mut ASN1_IA5STRING, - pub x400Address: *mut ASN1_STRING, - pub directoryName: *mut X509_NAME, - pub ediPartyName: *mut EDIPARTYNAME, - pub uniformResourceIdentifier: *mut ASN1_IA5STRING, - pub iPAddress: *mut ASN1_OCTET_STRING, - pub registeredID: *mut ASN1_OBJECT, - pub ip: *mut ASN1_OCTET_STRING, - pub dirn: *mut X509_NAME, - pub ia5: *mut ASN1_IA5STRING, - pub rid: *mut ASN1_OBJECT, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_GENERAL_NAME_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + concat!("Size of: ", stringify!(private_key_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(otherName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(rfc822Name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(dNSName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(x400Address) - ) + concat!("Alignment of ", stringify!(private_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(private_key_st), "::", - stringify!(directoryName) + 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).ediPartyName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ediPartyName) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(uniformResourceIdentifier) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(iPAddress) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(registeredID) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ip) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(dirn) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ia5) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(rid) + stringify!(enc_data) ) ); } -impl Default for GENERAL_NAME_st__bindgen_ty_1 { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23838,127 +23087,116 @@ impl Default for GENERAL_NAME_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(d) - ) - ); -} -impl Default for GENERAL_NAME_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)] +pub struct stack_st_X509_INFO { + _unused: [u8; 0], } -pub type GENERAL_NAME = GENERAL_NAME_st; -pub type sk_GENERAL_NAME_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAME_copy_func = - ::std::option::Option *mut GENERAL_NAME>; -pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const GENERAL_NAME, - arg2: *mut *const GENERAL_NAME, - ) -> ::std::os::raw::c_int, ->; -pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut GENERAL_NAME, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type GENERAL_NAMES = stack_st_GENERAL_NAME; -pub type sk_GENERAL_NAMES_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAMES_copy_func = - ::std::option::Option *mut GENERAL_NAMES>; -pub type sk_GENERAL_NAMES_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: *mut *const GENERAL_NAMES, - arg2: *mut *const GENERAL_NAMES, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_NAMES_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_NAMES, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ACCESS_DESCRIPTION_st { - pub method: *mut ASN1_OBJECT, - pub location: *mut GENERAL_NAME, +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_ACCESS_DESCRIPTION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), - 16usize, - concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) + concat!("Alignment of ", stringify!(v3_ext_ctx)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(method) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(location) + 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 ACCESS_DESCRIPTION_st { +impl Default for v3_ext_ctx { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23967,138 +23205,317 @@ impl Default for ACCESS_DESCRIPTION_st { } } } -pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ACCESS_DESCRIPTION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -pub type sk_ACCESS_DESCRIPTION_free_func = - ::std::option::Option; -pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, ->; -pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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: *mut *const ACCESS_DESCRIPTION, - arg2: *mut *const ACCESS_DESCRIPTION, + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, ) -> ::std::os::raw::c_int, >; -pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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( - arg1: *mut ACCESS_DESCRIPTION, - arg2: *mut ::std::os::raw::c_void, + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, ) -> ::std::os::raw::c_int, >; -pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; -pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DIST_POINT_NAME_st { - pub type_: ::std::os::raw::c_int, - pub name: DIST_POINT_NAME_st__bindgen_ty_1, - pub dpname: *mut X509_NAME, +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_fips_0_13_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); } -#[repr(C)] -#[derive(Copy, Clone)] -pub union DIST_POINT_NAME_st__bindgen_ty_1 { - pub fullname: *mut GENERAL_NAMES, - pub relativename: *mut stack_st_X509_NAME_ENTRY, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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); } -#[test] -fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { - 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!(DIST_POINT_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!( - "Alignment of ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(fullname) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(relativename) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { - 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_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_DIST_POINT_NAME_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 24usize, - concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) + concat!("Alignment of ", stringify!(X509_algor_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(type_) + stringify!(algorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(dpname) + stringify!(parameter) ) ); } -impl Default for DIST_POINT_NAME_st { +impl Default for X509_algor_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24107,199 +23524,103 @@ impl Default for DIST_POINT_NAME_st { } } } -pub type DIST_POINT_NAME = DIST_POINT_NAME_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DIST_POINT_st { - pub distpoint: *mut DIST_POINT_NAME, - pub reasons: *mut ASN1_BIT_STRING, - pub CRLissuer: *mut GENERAL_NAMES, - pub dp_reasons: ::std::os::raw::c_int, +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, } #[test] -fn bindgen_test_layout_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 32usize, - concat!("Size of: ", stringify!(DIST_POINT_st)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_st)) + concat!("Alignment of ", stringify!(x509_trust_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(distpoint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(reasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(CRLissuer) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dp_reasons) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), + stringify!(x509_trust_st), "::", - stringify!(dp_reasons) + stringify!(trust) ) ); -} -impl Default for DIST_POINT_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() - } - } -} -pub type CRL_DIST_POINTS = stack_st_DIST_POINT; -pub type sk_DIST_POINT_free_func = - ::std::option::Option; -pub type sk_DIST_POINT_copy_func = - ::std::option::Option *mut DIST_POINT>; -pub type sk_DIST_POINT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const DIST_POINT, - arg2: *mut *const DIST_POINT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut DIST_POINT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct AUTHORITY_KEYID_st { - pub keyid: *mut ASN1_OCTET_STRING, - pub issuer: *mut GENERAL_NAMES, - pub serial: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_AUTHORITY_KEYID_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!(AUTHORITY_KEYID_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(keyid) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(issuer) + stringify!(check_trust) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(serial) + stringify!(name) ) ); -} -impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { - pub organization: *mut ASN1_STRING, - pub noticenos: *mut stack_st_ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_NOTICEREF_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!(NOTICEREF_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NOTICEREF_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(organization) + stringify!(arg1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(noticenos) + stringify!(arg2) ) ); } -impl Default for NOTICEREF_st { +impl Default for x509_trust_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24308,391 +23629,495 @@ impl Default for NOTICEREF_st { } } } -pub type NOTICEREF = NOTICEREF_st; +#[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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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>; +pub type X509V3_EXT_FREE = + ::std::option::Option; +pub type X509V3_EXT_D2I = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2D = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_I2V = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE, +>; +pub type X509V3_EXT_V2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + values: *const stack_st_CONF_VALUE, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2S = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; +pub type X509V3_EXT_S2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2R = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + out: *mut BIO, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_R2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct USERNOTICE_st { - pub noticeref: *mut NOTICEREF, - pub exptext: *mut ASN1_STRING, +pub struct v3_ext_method { + pub ext_nid: ::std::os::raw::c_int, + pub ext_flags: ::std::os::raw::c_int, + pub it: *const ASN1_ITEM_st, + pub ext_new: X509V3_EXT_NEW, + pub ext_free: X509V3_EXT_FREE, + pub d2i: X509V3_EXT_D2I, + pub i2d: X509V3_EXT_I2D, + pub i2s: X509V3_EXT_I2S, + pub s2i: X509V3_EXT_S2I, + pub i2v: X509V3_EXT_I2V, + pub v2i: X509V3_EXT_V2I, + pub i2r: X509V3_EXT_I2R, + pub r2i: X509V3_EXT_R2I, + pub usr_data: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_USERNOTICE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_v3_ext_method() { + 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!(USERNOTICE_st)) + ::std::mem::size_of::(), + 104usize, + concat!("Size of: ", stringify!(v3_ext_method)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(USERNOTICE_st)) + concat!("Alignment of ", stringify!(v3_ext_method)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(noticeref) + stringify!(ext_nid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(exptext) + stringify!(ext_flags) ) ); -} -impl Default for USERNOTICE_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() - } - } -} -pub type USERNOTICE = USERNOTICE_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct POLICYQUALINFO_st { - pub pqualid: *mut ASN1_OBJECT, - pub d: POLICYQUALINFO_st__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union POLICYQUALINFO_st__bindgen_ty_1 { - pub cpsuri: *mut ASN1_IA5STRING, - pub usernotice: *mut USERNOTICE, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { - 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!(POLICYQUALINFO_st__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(cpsuri) + stringify!(it) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(usernotice) + stringify!(ext_new) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(other) + stringify!(ext_free) ) ); -} -impl Default for POLICYQUALINFO_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(pqualid) + stringify!(d2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(d) + stringify!(i2d) ) ); -} -impl Default for POLICYQUALINFO_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() - } - } -} -pub type POLICYQUALINFO = POLICYQUALINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYQUALINFO { - _unused: [u8; 0], -} -pub type sk_POLICYQUALINFO_free_func = - ::std::option::Option; -pub type sk_POLICYQUALINFO_copy_func = - ::std::option::Option *mut POLICYQUALINFO>; -pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYQUALINFO, - arg2: *mut *const POLICYQUALINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYQUALINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICYINFO_st { - pub policyid: *mut ASN1_OBJECT, - pub qualifiers: *mut stack_st_POLICYQUALINFO, -} -#[test] -fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYINFO_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, - 0usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(policyid) + stringify!(i2s) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(qualifiers) + stringify!(s2i) ) ); -} -impl Default for POLICYINFO_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() - } - } -} -pub type POLICYINFO = POLICYINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYINFO { - _unused: [u8; 0], -} -pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; -pub type sk_POLICYINFO_free_func = - ::std::option::Option; -pub type sk_POLICYINFO_copy_func = - ::std::option::Option *mut POLICYINFO>; -pub type sk_POLICYINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYINFO, - arg2: *mut *const POLICYINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_MAPPING_st { - pub issuerDomainPolicy: *mut ASN1_OBJECT, - pub subjectDomainPolicy: *mut ASN1_OBJECT, -} -#[test] -fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(issuerDomainPolicy) + stringify!(i2v) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(subjectDomainPolicy) + stringify!(v2i) ) ); -} -impl Default for POLICY_MAPPING_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() - } - } -} -pub type POLICY_MAPPING = POLICY_MAPPING_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICY_MAPPING { - _unused: [u8; 0], -} -pub type sk_POLICY_MAPPING_free_func = - ::std::option::Option; -pub type sk_POLICY_MAPPING_copy_func = - ::std::option::Option *mut POLICY_MAPPING>; -pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICY_MAPPING, - arg2: *mut *const POLICY_MAPPING, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICY_MAPPING, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct GENERAL_SUBTREE_st { - pub base: *mut GENERAL_NAME, - pub minimum: *mut ASN1_INTEGER, - pub maximum: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(base) + stringify!(i2r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(minimum) + stringify!(r2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(maximum) + stringify!(usr_data) ) ); } -impl Default for GENERAL_SUBTREE_st { +impl Default for v3_ext_method { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24701,71 +24126,70 @@ impl Default for GENERAL_SUBTREE_st { } } } -pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_SUBTREE { +pub struct stack_st_X509V3_EXT_METHOD { _unused: [u8; 0], } -pub type sk_GENERAL_SUBTREE_free_func = - ::std::option::Option; -pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +pub type sk_X509V3_EXT_METHOD_free_func = + ::std::option::Option; +pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, >; -pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const GENERAL_SUBTREE, - arg2: *mut *const GENERAL_SUBTREE, + arg1: *const *const X509V3_EXT_METHOD, + arg2: *const *const X509V3_EXT_METHOD, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_SUBTREE, + arg1: *mut X509V3_EXT_METHOD, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct NAME_CONSTRAINTS_st { - pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, - pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, +pub struct BASIC_CONSTRAINTS_st { + pub ca: ::std::os::raw::c_int, + pub pathlen: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_NAME_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_BASIC_CONSTRAINTS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(permittedSubtrees) + stringify!(ca) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(excludedSubtrees) + stringify!(pathlen) ) ); } -impl Default for NAME_CONSTRAINTS_st { +impl Default for BASIC_CONSTRAINTS_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24776,47 +24200,47 @@ impl Default for NAME_CONSTRAINTS_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_CONSTRAINTS_st { - pub requireExplicitPolicy: *mut ASN1_INTEGER, - pub inhibitPolicyMapping: *mut ASN1_INTEGER, +pub struct ACCESS_DESCRIPTION_st { + pub method: *mut ASN1_OBJECT, + pub location: *mut GENERAL_NAME, } #[test] -fn bindgen_test_layout_POLICY_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = +fn bindgen_test_layout_ACCESS_DESCRIPTION_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(requireExplicitPolicy) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(inhibitPolicyMapping) + stringify!(location) ) ); } -impl Default for POLICY_CONSTRAINTS_st { +impl Default for ACCESS_DESCRIPTION_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24825,49 +24249,84 @@ impl Default for POLICY_CONSTRAINTS_st { } } } -pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ACCESS_DESCRIPTION { + _unused: [u8; 0], +} +pub type sk_ACCESS_DESCRIPTION_free_func = + ::std::option::Option; +pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, +>; +pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ACCESS_DESCRIPTION, + arg2: *const *const ACCESS_DESCRIPTION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ACCESS_DESCRIPTION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; +pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DIST_POINT_NAME_st { + pub type_: ::std::os::raw::c_int, + pub name: DIST_POINT_NAME_st__bindgen_ty_1, + pub dpname: *mut X509_NAME, +} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_POLICY_st { - pub policyLanguage: *mut ASN1_OBJECT, - pub policy: *mut ASN1_OCTET_STRING, +#[derive(Copy, Clone)] +pub union DIST_POINT_NAME_st__bindgen_ty_1 { + pub fullname: *mut GENERAL_NAMES, + pub relativename: *mut stack_st_X509_NAME_ENTRY, } #[test] -fn bindgen_test_layout_PROXY_POLICY_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { + 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!(PROXY_POLICY_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_POLICY_st)) + concat!( + "Alignment of ", + stringify!(DIST_POINT_NAME_st__bindgen_ty_1) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyLanguage) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policyLanguage) + stringify!(fullname) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policy) + stringify!(relativename) ) ); } -impl Default for PROXY_POLICY_st { +impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24876,50 +24335,52 @@ impl Default for PROXY_POLICY_st { } } } -pub type PROXY_POLICY = PROXY_POLICY_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_CERT_INFO_EXTENSION_st { - pub pcPathLengthConstraint: *mut ASN1_INTEGER, - pub proxyPolicy: *mut PROXY_POLICY, -} #[test] -fn bindgen_test_layout_PROXY_CERT_INFO_EXTENSION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_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!(PROXY_CERT_INFO_EXTENSION_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_CERT_INFO_EXTENSION_st)) + concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pcPathLengthConstraint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), "::", - stringify!(pcPathLengthConstraint) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).proxyPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(DIST_POINT_NAME_st), "::", - stringify!(proxyPolicy) + stringify!(dpname) ) ); } -impl Default for PROXY_CERT_INFO_EXTENSION_st { +impl Default for DIST_POINT_NAME_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24928,148 +24389,60 @@ impl Default for PROXY_CERT_INFO_EXTENSION_st { } } } -pub type PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_new"] - pub fn PROXY_POLICY_new() -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_free"] - pub fn PROXY_POLICY_free(a: *mut PROXY_POLICY); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_POLICY"] - pub fn d2i_PROXY_POLICY( - a: *mut *mut PROXY_POLICY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_POLICY"] - pub fn i2d_PROXY_POLICY( - a: *const PROXY_POLICY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_it"] - pub static PROXY_POLICY_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_new"] - pub fn PROXY_CERT_INFO_EXTENSION_new() -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_free"] - pub fn PROXY_CERT_INFO_EXTENSION_free(a: *mut PROXY_CERT_INFO_EXTENSION); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_CERT_INFO_EXTENSION"] - pub fn d2i_PROXY_CERT_INFO_EXTENSION( - a: *mut *mut PROXY_CERT_INFO_EXTENSION, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_CERT_INFO_EXTENSION"] - pub fn i2d_PROXY_CERT_INFO_EXTENSION( - a: *const PROXY_CERT_INFO_EXTENSION, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_it"] - pub static PROXY_CERT_INFO_EXTENSION_it: ASN1_ITEM; -} +pub type DIST_POINT_NAME = DIST_POINT_NAME_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ISSUING_DIST_POINT_st { +pub struct DIST_POINT_st { pub distpoint: *mut DIST_POINT_NAME, - pub onlyuser: ::std::os::raw::c_int, - pub onlyCA: ::std::os::raw::c_int, - pub onlysomereasons: *mut ASN1_BIT_STRING, - pub indirectCRL: ::std::os::raw::c_int, - pub onlyattr: ::std::os::raw::c_int, + pub reasons: *mut ASN1_BIT_STRING, + pub CRLissuer: *mut GENERAL_NAMES, } #[test] -fn bindgen_test_layout_ISSUING_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + concat!("Alignment of ", stringify!(DIST_POINT_st)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", stringify!(distpoint) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlyuser) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyCA) + stringify!(reasons) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlysomereasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(indirectCRL) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyattr) + stringify!(CRLissuer) ) ); } -impl Default for ISSUING_DIST_POINT_st { +impl Default for DIST_POINT_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25078,109 +24451,126 @@ impl Default for ISSUING_DIST_POINT_st { } } } +pub type CRL_DIST_POINTS = stack_st_DIST_POINT; +pub type sk_DIST_POINT_free_func = + ::std::option::Option; +pub type sk_DIST_POINT_copy_func = + ::std::option::Option *mut DIST_POINT>; +pub type sk_DIST_POINT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const DIST_POINT, + arg2: *const *const DIST_POINT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut DIST_POINT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_purpose_st { - pub purpose: ::std::os::raw::c_int, - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_purpose: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const x509_purpose_st, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub sname: *mut ::std::os::raw::c_char, - pub usr_data: *mut ::std::os::raw::c_void, +pub struct AUTHORITY_KEYID_st { + pub keyid: *mut ASN1_OCTET_STRING, + pub issuer: *mut GENERAL_NAMES, + pub serial: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_x509_purpose_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_AUTHORITY_KEYID_st() { + 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!(x509_purpose_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_purpose_st)) + concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(purpose) + stringify!(keyid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(trust) + stringify!(issuer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(flags) + stringify!(serial) ) ); +} +impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { + pub organization: *mut ASN1_STRING, + pub noticenos: *mut stack_st_ASN1_INTEGER, +} +#[test] +fn bindgen_test_layout_NOTICEREF_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(check_purpose) - ) + concat!("Size of: ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(name) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(sname) + stringify!(organization) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(usr_data) + stringify!(noticenos) ) ); } -impl Default for x509_purpose_st { +impl Default for NOTICEREF_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25189,1182 +24579,1291 @@ impl Default for x509_purpose_st { } } } -pub type X509_PURPOSE = x509_purpose_st; +pub type NOTICEREF = NOTICEREF_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_PURPOSE { - _unused: [u8; 0], -} -pub type sk_X509_PURPOSE_free_func = - ::std::option::Option; -pub type sk_X509_PURPOSE_copy_func = - ::std::option::Option *mut X509_PURPOSE>; -pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_PURPOSE, - arg2: *mut *const X509_PURPOSE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_PURPOSE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_new"] - pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_free"] - pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_BASIC_CONSTRAINTS"] - pub fn d2i_BASIC_CONSTRAINTS( - a: *mut *mut BASIC_CONSTRAINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_BASIC_CONSTRAINTS"] - pub fn i2d_BASIC_CONSTRAINTS( - a: *const BASIC_CONSTRAINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_it"] - pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_new"] - pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_free"] - pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_KEYID"] - pub fn d2i_AUTHORITY_KEYID( - a: *mut *mut AUTHORITY_KEYID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_KEYID"] - pub fn i2d_AUTHORITY_KEYID( - a: *mut AUTHORITY_KEYID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_it"] - pub static AUTHORITY_KEYID_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_new"] - pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_free"] - pub fn GENERAL_NAME_free(a: *mut GENERAL_NAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAME"] - pub fn d2i_GENERAL_NAME( - a: *mut *mut GENERAL_NAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAME"] - pub fn i2d_GENERAL_NAME( - a: *mut GENERAL_NAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_it"] - pub static GENERAL_NAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_dup"] - pub fn GENERAL_NAME_dup(a: *mut GENERAL_NAME) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_cmp"] - pub fn GENERAL_NAME_cmp( - a: *const GENERAL_NAME, - b: *const GENERAL_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *mut GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_new"] - pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_free"] - pub fn GENERAL_NAMES_free(a: *mut GENERAL_NAMES); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAMES"] - pub fn d2i_GENERAL_NAMES( - a: *mut *mut GENERAL_NAMES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAMES"] - pub fn i2d_GENERAL_NAMES( - a: *mut GENERAL_NAMES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_it"] - pub static GENERAL_NAMES_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAMES"] - pub fn v2i_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - nval: *const stack_st_CONF_VALUE, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_new"] - pub fn OTHERNAME_new() -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_free"] - pub fn OTHERNAME_free(a: *mut OTHERNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OTHERNAME"] - pub fn d2i_OTHERNAME( - a: *mut *mut OTHERNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OTHERNAME"] - pub fn i2d_OTHERNAME( - a: *const OTHERNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_it"] - pub static OTHERNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_new"] - pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_free"] - pub fn EDIPARTYNAME_free(a: *mut EDIPARTYNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EDIPARTYNAME"] - pub fn d2i_EDIPARTYNAME( - a: *mut *mut EDIPARTYNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EDIPARTYNAME"] - pub fn i2d_EDIPARTYNAME( - a: *const EDIPARTYNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_it"] - pub static EDIPARTYNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_cmp"] - pub fn OTHERNAME_cmp(a: *mut OTHERNAME, b: *mut OTHERNAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_value"] - pub fn GENERAL_NAME_set0_value( - a: *mut GENERAL_NAME, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_value"] - pub fn GENERAL_NAME_get0_value( - a: *const GENERAL_NAME, - ptype: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_othername"] - pub fn GENERAL_NAME_set0_othername( - gen: *mut GENERAL_NAME, - oid: *mut ASN1_OBJECT, - value: *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_otherName"] - pub fn GENERAL_NAME_get0_otherName( - gen: *const GENERAL_NAME, - poid: *mut *mut ASN1_OBJECT, - pvalue: *mut *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ia5: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_EXTENDED_KEY_USAGE_new"] - pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_free"] - pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EXTENDED_KEY_USAGE"] - pub fn d2i_EXTENDED_KEY_USAGE( - a: *mut *mut EXTENDED_KEY_USAGE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EXTENDED_KEY_USAGE"] - pub fn i2d_EXTENDED_KEY_USAGE( - a: *const EXTENDED_KEY_USAGE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_it"] - pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ACCESS_DESCRIPTION"] - pub fn i2a_ACCESS_DESCRIPTION( - bp: *mut BIO, - a: *const ACCESS_DESCRIPTION, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_new"] - pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct USERNOTICE_st { + pub noticeref: *mut NOTICEREF, + pub exptext: *mut ASN1_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_free"] - pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); +#[test] +fn bindgen_test_layout_USERNOTICE_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!(USERNOTICE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(USERNOTICE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(noticeref) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(exptext) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CERTIFICATEPOLICIES"] - pub fn d2i_CERTIFICATEPOLICIES( - a: *mut *mut CERTIFICATEPOLICIES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CERTIFICATEPOLICIES; +impl Default for USERNOTICE_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_fips_0_12_15_i2d_CERTIFICATEPOLICIES"] - pub fn i2d_CERTIFICATEPOLICIES( - a: *const CERTIFICATEPOLICIES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type USERNOTICE = USERNOTICE_st; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct POLICYQUALINFO_st { + pub pqualid: *mut ASN1_OBJECT, + pub d: POLICYQUALINFO_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_it"] - pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; +#[repr(C)] +#[derive(Copy, Clone)] +pub union POLICYQUALINFO_st__bindgen_ty_1 { + pub cpsuri: *mut ASN1_IA5STRING, + pub usernotice: *mut USERNOTICE, + pub other: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_new"] - pub fn POLICYINFO_new() -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { + 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!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(cpsuri) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(usernotice) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_free"] - pub fn POLICYINFO_free(a: *mut POLICYINFO); +impl Default for POLICYQUALINFO_st__bindgen_ty_1 { + 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_fips_0_12_15_d2i_POLICYINFO"] - pub fn d2i_POLICYINFO( - a: *mut *mut POLICYINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(pqualid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_POLICYINFO"] - pub fn i2d_POLICYINFO( - a: *const POLICYINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for POLICYQUALINFO_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_fips_0_12_15_POLICYINFO_it"] - pub static POLICYINFO_it: ASN1_ITEM; +pub type POLICYQUALINFO = POLICYQUALINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYQUALINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_new"] - pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; +pub type sk_POLICYQUALINFO_free_func = + ::std::option::Option; +pub type sk_POLICYQUALINFO_copy_func = + ::std::option::Option *mut POLICYQUALINFO>; +pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYQUALINFO, + arg2: *const *const POLICYQUALINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYQUALINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICYINFO_st { + pub policyid: *mut ASN1_OBJECT, + pub qualifiers: *mut stack_st_POLICYQUALINFO, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_free"] - pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); +#[test] +fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(policyid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(qualifiers) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_POLICYQUALINFO"] - pub fn d2i_POLICYQUALINFO( - a: *mut *mut POLICYQUALINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYQUALINFO; +impl Default for POLICYINFO_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_fips_0_12_15_i2d_POLICYQUALINFO"] - pub fn i2d_POLICYQUALINFO( - a: *const POLICYQUALINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICYINFO = POLICYINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_it"] - pub static POLICYQUALINFO_it: ASN1_ITEM; +pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; +pub type sk_POLICYINFO_free_func = + ::std::option::Option; +pub type sk_POLICYINFO_copy_func = + ::std::option::Option *mut POLICYINFO>; +pub type sk_POLICYINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYINFO, + arg2: *const *const POLICYINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_MAPPING_st { + pub issuerDomainPolicy: *mut ASN1_OBJECT, + pub subjectDomainPolicy: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_new"] - pub fn USERNOTICE_new() -> *mut USERNOTICE; +#[test] +fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(issuerDomainPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(subjectDomainPolicy) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_free"] - pub fn USERNOTICE_free(a: *mut USERNOTICE); +impl Default for POLICY_MAPPING_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_fips_0_12_15_d2i_USERNOTICE"] - pub fn d2i_USERNOTICE( - a: *mut *mut USERNOTICE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut USERNOTICE; +pub type POLICY_MAPPING = POLICY_MAPPING_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICY_MAPPING { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_USERNOTICE"] - pub fn i2d_USERNOTICE( - a: *const USERNOTICE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type sk_POLICY_MAPPING_free_func = + ::std::option::Option; +pub type sk_POLICY_MAPPING_copy_func = + ::std::option::Option *mut POLICY_MAPPING>; +pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICY_MAPPING, + arg2: *const *const POLICY_MAPPING, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICY_MAPPING, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct GENERAL_SUBTREE_st { + pub base: *mut GENERAL_NAME, + pub minimum: *mut ASN1_INTEGER, + pub maximum: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_it"] - pub static USERNOTICE_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(minimum) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(maximum) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_new"] - pub fn NOTICEREF_new() -> *mut NOTICEREF; +impl Default for GENERAL_SUBTREE_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_fips_0_12_15_NOTICEREF_free"] - pub fn NOTICEREF_free(a: *mut NOTICEREF); +pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_SUBTREE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NOTICEREF"] - pub fn d2i_NOTICEREF( - a: *mut *mut NOTICEREF, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NOTICEREF; +pub type sk_GENERAL_SUBTREE_free_func = + ::std::option::Option; +pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +>; +pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_SUBTREE, + arg2: *const *const GENERAL_SUBTREE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_SUBTREE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct NAME_CONSTRAINTS_st { + pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, + pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NOTICEREF"] - pub fn i2d_NOTICEREF( - a: *const NOTICEREF, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_NAME_CONSTRAINTS_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!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(permittedSubtrees) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(excludedSubtrees) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_it"] - pub static NOTICEREF_it: ASN1_ITEM; +impl Default for NAME_CONSTRAINTS_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_fips_0_12_15_CRL_DIST_POINTS_new"] - pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_CONSTRAINTS_st { + pub requireExplicitPolicy: *mut ASN1_INTEGER, + pub inhibitPolicyMapping: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_free"] - pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); +#[test] +fn bindgen_test_layout_POLICY_CONSTRAINTS_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!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(requireExplicitPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(inhibitPolicyMapping) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CRL_DIST_POINTS"] - pub fn d2i_CRL_DIST_POINTS( - a: *mut *mut CRL_DIST_POINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CRL_DIST_POINTS; +impl Default for POLICY_CONSTRAINTS_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_fips_0_12_15_i2d_CRL_DIST_POINTS"] - pub fn i2d_CRL_DIST_POINTS( - a: *mut CRL_DIST_POINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ISSUING_DIST_POINT_st { + pub distpoint: *mut DIST_POINT_NAME, + pub onlyuser: ASN1_BOOLEAN, + pub onlyCA: ASN1_BOOLEAN, + pub onlysomereasons: *mut ASN1_BIT_STRING, + pub indirectCRL: ASN1_BOOLEAN, + pub onlyattr: ASN1_BOOLEAN, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_it"] - pub static CRL_DIST_POINTS_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_ISSUING_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(distpoint) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyuser) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyCA) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlysomereasons) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(indirectCRL) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyattr) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_new"] - pub fn DIST_POINT_new() -> *mut DIST_POINT; +impl Default for ISSUING_DIST_POINT_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_fips_0_12_15_DIST_POINT_free"] - pub fn DIST_POINT_free(a: *mut DIST_POINT); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_purpose_st { + pub purpose: ::std::os::raw::c_int, + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_purpose: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const x509_purpose_st, + arg2: *const X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub sname: *mut ::std::os::raw::c_char, + pub usr_data: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT"] - pub fn d2i_DIST_POINT( - a: *mut *mut DIST_POINT, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT; +#[test] +fn bindgen_test_layout_x509_purpose_st() { + 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!(x509_purpose_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_purpose_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(check_purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(sname) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(usr_data) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT"] - pub fn i2d_DIST_POINT( - a: *mut DIST_POINT, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for x509_purpose_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_fips_0_12_15_DIST_POINT_it"] - pub static DIST_POINT_it: ASN1_ITEM; +pub type X509_PURPOSE = x509_purpose_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_PURPOSE { + _unused: [u8; 0], } +pub type sk_X509_PURPOSE_free_func = + ::std::option::Option; +pub type sk_X509_PURPOSE_copy_func = + ::std::option::Option *mut X509_PURPOSE>; +pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_PURPOSE, + arg2: *const *const X509_PURPOSE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_PURPOSE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_new"] - pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_new"] + pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_free"] - pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_free"] + pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT_NAME"] - pub fn d2i_DIST_POINT_NAME( - a: *mut *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_BASIC_CONSTRAINTS"] + pub fn d2i_BASIC_CONSTRAINTS( + a: *mut *mut BASIC_CONSTRAINTS, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT_NAME; + ) -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT_NAME"] - pub fn i2d_DIST_POINT_NAME( - a: *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_BASIC_CONSTRAINTS"] + pub fn i2d_BASIC_CONSTRAINTS( + a: *const BASIC_CONSTRAINTS, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_it"] - pub static DIST_POINT_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_it"] + pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_new"] - pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_new"] + pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_free"] - pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_free"] + pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ISSUING_DIST_POINT"] - pub fn d2i_ISSUING_DIST_POINT( - a: *mut *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_KEYID"] + pub fn d2i_AUTHORITY_KEYID( + a: *mut *mut AUTHORITY_KEYID, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ISSUING_DIST_POINT; + ) -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ISSUING_DIST_POINT"] - pub fn i2d_ISSUING_DIST_POINT( - a: *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_KEYID"] + pub fn i2d_AUTHORITY_KEYID( + a: *mut AUTHORITY_KEYID, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_it"] - pub static ISSUING_DIST_POINT_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_set_dpname"] - pub fn DIST_POINT_set_dpname( - dpn: *mut DIST_POINT_NAME, - iname: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check(x: *mut X509, nc: *mut NAME_CONSTRAINTS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_it"] + pub static AUTHORITY_KEYID_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_new"] - pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_new"] + pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_free"] - pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_free"] + pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ACCESS_DESCRIPTION"] - pub fn d2i_ACCESS_DESCRIPTION( - a: *mut *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EXTENDED_KEY_USAGE"] + pub fn d2i_EXTENDED_KEY_USAGE( + a: *mut *mut EXTENDED_KEY_USAGE, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ACCESS_DESCRIPTION; + ) -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ACCESS_DESCRIPTION"] - pub fn i2d_ACCESS_DESCRIPTION( - a: *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EXTENDED_KEY_USAGE"] + pub fn i2d_EXTENDED_KEY_USAGE( + a: *const EXTENDED_KEY_USAGE, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_it"] - pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_it"] + pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_new"] - pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_new"] + pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_free"] - pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_free"] + pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_INFO_ACCESS"] - pub fn d2i_AUTHORITY_INFO_ACCESS( - a: *mut *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CERTIFICATEPOLICIES"] + pub fn d2i_CERTIFICATEPOLICIES( + a: *mut *mut CERTIFICATEPOLICIES, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_INFO_ACCESS; + ) -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_INFO_ACCESS"] - pub fn i2d_AUTHORITY_INFO_ACCESS( - a: *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CERTIFICATEPOLICIES"] + pub fn i2d_CERTIFICATEPOLICIES( + a: *const CERTIFICATEPOLICIES, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_it"] - pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_it"] - pub static POLICY_MAPPING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_new"] - pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_free"] - pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPINGS_it"] - pub static POLICY_MAPPINGS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_it"] - pub static GENERAL_SUBTREE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_new"] - pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_free"] - pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_it"] - pub static NAME_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_new"] - pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_free"] - pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_new"] - pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_free"] - pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_it"] - pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_GENERAL_NAME"] - pub fn a2i_GENERAL_NAME( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - gen_type: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME"] - pub fn v2i_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME_ex"] - pub fn v2i_GENERAL_NAME_ex( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_it"] + pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); -} -#[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) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYINFO_new"] + pub fn POLICYINFO_new() -> *mut POLICYINFO; } -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_fips_0_13_0_POLICYINFO_free"] + pub fn POLICYINFO_free(a: *mut POLICYINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYINFO"] + pub fn d2i_POLICYINFO( + a: *mut *mut POLICYINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYINFO"] + pub fn i2d_POLICYINFO( + a: *const POLICYINFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYINFO_it"] + pub static POLICYINFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_new"] + pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_free"] + pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYQUALINFO"] + pub fn d2i_POLICYQUALINFO( + a: *mut *mut POLICYQUALINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYQUALINFO"] + pub fn i2d_POLICYQUALINFO( + a: *const POLICYQUALINFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYQUALINFO_it"] + pub static POLICYQUALINFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_new"] + pub fn USERNOTICE_new() -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_free"] + pub fn USERNOTICE_free(a: *mut USERNOTICE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_USERNOTICE"] + pub fn d2i_USERNOTICE( + a: *mut *mut USERNOTICE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_USERNOTICE"] + pub fn i2d_USERNOTICE( + a: *const USERNOTICE, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_it"] + pub static USERNOTICE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_new"] + pub fn NOTICEREF_new() -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_free"] + pub fn NOTICEREF_free(a: *mut NOTICEREF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_NOTICEREF"] + pub fn d2i_NOTICEREF( + a: *mut *mut NOTICEREF, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_NOTICEREF"] + pub fn i2d_NOTICEREF( + a: *const NOTICEREF, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_it"] + pub static NOTICEREF_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_new"] + pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_free"] + pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add"] - pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CRL_DIST_POINTS"] + pub fn d2i_CRL_DIST_POINTS( + a: *mut *mut CRL_DIST_POINTS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_list"] - pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CRL_DIST_POINTS"] + pub fn i2d_CRL_DIST_POINTS( + a: *mut CRL_DIST_POINTS, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_alias"] - pub fn X509V3_EXT_add_alias( - nid_to: ::std::os::raw::c_int, - nid_from: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_it"] + pub static CRL_DIST_POINTS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_new"] + pub fn DIST_POINT_new() -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_free"] + pub fn DIST_POINT_free(a: *mut DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT"] + pub fn d2i_DIST_POINT( + a: *mut *mut DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIST_POINT"] + pub fn i2d_DIST_POINT( + a: *mut DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_cleanup"] - pub fn X509V3_EXT_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_it"] + pub static DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get"] - pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_new"] + pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get_nid"] - pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_free"] + pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT_NAME"] + pub fn d2i_DIST_POINT_NAME( + a: *mut *mut DIST_POINT_NAME, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_DIST_POINT_NAME"] + pub fn i2d_DIST_POINT_NAME( + a: *mut DIST_POINT_NAME, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_d2i"] - pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_it"] + pub static DIST_POINT_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_get_d2i"] - pub fn X509V3_get_d2i( - extensions: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_new"] + pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_free"] - pub fn X509V3_EXT_free( - nid: ::std::os::raw::c_int, - ext_data: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_free"] + pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ISSUING_DIST_POINT"] + pub fn d2i_ISSUING_DIST_POINT( + a: *mut *mut ISSUING_DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ISSUING_DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ISSUING_DIST_POINT"] + pub fn i2d_ISSUING_DIST_POINT( + a: *mut ISSUING_DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_i2d"] - pub fn X509V3_EXT_i2d( - ext_nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - ext_struc: *mut ::std::os::raw::c_void, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_it"] + pub static ISSUING_DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add1_i2d"] - pub fn X509V3_add1_i2d( - x: *mut *mut stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_set_dpname"] + pub fn DIST_POINT_set_dpname( + dpn: *mut DIST_POINT_NAME, + iname: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_val_prn"] - pub fn X509V3_EXT_val_prn( - out: *mut BIO, - val: *const stack_st_CONF_VALUE, - indent: ::std::os::raw::c_int, - ml: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ACCESS_DESCRIPTION_new"] + pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_free"] + pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ACCESS_DESCRIPTION"] + pub fn d2i_ACCESS_DESCRIPTION( + a: *mut *mut ACCESS_DESCRIPTION, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ACCESS_DESCRIPTION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ACCESS_DESCRIPTION"] + pub fn i2d_ACCESS_DESCRIPTION( + a: *mut ACCESS_DESCRIPTION, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_it"] + pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_new"] + pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_free"] + pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_INFO_ACCESS"] + pub fn d2i_AUTHORITY_INFO_ACCESS( + a: *mut *mut AUTHORITY_INFO_ACCESS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_INFO_ACCESS"] + pub fn i2d_AUTHORITY_INFO_ACCESS( + a: *mut AUTHORITY_INFO_ACCESS, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_it"] + pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ca"] - pub fn X509_check_ca(x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_it"] + pub static POLICY_MAPPING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_new"] + pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_free"] + pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_set"] - pub fn X509_PURPOSE_set( - p: *mut ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPINGS_it"] + pub static POLICY_MAPPINGS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_SUBTREE_it"] + pub static GENERAL_SUBTREE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_akid"] - pub fn X509_check_akid(issuer: *mut X509, akid: *mut AUTHORITY_KEYID) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_new"] + pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extension_flags"] - pub fn X509_get_extension_flags(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_free"] + pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_key_usage"] - pub fn X509_get_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_it"] + pub static NAME_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extended_key_usage"] - pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_new"] + pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_subject_key_id"] - pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_free"] + pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_key_id"] - pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_new"] + pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_issuer"] - pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_free"] + pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_serial"] - pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_it"] + pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_count"] - pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add"] + pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0"] - pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *mut X509_PURPOSE; + pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_sname"] - pub fn X509_PURPOSE_get_by_sname(sname: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add_alias"] + pub fn X509V3_EXT_add_alias( + nid_to: ::std::os::raw::c_int, + nid_from: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_id"] - pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn X509V3_EXT_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_add"] - pub fn X509_PURPOSE_add( - id: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_PURPOSE, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - sname: *mut ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get"] + pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_name"] - pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get_nid"] + pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_sname"] - pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_d2i"] + pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_trust"] - pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_get_d2i"] + pub fn X509V3_get_d2i( + extensions: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_cleanup"] - pub fn X509_PURPOSE_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_free"] + pub fn X509V3_EXT_free( + nid: ::std::os::raw::c_int, + ext_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_id"] - pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_i2d"] + pub fn X509V3_EXT_i2d( + ext_nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + ext_struc: *mut ::std::os::raw::c_void, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_email"] - pub fn X509_get1_email(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add1_i2d"] + pub fn X509V3_add1_i2d( + x: *mut *mut stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get1_email"] - pub fn X509_REQ_get1_email(x: *mut X509_REQ) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_set"] + pub fn X509_PURPOSE_set( + p: *mut ::std::os::raw::c_int, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_email_free"] - pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_count"] + pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_ocsp"] - pub fn X509_get1_ocsp(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0"] + pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *const X509_PURPOSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_host"] - pub fn X509_check_host( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_sname"] + pub fn X509_PURPOSE_get_by_sname(sname: *const ::std::os::raw::c_char) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_email"] - pub fn X509_check_email( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_id"] + pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip"] - pub fn X509_check_ip( - x: *mut X509, - chk: *const ::std::os::raw::c_uchar, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0_name"] + pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x: *mut 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_fips_0_13_0_X509_PURPOSE_get0_sname"] + pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_trust"] + pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PURPOSE_get_id"] + pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -26374,10 +25873,16 @@ pub struct ocsp_cert_id_st { pub type OCSP_CERTID = ocsp_cert_id_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ocsp_responder_id_st { +pub struct ocsp_one_request_st { _unused: [u8; 0], } -pub type OCSP_RESPID = ocsp_responder_id_st; +pub type OCSP_ONEREQ = ocsp_one_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ocsp_req_info_st { + _unused: [u8; 0], +} +pub type OCSP_REQINFO = ocsp_req_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ocsp_signature_st { @@ -26386,6 +25891,12 @@ pub struct ocsp_signature_st { pub type OCSP_SIGNATURE = ocsp_signature_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_request_st { + _unused: [u8; 0], +} +pub type OCSP_REQUEST = ocsp_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_resp_bytes_st { _unused: [u8; 0], } @@ -26422,6 +25933,12 @@ pub struct ocsp_response_st { pub type OCSP_RESPONSE = ocsp_response_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_responder_id_st { + _unused: [u8; 0], +} +pub type OCSP_RESPID = ocsp_responder_id_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_basic_response_st { _unused: [u8; 0], } @@ -26437,8 +25954,8 @@ pub type sk_OCSP_CERTID_copy_func = ::std::option::Option *mut OCSP_CERTID>; pub type sk_OCSP_CERTID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_CERTID, - arg2: *mut *const OCSP_CERTID, + arg1: *const *const OCSP_CERTID, + arg2: *const *const OCSP_CERTID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< @@ -26449,6 +25966,27 @@ pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct stack_st_OCSP_ONEREQ { + _unused: [u8; 0], +} +pub type sk_OCSP_ONEREQ_free_func = + ::std::option::Option; +pub type sk_OCSP_ONEREQ_copy_func = + ::std::option::Option *mut OCSP_ONEREQ>; +pub type sk_OCSP_ONEREQ_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const OCSP_ONEREQ, + arg2: *const *const OCSP_ONEREQ, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OCSP_ONEREQ_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut OCSP_ONEREQ, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct stack_st_OCSP_RESPID { _unused: [u8; 0], } @@ -26458,8 +25996,8 @@ pub type sk_OCSP_RESPID_copy_func = ::std::option::Option *mut OCSP_RESPID>; pub type sk_OCSP_RESPID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_RESPID, - arg2: *mut *const OCSP_RESPID, + arg1: *const *const OCSP_RESPID, + arg2: *const *const OCSP_RESPID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_RESPID_delete_if_func = ::std::option::Option< @@ -26480,8 +26018,8 @@ pub type sk_OCSP_SINGLERESP_copy_func = ::std::option::Option< >; pub type sk_OCSP_SINGLERESP_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_SINGLERESP, - arg2: *mut *const OCSP_SINGLERESP, + arg1: *const *const OCSP_SINGLERESP, + arg2: *const *const OCSP_SINGLERESP, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< @@ -26491,15 +26029,123 @@ pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_new"] + pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_free"] + pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_BASICRESP"] + pub fn d2i_OCSP_BASICRESP( + a: *mut *mut OCSP_BASICRESP, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_BASICRESP"] + pub fn i2d_OCSP_BASICRESP( + a: *mut OCSP_BASICRESP, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_it"] + pub static OCSP_BASICRESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_new"] + pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_free"] + pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE"] + pub fn d2i_OCSP_RESPONSE( + a: *mut *mut OCSP_RESPONSE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE"] + pub fn i2d_OCSP_RESPONSE( + a: *mut OCSP_RESPONSE, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_it"] + pub static OCSP_RESPONSE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_new"] + pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_free"] + pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_CERTID"] + pub fn d2i_OCSP_CERTID( + a: *mut *mut OCSP_CERTID, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_CERTID"] + pub fn i2d_OCSP_CERTID( + a: *mut OCSP_CERTID, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_it"] + pub static OCSP_CERTID_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_new"] + pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_free"] + pub fn OCSP_REQUEST_free(a: *mut OCSP_REQUEST); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST"] + pub fn d2i_OCSP_REQUEST( + a: *mut *mut OCSP_REQUEST, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST"] + pub fn i2d_OCSP_REQUEST( + a: *mut OCSP_REQUEST, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_it"] + pub static OCSP_REQUEST_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_new"] pub fn OCSP_SINGLERESP_new() -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_free"] pub fn OCSP_SINGLERESP_free(a: *mut OCSP_SINGLERESP); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_SINGLERESP"] pub fn d2i_OCSP_SINGLERESP( a: *mut *mut OCSP_SINGLERESP, in_: *mut *const ::std::os::raw::c_uchar, @@ -26507,290 +26153,418 @@ extern "C" { ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_SINGLERESP"] pub fn i2d_OCSP_SINGLERESP( a: *mut OCSP_SINGLERESP, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_it"] - pub static OCSP_SINGLERESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_it"] + pub static OCSP_SINGLERESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST_bio"] + pub fn d2i_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut *mut OCSP_REQUEST) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE_bio"] + pub fn d2i_OCSP_RESPONSE_bio( + bp: *mut BIO, + presp: *mut *mut OCSP_RESPONSE, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE_bio"] + pub fn i2d_OCSP_RESPONSE_bio(bp: *mut BIO, presp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST_bio"] + pub fn i2d_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_dup"] + pub fn OCSP_CERTID_dup(id: *mut OCSP_CERTID) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_bio"] + pub fn OCSP_sendreq_bio( + b: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_new"] + pub fn OCSP_sendreq_new( + io: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + maxline: ::std::os::raw::c_int, + ) -> *mut OCSP_REQ_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_nbio"] + pub fn OCSP_sendreq_nbio( + presp: *mut *mut OCSP_RESPONSE, + rctx: *mut OCSP_REQ_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_new"] - pub fn OCSP_CERTSTATUS_new() -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_new"] + pub fn OCSP_REQ_CTX_new(io: *mut BIO, maxline: ::std::os::raw::c_int) -> *mut OCSP_REQ_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_free"] - pub fn OCSP_CERTSTATUS_free(a: *mut OCSP_CERTSTATUS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_free"] + pub fn OCSP_REQ_CTX_free(rctx: *mut OCSP_REQ_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTSTATUS"] - pub fn d2i_OCSP_CERTSTATUS( - a: *mut *mut OCSP_CERTSTATUS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_set_max_response_length"] + pub fn OCSP_set_max_response_length(rctx: *mut OCSP_REQ_CTX, len: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTSTATUS"] - pub fn i2d_OCSP_CERTSTATUS( - a: *mut OCSP_CERTSTATUS, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_http"] + pub fn OCSP_REQ_CTX_http( + rctx: *mut OCSP_REQ_CTX, + op: *const ::std::os::raw::c_char, + path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_it"] - pub static OCSP_CERTSTATUS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_set1_req"] + pub fn OCSP_REQ_CTX_set1_req( + rctx: *mut OCSP_REQ_CTX, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_new"] - pub fn OCSP_REVOKEDINFO_new() -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_add1_header"] + pub fn OCSP_REQ_CTX_add1_header( + rctx: *mut OCSP_REQ_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_free"] - pub fn OCSP_REVOKEDINFO_free(a: *mut OCSP_REVOKEDINFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_i2d"] + pub fn OCSP_REQ_CTX_i2d( + rctx: *mut OCSP_REQ_CTX, + it: *const ASN1_ITEM, + val: *mut ASN1_VALUE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_REVOKEDINFO"] - pub fn d2i_OCSP_REVOKEDINFO( - a: *mut *mut OCSP_REVOKEDINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add0_id"] + pub fn OCSP_request_add0_id(req: *mut OCSP_REQUEST, cid: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_REVOKEDINFO"] - pub fn i2d_OCSP_REVOKEDINFO( - a: *mut OCSP_REVOKEDINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_onereq_get0_id"] + pub fn OCSP_onereq_get0_id(one: *mut OCSP_ONEREQ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_it"] - pub static OCSP_REVOKEDINFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_nonce"] + pub fn OCSP_request_add1_nonce( + req: *mut OCSP_REQUEST, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_new"] - pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_nonce"] + pub fn OCSP_basic_add1_nonce( + resp: *mut OCSP_BASICRESP, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_free"] - pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_nonce"] + pub fn OCSP_check_nonce( + req: *mut OCSP_REQUEST, + bs: *mut OCSP_BASICRESP, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_BASICRESP"] - pub fn d2i_OCSP_BASICRESP( - a: *mut *mut OCSP_BASICRESP, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_copy_nonce"] + pub fn OCSP_copy_nonce( + resp: *mut OCSP_BASICRESP, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_BASICRESP"] - pub fn i2d_OCSP_BASICRESP( - a: *mut OCSP_BASICRESP, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_set1_name"] + pub fn OCSP_request_set1_name( + req: *mut OCSP_REQUEST, + nm: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_it"] - pub static OCSP_BASICRESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_cert"] + pub fn OCSP_request_add1_cert(req: *mut OCSP_REQUEST, cert: *mut X509) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_new"] - pub fn OCSP_RESPDATA_new() -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_is_signed"] + pub fn OCSP_request_is_signed(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_free"] - pub fn OCSP_RESPDATA_free(a: *mut OCSP_RESPDATA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_count"] + pub fn OCSP_request_onereq_count(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPDATA"] - pub fn d2i_OCSP_RESPDATA( - a: *mut *mut OCSP_RESPDATA, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_get0"] + pub fn OCSP_request_onereq_get0( + req: *mut OCSP_REQUEST, + i: ::std::os::raw::c_int, + ) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPDATA"] - pub fn i2d_OCSP_RESPDATA( - a: *mut OCSP_RESPDATA, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_sign"] + pub fn OCSP_request_sign( + req: *mut OCSP_REQUEST, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_it"] - pub static OCSP_RESPDATA_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status"] + pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_new"] - pub fn OCSP_RESPID_new() -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_get1_basic"] + pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_free"] - pub fn OCSP_RESPID_free(a: *mut OCSP_RESPID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_count"] + pub fn OCSP_resp_count(bs: *mut OCSP_BASICRESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPID"] - pub fn d2i_OCSP_RESPID( - a: *mut *mut OCSP_RESPID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_get0"] + pub fn OCSP_resp_get0(bs: *mut OCSP_BASICRESP, idx: usize) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPID"] - pub fn i2d_OCSP_RESPID( - a: *mut OCSP_RESPID, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_single_get0_status"] + pub fn OCSP_single_get0_status( + single: *mut OCSP_SINGLERESP, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_it"] - pub static OCSP_RESPID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find"] + pub fn OCSP_resp_find( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + last: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_new"] - pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find_status"] + pub fn OCSP_resp_find_status( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + status: *mut ::std::os::raw::c_int, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_free"] - pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_validity"] + pub fn OCSP_check_validity( + thisUpdate: *mut ASN1_GENERALIZEDTIME, + nextUpdate: *mut ASN1_GENERALIZEDTIME, + drift_num_seconds: ::std::os::raw::c_long, + max_age_seconds: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPONSE"] - pub fn d2i_OCSP_RESPONSE( - a: *mut *mut OCSP_RESPONSE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_verify"] + pub fn OCSP_basic_verify( + bs: *mut OCSP_BASICRESP, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPONSE"] - pub fn i2d_OCSP_RESPONSE( - a: *mut OCSP_RESPONSE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_verify"] + pub fn OCSP_request_verify( + req: *mut OCSP_REQUEST, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_it"] - pub static OCSP_RESPONSE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_id_new"] + pub fn OCSP_cert_id_new( + dgst: *const EVP_MD, + issuerName: *const X509_NAME, + issuerKey: *const ASN1_BIT_STRING, + serialNumber: *const ASN1_INTEGER, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_new"] - pub fn OCSP_RESPBYTES_new() -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_to_id"] + pub fn OCSP_cert_to_id( + dgst: *const EVP_MD, + subject: *const X509, + issuer: *const X509, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_free"] - pub fn OCSP_RESPBYTES_free(a: *mut OCSP_RESPBYTES); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_parse_url"] + pub fn OCSP_parse_url( + url: *const ::std::os::raw::c_char, + phost: *mut *mut ::std::os::raw::c_char, + pport: *mut *mut ::std::os::raw::c_char, + ppath: *mut *mut ::std::os::raw::c_char, + pssl: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPBYTES"] - pub fn d2i_OCSP_RESPBYTES( - a: *mut *mut OCSP_RESPBYTES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_issuer_cmp"] + pub fn OCSP_id_issuer_cmp( + a: *const OCSP_CERTID, + b: *const OCSP_CERTID, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPBYTES"] - pub fn i2d_OCSP_RESPBYTES( - a: *mut OCSP_RESPBYTES, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_cmp"] + pub fn OCSP_id_cmp(a: *const OCSP_CERTID, b: *const OCSP_CERTID) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_get0_info"] + pub fn OCSP_id_get0_info( + nameHash: *mut *mut ASN1_OCTET_STRING, + algor: *mut *mut ASN1_OBJECT, + keyHash: *mut *mut ASN1_OCTET_STRING, + serial: *mut *mut ASN1_INTEGER, + cid: *mut OCSP_CERTID, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_it"] - pub static OCSP_RESPBYTES_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_cert"] + pub fn OCSP_basic_add1_cert( + resp: *mut OCSP_BASICRESP, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_new"] - pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_status"] + pub fn OCSP_basic_add1_status( + resp: *mut OCSP_BASICRESP, + cid: *mut OCSP_CERTID, + status: ::std::os::raw::c_int, + revoked_reason: ::std::os::raw::c_int, + revoked_time: *mut ASN1_TIME, + this_update: *mut ASN1_TIME, + next_update: *mut ASN1_TIME, + ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_free"] - pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_sign"] + pub fn OCSP_basic_sign( + resp: *mut OCSP_BASICRESP, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTID"] - pub fn d2i_OCSP_CERTID( - a: *mut *mut OCSP_CERTID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_create"] + pub fn OCSP_response_create( + status: ::std::os::raw::c_int, + bs: *mut OCSP_BASICRESP, + ) -> *mut OCSP_RESPONSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTID"] - pub fn i2d_OCSP_CERTID( - a: *mut OCSP_CERTID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get0_id"] + pub fn OCSP_SINGLERESP_get0_id(x: *const OCSP_SINGLERESP) -> *const OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_it"] - pub static OCSP_CERTID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status_str"] + pub fn OCSP_response_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_new() -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_status_str"] + pub fn OCSP_cert_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_free(a: *mut OCSP_SIGNATURE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_crl_reason_str"] + pub fn OCSP_crl_reason_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn d2i_OCSP_SIGNATURE( - a: *mut *mut OCSP_SIGNATURE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_print"] + pub fn OCSP_REQUEST_print( + bp: *mut BIO, + req: *mut OCSP_REQUEST, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn i2d_OCSP_SIGNATURE( - a: *mut OCSP_SIGNATURE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_print"] + pub fn OCSP_RESPONSE_print( + bp: *mut BIO, + resp: *mut OCSP_RESPONSE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub static OCSP_SIGNATURE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext_by_NID"] + pub fn OCSP_BASICRESP_get_ext_by_NID( + bs: *mut OCSP_BASICRESP, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_status"] - pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext"] + pub fn OCSP_BASICRESP_get_ext( + bs: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_get1_basic"] - pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_delete_ext"] + pub fn OCSP_BASICRESP_delete_ext( + x: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_resp_find_status"] - pub fn OCSP_resp_find_status( - bs: *mut OCSP_BASICRESP, - id: *mut OCSP_CERTID, - status: *mut ::std::os::raw::c_int, - reason: *mut ::std::os::raw::c_int, - revtime: *mut *mut ASN1_GENERALIZEDTIME, - thisupd: *mut *mut ASN1_GENERALIZEDTIME, - nextupd: *mut *mut ASN1_GENERALIZEDTIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_add_ext"] + pub fn OCSP_SINGLERESP_add_ext( + sresp: *mut OCSP_SINGLERESP, + ex: *mut X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_basic_verify"] - pub fn OCSP_basic_verify( - bs: *mut OCSP_BASICRESP, - certs: *mut stack_st_X509, - st: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext_count"] + pub fn OCSP_SINGLERESP_get_ext_count(sresp: *mut OCSP_SINGLERESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_cert_to_id"] - pub fn OCSP_cert_to_id( - dgst: *const EVP_MD, - subject: *const X509, - issuer: *const X509, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext"] + pub fn OCSP_SINGLERESP_get_ext( + sresp: *mut OCSP_SINGLERESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } pub type pem_password_cb = ::std::option::Option< unsafe extern "C" fn( @@ -26801,14 +26575,14 @@ pub type pem_password_cb = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_get_EVP_CIPHER_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_get_EVP_CIPHER_INFO"] pub fn PEM_get_EVP_CIPHER_INFO( header: *mut ::std::os::raw::c_char, cipher: *mut EVP_CIPHER_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_do_header"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_do_header"] pub fn PEM_do_header( cipher: *mut EVP_CIPHER_INFO, data: *mut ::std::os::raw::c_uchar, @@ -26818,7 +26592,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio"] pub fn PEM_read_bio( bp: *mut BIO, name: *mut *mut ::std::os::raw::c_char, @@ -26828,7 +26602,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio"] pub fn PEM_write_bio( bp: *mut BIO, name: *const ::std::os::raw::c_char, @@ -26838,7 +26612,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_bytes_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_bytes_read_bio"] pub fn PEM_bytes_read_bio( pdata: *mut *mut ::std::os::raw::c_uchar, plen: *mut ::std::os::raw::c_long, @@ -26850,7 +26624,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read_bio"] pub fn PEM_ASN1_read_bio( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26861,7 +26635,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write_bio"] pub fn PEM_ASN1_write_bio( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26875,7 +26649,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read_bio"] pub fn PEM_X509_INFO_read_bio( bp: *mut BIO, sk: *mut stack_st_X509_INFO, @@ -26884,7 +26658,16 @@ extern "C" { ) -> *mut stack_st_X509_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read"] + pub fn PEM_X509_INFO_read( + fp: *mut FILE, + sk: *mut stack_st_X509_INFO, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut stack_st_X509_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read"] pub fn PEM_read( fp: *mut FILE, name: *mut *mut ::std::os::raw::c_char, @@ -26894,7 +26677,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write"] pub fn PEM_write( fp: *mut FILE, name: *const ::std::os::raw::c_char, @@ -26904,7 +26687,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read"] pub fn PEM_ASN1_read( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26915,7 +26698,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write"] pub fn PEM_ASN1_write( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26929,16 +26712,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read"] - pub fn PEM_X509_INFO_read( - fp: *mut FILE, - sk: *mut stack_st_X509_INFO, - cb: pem_password_cb, - u: *mut ::std::os::raw::c_void, - ) -> *mut stack_st_X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_def_callback"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_def_callback"] pub fn PEM_def_callback( buf: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, @@ -26947,20 +26721,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_proc_type"] - pub fn PEM_proc_type(buf: *mut ::std::os::raw::c_char, type_: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_dek_info"] - pub fn PEM_dek_info( - buf: *mut ::std::os::raw::c_char, - type_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - str_: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509"] pub fn PEM_read_bio_X509( bp: *mut BIO, x: *mut *mut X509, @@ -26969,7 +26730,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509"] pub fn PEM_read_X509( fp: *mut FILE, x: *mut *mut X509, @@ -26978,15 +26739,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509"] pub fn PEM_write_bio_X509(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509"] pub fn PEM_write_X509(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_AUX"] pub fn PEM_read_bio_X509_AUX( bp: *mut BIO, x: *mut *mut X509, @@ -26995,7 +26756,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_AUX"] pub fn PEM_read_X509_AUX( fp: *mut FILE, x: *mut *mut X509, @@ -27004,15 +26765,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_AUX"] pub fn PEM_write_bio_X509_AUX(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_AUX"] pub fn PEM_write_X509_AUX(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_REQ"] pub fn PEM_read_bio_X509_REQ( bp: *mut BIO, x: *mut *mut X509_REQ, @@ -27021,7 +26782,7 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_REQ"] pub fn PEM_read_X509_REQ( fp: *mut FILE, x: *mut *mut X509_REQ, @@ -27030,23 +26791,23 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ"] pub fn PEM_write_bio_X509_REQ(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ"] pub fn PEM_write_X509_REQ(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ_NEW"] pub fn PEM_write_bio_X509_REQ_NEW(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ_NEW"] pub fn PEM_write_X509_REQ_NEW(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_CRL"] pub fn PEM_read_bio_X509_CRL( bp: *mut BIO, x: *mut *mut X509_CRL, @@ -27055,7 +26816,7 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_CRL"] pub fn PEM_read_X509_CRL( fp: *mut FILE, x: *mut *mut X509_CRL, @@ -27064,15 +26825,15 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_CRL"] pub fn PEM_write_bio_X509_CRL(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_CRL"] pub fn PEM_write_X509_CRL(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS7"] pub fn PEM_read_bio_PKCS7( bp: *mut BIO, x: *mut *mut PKCS7, @@ -27081,7 +26842,7 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS7"] pub fn PEM_read_PKCS7( fp: *mut FILE, x: *mut *mut PKCS7, @@ -27090,15 +26851,15 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS7"] pub fn PEM_write_bio_PKCS7(bp: *mut BIO, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS7"] pub fn PEM_write_PKCS7(fp: *mut FILE, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8"] pub fn PEM_read_bio_PKCS8( bp: *mut BIO, x: *mut *mut X509_SIG, @@ -27107,7 +26868,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8"] pub fn PEM_read_PKCS8( fp: *mut FILE, x: *mut *mut X509_SIG, @@ -27116,15 +26877,15 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8"] pub fn PEM_write_bio_PKCS8(bp: *mut BIO, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8"] pub fn PEM_write_PKCS8(fp: *mut FILE, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27133,7 +26894,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -27142,21 +26903,21 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPrivateKey"] pub fn PEM_read_bio_RSAPrivateKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27165,7 +26926,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPrivateKey"] pub fn PEM_read_RSAPrivateKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27174,7 +26935,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPrivateKey"] pub fn PEM_write_bio_RSAPrivateKey( bp: *mut BIO, x: *mut RSA, @@ -27186,7 +26947,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPrivateKey"] pub fn PEM_write_RSAPrivateKey( fp: *mut FILE, x: *mut RSA, @@ -27198,7 +26959,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPublicKey"] pub fn PEM_read_bio_RSAPublicKey( bp: *mut BIO, x: *mut *mut RSA, @@ -27207,7 +26968,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPublicKey"] pub fn PEM_read_RSAPublicKey( fp: *mut FILE, x: *mut *mut RSA, @@ -27216,15 +26977,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPublicKey"] pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPublicKey"] pub fn PEM_write_RSAPublicKey(fp: *mut FILE, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSA_PUBKEY"] pub fn PEM_read_bio_RSA_PUBKEY( bp: *mut BIO, x: *mut *mut RSA, @@ -27233,7 +26994,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSA_PUBKEY"] pub fn PEM_read_RSA_PUBKEY( fp: *mut FILE, x: *mut *mut RSA, @@ -27242,15 +27003,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSA_PUBKEY"] pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSA_PUBKEY"] pub fn PEM_write_RSA_PUBKEY(fp: *mut FILE, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAPrivateKey"] pub fn PEM_read_bio_DSAPrivateKey( bp: *mut BIO, x: *mut *mut DSA, @@ -27259,7 +27020,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAPrivateKey"] pub fn PEM_read_DSAPrivateKey( fp: *mut FILE, x: *mut *mut DSA, @@ -27268,7 +27029,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAPrivateKey"] pub fn PEM_write_bio_DSAPrivateKey( bp: *mut BIO, x: *mut DSA, @@ -27280,7 +27041,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAPrivateKey"] pub fn PEM_write_DSAPrivateKey( fp: *mut FILE, x: *mut DSA, @@ -27292,7 +27053,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSA_PUBKEY"] pub fn PEM_read_bio_DSA_PUBKEY( bp: *mut BIO, x: *mut *mut DSA, @@ -27301,7 +27062,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSA_PUBKEY"] pub fn PEM_read_DSA_PUBKEY( fp: *mut FILE, x: *mut *mut DSA, @@ -27310,15 +27071,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSA_PUBKEY"] pub fn PEM_write_bio_DSA_PUBKEY(bp: *mut BIO, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSA_PUBKEY"] pub fn PEM_write_DSA_PUBKEY(fp: *mut FILE, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAparams"] pub fn PEM_read_bio_DSAparams( bp: *mut BIO, x: *mut *mut DSA, @@ -27327,7 +27088,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAparams"] pub fn PEM_read_DSAparams( fp: *mut FILE, x: *mut *mut DSA, @@ -27336,15 +27097,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAparams"] pub fn PEM_write_bio_DSAparams(bp: *mut BIO, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAparams"] pub fn PEM_write_DSAparams(fp: *mut FILE, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPrivateKey"] pub fn PEM_read_bio_ECPrivateKey( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27353,7 +27114,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_ECPrivateKey"] pub fn PEM_read_ECPrivateKey( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27362,7 +27123,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPrivateKey"] pub fn PEM_write_bio_ECPrivateKey( bp: *mut BIO, x: *mut EC_KEY, @@ -27374,7 +27135,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_ECPrivateKey"] pub fn PEM_write_ECPrivateKey( fp: *mut FILE, x: *mut EC_KEY, @@ -27386,7 +27147,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_EC_PUBKEY"] pub fn PEM_read_bio_EC_PUBKEY( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27395,7 +27156,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_EC_PUBKEY"] pub fn PEM_read_EC_PUBKEY( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27404,15 +27165,15 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_EC_PUBKEY"] pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_EC_PUBKEY"] pub fn PEM_write_EC_PUBKEY(fp: *mut FILE, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DHparams"] pub fn PEM_read_bio_DHparams( bp: *mut BIO, x: *mut *mut DH, @@ -27421,7 +27182,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DHparams"] pub fn PEM_read_DHparams( fp: *mut FILE, x: *mut *mut DH, @@ -27430,15 +27191,15 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DHparams"] pub fn PEM_write_bio_DHparams(bp: *mut BIO, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DHparams"] pub fn PEM_write_DHparams(fp: *mut FILE, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PrivateKey"] pub fn PEM_read_bio_PrivateKey( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27447,7 +27208,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PrivateKey"] pub fn PEM_read_PrivateKey( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27456,7 +27217,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey"] pub fn PEM_write_bio_PrivateKey( bp: *mut BIO, x: *mut EVP_PKEY, @@ -27468,7 +27229,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PrivateKey"] pub fn PEM_write_PrivateKey( fp: *mut FILE, x: *mut EVP_PKEY, @@ -27480,7 +27241,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PUBKEY"] pub fn PEM_read_bio_PUBKEY( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27489,7 +27250,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PUBKEY"] pub fn PEM_read_PUBKEY( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27498,18 +27259,18 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PUBKEY"] pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PUBKEY"] pub fn PEM_write_PUBKEY(fp: *mut FILE, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey_nid"] pub fn PEM_write_bio_PKCS8PrivateKey_nid( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27518,10 +27279,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey"] pub fn PEM_write_bio_PKCS8PrivateKey( arg1: *mut BIO, - arg2: *mut EVP_PKEY, + arg2: *const EVP_PKEY, arg3: *const EVP_CIPHER, arg4: *mut ::std::os::raw::c_char, arg5: ::std::os::raw::c_int, @@ -27530,10 +27291,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_bio"] pub fn i2d_PKCS8PrivateKey_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27542,10 +27303,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_bio"] pub fn i2d_PKCS8PrivateKey_nid_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27554,7 +27315,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_bio"] pub fn d2i_PKCS8PrivateKey_bio( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27563,10 +27324,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_fp"] pub fn i2d_PKCS8PrivateKey_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27575,10 +27336,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_fp"] pub fn i2d_PKCS8PrivateKey_nid_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27587,10 +27348,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey_nid"] pub fn PEM_write_PKCS8PrivateKey_nid( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27599,7 +27360,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_fp"] pub fn d2i_PKCS8PrivateKey_fp( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27608,10 +27369,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey"] pub fn PEM_write_PKCS8PrivateKey( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27620,7 +27381,43 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_Parameters"] + pub fn PEM_read_bio_Parameters(bio: *mut BIO, pkey: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_Parameters"] + pub fn PEM_write_bio_Parameters(bio: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPKParameters"] + pub fn PEM_read_bio_ECPKParameters( + bio: *mut BIO, + out_group: *mut *mut EC_GROUP, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPKParameters"] + pub fn PEM_write_bio_ECPKParameters( + out: *mut BIO, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey_traditional"] + pub fn PEM_write_bio_PrivateKey_traditional( + bp: *mut BIO, + x: *mut EVP_PKEY, + enc: *const EVP_CIPHER, + kstr: *mut ::std::os::raw::c_uchar, + klen: ::std::os::raw::c_int, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_encrypt"] pub fn PKCS8_encrypt( pbe_nid: ::std::os::raw::c_int, cipher: *const EVP_CIPHER, @@ -27633,7 +27430,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_marshal_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_marshal_encrypted_private_key"] pub fn PKCS8_marshal_encrypted_private_key( out: *mut CBB, pbe_nid: ::std::os::raw::c_int, @@ -27647,7 +27444,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_decrypt"] pub fn PKCS8_decrypt( pkcs8: *mut X509_SIG, pass: *const ::std::os::raw::c_char, @@ -27655,7 +27452,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_parse_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_parse_encrypted_private_key"] pub fn PKCS8_parse_encrypted_private_key( cbs: *mut CBS, pass: *const ::std::os::raw::c_char, @@ -27663,7 +27460,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_get_key_and_certs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_get_key_and_certs"] pub fn PKCS12_get_key_and_certs( out_key: *mut *mut EVP_PKEY, out_certs: *mut stack_st_X509, @@ -27672,11 +27469,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_PBE_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_PBE_add"] pub fn PKCS12_PBE_add(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12"] pub fn d2i_PKCS12( out_p12: *mut *mut PKCS12, ber_bytes: *mut *const u8, @@ -27684,27 +27481,27 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_bio"] pub fn d2i_PKCS12_bio(bio: *mut BIO, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_fp"] pub fn d2i_PKCS12_fp(fp: *mut FILE, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12"] pub fn i2d_PKCS12(p12: *const PKCS12, out: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_bio"] pub fn i2d_PKCS12_bio(bio: *mut BIO, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_fp"] pub fn i2d_PKCS12_fp(fp: *mut FILE, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_parse"] pub fn PKCS12_parse( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27714,7 +27511,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_verify_mac"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_verify_mac"] pub fn PKCS12_verify_mac( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27722,7 +27519,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_create"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_create"] pub fn PKCS12_create( password: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, @@ -27737,76 +27534,95 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_new"] + pub fn PKCS12_new() -> *mut PKCS12; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_free"] pub fn PKCS12_free(p12: *mut PKCS12); } pub type poly1305_state = [u8; 512usize]; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_init"] pub fn CRYPTO_poly1305_init(state: *mut poly1305_state, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_update"] pub fn CRYPTO_poly1305_update(state: *mut poly1305_state, in_: *const u8, in_len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_finish"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_finish"] pub fn CRYPTO_poly1305_finish(state: *mut poly1305_state, mac: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_bytes"] pub fn RAND_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_system_entropy_for_custom_prng"] - pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_priv_bytes"] + pub fn RAND_priv_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_cleanup"] - pub fn RAND_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_enable_fork_unsafe_buffering"] + pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_enable_fork_unsafe_buffering"] - pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_system_entropy_for_custom_prng"] + pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_pseudo_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_pseudo_bytes"] pub fn RAND_pseudo_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_seed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_seed"] pub fn RAND_seed(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_load_file"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_load_file"] pub fn RAND_load_file( path: *const ::std::os::raw::c_char, num: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_file_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_write_file"] + pub fn RAND_write_file(file: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_file_name"] pub fn RAND_file_name( buf: *mut ::std::os::raw::c_char, num: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_add"] pub fn RAND_add(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int, entropy: f64); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_egd"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd"] pub fn RAND_egd(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_poll"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd_bytes"] + pub fn RAND_egd_bytes( + arg1: *const ::std::os::raw::c_char, + bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_poll"] pub fn RAND_poll() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_status"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_status"] pub fn RAND_status() -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_cleanup"] + pub fn RAND_cleanup(); +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] pub struct rand_meth_st { @@ -27905,21 +27721,25 @@ fn bindgen_test_layout_rand_meth_st() { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_SSLeay"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_SSLeay"] pub fn RAND_SSLeay() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_OpenSSL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_OpenSSL"] pub fn RAND_OpenSSL() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_rand_method"] pub fn RAND_get_rand_method() -> *const RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_set_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_set_rand_method"] pub fn RAND_set_rand_method(arg1: *const RAND_METHOD) -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_keep_random_devices_open"] + pub fn RAND_keep_random_devices_open(a: ::std::os::raw::c_int); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct rc4_key_st { @@ -27982,11 +27802,11 @@ impl Default for rc4_key_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4_set_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4_set_key"] pub fn RC4_set_key(rc4key: *mut RC4_KEY, len: ::std::os::raw::c_uint, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4"] pub fn RC4(key: *mut RC4_KEY, len: usize, in_: *const u8, out: *mut u8); } #[repr(C)] @@ -28073,11 +27893,11 @@ impl Default for RIPEMD160state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Init"] pub fn RIPEMD160_Init(ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Update"] pub fn RIPEMD160_Update( ctx: *mut RIPEMD160_CTX, data: *const ::std::os::raw::c_void, @@ -28085,44 +27905,52 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Final"] pub fn RIPEMD160_Final(out: *mut u8, ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160"] pub fn RIPEMD160(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_before_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_before_call"] pub fn FIPS_service_indicator_before_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_after_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_after_call"] pub fn FIPS_service_indicator_after_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_version_string"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_version_string"] pub fn awslc_version_string() -> *const ::std::os::raw::c_char; } pub const FIPSStatus_AWSLC_NOT_APPROVED: FIPSStatus = 0; pub const FIPSStatus_AWSLC_APPROVED: FIPSStatus = 1; pub type FIPSStatus = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SIPHASH_24"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SIPHASH_24"] pub fn SIPHASH_24(key: *const u64, input: *const u8, input_len: usize) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v1"] pub fn TRUST_TOKEN_experiment_v1() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_voprf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_voprf"] pub fn TRUST_TOKEN_experiment_v2_voprf() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_pmb"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_pmb"] pub fn TRUST_TOKEN_experiment_v2_pmb() -> *const TRUST_TOKEN_METHOD; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_voprf"] + pub fn TRUST_TOKEN_pst_v1_voprf() -> *const TRUST_TOKEN_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_pmb"] + pub fn TRUST_TOKEN_pst_v1_pmb() -> *const TRUST_TOKEN_METHOD; +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct trust_token_st { @@ -28184,8 +28012,8 @@ pub type sk_TRUST_TOKEN_copy_func = ::std::option::Option *mut TRUST_TOKEN>; pub type sk_TRUST_TOKEN_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const TRUST_TOKEN, - arg2: *mut *const TRUST_TOKEN, + arg1: *const *const TRUST_TOKEN, + arg2: *const *const TRUST_TOKEN, ) -> ::std::os::raw::c_int, >; pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< @@ -28195,15 +28023,15 @@ pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_new"] pub fn TRUST_TOKEN_new(data: *const u8, len: usize) -> *mut TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_free"] pub fn TRUST_TOKEN_free(token: *mut TRUST_TOKEN); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_generate_key"] pub fn TRUST_TOKEN_generate_key( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28216,7 +28044,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_derive_key_from_secret"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_derive_key_from_secret"] pub fn TRUST_TOKEN_derive_key_from_secret( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -28231,18 +28059,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_new"] pub fn TRUST_TOKEN_CLIENT_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_CLIENT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_free"] pub fn TRUST_TOKEN_CLIENT_free(ctx: *mut TRUST_TOKEN_CLIENT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_add_key"] pub fn TRUST_TOKEN_CLIENT_add_key( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28251,14 +28079,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_set_srr_key"] pub fn TRUST_TOKEN_CLIENT_set_srr_key( ctx: *mut TRUST_TOKEN_CLIENT, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance"] pub fn TRUST_TOKEN_CLIENT_begin_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28267,7 +28095,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] pub fn TRUST_TOKEN_CLIENT_begin_issuance_over_message( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28278,7 +28106,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_issuance"] pub fn TRUST_TOKEN_CLIENT_finish_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -28287,7 +28115,7 @@ extern "C" { ) -> *mut stack_st_TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_redemption"] pub fn TRUST_TOKEN_CLIENT_begin_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -28299,7 +28127,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_redemption"] pub fn TRUST_TOKEN_CLIENT_finish_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out_rr: *mut *mut u8, @@ -28311,18 +28139,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_new"] pub fn TRUST_TOKEN_ISSUER_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_ISSUER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_free"] pub fn TRUST_TOKEN_ISSUER_free(ctx: *mut TRUST_TOKEN_ISSUER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_add_key"] pub fn TRUST_TOKEN_ISSUER_add_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28330,14 +28158,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_srr_key"] pub fn TRUST_TOKEN_ISSUER_set_srr_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_metadata_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_metadata_key"] pub fn TRUST_TOKEN_ISSUER_set_metadata_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28345,7 +28173,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_issue"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_issue"] pub fn TRUST_TOKEN_ISSUER_issue( ctx: *const TRUST_TOKEN_ISSUER, out: *mut *mut u8, @@ -28359,23 +28187,8 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem"] pub fn TRUST_TOKEN_ISSUER_redeem( - ctx: *const TRUST_TOKEN_ISSUER, - out: *mut *mut u8, - out_len: *mut usize, - out_token: *mut *mut TRUST_TOKEN, - out_client_data: *mut *mut u8, - out_client_data_len: *mut usize, - out_redemption_time: *mut u64, - request: *const u8, - request_len: usize, - lifetime: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_raw"] - pub fn TRUST_TOKEN_ISSUER_redeem_raw( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, out_private: *mut u8, @@ -28387,7 +28200,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem_over_message"] pub fn TRUST_TOKEN_ISSUER_redeem_over_message( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, @@ -28402,7 +28215,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_decode_private_metadata"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_decode_private_metadata"] pub fn TRUST_TOKEN_decode_private_metadata( method: *const TRUST_TOKEN_METHOD, out_value: *mut u8, @@ -28414,7 +28227,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_tls1_prf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_tls1_prf"] pub fn CRYPTO_tls1_prf( digest: *const EVP_MD, out: *mut u8, @@ -28430,15 +28243,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_LIB_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_LIB_RUST"] pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_REASON_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_REASON_RUST"] pub fn ERR_GET_REASON_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_FUNC_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_FUNC_RUST"] pub fn ERR_GET_FUNC_RUST(packed_error: u32) -> ::std::os::raw::c_int; } pub type __builtin_va_list = [__va_list_tag; 1usize]; diff --git a/aws-lc-fips-sys/src/x86_64_unknown_linux_musl_crypto.rs b/aws-lc-fips-sys/src/x86_64_unknown_linux_musl_crypto.rs index 8051da3618b..847d575973e 100644 --- a/aws-lc-fips-sys/src/x86_64_unknown_linux_musl_crypto.rs +++ b/aws-lc-fips-sys/src/x86_64_unknown_linux_musl_crypto.rs @@ -110,14 +110,130 @@ where 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 = 20; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"2.0.15\0"; +pub const AWSLC_API_VERSION: i32 = 30; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 6] = b"3.0.0\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; pub const AES_BLOCK_SIZE: i32 = 16; +pub const SHA_CBLOCK: i32 = 64; +pub const SHA_DIGEST_LENGTH: i32 = 20; +pub const SHA224_CBLOCK: i32 = 64; +pub const SHA224_DIGEST_LENGTH: i32 = 28; +pub const SHA256_CBLOCK: i32 = 64; +pub const SHA256_DIGEST_LENGTH: i32 = 32; +pub const SHA384_CBLOCK: i32 = 128; +pub const SHA384_DIGEST_LENGTH: i32 = 48; +pub const SHA512_CBLOCK: i32 = 128; +pub const SHA512_DIGEST_LENGTH: i32 = 64; +pub const SHA512_224_DIGEST_LENGTH: i32 = 28; +pub const SHA512_256_DIGEST_LENGTH: i32 = 32; +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; 41] = b"OpenSSL 1.1.1 (compatible; AWS-LC 3.0.0)\0"; +pub const OPENSSL_VERSION: i32 = 0; +pub const OPENSSL_CFLAGS: i32 = 1; +pub const OPENSSL_BUILT_ON: i32 = 2; +pub const OPENSSL_PLATFORM: i32 = 3; +pub const OPENSSL_DIR: i32 = 4; +pub const SSLEAY_VERSION: i32 = 0; +pub const SSLEAY_CFLAGS: i32 = 1; +pub const SSLEAY_BUILT_ON: i32 = 2; +pub const SSLEAY_PLATFORM: i32 = 3; +pub const SSLEAY_DIR: i32 = 4; +pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; +pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; +pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const OPENSSL_INIT_ENGINE_ALL_BUILTIN: i32 = 0; pub const ERR_FLAG_STRING: i32 = 1; pub const ERR_FLAG_MALLOCED: i32 = 2; +pub const ERR_LIB_NONE: i32 = 1; +pub const ERR_LIB_SYS: i32 = 2; +pub const ERR_LIB_BN: i32 = 3; +pub const ERR_LIB_RSA: i32 = 4; +pub const ERR_LIB_DH: i32 = 5; +pub const ERR_LIB_EVP: i32 = 6; +pub const ERR_LIB_BUF: i32 = 7; +pub const ERR_LIB_OBJ: i32 = 8; +pub const ERR_LIB_PEM: i32 = 9; +pub const ERR_LIB_DSA: i32 = 10; +pub const ERR_LIB_X509: i32 = 11; +pub const ERR_LIB_ASN1: i32 = 12; +pub const ERR_LIB_CONF: i32 = 13; +pub const ERR_LIB_CRYPTO: i32 = 14; +pub const ERR_LIB_EC: i32 = 15; +pub const ERR_LIB_SSL: i32 = 16; +pub const ERR_LIB_BIO: i32 = 17; +pub const ERR_LIB_PKCS7: i32 = 18; +pub const ERR_LIB_PKCS8: i32 = 19; +pub const ERR_LIB_X509V3: i32 = 20; +pub const ERR_LIB_RAND: i32 = 21; +pub const ERR_LIB_ENGINE: i32 = 22; +pub const ERR_LIB_OCSP: i32 = 23; +pub const ERR_LIB_UI: i32 = 24; +pub const ERR_LIB_COMP: i32 = 25; +pub const ERR_LIB_ECDSA: i32 = 26; +pub const ERR_LIB_ECDH: i32 = 27; +pub const ERR_LIB_HMAC: i32 = 28; +pub const ERR_LIB_DIGEST: i32 = 29; +pub const ERR_LIB_CIPHER: i32 = 30; +pub const ERR_LIB_HKDF: i32 = 31; +pub const ERR_LIB_TRUST_TOKEN: i32 = 32; +pub const ERR_LIB_USER: i32 = 33; +pub const ERR_NUM_LIBS: i32 = 34; +pub const ERR_LIB_PKCS12: i32 = 35; +pub const ERR_LIB_DSO: i32 = 36; +pub const ERR_LIB_OSSL_STORE: i32 = 37; +pub const ERR_LIB_FIPS: i32 = 38; +pub const ERR_LIB_CMS: i32 = 39; +pub const ERR_LIB_TS: i32 = 40; +pub const ERR_LIB_CT: i32 = 41; +pub const ERR_LIB_ASYNC: i32 = 42; +pub const ERR_LIB_KDF: i32 = 43; +pub const ERR_LIB_SM2: i32 = 44; +pub const ERR_R_SYS_LIB: i32 = 2; +pub const ERR_R_BN_LIB: i32 = 3; +pub const ERR_R_RSA_LIB: i32 = 4; +pub const ERR_R_DH_LIB: i32 = 5; +pub const ERR_R_EVP_LIB: i32 = 6; +pub const ERR_R_BUF_LIB: i32 = 7; +pub const ERR_R_OBJ_LIB: i32 = 8; +pub const ERR_R_PEM_LIB: i32 = 9; +pub const ERR_R_DSA_LIB: i32 = 10; +pub const ERR_R_X509_LIB: i32 = 11; +pub const ERR_R_ASN1_LIB: i32 = 12; +pub const ERR_R_CONF_LIB: i32 = 13; +pub const ERR_R_CRYPTO_LIB: i32 = 14; +pub const ERR_R_EC_LIB: i32 = 15; +pub const ERR_R_SSL_LIB: i32 = 16; +pub const ERR_R_BIO_LIB: i32 = 17; +pub const ERR_R_PKCS7_LIB: i32 = 18; +pub const ERR_R_PKCS8_LIB: i32 = 19; +pub const ERR_R_X509V3_LIB: i32 = 20; +pub const ERR_R_RAND_LIB: i32 = 21; +pub const ERR_R_DSO_LIB: i32 = 36; +pub const ERR_R_ENGINE_LIB: i32 = 22; +pub const ERR_R_OCSP_LIB: i32 = 23; +pub const ERR_R_UI_LIB: i32 = 24; +pub const ERR_R_COMP_LIB: i32 = 25; +pub const ERR_R_ECDSA_LIB: i32 = 26; +pub const ERR_R_ECDH_LIB: i32 = 27; +pub const ERR_R_FIPS_LIB: i32 = 38; +pub const ERR_R_CMS_LIB: i32 = 39; +pub const ERR_R_TS_LIB: i32 = 40; +pub const ERR_R_HMAC_LIB: i32 = 28; +pub const ERR_R_USER_LIB: i32 = 33; +pub const ERR_R_DIGEST_LIB: i32 = 29; +pub const ERR_R_CIPHER_LIB: i32 = 30; +pub const ERR_R_HKDF_LIB: i32 = 31; +pub const ERR_R_TRUST_TOKEN_LIB: i32 = 32; pub const ERR_R_FATAL: i32 = 64; pub const ERR_R_MALLOC_FAILURE: i32 = 65; pub const ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED: i32 = 66; @@ -128,10 +244,6 @@ pub const ERR_ERROR_STRING_BUF_LEN: i32 = 120; pub const ERR_TXT_STRING: i32 = 1; pub const ERR_TXT_MALLOCED: i32 = 2; pub const ERR_NUM_ERRORS: i32 = 16; -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 BIO_RR_CONNECT: i32 = 2; pub const BIO_RR_ACCEPT: i32 = 3; pub const BIO_CB_FREE: i32 = 1; @@ -143,6 +255,7 @@ pub const BIO_CB_CTRL: i32 = 6; pub const BIO_CB_RETURN: i32 = 128; pub const BIO_NOCLOSE: i32 = 0; pub const BIO_CLOSE: i32 = 1; +pub const BIO_FP_TEXT: i32 = 16; pub const BIO_CTRL_DGRAM_QUERY_MTU: i32 = 40; pub const BIO_CTRL_DGRAM_SET_MTU: i32 = 42; pub const BIO_CTRL_DGRAM_MTU_EXCEEDED: i32 = 43; @@ -208,7 +321,6 @@ pub const BIO_C_SET_FILE_PTR: i32 = 106; pub const BIO_C_GET_FILE_PTR: i32 = 107; pub const BIO_C_SET_FILENAME: i32 = 108; pub const BIO_C_SET_SSL: i32 = 109; -pub const BIO_C_GET_SSL: i32 = 110; pub const BIO_C_SET_MD: i32 = 111; pub const BIO_C_GET_MD: i32 = 112; pub const BIO_C_GET_CIPHER_STATUS: i32 = 113; @@ -222,9 +334,6 @@ pub const BIO_C_GET_MD_CTX: i32 = 120; pub const BIO_C_GET_PROXY_PARAM: i32 = 121; pub const BIO_C_SET_BUFF_READ_DATA: i32 = 122; pub const BIO_C_GET_ACCEPT: i32 = 124; -pub const BIO_C_SET_SSL_RENEGOTIATE_BYTES: i32 = 125; -pub const BIO_C_GET_SSL_NUM_RENEGOTIATES: i32 = 126; -pub const BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT: i32 = 127; pub const BIO_C_FILE_SEEK: i32 = 128; pub const BIO_C_GET_CIPHER_CTX: i32 = 129; pub const BIO_C_SET_BUF_MEM_EOF_RETURN: i32 = 130; @@ -269,7 +378,6 @@ pub const BIO_R_UNSUPPORTED_METHOD: i32 = 115; pub const BIO_R_WRITE_TO_READ_ONLY_BIO: i32 = 116; pub const BN_BITS2: i32 = 64; pub const BN_DEC_FMT1: &[u8; 4] = b"%lu\0"; -pub const BN_DEC_FMT2: &[u8; 7] = b"%019lu\0"; pub const BN_HEX_FMT1: &[u8; 4] = b"%lx\0"; pub const BN_HEX_FMT2: &[u8; 7] = b"%016lx\0"; pub const BN_RAND_TOP_ANY: i32 = -1; @@ -304,6 +412,7 @@ pub const BN_R_TOO_MANY_TEMPORARY_VARIABLES: i32 = 116; pub const BN_R_BAD_ENCODING: i32 = 117; pub const BN_R_ENCODE_ERROR: i32 = 118; pub const BN_R_INVALID_INPUT: i32 = 119; +pub const BN_F_BN_GENERATE_PRIME_EX: i32 = 0; pub const V_ASN1_UNIVERSAL: i32 = 0; pub const V_ASN1_APPLICATION: i32 = 64; pub const V_ASN1_CONTEXT_SPECIFIC: i32 = 128; @@ -364,6 +473,9 @@ pub const B_ASN1_UTF8STRING: i32 = 8192; pub const B_ASN1_UTCTIME: i32 = 16384; pub const B_ASN1_GENERALIZEDTIME: i32 = 32768; pub const B_ASN1_SEQUENCE: i32 = 65536; +pub const ASN1_BOOLEAN_FALSE: i32 = 0; +pub const ASN1_BOOLEAN_TRUE: i32 = 255; +pub const ASN1_BOOLEAN_NONE: i32 = -1; pub const ASN1_STRING_FLAG_BITS_LEFT: i32 = 8; pub const MBSTRING_FLAG: i32 = 4096; pub const MBSTRING_UTF8: i32 = 4096; @@ -563,7 +675,10 @@ pub const EVP_CIPH_OFB_MODE: i32 = 4; pub const EVP_CIPH_CTR_MODE: i32 = 5; pub const EVP_CIPH_GCM_MODE: i32 = 6; pub const EVP_CIPH_XTS_MODE: i32 = 7; +pub const EVP_CIPH_CCM_MODE: i32 = 8; pub const EVP_CIPH_FLAG_LENGTH_BITS: i32 = 8192; +pub const EVP_CIPH_OCB_MODE: i32 = 9; +pub const EVP_CIPH_WRAP_MODE: i32 = 10; pub const EVP_CIPH_VARIABLE_LENGTH: i32 = 64; pub const EVP_CIPH_ALWAYS_CALL_INIT: i32 = 128; pub const EVP_CIPH_CUSTOM_IV: i32 = 256; @@ -572,9 +687,6 @@ pub const EVP_CIPH_FLAG_CUSTOM_CIPHER: i32 = 1024; pub const EVP_CIPH_FLAG_AEAD_CIPHER: i32 = 2048; pub const EVP_CIPH_CUSTOM_COPY: i32 = 4096; pub const EVP_CIPH_FLAG_NON_FIPS_ALLOW: i32 = 0; -pub const EVP_CIPH_CCM_MODE: i32 = -1; -pub const EVP_CIPH_OCB_MODE: i32 = -2; -pub const EVP_CIPH_WRAP_MODE: i32 = -3; pub const EVP_CIPHER_CTX_FLAG_WRAP_ALLOW: i32 = 0; pub const EVP_CIPH_NO_PADDING: i32 = 2048; pub const EVP_CTRL_INIT: i32 = 0; @@ -591,8 +703,10 @@ pub const EVP_CTRL_AEAD_GET_TAG: i32 = 16; pub const EVP_CTRL_AEAD_SET_TAG: i32 = 17; pub const EVP_CTRL_AEAD_SET_IV_FIXED: i32 = 18; pub const EVP_CTRL_GCM_IV_GEN: i32 = 19; +pub const EVP_CTRL_CCM_SET_L: i32 = 20; pub const EVP_CTRL_AEAD_SET_MAC_KEY: i32 = 23; pub const EVP_CTRL_GCM_SET_IV_INV: i32 = 24; +pub const EVP_CTRL_GET_IVLEN: i32 = 25; pub const EVP_GCM_TLS_FIXED_IV_LEN: i32 = 4; pub const EVP_GCM_TLS_EXPLICIT_IV_LEN: i32 = 8; pub const EVP_GCM_TLS_TAG_LEN: i32 = 16; @@ -636,6 +750,8 @@ pub const CIPHER_R_XTS_DATA_UNIT_IS_TOO_LARGE: i32 = 139; pub const CIPHER_R_CTRL_OPERATION_NOT_PERFORMED: i32 = 140; pub const CIPHER_R_SERIALIZATION_INVALID_EVP_AEAD_CTX: i32 = 141; pub const CIPHER_R_ALIGNMENT_CHANGED: i32 = 142; +pub const CIPHER_R_SERIALIZATION_INVALID_SERDE_VERSION: i32 = 143; +pub const CIPHER_R_SERIALIZATION_INVALID_CIPHER_ID: i32 = 144; pub const CONF_MFLAGS_DEFAULT_SECTION: i32 = 0; pub const CONF_MFLAGS_IGNORE_MISSING_FILE: i32 = 0; pub const CONF_R_LIST_CANNOT_BE_NULL: i32 = 100; @@ -645,36 +761,7 @@ pub const CONF_R_NO_CLOSE_BRACE: i32 = 103; pub const CONF_R_UNABLE_TO_CREATE_NEW_SECTION: i32 = 104; pub const CONF_R_VARIABLE_HAS_NO_VALUE: i32 = 105; pub const CONF_R_VARIABLE_EXPANSION_TOO_LONG: i32 = 106; -pub const SHA_CBLOCK: i32 = 64; -pub const SHA_DIGEST_LENGTH: i32 = 20; -pub const SHA224_CBLOCK: i32 = 64; -pub const SHA224_DIGEST_LENGTH: i32 = 28; -pub const SHA256_CBLOCK: i32 = 64; -pub const SHA256_DIGEST_LENGTH: i32 = 32; -pub const SHA384_CBLOCK: i32 = 128; -pub const SHA384_DIGEST_LENGTH: i32 = 48; -pub const SHA512_CBLOCK: i32 = 128; -pub const SHA512_DIGEST_LENGTH: i32 = 64; -pub const SHA512_256_DIGEST_LENGTH: i32 = 32; -pub const OPENSSL_VERSION_TEXT: &[u8; 35] = b"OpenSSL 1.1.1 (compatible; AWS-LC)\0"; -pub const OPENSSL_VERSION: i32 = 0; -pub const OPENSSL_CFLAGS: i32 = 1; -pub const OPENSSL_BUILT_ON: i32 = 2; -pub const OPENSSL_PLATFORM: i32 = 3; -pub const OPENSSL_DIR: i32 = 4; -pub const SSLEAY_VERSION: i32 = 0; -pub const SSLEAY_CFLAGS: i32 = 1; -pub const SSLEAY_BUILT_ON: i32 = 2; -pub const SSLEAY_PLATFORM: i32 = 3; -pub const SSLEAY_DIR: i32 = 4; -pub const OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CRYPTO_STRINGS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_CIPHERS: i32 = 0; -pub const OPENSSL_INIT_NO_ADD_ALL_DIGESTS: i32 = 0; -pub const OPENSSL_INIT_LOAD_CONFIG: i32 = 0; -pub const OPENSSL_INIT_NO_LOAD_CONFIG: i32 = 0; +pub const CONF_R_VARIABLE_EXPANSION_NOT_SUPPORTED: i32 = 107; pub const X25519_PRIVATE_KEY_LEN: i32 = 32; pub const X25519_PUBLIC_VALUE_LEN: i32 = 32; pub const X25519_SHARED_KEY_LEN: i32 = 32; @@ -702,13 +789,18 @@ pub const DH_UNABLE_TO_CHECK_GENERATOR: i32 = 4; pub const DH_CHECK_PUBKEY_TOO_SMALL: i32 = 1; pub const DH_CHECK_PUBKEY_TOO_LARGE: i32 = 2; pub const DH_CHECK_PUBKEY_INVALID: i32 = 4; +pub const DH_FLAG_CACHE_MONT_P: i32 = 0; pub const DH_R_BAD_GENERATOR: i32 = 100; pub const DH_R_INVALID_PUBKEY: i32 = 101; pub const DH_R_MODULUS_TOO_LARGE: i32 = 102; pub const DH_R_NO_PRIVATE_VALUE: i32 = 103; pub const DH_R_DECODE_ERROR: i32 = 104; pub const DH_R_ENCODE_ERROR: i32 = 105; +pub const DH_R_INVALID_NID: i32 = 106; +pub const DH_R_INVALID_PARAMETERS: i32 = 107; +pub const DH_F_DH_BUILTIN_GENPARAMS: i32 = 0; pub const EVP_MAX_MD_SIZE: i32 = 64; +pub const EVP_MAX_MD_CHAINING_LENGTH: i32 = 64; pub const EVP_MAX_MD_BLOCK_SIZE: i32 = 128; pub const EVP_MD_FLAG_DIGALGID_ABSENT: i32 = 2; pub const EVP_MD_FLAG_XOF: i32 = 4; @@ -716,7 +808,6 @@ pub const EVP_MD_CTX_FLAG_NON_FIPS_ALLOW: i32 = 0; pub const DIGEST_R_INPUT_NOT_INITIALIZED: i32 = 100; pub const DIGEST_R_DECODE_ERROR: i32 = 101; pub const DIGEST_R_UNKNOWN_HASH: i32 = 102; -pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const DSA_R_BAD_Q_VALUE: i32 = 100; pub const DSA_R_MISSING_PARAMETERS: i32 = 101; pub const DSA_R_MODULUS_TOO_LARGE: i32 = 102; @@ -725,8 +816,10 @@ pub const DSA_R_BAD_VERSION: i32 = 104; pub const DSA_R_DECODE_ERROR: i32 = 105; pub const DSA_R_ENCODE_ERROR: i32 = 106; pub const DSA_R_INVALID_PARAMETERS: i32 = 107; +pub const DSA_R_TOO_MANY_ITERATIONS: i32 = 108; pub const OPENSSL_EC_EXPLICIT_CURVE: i32 = 0; pub const OPENSSL_EC_NAMED_CURVE: i32 = 1; +pub const ENGINE_R_OPERATION_NOT_SUPPORTED: i32 = 100; pub const EC_PKEY_NO_PARAMETERS: i32 = 1; pub const EC_PKEY_NO_PUBKEY: i32 = 2; pub const ECDSA_FLAG_OPAQUE: i32 = 1; @@ -775,6 +868,7 @@ pub const ECDSA_R_NOT_IMPLEMENTED: i32 = 103; pub const ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED: i32 = 104; pub const ECDSA_R_ENCODE_ERROR: i32 = 105; pub const ECDSA_R_MISMATCHED_SIGNATURE: i32 = 205; +pub const ECDSA_R_TOO_MANY_ITERATIONS: i32 = 106; pub const EVP_R_BUFFER_TOO_SMALL: i32 = 100; pub const EVP_R_COMMAND_NOT_SUPPORTED: i32 = 101; pub const EVP_R_DECODE_ERROR: i32 = 102; @@ -813,6 +907,8 @@ pub const EVP_R_INVALID_PEER_KEY: i32 = 134; pub const EVP_R_NOT_XOF_OR_INVALID_LENGTH: i32 = 135; pub const EVP_R_EMPTY_PSK: i32 = 136; pub const EVP_R_INVALID_BUFFER_SIZE: i32 = 137; +pub const EVP_R_BAD_DECRYPT: i32 = 138; +pub const EVP_R_EXPECTING_A_DH_KEY: i32 = 139; pub const EVP_R_INVALID_PSS_MD: i32 = 500; pub const EVP_R_INVALID_PSS_SALT_LEN: i32 = 501; pub const EVP_R_INVALID_PSS_TRAILER_FIELD: i32 = 502; @@ -3096,8 +3192,6 @@ pub const NID_kx_any: i32 = 957; pub const SN_auth_any: &[u8; 8] = b"AuthANY\0"; pub const LN_auth_any: &[u8; 9] = b"auth-any\0"; pub const NID_auth_any: i32 = 958; -pub const SN_CECPQ2: &[u8; 7] = b"CECPQ2\0"; -pub const NID_CECPQ2: i32 = 959; pub const SN_ED448: &[u8; 6] = b"ED448\0"; pub const NID_ED448: i32 = 960; pub const SN_X448: &[u8; 5] = b"X448\0"; @@ -3137,23 +3231,80 @@ pub const SN_KYBER768_R3: &[u8; 12] = b"KYBER768_R3\0"; pub const NID_KYBER768_R3: i32 = 973; pub const SN_KYBER1024_R3: &[u8; 13] = b"KYBER1024_R3\0"; pub const NID_KYBER1024_R3: i32 = 974; +pub const SN_DILITHIUM3_R3: &[u8; 14] = b"DILITHIUM3_R3\0"; +pub const NID_DILITHIUM3_R3: i32 = 975; +pub const SN_ffdhe2048: &[u8; 10] = b"ffdhe2048\0"; +pub const NID_ffdhe2048: i32 = 976; +pub const SN_ffdhe4096: &[u8; 10] = b"ffdhe4096\0"; +pub const NID_ffdhe4096: i32 = 977; +pub const SN_sha512_224: &[u8; 11] = b"SHA512-224\0"; +pub const LN_sha512_224: &[u8; 11] = b"sha512-224\0"; +pub const NID_sha512_224: i32 = 978; +pub const SN_shake128: &[u8; 9] = b"SHAKE128\0"; +pub const LN_shake128: &[u8; 9] = b"shake128\0"; +pub const NID_shake128: i32 = 979; +pub const SN_shake256: &[u8; 9] = b"SHAKE256\0"; +pub const LN_shake256: &[u8; 9] = b"shake256\0"; +pub const NID_shake256: i32 = 980; +pub const SN_SecP256r1Kyber768Draft00: &[u8; 25] = b"SecP256r1Kyber768Draft00\0"; +pub const NID_SecP256r1Kyber768Draft00: i32 = 981; +pub const SN_X25519Kyber768Draft00: &[u8; 22] = b"X25519Kyber768Draft00\0"; +pub const NID_X25519Kyber768Draft00: i32 = 982; +pub const SN_ffdhe3072: &[u8; 10] = b"ffdhe3072\0"; +pub const NID_ffdhe3072: i32 = 983; +pub const SN_ffdhe8192: &[u8; 10] = b"ffdhe8192\0"; +pub const NID_ffdhe8192: i32 = 984; +pub const SN_MLKEM512IPD: &[u8; 12] = b"MLKEM512IPD\0"; +pub const NID_MLKEM512IPD: i32 = 985; +pub const SN_MLKEM768IPD: &[u8; 12] = b"MLKEM768IPD\0"; +pub const NID_MLKEM768IPD: i32 = 986; +pub const SN_MLKEM1024IPD: &[u8; 13] = b"MLKEM1024IPD\0"; +pub const NID_MLKEM1024IPD: i32 = 987; +pub const SN_MLKEM512: &[u8; 9] = b"MLKEM512\0"; +pub const NID_MLKEM512: i32 = 988; +pub const SN_MLKEM768: &[u8; 9] = b"MLKEM768\0"; +pub const NID_MLKEM768: i32 = 989; +pub const SN_MLKEM1024: &[u8; 10] = b"MLKEM1024\0"; +pub const NID_MLKEM1024: i32 = 990; +pub const SN_X25519MLKEM768: &[u8; 15] = b"X25519MLKEM768\0"; +pub const NID_X25519MLKEM768: i32 = 991; +pub const SN_SecP256r1MLKEM768: &[u8; 18] = b"SecP256r1MLKEM768\0"; +pub const NID_SecP256r1MLKEM768: i32 = 992; +pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; +pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; +pub const OBJ_R_UNKNOWN_NID: i32 = 100; +pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const EVP_PKEY_NONE: i32 = 0; pub const EVP_PKEY_RSA: i32 = 6; pub const EVP_PKEY_RSA_PSS: i32 = 912; -pub const EVP_PKEY_DSA: i32 = 116; pub const EVP_PKEY_EC: i32 = 408; pub const EVP_PKEY_ED25519: i32 = 949; pub const EVP_PKEY_X25519: i32 = 948; -pub const EVP_PKEY_KYBER512: i32 = 971; pub const EVP_PKEY_HKDF: i32 = 969; -pub const EVP_PKEY_KEM: i32 = 970; +pub const EVP_PKEY_HMAC: i32 = 855; pub const EVP_PKEY_DH: i32 = 28; +pub const EVP_PKEY_KEM: i32 = 970; +pub const PKCS5_SALT_LEN: i32 = 8; pub const EVP_PKEY_RSA2: i32 = 19; pub const EVP_PKEY_X448: i32 = 961; pub const EVP_PKEY_ED448: i32 = 960; +pub const EVP_PKEY_DSA: i32 = 116; 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; +pub const HMAC_R_SET_PRECOMPUTED_KEY_EXPORT_NOT_CALLED: i32 = 103; +pub const HMAC_R_NOT_CALLED_JUST_AFTER_INIT: i32 = 104; pub const EVP_HPKE_DHKEM_X25519_HKDF_SHA256: i32 = 32; pub const EVP_HPKE_MAX_PUBLIC_KEY_LENGTH: i32 = 32; pub const EVP_HPKE_MAX_PRIVATE_KEY_LENGTH: i32 = 32; @@ -3173,26 +3324,26 @@ pub const HRSS_POLY3_BYTES: i32 = 140; pub const HRSS_PRIVATE_KEY_BYTES: i32 = 1452; pub const MD4_CBLOCK: i32 = 64; pub const MD4_DIGEST_LENGTH: i32 = 16; -pub const OBJ_NAME_TYPE_MD_METH: i32 = 1; -pub const OBJ_NAME_TYPE_CIPHER_METH: i32 = 2; -pub const OBJ_R_UNKNOWN_NID: i32 = 100; -pub const OBJ_R_INVALID_OID_STRING: i32 = 101; pub const PKCS7_DETACHED: i32 = 64; +pub const PKCS7_BINARY: i32 = 128; +pub const PKCS7_NOATTR: i32 = 256; +pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_TEXT: i32 = 1; pub const PKCS7_NOCERTS: i32 = 2; +pub const PKCS7_NOSMIMECAP: i32 = 512; +pub const PKCS7_STREAM: i32 = 4096; pub const PKCS7_NOSIGS: i32 = 4; pub const PKCS7_NOCHAIN: i32 = 8; pub const PKCS7_NOINTERN: i32 = 16; pub const PKCS7_NOVERIFY: i32 = 32; -pub const PKCS7_BINARY: i32 = 128; -pub const PKCS7_NOATTR: i32 = 256; -pub const PKCS7_NOSMIMECAP: i32 = 512; -pub const PKCS7_STREAM: i32 = 4096; -pub const PKCS7_PARTIAL: i32 = 16384; pub const PKCS7_R_BAD_PKCS7_VERSION: i32 = 100; pub const PKCS7_R_NOT_PKCS7_SIGNED_DATA: i32 = 101; pub const PKCS7_R_NO_CERTIFICATES_INCLUDED: i32 = 102; pub const PKCS7_R_NO_CRLS_INCLUDED: i32 = 103; +pub const PKCS7_R_UNSUPPORTED_CONTENT_TYPE: i32 = 104; +pub const PKCS7_R_WRONG_CONTENT_TYPE: i32 = 105; +pub const PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER: i32 = 106; +pub const PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE: i32 = 107; pub const RSA_PKCS1_PADDING: i32 = 1; pub const RSA_NO_PADDING: i32 = 3; pub const RSA_PKCS1_OAEP_PADDING: i32 = 4; @@ -3201,6 +3352,8 @@ pub const RSA_PSS_SALTLEN_DIGEST: i32 = -1; pub const RSA_FLAG_OPAQUE: i32 = 1; pub const RSA_FLAG_NO_BLINDING: i32 = 8; pub const RSA_FLAG_EXT_PKEY: i32 = 32; +pub const RSA_FLAG_NO_PUBLIC_EXPONENT: i32 = 64; +pub const RSA_FLAG_LARGE_PUBLIC_EXPONENT: i32 = 128; pub const RSA_3: i32 = 3; pub const RSA_F4: i32 = 65537; pub const RSA_METHOD_FLAG_NO_CHECK: i32 = 1; @@ -3254,15 +3407,86 @@ pub const RSA_R_PUBLIC_KEY_VALIDATION_FAILED: i32 = 146; pub const RSA_R_D_OUT_OF_RANGE: i32 = 147; pub const RSA_R_BLOCK_TYPE_IS_NOT_02: i32 = 148; pub const RSA_R_MISMATCHED_SIGNATURE: i32 = 248; +pub const RSA_F_RSA_OSSL_PRIVATE_ENCRYPT: i32 = 0; +pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; +pub const X509V3_R_BAD_OBJECT: i32 = 101; +pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; +pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; +pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; +pub const X509V3_R_DIRNAME_ERROR: i32 = 105; +pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; +pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; +pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; +pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; +pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; +pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; +pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; +pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; +pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; +pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; +pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; +pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; +pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; +pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; +pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; +pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; +pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; +pub const X509V3_R_INVALID_NAME: i32 = 123; +pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; +pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; +pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; +pub const X509V3_R_INVALID_NUMBER: i32 = 127; +pub const X509V3_R_INVALID_NUMBERS: i32 = 128; +pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; +pub const X509V3_R_INVALID_OPTION: i32 = 130; +pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; +pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; +pub const X509V3_R_INVALID_PURPOSE: i32 = 133; +pub const X509V3_R_INVALID_SECTION: i32 = 134; +pub const X509V3_R_INVALID_SYNTAX: i32 = 135; +pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; +pub const X509V3_R_MISSING_VALUE: i32 = 137; +pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; +pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; +pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; +pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; +pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; +pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; +pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; +pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; +pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; +pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; +pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; +pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; +pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; +pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; +pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; +pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; +pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; +pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; +pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; +pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; +pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; +pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; +pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; +pub const X509V3_R_USER_TOO_LONG: i32 = 162; +pub const X509V3_R_INVALID_VALUE: i32 = 163; +pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; pub const X509_VERSION_1: i32 = 0; pub const X509_VERSION_2: i32 = 1; pub const X509_VERSION_3: i32 = 2; -pub const X509_CRL_VERSION_1: i32 = 0; -pub const X509_CRL_VERSION_2: i32 = 1; -pub const X509_REQ_VERSION_1: i32 = 0; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; +pub const EXFLAG_BCONS: i32 = 1; +pub const EXFLAG_KUSAGE: i32 = 2; +pub const EXFLAG_XKUSAGE: i32 = 4; +pub const EXFLAG_NSCERT: i32 = 8; +pub const EXFLAG_CA: i32 = 16; +pub const EXFLAG_SI: i32 = 32; +pub const EXFLAG_V1: i32 = 64; +pub const EXFLAG_INVALID: i32 = 128; +pub const EXFLAG_SET: i32 = 256; +pub const EXFLAG_CRITICAL: i32 = 512; +pub const EXFLAG_SS: i32 = 8192; pub const X509v3_KU_DIGITAL_SIGNATURE: i32 = 128; pub const X509v3_KU_NON_REPUDIATION: i32 = 64; pub const X509v3_KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3272,60 +3496,29 @@ pub const X509v3_KU_KEY_CERT_SIGN: i32 = 4; pub const X509v3_KU_CRL_SIGN: i32 = 2; pub const X509v3_KU_ENCIPHER_ONLY: i32 = 1; pub const X509v3_KU_DECIPHER_ONLY: i32 = 32768; -pub const X509v3_KU_UNDEF: i32 = 65535; -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_OCSP_SIGN: i32 = 6; -pub const X509_TRUST_OCSP_REQUEST: i32 = 7; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_MIN: i32 = 1; -pub const X509_TRUST_MAX: i32 = 8; -pub const X509_TRUST_DYNAMIC: i32 = 1; -pub const X509_TRUST_DYNAMIC_NAME: i32 = 2; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -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 XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_COMPAT: i32 = 0; -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_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 XKU_SSL_SERVER: i32 = 1; +pub const XKU_SSL_CLIENT: i32 = 2; +pub const XKU_SMIME: i32 = 4; +pub const XKU_CODE_SIGN: i32 = 8; +pub const XKU_SGC: i32 = 16; +pub const XKU_OCSP_SIGN: i32 = 32; +pub const XKU_TIMESTAMP: i32 = 64; +pub const XKU_DVCS: i32 = 128; +pub const XKU_ANYEKU: i32 = 256; +pub const X509_SIG_INFO_VALID: i32 = 1; +pub const X509_SIG_INFO_TLS: i32 = 2; +pub const X509_CRL_VERSION_1: i32 = 0; +pub const X509_CRL_VERSION_2: i32 = 1; +pub const X509_REQ_VERSION_1: i32 = 0; +pub const GEN_OTHERNAME: i32 = 0; +pub const GEN_EMAIL: i32 = 1; +pub const GEN_DNS: i32 = 2; +pub const GEN_X400: i32 = 3; +pub const GEN_DIRNAME: i32 = 4; +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_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3387,31 +3580,117 @@ 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_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; -pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; -pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; -pub const X509_V_FLAG_X509_STRICT: i32 = 0; -pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; -pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; -pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; -pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; -pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; -pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; -pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; -pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; -pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; -pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; +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; +pub const X509_V_FLAG_CRL_CHECK_ALL: i32 = 8; +pub const X509_V_FLAG_IGNORE_CRITICAL: i32 = 16; +pub const X509_V_FLAG_X509_STRICT: i32 = 0; +pub const X509_V_FLAG_ALLOW_PROXY_CERTS: i32 = 64; +pub const X509_V_FLAG_POLICY_CHECK: i32 = 128; +pub const X509_V_FLAG_EXPLICIT_POLICY: i32 = 256; +pub const X509_V_FLAG_INHIBIT_ANY: i32 = 512; +pub const X509_V_FLAG_INHIBIT_MAP: i32 = 1024; +pub const X509_V_FLAG_NOTIFY_POLICY: i32 = 2048; +pub const X509_V_FLAG_EXTENDED_CRL_SUPPORT: i32 = 4096; +pub const X509_V_FLAG_USE_DELTAS: i32 = 8192; +pub const X509_V_FLAG_CHECK_SS_SIGNATURE: i32 = 16384; +pub const X509_V_FLAG_TRUSTED_FIRST: i32 = 32768; pub const X509_V_FLAG_PARTIAL_CHAIN: i32 = 524288; pub const X509_V_FLAG_NO_ALT_CHAINS: i32 = 1048576; pub const X509_V_FLAG_NO_CHECK_TIME: i32 = 2097152; -pub const X509_VP_FLAG_DEFAULT: i32 = 1; -pub const X509_VP_FLAG_OVERWRITE: i32 = 2; -pub const X509_VP_FLAG_RESET_FLAGS: i32 = 4; -pub const X509_VP_FLAG_LOCKED: i32 = 8; -pub const X509_VP_FLAG_ONCE: i32 = 16; pub const X509_V_FLAG_POLICY_MASK: i32 = 1920; +pub const X509V3_EXT_CTX_DEP: i32 = 2; +pub const X509V3_EXT_MULTILINE: i32 = 4; +pub const CRLDP_ALL_REASONS: i32 = 32895; +pub const NS_SSL_CLIENT: i32 = 128; +pub const NS_SSL_SERVER: i32 = 64; +pub const NS_SMIME: i32 = 32; +pub const NS_OBJSIGN: i32 = 16; +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 X509V3_ADD_OP_MASK: i32 = 15; +pub const X509V3_ADD_DEFAULT: i32 = 0; +pub const X509V3_ADD_APPEND: i32 = 1; +pub const X509V3_ADD_REPLACE: i32 = 2; +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_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -3457,19 +3736,7 @@ pub const X509_R_NO_CERTIFICATE_FOUND: i32 = 141; pub const X509_R_NO_CERTIFICATE_OR_CRL_FOUND: i32 = 142; pub const X509_R_NO_CRL_FOUND: i32 = 143; pub const X509_R_INVALID_POLICY_EXTENSION: i32 = 144; -pub const X509V3_EXT_DYNAMIC: i32 = 1; -pub const X509V3_EXT_CTX_DEP: i32 = 2; -pub const X509V3_EXT_MULTILINE: i32 = 4; -pub const GEN_OTHERNAME: i32 = 0; -pub const GEN_EMAIL: i32 = 1; -pub const GEN_DNS: i32 = 2; -pub const GEN_X400: i32 = 3; -pub const GEN_DIRNAME: i32 = 4; -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 CRLDP_ALL_REASONS: i32 = 32895; +pub const X509_R_UNKNOWN_SIGID_ALGS: i32 = 145; pub const CRL_REASON_NONE: i32 = -1; pub const CRL_REASON_UNSPECIFIED: i32 = 0; pub const CRL_REASON_KEY_COMPROMISE: i32 = 1; @@ -3481,26 +3748,6 @@ pub const CRL_REASON_CERTIFICATE_HOLD: i32 = 6; pub const CRL_REASON_REMOVE_FROM_CRL: i32 = 8; pub const CRL_REASON_PRIVILEGE_WITHDRAWN: i32 = 9; pub const CRL_REASON_AA_COMPROMISE: i32 = 10; -pub const IDP_PRESENT: i32 = 1; -pub const IDP_INVALID: i32 = 2; -pub const IDP_ONLYUSER: i32 = 4; -pub const IDP_ONLYCA: i32 = 8; -pub const IDP_ONLYATTR: i32 = 16; -pub const IDP_INDIRECT: i32 = 32; -pub const IDP_REASONS: i32 = 64; -pub const EXFLAG_BCONS: i32 = 1; -pub const EXFLAG_KUSAGE: i32 = 2; -pub const EXFLAG_XKUSAGE: i32 = 4; -pub const EXFLAG_NSCERT: i32 = 8; -pub const EXFLAG_CA: i32 = 16; -pub const EXFLAG_SI: i32 = 32; -pub const EXFLAG_V1: i32 = 64; -pub const EXFLAG_INVALID: i32 = 128; -pub const EXFLAG_SET: i32 = 256; -pub const EXFLAG_CRITICAL: i32 = 512; -pub const EXFLAG_PROXY: i32 = 1024; -pub const EXFLAG_FRESHEST: i32 = 4096; -pub const EXFLAG_SS: i32 = 8192; pub const KU_DIGITAL_SIGNATURE: i32 = 128; pub const KU_NON_REPUDIATION: i32 = 64; pub const KU_KEY_ENCIPHERMENT: i32 = 32; @@ -3510,124 +3757,24 @@ pub const KU_KEY_CERT_SIGN: i32 = 4; pub const KU_CRL_SIGN: i32 = 2; pub const KU_ENCIPHER_ONLY: i32 = 1; pub const KU_DECIPHER_ONLY: i32 = 32768; -pub const NS_SSL_CLIENT: i32 = 128; -pub const NS_SSL_SERVER: i32 = 64; -pub const NS_SMIME: i32 = 32; -pub const NS_OBJSIGN: i32 = 16; -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 XKU_SSL_SERVER: i32 = 1; -pub const XKU_SSL_CLIENT: i32 = 2; -pub const XKU_SMIME: i32 = 4; -pub const XKU_CODE_SIGN: i32 = 8; -pub const XKU_SGC: i32 = 16; -pub const XKU_OCSP_SIGN: i32 = 32; -pub const XKU_TIMESTAMP: i32 = 64; -pub const XKU_DVCS: i32 = 128; -pub const XKU_ANYEKU: i32 = 256; -pub const X509_PURPOSE_DYNAMIC: i32 = 1; -pub const X509_PURPOSE_DYNAMIC_NAME: i32 = 2; -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_PURPOSE_MIN: i32 = 1; -pub const X509_PURPOSE_MAX: i32 = 9; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509V3_ADD_OP_MASK: i32 = 15; -pub const X509V3_ADD_DEFAULT: i32 = 0; -pub const X509V3_ADD_APPEND: i32 = 1; -pub const X509V3_ADD_REPLACE: i32 = 2; -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 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 X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: 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_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509V3_R_BAD_IP_ADDRESS: i32 = 100; -pub const X509V3_R_BAD_OBJECT: i32 = 101; -pub const X509V3_R_BN_DEC2BN_ERROR: i32 = 102; -pub const X509V3_R_BN_TO_ASN1_INTEGER_ERROR: i32 = 103; -pub const X509V3_R_CANNOT_FIND_FREE_FUNCTION: i32 = 104; -pub const X509V3_R_DIRNAME_ERROR: i32 = 105; -pub const X509V3_R_DISTPOINT_ALREADY_SET: i32 = 106; -pub const X509V3_R_DUPLICATE_ZONE_ID: i32 = 107; -pub const X509V3_R_ERROR_CONVERTING_ZONE: i32 = 108; -pub const X509V3_R_ERROR_CREATING_EXTENSION: i32 = 109; -pub const X509V3_R_ERROR_IN_EXTENSION: i32 = 110; -pub const X509V3_R_EXPECTED_A_SECTION_NAME: i32 = 111; -pub const X509V3_R_EXTENSION_EXISTS: i32 = 112; -pub const X509V3_R_EXTENSION_NAME_ERROR: i32 = 113; -pub const X509V3_R_EXTENSION_NOT_FOUND: i32 = 114; -pub const X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED: i32 = 115; -pub const X509V3_R_EXTENSION_VALUE_ERROR: i32 = 116; -pub const X509V3_R_ILLEGAL_EMPTY_EXTENSION: i32 = 117; -pub const X509V3_R_ILLEGAL_HEX_DIGIT: i32 = 118; -pub const X509V3_R_INCORRECT_POLICY_SYNTAX_TAG: i32 = 119; -pub const X509V3_R_INVALID_BOOLEAN_STRING: i32 = 120; -pub const X509V3_R_INVALID_EXTENSION_STRING: i32 = 121; -pub const X509V3_R_INVALID_MULTIPLE_RDNS: i32 = 122; -pub const X509V3_R_INVALID_NAME: i32 = 123; -pub const X509V3_R_INVALID_NULL_ARGUMENT: i32 = 124; -pub const X509V3_R_INVALID_NULL_NAME: i32 = 125; -pub const X509V3_R_INVALID_NULL_VALUE: i32 = 126; -pub const X509V3_R_INVALID_NUMBER: i32 = 127; -pub const X509V3_R_INVALID_NUMBERS: i32 = 128; -pub const X509V3_R_INVALID_OBJECT_IDENTIFIER: i32 = 129; -pub const X509V3_R_INVALID_OPTION: i32 = 130; -pub const X509V3_R_INVALID_POLICY_IDENTIFIER: i32 = 131; -pub const X509V3_R_INVALID_PROXY_POLICY_SETTING: i32 = 132; -pub const X509V3_R_INVALID_PURPOSE: i32 = 133; -pub const X509V3_R_INVALID_SECTION: i32 = 134; -pub const X509V3_R_INVALID_SYNTAX: i32 = 135; -pub const X509V3_R_ISSUER_DECODE_ERROR: i32 = 136; -pub const X509V3_R_MISSING_VALUE: i32 = 137; -pub const X509V3_R_NEED_ORGANIZATION_AND_NUMBERS: i32 = 138; -pub const X509V3_R_NO_CONFIG_DATABASE: i32 = 139; -pub const X509V3_R_NO_ISSUER_CERTIFICATE: i32 = 140; -pub const X509V3_R_NO_ISSUER_DETAILS: i32 = 141; -pub const X509V3_R_NO_POLICY_IDENTIFIER: i32 = 142; -pub const X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED: i32 = 143; -pub const X509V3_R_NO_PUBLIC_KEY: i32 = 144; -pub const X509V3_R_NO_SUBJECT_DETAILS: i32 = 145; -pub const X509V3_R_ODD_NUMBER_OF_DIGITS: i32 = 146; -pub const X509V3_R_OPERATION_NOT_DEFINED: i32 = 147; -pub const X509V3_R_OTHERNAME_ERROR: i32 = 148; -pub const X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED: i32 = 149; -pub const X509V3_R_POLICY_PATH_LENGTH: i32 = 150; -pub const X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED: i32 = 151; -pub const X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY: i32 = 152; -pub const X509V3_R_SECTION_NOT_FOUND: i32 = 153; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS: i32 = 154; -pub const X509V3_R_UNABLE_TO_GET_ISSUER_KEYID: i32 = 155; -pub const X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT: i32 = 156; -pub const X509V3_R_UNKNOWN_EXTENSION: i32 = 157; -pub const X509V3_R_UNKNOWN_EXTENSION_NAME: i32 = 158; -pub const X509V3_R_UNKNOWN_OPTION: i32 = 159; -pub const X509V3_R_UNSUPPORTED_OPTION: i32 = 160; -pub const X509V3_R_UNSUPPORTED_TYPE: i32 = 161; -pub const X509V3_R_USER_TOO_LONG: i32 = 162; -pub const X509V3_R_INVALID_VALUE: i32 = 163; -pub const X509V3_R_TRAILING_DATA_IN_EXTENSION: i32 = 164; +pub const OCSP_REVOKED_STATUS_UNSPECIFIED: i32 = 0; +pub const OCSP_REVOKED_STATUS_KEYCOMPROMISE: i32 = 1; +pub const OCSP_REVOKED_STATUS_CACOMPROMISE: i32 = 2; +pub const OCSP_REVOKED_STATUS_AFFILIATIONCHANGED: i32 = 3; +pub const OCSP_REVOKED_STATUS_SUPERSEDED: i32 = 4; +pub const OCSP_REVOKED_STATUS_CESSATIONOFOPERATION: i32 = 5; +pub const OCSP_REVOKED_STATUS_CERTIFICATEHOLD: i32 = 6; +pub const OCSP_REVOKED_STATUS_REMOVEFROMCRL: i32 = 8; +pub const OCSP_REVOKED_STATUS_PRIVILEGEWITHDRAWN: i32 = 9; +pub const OCSP_REVOKED_STATUS_AACOMPROMISE: i32 = 10; +pub const OCSP_NOCERTS: i32 = 1; pub const OCSP_NOINTERN: i32 = 2; pub const OCSP_NOCHAIN: i32 = 8; +pub const OCSP_NOVERIFY: i32 = 16; pub const OCSP_NOEXPLICIT: i32 = 32; +pub const OCSP_TRUSTOTHER: i32 = 512; +pub const OCSP_RESPID_KEY: i32 = 1024; +pub const OCSP_NOTIME: i32 = 2048; pub const OCSP_RESPONSE_STATUS_SUCCESSFUL: i32 = 0; pub const OCSP_RESPONSE_STATUS_MALFORMEDREQUEST: i32 = 1; pub const OCSP_RESPONSE_STATUS_INTERNALERROR: i32 = 2; @@ -3639,19 +3786,38 @@ pub const V_OCSP_RESPID_KEY: i32 = 1; pub const V_OCSP_CERTSTATUS_GOOD: i32 = 0; pub const V_OCSP_CERTSTATUS_REVOKED: i32 = 1; pub const V_OCSP_CERTSTATUS_UNKNOWN: i32 = 2; +pub const OCSP_NONCE_EQUAL: i32 = 1; +pub const OCSP_NONCE_BOTH_ABSENT: i32 = 2; +pub const OCSP_NONCE_RESPONSE_ONLY: i32 = 3; +pub const OCSP_NONCE_NOT_EQUAL: i32 = 0; +pub const OCSP_NONCE_REQUEST_ONLY: i32 = -1; pub const OCSP_R_CERTIFICATE_VERIFY_ERROR: i32 = 101; pub const OCSP_R_DIGEST_ERR: i32 = 102; pub const OCSP_R_MISSING_OCSPSIGNING_USAGE: i32 = 103; pub const OCSP_R_NOT_BASIC_RESPONSE: i32 = 104; pub const OCSP_R_NO_CERTIFICATES_IN_CHAIN: i32 = 105; pub const OCSP_R_NO_RESPONSE_DATA: i32 = 108; +pub const OCSP_R_NO_REVOKED_TIME: i32 = 109; +pub const OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE: i32 = 110; pub const OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA: i32 = 111; pub const OCSP_R_ROOT_CA_NOT_TRUSTED: i32 = 112; +pub const OCSP_R_SERVER_RESPONSE_PARSE_ERROR: i32 = 115; pub const OCSP_R_SIGNATURE_FAILURE: i32 = 117; pub const OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND: i32 = 118; pub const OCSP_R_UNKNOWN_MESSAGE_DIGEST: i32 = 119; pub const OCSP_R_UNKNOWN_NID: i32 = 120; +pub const OCSP_R_ERROR_PARSING_URL: i32 = 121; +pub const OCSP_R_ERROR_IN_NEXTUPDATE_FIELD: i32 = 122; +pub const OCSP_R_ERROR_IN_THISUPDATE_FIELD: i32 = 123; +pub const OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE: i32 = 124; +pub const OCSP_R_STATUS_EXPIRED: i32 = 125; +pub const OCSP_R_STATUS_NOT_YET_VALID: i32 = 126; +pub const OCSP_R_STATUS_TOO_OLD: i32 = 127; +pub const OCSP_R_REQUEST_NOT_SIGNED: i32 = 128; +pub const OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE: i32 = 129; pub const OCSP_R_NO_SIGNER_KEY: i32 = 130; +pub const OCSP_R_OCSP_REQUEST_DUPLICATE_SIGNATURE: i32 = 131; +pub const OCSP_R_UNKNOWN_FIELD_VALUE: i32 = 132; pub const PEM_BUFSIZE: i32 = 1024; pub const PEM_STRING_X509_OLD: &[u8; 17] = b"X509 CERTIFICATE\0"; pub const PEM_STRING_X509: &[u8; 12] = b"CERTIFICATE\0"; @@ -3675,7 +3841,9 @@ pub const PEM_STRING_DHPARAMS: &[u8; 14] = b"DH PARAMETERS\0"; pub const PEM_STRING_SSL_SESSION: &[u8; 23] = b"SSL SESSION PARAMETERS\0"; pub const PEM_STRING_DSAPARAMS: &[u8; 15] = b"DSA PARAMETERS\0"; pub const PEM_STRING_ECDSA_PUBLIC: &[u8; 17] = b"ECDSA PUBLIC KEY\0"; +pub const PEM_STRING_ECPARAMETERS: &[u8; 14] = b"EC PARAMETERS\0"; pub const PEM_STRING_ECPRIVATEKEY: &[u8; 15] = b"EC PRIVATE KEY\0"; +pub const PEM_STRING_PARAMETERS: &[u8; 11] = b"PARAMETERS\0"; pub const PEM_STRING_CMS: &[u8; 4] = b"CMS\0"; pub const PEM_TYPE_ENCRYPTED: i32 = 10; pub const PEM_TYPE_MIC_ONLY: i32 = 20; @@ -3696,6 +3864,7 @@ pub const PEM_R_READ_KEY: i32 = 111; pub const PEM_R_SHORT_HEADER: i32 = 112; pub const PEM_R_UNSUPPORTED_CIPHER: i32 = 113; pub const PEM_R_UNSUPPORTED_ENCRYPTION: i32 = 114; +pub const PEM_R_PROBLEMS_GETTING_PASSWORD: i32 = 115; pub const PKCS12_DEFAULT_ITER: i32 = 2048; pub const PKCS8_R_BAD_PKCS12_DATA: i32 = 100; pub const PKCS8_R_BAD_PKCS12_VERSION: i32 = 101; @@ -3731,11 +3900,12 @@ pub const PKCS8_R_UNSUPPORTED_PRF: i32 = 130; pub const PKCS8_R_INVALID_CHARACTERS: i32 = 131; pub const PKCS8_R_UNSUPPORTED_OPTIONS: i32 = 132; pub const PKCS8_R_AMBIGUOUS_FRIENDLY_NAME: i32 = 133; +pub const PKCS12_R_MAC_VERIFY_FAILURE: i32 = 108; pub const RIPEMD160_CBLOCK: i32 = 64; pub const RIPEMD160_LBLOCK: i32 = 16; pub const RIPEMD160_DIGEST_LENGTH: i32 = 20; pub const AWSLC_MODE_STRING: &[u8; 8] = b"AWS-LC \0"; -pub const AWSLC_VERSION_STRING: &[u8; 14] = b"AWS-LC 2.0.15\0"; +pub const AWSLC_VERSION_STRING: &[u8; 13] = b"AWS-LC 3.0.0\0"; pub const TRUST_TOKEN_MAX_PRIVATE_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_MAX_PUBLIC_KEY_SIZE: i32 = 512; pub const TRUST_TOKEN_R_KEYGEN_FAILURE: i32 = 100; @@ -3899,6 +4069,7 @@ pub type AUTHORITY_KEYID = AUTHORITY_KEYID_st; pub type BASIC_CONSTRAINTS = BASIC_CONSTRAINTS_st; pub type DIST_POINT = DIST_POINT_st; pub type DSA_SIG = DSA_SIG_st; +pub type GENERAL_NAME = GENERAL_NAME_st; pub type ISSUING_DIST_POINT = ISSUING_DIST_POINT_st; pub type NAME_CONSTRAINTS = NAME_CONSTRAINTS_st; pub type NETSCAPE_SPKAC = Netscape_spkac_st; @@ -3950,6 +4121,12 @@ pub struct X509_req_st { pub type X509_REQ = X509_req_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct x509_sig_info_st { + _unused: [u8; 0], +} +pub type X509_SIG_INFO = x509_sig_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct X509_sig_st { _unused: [u8; 0], } @@ -4012,6 +4189,11 @@ pub struct dh_st { _unused: [u8; 0], } pub type DH = dh_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_st { + _unused: [u8; 0], +} pub type DSA = dsa_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4031,7 +4213,12 @@ pub struct ec_point_st { _unused: [u8; 0], } pub type EC_POINT = ec_point_st; -pub type ECDSA_METHOD = ecdsa_method_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_key_method_st { + _unused: [u8; 0], +} +pub type EC_KEY_METHOD = ec_key_method_st; pub type ECDSA_SIG = ecdsa_sig_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4095,32 +4282,75 @@ pub struct kem_key_st { pub type KEM_KEY = kem_key_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_asn1_method_st { +pub struct evp_pkey_ctx_st { _unused: [u8; 0], } -pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; +pub type EVP_PKEY_CTX = evp_pkey_ctx_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_ctx_st { +pub struct evp_pkey_asn1_method_st { _unused: [u8; 0], } -pub type EVP_PKEY_CTX = evp_pkey_ctx_st; +pub type EVP_PKEY_ASN1_METHOD = evp_pkey_asn1_method_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct evp_pkey_method_st { +pub struct evp_pkey_st { _unused: [u8; 0], } -pub type EVP_PKEY_METHOD = evp_pkey_method_st; pub type EVP_PKEY = evp_pkey_st; pub type HMAC_CTX = hmac_ctx_st; pub type MD4_CTX = md4_state_st; pub type MD5_CTX = md5_state_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_req_ctx_st { + _unused: [u8; 0], +} +pub type OCSP_REQ_CTX = ocsp_req_ctx_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ossl_init_settings_st { _unused: [u8; 0], } pub type OPENSSL_INIT_SETTINGS = ossl_init_settings_st; +pub type PKCS7 = pkcs7_st; +pub type PKCS7_SIGNED = pkcs7_signed_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_ENVELOPE = pkcs7_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_sign_envelope_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGN_ENVELOPE = pkcs7_sign_envelope_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_digest_st { + _unused: [u8; 0], +} +pub type PKCS7_DIGEST = pkcs7_digest_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_encrypt_st { + _unused: [u8; 0], +} +pub type PKCS7_ENCRYPT = pkcs7_encrypt_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_recip_info_st { + _unused: [u8; 0], +} +pub type PKCS7_RECIP_INFO = pkcs7_recip_info_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pkcs7_signer_info_st { + _unused: [u8; 0], +} +pub type PKCS7_SIGNER_INFO = pkcs7_signer_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pkcs12_st { @@ -4136,6 +4366,11 @@ pub type PKCS8_PRIV_KEY_INFO = pkcs8_priv_key_info_st; pub type X509_PKEY = private_key_st; pub type RAND_METHOD = rand_meth_st; pub type RC4_KEY = rc4_key_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_meth_st { + _unused: [u8; 0], +} pub type RSA_METHOD = rsa_meth_st; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -4144,6 +4379,11 @@ pub struct rsassa_pss_params_st { } pub type RSASSA_PSS_PARAMS = rsassa_pss_params_st; pub type RSA_PSS_PARAMS = rsa_pss_params_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rsa_st { + _unused: [u8; 0], +} pub type RSA = rsa_st; pub type SHA256_CTX = sha256_state_st; pub type SHA512_CTX = sha512_state_st; @@ -4246,6 +4486,7 @@ pub struct trust_token_method_st { } pub type TRUST_TOKEN_METHOD = trust_token_method_st; pub type X509V3_CTX = v3_ext_ctx; +pub type X509V3_EXT_METHOD = v3_ext_method; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x509_attributes_st { @@ -4348,7 +4589,7 @@ impl Default for aes_key_st { } pub type AES_KEY = aes_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_encrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_encrypt_key"] pub fn AES_set_encrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4356,7 +4597,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_set_decrypt_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_set_decrypt_key"] pub fn AES_set_decrypt_key( key: *const u8, bits: ::std::os::raw::c_uint, @@ -4364,15 +4605,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_encrypt"] pub fn AES_encrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_decrypt"] pub fn AES_decrypt(in_: *const u8, out: *mut u8, key: *const AES_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ctr128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ctr128_encrypt"] pub fn AES_ctr128_encrypt( in_: *const u8, out: *mut u8, @@ -4384,7 +4625,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ecb_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ecb_encrypt"] pub fn AES_ecb_encrypt( in_: *const u8, out: *mut u8, @@ -4393,7 +4634,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cbc_encrypt"] pub fn AES_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -4404,7 +4645,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_ofb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_ofb128_encrypt"] pub fn AES_ofb128_encrypt( in_: *const u8, out: *mut u8, @@ -4415,7 +4656,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_cfb128_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_cfb128_encrypt"] pub fn AES_cfb128_encrypt( in_: *const u8, out: *mut u8, @@ -4427,7 +4668,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key"] pub fn AES_wrap_key( key: *const AES_KEY, iv: *const u8, @@ -4437,7 +4678,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key"] pub fn AES_unwrap_key( key: *const AES_KEY, iv: *const u8, @@ -4447,7 +4688,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_wrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_wrap_key_padded"] pub fn AES_wrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4458,7 +4699,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_unwrap_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_unwrap_key_padded"] pub fn AES_unwrap_key_padded( key: *const AES_KEY, out: *mut u8, @@ -4686,27 +4927,27 @@ impl Default for buf_mem_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_new"] pub fn BUF_MEM_new() -> *mut BUF_MEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_free"] pub fn BUF_MEM_free(buf: *mut BUF_MEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_reserve"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_reserve"] pub fn BUF_MEM_reserve(buf: *mut BUF_MEM, cap: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow"] pub fn BUF_MEM_grow(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_grow_clean"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_grow_clean"] pub fn BUF_MEM_grow_clean(buf: *mut BUF_MEM, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_MEM_append"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_MEM_append"] pub fn BUF_MEM_append( buf: *mut BUF_MEM, in_: *const ::std::os::raw::c_void, @@ -4714,29 +4955,29 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strdup"] pub fn BUF_strdup(str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strnlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strnlen"] pub fn BUF_strnlen(str_: *const ::std::os::raw::c_char, max_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strndup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strndup"] pub fn BUF_strndup( str_: *const ::std::os::raw::c_char, size: usize, ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_memdup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_memdup"] pub fn BUF_memdup( data: *const ::std::os::raw::c_void, size: usize, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcpy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcpy"] pub fn BUF_strlcpy( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -4744,7 +4985,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BUF_strlcat"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BUF_strlcat"] pub fn BUF_strlcat( dst: *mut ::std::os::raw::c_char, src: *const ::std::os::raw::c_char, @@ -4752,330 +4993,104 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_BIO_strings"] - pub fn ERR_load_BIO_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_ERR_strings"] - pub fn ERR_load_ERR_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_crypto_strings"] - pub fn ERR_load_crypto_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_load_RAND_strings"] - pub fn ERR_load_RAND_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_free_strings"] - pub fn ERR_free_strings(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error"] - pub fn ERR_get_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line"] - pub fn ERR_get_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_error_line_data"] - pub fn ERR_get_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error"] - pub fn ERR_peek_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line"] - pub fn ERR_peek_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_error_line_data"] - pub fn ERR_peek_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error"] - pub fn ERR_peek_last_error() -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line"] - pub fn ERR_peek_last_error_line( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_peek_last_error_line_data"] - pub fn ERR_peek_last_error_line_data( - file: *mut *const ::std::os::raw::c_char, - line: *mut ::std::os::raw::c_int, - data: *mut *const ::std::os::raw::c_char, - flags: *mut ::std::os::raw::c_int, - ) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string_n"] - pub fn ERR_error_string_n( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - len: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_lib_error_string"] - pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Init"] + pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_reason_error_string"] - pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -pub type ERR_print_errors_callback_t = ::std::option::Option< - unsafe extern "C" fn( - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Update"] + pub fn SHA1_Update( + sha: *mut SHA_CTX, + data: *const ::std::os::raw::c_void, len: usize, - ctx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_cb"] - pub fn ERR_print_errors_cb( - callback: ERR_print_errors_callback_t, - ctx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors_fp"] - pub fn ERR_print_errors_fp(file: *mut FILE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_error"] - pub fn ERR_clear_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_mark"] - pub fn ERR_set_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_pop_to_mark"] - pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_get_next_error_library"] - pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; -} -pub const ERR_LIB_NONE: _bindgen_ty_1 = 1; -pub const ERR_LIB_SYS: _bindgen_ty_1 = 2; -pub const ERR_LIB_BN: _bindgen_ty_1 = 3; -pub const ERR_LIB_RSA: _bindgen_ty_1 = 4; -pub const ERR_LIB_DH: _bindgen_ty_1 = 5; -pub const ERR_LIB_EVP: _bindgen_ty_1 = 6; -pub const ERR_LIB_BUF: _bindgen_ty_1 = 7; -pub const ERR_LIB_OBJ: _bindgen_ty_1 = 8; -pub const ERR_LIB_PEM: _bindgen_ty_1 = 9; -pub const ERR_LIB_DSA: _bindgen_ty_1 = 10; -pub const ERR_LIB_X509: _bindgen_ty_1 = 11; -pub const ERR_LIB_ASN1: _bindgen_ty_1 = 12; -pub const ERR_LIB_CONF: _bindgen_ty_1 = 13; -pub const ERR_LIB_CRYPTO: _bindgen_ty_1 = 14; -pub const ERR_LIB_EC: _bindgen_ty_1 = 15; -pub const ERR_LIB_SSL: _bindgen_ty_1 = 16; -pub const ERR_LIB_BIO: _bindgen_ty_1 = 17; -pub const ERR_LIB_PKCS7: _bindgen_ty_1 = 18; -pub const ERR_LIB_PKCS8: _bindgen_ty_1 = 19; -pub const ERR_LIB_X509V3: _bindgen_ty_1 = 20; -pub const ERR_LIB_RAND: _bindgen_ty_1 = 21; -pub const ERR_LIB_ENGINE: _bindgen_ty_1 = 22; -pub const ERR_LIB_OCSP: _bindgen_ty_1 = 23; -pub const ERR_LIB_UI: _bindgen_ty_1 = 24; -pub const ERR_LIB_COMP: _bindgen_ty_1 = 25; -pub const ERR_LIB_ECDSA: _bindgen_ty_1 = 26; -pub const ERR_LIB_ECDH: _bindgen_ty_1 = 27; -pub const ERR_LIB_HMAC: _bindgen_ty_1 = 28; -pub const ERR_LIB_DIGEST: _bindgen_ty_1 = 29; -pub const ERR_LIB_CIPHER: _bindgen_ty_1 = 30; -pub const ERR_LIB_HKDF: _bindgen_ty_1 = 31; -pub const ERR_LIB_TRUST_TOKEN: _bindgen_ty_1 = 32; -pub const ERR_LIB_USER: _bindgen_ty_1 = 33; -pub const ERR_NUM_LIBS: _bindgen_ty_1 = 34; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_state"] - pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_remove_thread_state"] - pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_func_error_string"] - pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_error_string"] - pub fn ERR_error_string( - packed_error: u32, - buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_clear_system_error"] - pub fn ERR_clear_system_error(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_put_error"] - pub fn ERR_put_error( - library: ::std::os::raw::c_int, - unused: ::std::os::raw::c_int, - reason: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_uint, - ); + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_data"] - pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Final"] + pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_add_error_dataf"] - pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1"] + pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_set_error_data"] - pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA1_Transform"] + pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); } -pub type OPENSSL_sk_free_func = - ::std::option::Option; -pub type OPENSSL_sk_copy_func = ::std::option::Option< - unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *const ::std::os::raw::c_void, - b: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - obj: *mut ::std::os::raw::c_void, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_free_func = ::std::option::Option< - unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), ->; -pub type OPENSSL_sk_call_copy_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_copy_func, - arg2: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, ->; -pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_cmp_func, - arg2: *const *const ::std::os::raw::c_void, - arg3: *const *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: OPENSSL_sk_delete_if_func, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct stack_st { - pub num: usize, - pub data: *mut *mut ::std::os::raw::c_void, - pub sorted: ::std::os::raw::c_int, - pub num_alloc: usize, - pub comp: OPENSSL_sk_cmp_func, +pub struct sha_state_st { + pub h: [u32; 5usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_stack_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha_state_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!(stack_st)) + ::std::mem::size_of::(), + 96usize, + concat!("Size of: ", stringify!(sha_state_st)) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(stack_st)) + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num) + stringify!(h) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(data) + stringify!(Nl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sorted) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(sorted) + stringify!(Nh) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_alloc) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(num_alloc) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).comp) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 92usize, concat!( "Offset of field: ", - stringify!(stack_st), + stringify!(sha_state_st), "::", - stringify!(comp) + stringify!(num) ) ); } -impl Default for stack_st { +impl Default for sha_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5084,354 +5099,278 @@ impl Default for stack_st { } } } -pub type _STACK = stack_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new"] - pub fn sk_new(comp: OPENSSL_sk_cmp_func) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Init"] + pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_new_null"] - pub fn sk_new_null() -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Update"] + pub fn SHA224_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_num"] - pub fn sk_num(sk: *const _STACK) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224_Final"] + pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_zero"] - pub fn sk_zero(sk: *mut _STACK); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA224"] + pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_value"] - pub fn sk_value(sk: *const _STACK, i: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Init"] + pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set"] - pub fn sk_set( - sk: *mut _STACK, - i: usize, - p: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Update"] + pub fn SHA256_Update( + sha: *mut SHA256_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_free"] - pub fn sk_free(sk: *mut _STACK); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Final"] + pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free_ex"] - pub fn sk_pop_free_ex( - sk: *mut _STACK, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256"] + pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_insert"] - pub fn sk_insert(sk: *mut _STACK, p: *mut ::std::os::raw::c_void, where_: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_Transform"] + pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete"] - pub fn sk_delete(sk: *mut _STACK, where_: usize) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA256_TransformBlocks"] + pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_ptr"] - pub fn sk_delete_ptr( - sk: *mut _STACK, - p: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct sha256_state_st { + pub h: [u32; 8usize], + pub Nl: u32, + pub Nh: u32, + pub data: [u8; 64usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_delete_if"] - pub fn sk_delete_if( - sk: *mut _STACK, - call_func: OPENSSL_sk_call_delete_if_func, - func: OPENSSL_sk_delete_if_func, - data: *mut ::std::os::raw::c_void, +#[test] +fn bindgen_test_layout_sha256_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 112usize, + concat!("Size of: ", stringify!(sha256_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(sha256_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(Nh) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(sha256_state_st), + "::", + stringify!(md_len) + ) ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_find"] - pub fn sk_find( - sk: *const _STACK, - out_index: *mut usize, - p: *const ::std::os::raw::c_void, - call_cmp_func: OPENSSL_sk_call_cmp_func, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_shift"] - pub fn sk_shift(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; +impl Default for sha256_state_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_fips_0_12_15_sk_push"] - pub fn sk_push(sk: *mut _STACK, p: *mut ::std::os::raw::c_void) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Init"] + pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop"] - pub fn sk_pop(sk: *mut _STACK) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Update"] + pub fn SHA384_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_dup"] - pub fn sk_dup(sk: *const _STACK) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384_Final"] + pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_sort"] - pub fn sk_sort(sk: *mut _STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA384"] + pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_is_sorted"] - pub fn sk_is_sorted(sk: *const _STACK) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Init"] + pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_set_cmp_func"] - pub fn sk_set_cmp_func(sk: *mut _STACK, comp: OPENSSL_sk_cmp_func) -> OPENSSL_sk_cmp_func; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Update"] + pub fn SHA512_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_deep_copy"] - pub fn sk_deep_copy( - sk: *const _STACK, - call_copy_func: OPENSSL_sk_call_copy_func, - copy_func: OPENSSL_sk_copy_func, - call_free_func: OPENSSL_sk_call_free_func, - free_func: OPENSSL_sk_free_func, - ) -> *mut _STACK; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Final"] + pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_sk_pop_free"] - pub fn sk_pop_free(sk: *mut _STACK, free_func: OPENSSL_sk_free_func); -} -pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_void { - _unused: [u8; 0], -} -pub type sk_void_free_func = - ::std::option::Option; -pub type sk_void_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type sk_void_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type sk_void_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_OPENSSL_STRING { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512"] + pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } -pub type sk_OPENSSL_STRING_free_func = - ::std::option::Option; -pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, ->; -pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ::std::os::raw::c_char, - arg2: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_char, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_DATA = crypto_ex_data_st; -pub type CRYPTO_EX_free = ::std::option::Option< - unsafe extern "C" fn( - parent: *mut ::std::os::raw::c_void, - ptr: *mut ::std::os::raw::c_void, - ad: *mut CRYPTO_EX_DATA, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ), ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_cleanup_all_ex_data"] - pub fn CRYPTO_cleanup_all_ex_data(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_Transform"] + pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); } -pub type CRYPTO_EX_dup = ::std::option::Option< - unsafe extern "C" fn( - to: *mut CRYPTO_EX_DATA, - from: *const CRYPTO_EX_DATA, - from_d: *mut *mut ::std::os::raw::c_void, - index: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type CRYPTO_EX_unused = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct crypto_ex_data_st { - pub sk: *mut stack_st_void, +pub struct sha512_state_st { + pub h: [u64; 8usize], + pub Nl: u64, + pub Nh: u64, + pub p: [u8; 128usize], + pub num: ::std::os::raw::c_uint, + pub md_len: ::std::os::raw::c_uint, } #[test] -fn bindgen_test_layout_crypto_ex_data_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_sha512_state_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!(crypto_ex_data_st)) + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(sha512_state_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(crypto_ex_data_st)) + concat!("Alignment of ", stringify!(sha512_state_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(crypto_ex_data_st), + stringify!(sha512_state_st), "::", - stringify!(sk) + stringify!(h) ) ); -} -impl Default for crypto_ex_data_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() - } - } -} -pub type CRYPTO_MUTEX = pthread_rwlock_t; -pub type CRYPTO_refcount_t = u32; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_clear"] - pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AWSLC_thread_local_shutdown"] - pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_num_locks"] - pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_locking_callback"] - pub fn CRYPTO_set_locking_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_add_lock_callback"] - pub fn CRYPTO_set_add_lock_callback( - func: ::std::option::Option< - unsafe extern "C" fn( - num: *mut ::std::os::raw::c_int, - amount: ::std::os::raw::c_int, - lock_num: ::std::os::raw::c_int, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_locking_callback"] - pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_lock_name"] - pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_callback"] - pub fn CRYPTO_THREADID_set_callback( - threadid_func: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_numeric"] - pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_set_pointer"] - pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_THREADID_current"] - pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_id_callback"] - pub fn CRYPTO_set_id_callback( - func: ::std::option::Option ::std::os::raw::c_ulong>, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nl) + ) ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct CRYPTO_dynlock { - pub references: ::std::os::raw::c_int, - pub data: *mut CRYPTO_dynlock_value, -} -#[test] -fn bindgen_test_layout_CRYPTO_dynlock() { - 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!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(Nh) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(sha512_state_st), + "::", + stringify!(p) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 208usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(references) + stringify!(num) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, + 212usize, concat!( "Offset of field: ", - stringify!(CRYPTO_dynlock), + stringify!(sha512_state_st), "::", - stringify!(data) + stringify!(md_len) ) ); } -impl Default for CRYPTO_dynlock { +impl Default for sha512_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -5441,951 +5380,1036 @@ impl Default for CRYPTO_dynlock { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_create_callback"] - pub fn CRYPTO_set_dynlock_create_callback( - dyn_create_function: ::std::option::Option< - unsafe extern "C" fn( - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Init"] + pub fn SHA512_224_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_lock_callback"] - pub fn CRYPTO_set_dynlock_lock_callback( - dyn_lock_function: ::std::option::Option< - unsafe extern "C" fn( - mode: ::std::os::raw::c_int, - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Update"] + pub fn SHA512_224_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_dynlock_destroy_callback"] - pub fn CRYPTO_set_dynlock_destroy_callback( - dyn_destroy_function: ::std::option::Option< - unsafe extern "C" fn( - l: *mut CRYPTO_dynlock_value, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ), - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224_Final"] + pub fn SHA512_224_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_create_callback"] - pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> *mut CRYPTO_dynlock_value, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_224"] + pub fn SHA512_224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_lock_callback"] - pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut CRYPTO_dynlock_value, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Init"] + pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_get_dynlock_destroy_callback"] - pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CRYPTO_dynlock_value, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Update"] + pub fn SHA512_256_Update( + sha: *mut SHA512_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_BIO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256_Final"] + pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; } -pub type sk_BIO_free_func = ::std::option::Option; -pub type sk_BIO_copy_func = - ::std::option::Option *mut BIO>; -pub type sk_BIO_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const BIO, arg2: *mut *const BIO) -> ::std::os::raw::c_int, ->; -pub type sk_BIO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new"] - pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SHA512_256"] + pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free"] - pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc"] + pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vfree"] - pub fn BIO_vfree(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_zalloc"] + pub fn OPENSSL_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_up_ref"] - pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_calloc"] + pub fn OPENSSL_calloc(num: usize, size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read"] - pub fn BIO_read( - bio: *mut BIO, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_realloc"] + pub fn OPENSSL_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_gets"] - pub fn BIO_gets( - bio: *mut BIO, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_free"] + pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write"] - pub fn BIO_write( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanse"] + pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_all"] - pub fn BIO_write_all( - bio: *mut BIO, - data: *const ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_memcmp"] + pub fn CRYPTO_memcmp( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_puts"] - pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hash32"] + pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_flush"] - pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strhash"] + pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl"] - pub fn BIO_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - parg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strdup"] + pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ptr_ctrl"] - pub fn BIO_ptr_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_int_ctrl"] - pub fn BIO_int_ctrl( - bp: *mut BIO, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - iarg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strnlen"] + pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_reset"] - pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalpha"] + pub fn OPENSSL_isalpha(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_eof"] - pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isdigit"] + pub fn OPENSSL_isdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_flags"] - pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isxdigit"] + pub fn OPENSSL_isxdigit(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_test_flags"] - pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_fromxdigit"] + pub fn OPENSSL_fromxdigit(out: *mut u8, c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_read"] - pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_hexstr2buf"] + pub fn OPENSSL_hexstr2buf(str_: *const ::std::os::raw::c_char, len: *mut usize) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_write"] - pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isalnum"] + pub fn OPENSSL_isalnum(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_retry"] - pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_tolower"] + pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_should_io_special"] - pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_isspace"] + pub fn OPENSSL_isspace(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_reason"] - pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strcasecmp"] + pub fn OPENSSL_strcasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_reason"] - pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strncasecmp"] + pub fn OPENSSL_strncasecmp( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + n: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_flags"] - pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_snprintf"] + pub fn BIO_snprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_read"] - pub fn BIO_set_retry_read(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vsnprintf"] + pub fn BIO_vsnprintf( + buf: *mut ::std::os::raw::c_char, + n: usize, + format: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_write"] - pub fn BIO_set_retry_write(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_vasprintf"] + pub fn OPENSSL_vasprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_retry_flags"] - pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_asprintf"] + pub fn OPENSSL_asprintf( + str_: *mut *mut ::std::os::raw::c_char, + format: *const ::std::os::raw::c_char, + ... + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_clear_retry_flags"] - pub fn BIO_clear_retry_flags(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strndup"] + pub fn OPENSSL_strndup( + str_: *const ::std::os::raw::c_char, + size: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_method_type"] - pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_memdup"] + pub fn OPENSSL_memdup( + data: *const ::std::os::raw::c_void, + size: usize, + ) -> *mut ::std::os::raw::c_void; } -pub type bio_info_cb = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - event: ::std::os::raw::c_int, - parg: *const ::std::os::raw::c_char, - cmd: ::std::os::raw::c_int, - larg: ::std::os::raw::c_long, - return_value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long, ->; -pub type BIO_callback_fn_ex = ::std::option::Option< - unsafe extern "C" fn( - bio: *mut BIO, - oper: ::std::os::raw::c_int, - argp: *const ::std::os::raw::c_char, - len: usize, - argi: ::std::os::raw::c_int, - argl: ::std::os::raw::c_long, - bio_ret: ::std::os::raw::c_int, - processed: *mut usize, - ) -> ::std::os::raw::c_long, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_callback_ctrl"] - pub fn BIO_callback_ctrl( - bio: *mut BIO, - cmd: ::std::os::raw::c_int, - fp: bio_info_cb, - ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcpy"] + pub fn OPENSSL_strlcpy( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pending"] - pub fn BIO_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_strlcat"] + pub fn OPENSSL_strlcat( + dst: *mut ::std::os::raw::c_char, + src: *const ::std::os::raw::c_char, + dst_size: usize, + ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_pending"] - pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc"] + pub fn CRYPTO_malloc( + size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_wpending"] - pub fn BIO_wpending(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_realloc"] + pub fn CRYPTO_realloc( + ptr: *mut ::std::os::raw::c_void, + new_size: usize, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_close"] - pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_free"] + pub fn CRYPTO_free( + ptr: *mut ::std::os::raw::c_void, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_read"] - pub fn BIO_number_read(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_clear_free"] + pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_number_written"] - pub fn BIO_number_written(bio: *const BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_mem_functions"] + pub fn CRYPTO_set_mem_functions( + m: ::std::option::Option< + unsafe extern "C" fn( + arg1: usize, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + r: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: usize, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void, + >, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_ex"] - pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_init"] + pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_callback_arg"] - pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_malloc_initialized"] + pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_callback_arg"] - pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_secure_used"] + pub fn CRYPTO_secure_used() -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_push"] - pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_malloc"] + pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_pop"] - pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_zalloc"] + pub fn OPENSSL_secure_zalloc(size: usize) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_next"] - pub fn BIO_next(bio: *mut BIO) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_secure_clear_free"] + pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); } +pub type CRYPTO_MUTEX = pthread_rwlock_t; +pub type CRYPTO_refcount_t = u32; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_free_all"] - pub fn BIO_free_all(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_clear"] + pub fn AWSLC_thread_local_clear() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_find_type"] - pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AWSLC_thread_local_shutdown"] + pub fn AWSLC_thread_local_shutdown() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_copy_next_retry"] - pub fn BIO_copy_next_retry(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_num_locks"] + pub fn CRYPTO_num_locks() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_printf"] - pub fn BIO_printf( - bio: *mut BIO, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_locking_callback"] + pub fn CRYPTO_set_locking_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_indent"] - pub fn BIO_indent( - bio: *mut BIO, - indent: ::std::os::raw::c_uint, - max_indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_add_lock_callback"] + pub fn CRYPTO_set_add_lock_callback( + func: ::std::option::Option< + unsafe extern "C" fn( + num: *mut ::std::os::raw::c_int, + amount: ::std::os::raw::c_int, + lock_num: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_hexdump"] - pub fn BIO_hexdump( - bio: *mut BIO, - data: *const u8, - len: usize, - indent: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_locking_callback"] + pub fn CRYPTO_get_locking_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_print_errors"] - pub fn ERR_print_errors(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_lock_name"] + pub fn CRYPTO_get_lock_name(lock_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_asn1"] - pub fn BIO_read_asn1( - bio: *mut BIO, - out: *mut *mut u8, - out_len: *mut usize, - max_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_callback"] + pub fn CRYPTO_THREADID_set_callback( + threadid_func: ::std::option::Option, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_mem"] - pub fn BIO_s_mem() -> *const BIO_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_mem_buf"] - pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_mem_contents"] - pub fn BIO_mem_contents( - bio: *const BIO, - out_contents: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_numeric"] + pub fn CRYPTO_THREADID_set_numeric(id: *mut CRYPTO_THREADID, val: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_mem_ptr"] - pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_set_pointer"] + pub fn CRYPTO_THREADID_set_pointer(id: *mut CRYPTO_THREADID, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_buf"] - pub fn BIO_set_mem_buf( - bio: *mut BIO, - b: *mut BUF_MEM, - take_ownership: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_THREADID_current"] + pub fn CRYPTO_THREADID_current(id: *mut CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_mem_eof_return"] - pub fn BIO_set_mem_eof_return( - bio: *mut BIO, - eof_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_id_callback"] + pub fn CRYPTO_set_id_callback( + func: ::std::option::Option ::std::os::raw::c_ulong>, + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_fd"] - pub fn BIO_s_fd() -> *const BIO_METHOD; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct CRYPTO_dynlock { + pub references: ::std::os::raw::c_int, + pub data: *mut CRYPTO_dynlock_value, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fd"] - pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; +#[test] +fn bindgen_test_layout_CRYPTO_dynlock() { + 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!(CRYPTO_dynlock)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(CRYPTO_dynlock)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(references) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(CRYPTO_dynlock), + "::", + stringify!(data) + ) + ); +} +impl Default for CRYPTO_dynlock { + 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_fips_0_12_15_BIO_set_fd"] - pub fn BIO_set_fd( - bio: *mut BIO, - fd: ::std::os::raw::c_int, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_create_callback"] + pub fn CRYPTO_set_dynlock_create_callback( + dyn_create_function: ::std::option::Option< + unsafe extern "C" fn( + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fd"] - pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_lock_callback"] + pub fn CRYPTO_set_dynlock_lock_callback( + dyn_lock_function: ::std::option::Option< + unsafe extern "C" fn( + mode: ::std::os::raw::c_int, + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_file"] - pub fn BIO_s_file() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_set_dynlock_destroy_callback"] + pub fn CRYPTO_set_dynlock_destroy_callback( + dyn_destroy_function: ::std::option::Option< + unsafe extern "C" fn( + l: *mut CRYPTO_dynlock_value, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_int, + ), + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_file"] - pub fn BIO_new_file( - filename: *const ::std::os::raw::c_char, - mode: *const ::std::os::raw::c_char, - ) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_create_callback"] + pub fn CRYPTO_get_dynlock_create_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> *mut CRYPTO_dynlock_value, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_fp"] - pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_lock_callback"] + pub fn CRYPTO_get_dynlock_lock_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut CRYPTO_dynlock_value, + arg3: *const ::std::os::raw::c_char, + arg4: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_fp"] - pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_get_dynlock_destroy_callback"] + pub fn CRYPTO_get_dynlock_destroy_callback() -> ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CRYPTO_dynlock_value, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ), + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_fp"] - pub fn BIO_set_fp( - bio: *mut BIO, - file: *mut FILE, - close_flag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_library_init"] + pub fn CRYPTO_library_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_read_filename"] - pub fn BIO_read_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_is_confidential_build"] + pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_write_filename"] - pub fn BIO_write_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_has_asm"] + pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_append_filename"] - pub fn BIO_append_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BORINGSSL_self_test"] + pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_rw_filename"] - pub fn BIO_rw_filename( - bio: *mut BIO, - filename: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_tell"] - pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_pre_sandbox_init"] + pub fn CRYPTO_pre_sandbox_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_seek"] - pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode"] + pub fn FIPS_mode() -> ::std::os::raw::c_int; } +pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; +pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; +pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; +pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; +pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; +pub type fips_counter_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_socket"] - pub fn BIO_s_socket() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_read_counter"] + pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_socket"] - pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) - -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version"] + pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_s_connect"] - pub fn BIO_s_connect() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay_version"] + pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_connect"] - pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_SSLeay"] + pub fn SSLeay() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_hostname"] - pub fn BIO_set_conn_hostname( - bio: *mut BIO, - host_and_optional_port: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_version_num"] + pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_port"] - pub fn BIO_set_conn_port( - bio: *mut BIO, - port_str: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_api_version_num"] + pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_conn_int_port"] - pub fn BIO_set_conn_int_port( - bio: *mut BIO, - port: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_malloc_init"] + pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_nbio"] - pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_malloc_init"] + pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_do_connect"] - pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_load_builtin_engines"] + pub fn ENGINE_load_builtin_engines(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_new_bio_pair"] - pub fn BIO_new_bio_pair( - out1: *mut *mut BIO, - writebuf1: usize, - out2: *mut *mut BIO, - writebuf2: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_register_all_complete"] + pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_read_request"] - pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_load_builtin_modules"] + pub fn OPENSSL_load_builtin_modules(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_ctrl_get_write_guarantee"] - pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init_crypto"] + pub fn OPENSSL_init_crypto( + opts: u64, + settings: *const OPENSSL_INIT_SETTINGS, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_shutdown_wr"] - pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_init"] + pub fn OPENSSL_init(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_new_index"] - pub fn BIO_get_new_index() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_cleanup"] + pub fn OPENSSL_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_new"] - pub fn BIO_meth_new( - type_: ::std::os::raw::c_int, - name: *const ::std::os::raw::c_char, - ) -> *mut BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_mode_set"] + pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_free"] - pub fn BIO_meth_free(method: *mut BIO_METHOD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_BIO_strings"] + pub fn ERR_load_BIO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_create"] - pub fn BIO_meth_set_create( - method: *mut BIO_METHOD, - create: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_ERR_strings"] + pub fn ERR_load_ERR_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_create"] - pub fn BIO_meth_get_create( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_CRYPTO_strings"] + pub fn ERR_load_CRYPTO_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_destroy"] - pub fn BIO_meth_set_destroy( - method: *mut BIO_METHOD, - destroy: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_crypto_strings"] + pub fn ERR_load_crypto_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_destroy"] - pub fn BIO_meth_get_destroy( - method: *const BIO_METHOD, - ) -> ::std::option::Option ::std::os::raw::c_int>; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_load_RAND_strings"] + pub fn ERR_load_RAND_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_write"] - pub fn BIO_meth_set_write( - method: *mut BIO_METHOD, - write: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_free_strings"] + pub fn ERR_free_strings(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_read"] - pub fn BIO_meth_set_read( - method: *mut BIO_METHOD, - read: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error"] + pub fn ERR_get_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_gets"] - pub fn BIO_meth_set_gets( - method: *mut BIO_METHOD, - gets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line"] + pub fn ERR_get_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_gets"] - pub fn BIO_meth_get_gets( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *mut ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_error_line_data"] + pub fn ERR_get_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_ctrl"] - pub fn BIO_meth_set_ctrl( - method: *mut BIO_METHOD, - ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error"] + pub fn ERR_peek_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_ctrl"] - pub fn BIO_meth_get_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_long, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line"] + pub fn ERR_peek_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_callback_ctrl"] - pub fn BIO_meth_set_callback_ctrl( - method: *mut BIO_METHOD, - callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_error_line_data"] + pub fn ERR_peek_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_callback_ctrl"] - pub fn BIO_meth_get_callback_ctrl( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: ::std::os::raw::c_int, - arg2: bio_info_cb, - ) -> ::std::os::raw::c_long, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error"] + pub fn ERR_peek_last_error() -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_data"] - pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line"] + pub fn ERR_peek_last_error_line( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_data"] - pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_peek_last_error_line_data"] + pub fn ERR_peek_last_error_line_data( + file: *mut *const ::std::os::raw::c_char, + line: *mut ::std::os::raw::c_int, + data: *mut *const ::std::os::raw::c_char, + flags: *mut ::std::os::raw::c_int, + ) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_init"] - pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string_n"] + pub fn ERR_error_string_n( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + len: usize, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_init"] - pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_lib_error_string"] + pub fn ERR_lib_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_new_index"] - pub fn BIO_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_fips_0_13_0_ERR_reason_error_string"] + pub fn ERR_reason_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } +pub type ERR_print_errors_callback_t = ::std::option::Option< + unsafe extern "C" fn( + str_: *const ::std::os::raw::c_char, + len: usize, + ctx: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_ex_data"] - pub fn BIO_set_ex_data( - bio: *mut BIO, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors_cb"] + pub fn ERR_print_errors_cb( + callback: ERR_print_errors_callback_t, + ctx: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_ex_data"] - pub fn BIO_get_ex_data( - bio: *const BIO, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors_fp"] + pub fn ERR_print_errors_fp(file: *mut FILE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_f_base64"] - pub fn BIO_f_base64() -> *const BIO_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_error"] + pub fn ERR_clear_error(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_retry_special"] - pub fn BIO_set_retry_special(bio: *mut BIO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_mark"] + pub fn ERR_set_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_write_buffer_size"] - pub fn BIO_set_write_buffer_size( - bio: *mut BIO, - buffer_size: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_pop_to_mark"] + pub fn ERR_pop_to_mark() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_set_shutdown"] - pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_get_next_error_library"] + pub fn ERR_get_next_error_library() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_get_shutdown"] - pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_state"] + pub fn ERR_remove_state(pid: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_set_puts"] - pub fn BIO_meth_set_puts( - method: *mut BIO_METHOD, - puts: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_remove_thread_state"] + pub fn ERR_remove_thread_state(tid: *const CRYPTO_THREADID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_meth_get_puts"] - pub fn BIO_meth_get_puts( - method: *const BIO_METHOD, - ) -> ::std::option::Option< - unsafe extern "C" fn( - method: *mut BIO, - arg1: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_func_error_string"] + pub fn ERR_func_error_string(packed_error: u32) -> *const ::std::os::raw::c_char; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_method_st { - pub type_: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub bwrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bread: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub bputs: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub bgets: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: *mut ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_long, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_long, - >, - pub create: - ::std::option::Option ::std::os::raw::c_int>, - pub destroy: - ::std::option::Option ::std::os::raw::c_int>, - pub callback_ctrl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut BIO, - arg2: ::std::os::raw::c_int, - arg3: bio_info_cb, - ) -> ::std::os::raw::c_long, - >, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_error_string"] + pub fn ERR_error_string( + packed_error: u32, + buf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } -#[test] -fn bindgen_test_layout_bio_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(bio_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bwrite) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_clear_system_error"] + pub fn ERR_clear_system_error(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_put_error"] + pub fn ERR_put_error( + library: ::std::os::raw::c_int, + unused: ::std::os::raw::c_int, + reason: ::std::os::raw::c_int, + file: *const ::std::os::raw::c_char, + line: ::std::os::raw::c_uint, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bread) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bputs) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_data"] + pub fn ERR_add_error_data(count: ::std::os::raw::c_uint, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_add_error_dataf"] + pub fn ERR_add_error_dataf(format: *const ::std::os::raw::c_char, ...); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_set_error_data"] + pub fn ERR_set_error_data(data: *mut ::std::os::raw::c_char, flags: ::std::os::raw::c_int); +} +pub type OPENSSL_sk_free_func = + ::std::option::Option; +pub type OPENSSL_sk_copy_func = ::std::option::Option< + unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + a: *const *const ::std::os::raw::c_void, + b: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + obj: *mut ::std::os::raw::c_void, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_free_func = ::std::option::Option< + unsafe extern "C" fn(arg1: OPENSSL_sk_free_func, arg2: *mut ::std::os::raw::c_void), +>; +pub type OPENSSL_sk_call_copy_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_copy_func, + arg2: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, +>; +pub type OPENSSL_sk_call_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_cmp_func, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type OPENSSL_sk_call_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: OPENSSL_sk_delete_if_func, + arg2: *mut ::std::os::raw::c_void, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st { + _unused: [u8; 0], +} +pub type OPENSSL_STACK = stack_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new"] + pub fn OPENSSL_sk_new(comp: OPENSSL_sk_cmp_func) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_new_null"] + pub fn OPENSSL_sk_new_null() -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_num"] + pub fn OPENSSL_sk_num(sk: *const OPENSSL_STACK) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_zero"] + pub fn OPENSSL_sk_zero(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_value"] + pub fn OPENSSL_sk_value(sk: *const OPENSSL_STACK, i: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set"] + pub fn OPENSSL_sk_set( + sk: *mut OPENSSL_STACK, + i: usize, + p: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_free"] + pub fn OPENSSL_sk_free(sk: *mut OPENSSL_STACK); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop_free_ex"] + pub fn OPENSSL_sk_pop_free_ex( + sk: *mut OPENSSL_STACK, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(bgets) - ) +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_insert"] + pub fn OPENSSL_sk_insert( + sk: *mut OPENSSL_STACK, + p: *mut ::std::os::raw::c_void, + where_: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete"] + pub fn OPENSSL_sk_delete(sk: *mut OPENSSL_STACK, where_: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_ptr"] + pub fn OPENSSL_sk_delete_ptr( + sk: *mut OPENSSL_STACK, + p: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_delete_if"] + pub fn OPENSSL_sk_delete_if( + sk: *mut OPENSSL_STACK, + call_func: OPENSSL_sk_call_delete_if_func, + func: OPENSSL_sk_delete_if_func, + data: *mut ::std::os::raw::c_void, ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_find"] + pub fn OPENSSL_sk_find( + sk: *const OPENSSL_STACK, + out_index: *mut usize, + p: *const ::std::os::raw::c_void, + call_cmp_func: OPENSSL_sk_call_cmp_func, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_unshift"] + pub fn OPENSSL_sk_unshift( + sk: *mut OPENSSL_STACK, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_shift"] + pub fn OPENSSL_sk_shift(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_push"] + pub fn OPENSSL_sk_push(sk: *mut OPENSSL_STACK, p: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_pop"] + pub fn OPENSSL_sk_pop(sk: *mut OPENSSL_STACK) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_dup"] + pub fn OPENSSL_sk_dup(sk: *const OPENSSL_STACK) -> *mut OPENSSL_STACK; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_sort"] + pub fn OPENSSL_sk_sort(sk: *mut OPENSSL_STACK, call_cmp_func: OPENSSL_sk_call_cmp_func); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_is_sorted"] + pub fn OPENSSL_sk_is_sorted(sk: *const OPENSSL_STACK) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_set_cmp_func"] + pub fn OPENSSL_sk_set_cmp_func( + sk: *mut OPENSSL_STACK, + comp: OPENSSL_sk_cmp_func, + ) -> OPENSSL_sk_cmp_func; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_sk_deep_copy"] + pub fn OPENSSL_sk_deep_copy( + sk: *const OPENSSL_STACK, + call_copy_func: OPENSSL_sk_call_copy_func, + copy_func: OPENSSL_sk_copy_func, + call_free_func: OPENSSL_sk_call_free_func, + free_func: OPENSSL_sk_free_func, + ) -> *mut OPENSSL_STACK; +} +pub type _STACK = OPENSSL_STACK; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_sk_pop_free"] + pub fn sk_pop_free(sk: *mut OPENSSL_STACK, free_func: OPENSSL_sk_free_func); +} +pub type OPENSSL_STRING = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_void { + _unused: [u8; 0], +} +pub type sk_void_free_func = + ::std::option::Option; +pub type sk_void_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type sk_void_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_void, + arg2: *const *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type sk_void_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_OPENSSL_STRING { + _unused: [u8; 0], +} +pub type sk_OPENSSL_STRING_free_func = + ::std::option::Option; +pub type sk_OPENSSL_STRING_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, +>; +pub type sk_OPENSSL_STRING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ::std::os::raw::c_char, + arg2: *const *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OPENSSL_STRING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_char, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_DATA = crypto_ex_data_st; +pub type CRYPTO_EX_free = ::std::option::Option< + unsafe extern "C" fn( + parent: *mut ::std::os::raw::c_void, + ptr: *mut ::std::os::raw::c_void, + ad: *mut CRYPTO_EX_DATA, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ), +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_cleanup_all_ex_data"] + pub fn CRYPTO_cleanup_all_ex_data(); +} +pub type CRYPTO_EX_dup = ::std::option::Option< + unsafe extern "C" fn( + to: *mut CRYPTO_EX_DATA, + from: *const CRYPTO_EX_DATA, + from_d: *mut *mut ::std::os::raw::c_void, + index: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type CRYPTO_EX_unused = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct crypto_ex_data_st { + pub sk: *mut stack_st_void, +} +#[test] +fn bindgen_test_layout_crypto_ex_data_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(ctrl) - ) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(create) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(crypto_ex_data_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).sk) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(bio_method_st), + stringify!(crypto_ex_data_st), "::", - stringify!(destroy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_method_st), - "::", - stringify!(callback_ctrl) + stringify!(sk) ) ); } -impl Default for bio_method_st { +impl Default for crypto_ex_data_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6395,1053 +6419,908 @@ impl Default for bio_method_st { } } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bio_st { - pub method: *const BIO_METHOD, - pub ex_data: CRYPTO_EX_DATA, - pub callback_ex: BIO_callback_fn_ex, - pub cb_arg: *mut ::std::os::raw::c_char, - pub init: ::std::os::raw::c_int, - pub shutdown: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub retry_reason: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_int, - pub references: CRYPTO_refcount_t, - pub ptr: *mut ::std::os::raw::c_void, - pub next_bio: *mut BIO, - pub num_read: usize, - pub num_write: usize, -} -#[test] -fn bindgen_test_layout_bio_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 88usize, - concat!("Size of: ", stringify!(bio_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bio_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(method) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(callback_ex) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(cb_arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(shutdown) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(retry_reason) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(next_bio) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_read) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(bio_st), - "::", - stringify!(num_write) - ) - ); -} -impl Default for bio_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() - } - } +#[derive(Debug, Copy, Clone)] +pub struct stack_st_BIO { + _unused: [u8; 0], } -pub type BN_ULONG = u64; +pub type sk_BIO_free_func = ::std::option::Option; +pub type sk_BIO_copy_func = + ::std::option::Option *mut BIO>; +pub type sk_BIO_cmp_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const *const BIO, arg2: *const *const BIO) -> ::std::os::raw::c_int, +>; +pub type sk_BIO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_new"] - pub fn BN_new() -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new"] + pub fn BIO_new(method: *const BIO_METHOD) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_init"] - pub fn BN_init(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free"] + pub fn BIO_free(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_free"] - pub fn BN_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_vfree"] + pub fn BIO_vfree(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_free"] - pub fn BN_clear_free(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_up_ref"] + pub fn BIO_up_ref(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dup"] - pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read"] + pub fn BIO_read( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_copy"] - pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_ex"] + pub fn BIO_read_ex( + bio: *mut BIO, + data: *mut ::std::os::raw::c_void, + data_len: usize, + read_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear"] - pub fn BN_clear(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_gets"] + pub fn BIO_gets( + bio: *mut BIO, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_value_one"] - pub fn BN_value_one() -> *const BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write"] + pub fn BIO_write( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bits"] - pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_ex"] + pub fn BIO_write_ex( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + data_len: usize, + written_bytes: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_num_bytes"] - pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_all"] + pub fn BIO_write_all( + bio: *mut BIO, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_zero"] - pub fn BN_zero(bn: *mut BIGNUM); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_puts"] + pub fn BIO_puts(bio: *mut BIO, buf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_one"] - pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_flush"] + pub fn BIO_flush(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_word"] - pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl"] + pub fn BIO_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + parg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_u64"] - pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ptr_ctrl"] + pub fn BIO_ptr_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_negative"] - pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_int_ctrl"] + pub fn BIO_int_ctrl( + bp: *mut BIO, + cmd: ::std::os::raw::c_int, + larg: ::std::os::raw::c_long, + iarg: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_negative"] - pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_reset"] + pub fn BIO_reset(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bin2bn"] - pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_eof"] + pub fn BIO_eof(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin"] - pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_flags"] + pub fn BIO_set_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_le2bn"] - pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_test_flags"] + pub fn BIO_test_flags(bio: *const BIO, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2le_padded"] - pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_read"] + pub fn BIO_should_read(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2bin_padded"] - pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_write"] + pub fn BIO_should_write(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2cbb_padded"] - pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_retry"] + pub fn BIO_should_retry(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2hex"] - pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_should_io_special"] + pub fn BIO_should_io_special(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_hex2bn"] - pub fn BN_hex2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_reason"] + pub fn BIO_get_retry_reason(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2dec"] - pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_reason"] + pub fn BIO_set_retry_reason(bio: *mut BIO, reason: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_dec2bn"] - pub fn BN_dec2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_flags"] + pub fn BIO_clear_flags(bio: *mut BIO, flags: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_asc2bn"] - pub fn BN_asc2bn( - outp: *mut *mut BIGNUM, - in_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_read"] + pub fn BIO_set_retry_read(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print"] - pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_write"] + pub fn BIO_set_retry_write(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_print_fp"] - pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_retry_flags"] + pub fn BIO_get_retry_flags(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_word"] - pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_clear_retry_flags"] + pub fn BIO_clear_retry_flags(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_u64"] - pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_type"] + pub fn BIO_method_type(bio: *const BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_parse_asn1_unsigned"] - pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_method_name"] + pub fn BIO_method_name(b: *const BIO) -> *const ::std::os::raw::c_char; +} +pub type bio_info_cb = ::std::option::Option< + unsafe extern "C" fn( + b: *mut BIO, + state: ::std::os::raw::c_int, + res: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long, +>; +pub type BIO_callback_fn_ex = ::std::option::Option< + unsafe extern "C" fn( + bio: *mut BIO, + oper: ::std::os::raw::c_int, + argp: *const ::std::os::raw::c_char, + len: usize, + argi: ::std::os::raw::c_int, + argl: ::std::os::raw::c_long, + bio_ret: ::std::os::raw::c_int, + processed: *mut usize, + ) -> ::std::os::raw::c_long, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_callback_ctrl"] + pub fn BIO_callback_ctrl( + bio: *mut BIO, + cmd: ::std::os::raw::c_int, + fp: bio_info_cb, + ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_marshal_asn1"] - pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pending"] + pub fn BIO_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_new"] - pub fn BN_CTX_new() -> *mut BN_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_pending"] + pub fn BIO_ctrl_pending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_free"] - pub fn BN_CTX_free(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_wpending"] + pub fn BIO_wpending(bio: *const BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_start"] - pub fn BN_CTX_start(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_close"] + pub fn BIO_set_close(bio: *mut BIO, close_flag: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_get"] - pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_read"] + pub fn BIO_number_read(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_CTX_end"] - pub fn BN_CTX_end(ctx: *mut BN_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_number_written"] + pub fn BIO_number_written(bio: *const BIO) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add"] - pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_ex"] + pub fn BIO_set_callback_ex(bio: *mut BIO, callback_ex: BIO_callback_fn_ex); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_uadd"] - pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_callback_arg"] + pub fn BIO_set_callback_arg(bio: *mut BIO, arg: *mut ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_add_word"] - pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_callback_arg"] + pub fn BIO_get_callback_arg(bio: *const BIO) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub"] - pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_push"] + pub fn BIO_push(bio: *mut BIO, appended_bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_usub"] - pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_pop"] + pub fn BIO_pop(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sub_word"] - pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_next"] + pub fn BIO_next(bio: *mut BIO) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul"] - pub fn BN_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_free_all"] + pub fn BIO_free_all(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mul_word"] - pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_find_type"] + pub fn BIO_find_type(bio: *mut BIO, type_: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqr"] - pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_copy_next_retry"] + pub fn BIO_copy_next_retry(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div"] - pub fn BN_div( - quotient: *mut BIGNUM, - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_printf"] + pub fn BIO_printf( + bio: *mut BIO, + format: *const ::std::os::raw::c_char, + ... ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_div_word"] - pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_indent"] + pub fn BIO_indent( + bio: *mut BIO, + indent: ::std::os::raw::c_uint, + max_indent: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_sqrt"] - pub fn BN_sqrt( - out_sqrt: *mut BIGNUM, - in_: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_hexdump"] + pub fn BIO_hexdump( + bio: *mut BIO, + data: *const u8, + len: usize, + indent: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp"] - pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_print_errors"] + pub fn ERR_print_errors(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_cmp_word"] - pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_asn1"] + pub fn BIO_read_asn1( + bio: *mut BIO, + out: *mut *mut u8, + out_len: *mut usize, + max_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_ucmp"] - pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_mem"] + pub fn BIO_s_mem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_equal_consttime"] - pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_mem_buf"] + pub fn BIO_new_mem_buf(buf: *const ::std::os::raw::c_void, len: ossl_ssize_t) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_abs_is_word"] - pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_mem_contents"] + pub fn BIO_mem_contents( + bio: *const BIO, + out_contents: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_zero"] - pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_mem_ptr"] + pub fn BIO_get_mem_ptr(bio: *mut BIO, out: *mut *mut BUF_MEM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_one"] - pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_buf"] + pub fn BIO_set_mem_buf( + bio: *mut BIO, + b: *mut BUF_MEM, + take_ownership: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_word"] - pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_mem_eof_return"] + pub fn BIO_set_mem_eof_return( + bio: *mut BIO, + eof_value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_odd"] - pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_fd"] + pub fn BIO_s_fd() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_pow2"] - pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fd"] + pub fn BIO_new_fd(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift"] - pub fn BN_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fd"] + pub fn BIO_set_fd( + bio: *mut BIO, + fd: ::std::os::raw::c_int, + close_flag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_lshift1"] - pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fd"] + pub fn BIO_get_fd(bio: *mut BIO, out_fd: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift"] - pub fn BN_rshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_file"] + pub fn BIO_s_file() -> *const BIO_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_file"] + pub fn BIO_new_file( + filename: *const ::std::os::raw::c_char, + mode: *const ::std::os::raw::c_char, + ) -> *mut BIO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_fp"] + pub fn BIO_new_fp(stream: *mut FILE, close_flag: ::std::os::raw::c_int) -> *mut BIO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_fp"] + pub fn BIO_get_fp(bio: *mut BIO, out_file: *mut *mut FILE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_fp"] + pub fn BIO_set_fp( + bio: *mut BIO, + file: *mut FILE, + close_flag: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rshift1"] - pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_read_filename"] + pub fn BIO_read_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_set_bit"] - pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_write_filename"] + pub fn BIO_write_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_clear_bit"] - pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_append_filename"] + pub fn BIO_append_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_bit_set"] - pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_rw_filename"] + pub fn BIO_rw_filename( + bio: *mut BIO, + filename: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mask_bits"] - pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_tell"] + pub fn BIO_tell(bio: *mut BIO) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_count_low_zero_bits"] - pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_seek"] + pub fn BIO_seek(bio: *mut BIO, offset: ::std::os::raw::c_long) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_word"] - pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_socket"] + pub fn BIO_s_socket() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_pow2"] - pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_socket"] + pub fn BIO_new_socket(fd: ::std::os::raw::c_int, close_flag: ::std::os::raw::c_int) + -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod_pow2"] - pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_connect"] + pub fn BIO_s_connect() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_nnmod"] - pub fn BN_nnmod( - rem: *mut BIGNUM, - numerator: *const BIGNUM, - divisor: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_connect"] + pub fn BIO_new_connect(host_and_optional_port: *const ::std::os::raw::c_char) -> *mut BIO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add"] - pub fn BN_mod_add( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_hostname"] + pub fn BIO_set_conn_hostname( + bio: *mut BIO, + host_and_optional_port: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_add_quick"] - pub fn BN_mod_add_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_port"] + pub fn BIO_set_conn_port( + bio: *mut BIO, + port_str: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub"] - pub fn BN_mod_sub( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_conn_int_port"] + pub fn BIO_set_conn_int_port( + bio: *mut BIO, + port: *const ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sub_quick"] - pub fn BN_mod_sub_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_nbio"] + pub fn BIO_set_nbio(bio: *mut BIO, on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul"] - pub fn BN_mod_mul( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_do_connect"] + pub fn BIO_do_connect(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqr"] - pub fn BN_mod_sqr( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_new_bio_pair"] + pub fn BIO_new_bio_pair( + out1: *mut *mut BIO, + writebuf1: usize, + out2: *mut *mut BIO, + writebuf2: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift"] - pub fn BN_mod_lshift( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_read_request"] + pub fn BIO_ctrl_get_read_request(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift_quick"] - pub fn BN_mod_lshift_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - n: ::std::os::raw::c_int, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_ctrl_get_write_guarantee"] + pub fn BIO_ctrl_get_write_guarantee(bio: *mut BIO) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1"] - pub fn BN_mod_lshift1( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_shutdown_wr"] + pub fn BIO_shutdown_wr(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_lshift1_quick"] - pub fn BN_mod_lshift1_quick( - r: *mut BIGNUM, - a: *const BIGNUM, - m: *const BIGNUM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_new_index"] + pub fn BIO_get_new_index() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_sqrt"] - pub fn BN_mod_sqrt( - in_: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_new"] + pub fn BIO_meth_new( + type_: ::std::os::raw::c_int, + name: *const ::std::os::raw::c_char, + ) -> *mut BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand"] - pub fn BN_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_free"] + pub fn BIO_meth_free(method: *mut BIO_METHOD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand"] - pub fn BN_pseudo_rand( - rnd: *mut BIGNUM, - bits: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_create"] + pub fn BIO_meth_set_create( + method: *mut BIO_METHOD, + create: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range"] - pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_create"] + pub fn BIO_meth_get_create( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_rand_range_ex"] - pub fn BN_rand_range_ex( - r: *mut BIGNUM, - min_inclusive: BN_ULONG, - max_exclusive: *const BIGNUM, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_destroy"] + pub fn BIO_meth_set_destroy( + method: *mut BIO_METHOD, + destroy: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut BIO) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_pseudo_rand_range"] - pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_gencb_st { - pub arg: *mut ::std::os::raw::c_void, - pub callback: ::std::option::Option< - unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut bn_gencb_st, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(bn_gencb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(arg) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(bn_gencb_st), - "::", - stringify!(callback) - ) - ); -} -impl Default for bn_gencb_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_fips_0_12_15_BN_GENCB_new"] - pub fn BN_GENCB_new() -> *mut BN_GENCB; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_destroy"] + pub fn BIO_meth_get_destroy( + method: *const BIO_METHOD, + ) -> ::std::option::Option ::std::os::raw::c_int>; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_free"] - pub fn BN_GENCB_free(callback: *mut BN_GENCB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_write"] + pub fn BIO_meth_set_write( + method: *mut BIO_METHOD, + write: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_set"] - pub fn BN_GENCB_set( - callback: *mut BN_GENCB, - f: ::std::option::Option< + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_read"] + pub fn BIO_meth_set_read( + method: *mut BIO_METHOD, + read: ::std::option::Option< unsafe extern "C" fn( - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - arg1: *mut BN_GENCB, + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, ) -> ::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_fips_0_12_15_BN_GENCB_call"] - pub fn BN_GENCB_call( - callback: *mut BN_GENCB, - event: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_gets"] + pub fn BIO_meth_set_gets( + method: *mut BIO_METHOD, + gets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_GENCB_get_arg"] - pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_gets"] + pub fn BIO_meth_get_gets( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *mut ::std::os::raw::c_char, + arg2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_generate_prime_ex"] - pub fn BN_generate_prime_ex( - ret: *mut BIGNUM, - bits: ::std::os::raw::c_int, - safe: ::std::os::raw::c_int, - add: *const BIGNUM, - rem: *const BIGNUM, - cb: *mut BN_GENCB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_ctrl"] + pub fn BIO_meth_set_ctrl( + method: *mut BIO_METHOD, + ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } -pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; -pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; -pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; -pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_enhanced_miller_rabin_primality_test"] - pub fn BN_enhanced_miller_rabin_primality_test( - out_result: *mut bn_primality_result_t, - w: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_ctrl"] + pub fn BIO_meth_get_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_long, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_primality_test"] - pub fn BN_primality_test( - is_probably_prime: *mut ::std::os::raw::c_int, - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_fasttest_ex"] - pub fn BN_is_prime_fasttest_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - do_trial_division: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_is_prime_ex"] - pub fn BN_is_prime_ex( - candidate: *const BIGNUM, - checks: ::std::os::raw::c_int, - ctx: *mut BN_CTX, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_gcd"] - pub fn BN_gcd( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse"] - pub fn BN_mod_inverse( - out: *mut BIGNUM, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_blinded"] - pub fn BN_mod_inverse_blinded( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_inverse_odd"] - pub fn BN_mod_inverse_odd( - out: *mut BIGNUM, - out_no_inverse: *mut ::std::os::raw::c_int, - a: *const BIGNUM, - n: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_callback_ctrl"] + pub fn BIO_meth_set_callback_ctrl( + method: *mut BIO_METHOD, + callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_for_modulus"] - pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new_consttime"] - pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_free"] - pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_callback_ctrl"] + pub fn BIO_meth_get_callback_ctrl( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: ::std::os::raw::c_int, + arg2: bio_info_cb, + ) -> ::std::os::raw::c_long, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_copy"] - pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_data"] + pub fn BIO_set_data(bio: *mut BIO, ptr: *mut ::std::os::raw::c_void); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_montgomery"] - pub fn BN_to_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_data"] + pub fn BIO_get_data(bio: *mut BIO) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_from_montgomery"] - pub fn BN_from_montgomery( - ret: *mut BIGNUM, - a: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_init"] + pub fn BIO_set_init(bio: *mut BIO, init: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_mul_montgomery"] - pub fn BN_mod_mul_montgomery( - r: *mut BIGNUM, - a: *const BIGNUM, - b: *const BIGNUM, - mont: *const BN_MONT_CTX, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_init"] + pub fn BIO_get_init(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_exp"] - pub fn BN_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_new_index"] + pub fn BIO_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_fips_0_12_15_BN_mod_exp"] - pub fn BN_mod_exp( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_ex_data"] + pub fn BIO_set_ex_data( + bio: *mut BIO, + 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_fips_0_12_15_BN_mod_exp_mont"] - pub fn BN_mod_exp_mont( - r: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_ex_data"] + pub fn BIO_get_ex_data( + bio: *const BIO, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_consttime"] - pub fn BN_mod_exp_mont_consttime( - rr: *mut BIGNUM, - a: *const BIGNUM, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_f_base64"] + pub fn BIO_f_base64() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2mpi"] - pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_retry_special"] + pub fn BIO_set_retry_special(bio: *mut BIO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mpi2bn"] - pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_shutdown"] + pub fn BIO_set_shutdown(bio: *mut BIO, shutdown: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp_mont_word"] - pub fn BN_mod_exp_mont_word( - r: *mut BIGNUM, - a: BN_ULONG, - p: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_get_shutdown"] + pub fn BIO_get_shutdown(bio: *mut BIO) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_mod_exp2_mont"] - pub fn BN_mod_exp2_mont( - r: *mut BIGNUM, - a1: *const BIGNUM, - p1: *const BIGNUM, - a2: *const BIGNUM, - p2: *const BIGNUM, - m: *const BIGNUM, - ctx: *mut BN_CTX, - mont: *const BN_MONT_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_set_puts"] + pub fn BIO_meth_set_puts( + method: *mut BIO_METHOD, + puts: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_new"] - pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_meth_get_puts"] + pub fn BIO_meth_get_puts( + method: *const BIO_METHOD, + ) -> ::std::option::Option< + unsafe extern "C" fn( + method: *mut BIO, + arg1: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_MONT_CTX_set"] - pub fn BN_MONT_CTX_set( - mont: *mut BN_MONT_CTX, - mod_: *const BIGNUM, - ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_s_secmem"] + pub fn BIO_s_secmem() -> *const BIO_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_bn2binpad"] - pub fn BN_bn2binpad( - in_: *const BIGNUM, - out: *mut u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BIO_set_write_buffer_size"] + pub fn BIO_set_write_buffer_size( + bio: *mut BIO, + buffer_size: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_secure_new"] - pub fn BN_secure_new() -> *mut BIGNUM; -} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bignum_st { - pub d: *mut BN_ULONG, - pub width: ::std::os::raw::c_int, - pub dmax: ::std::os::raw::c_int, - pub neg: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, +pub struct bio_method_st { + pub type_: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub bwrite: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bread: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub bputs: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int, + >, + pub bgets: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: *mut ::std::os::raw::c_char, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_long, + arg4: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_long, + >, + pub create: + ::std::option::Option ::std::os::raw::c_int>, + pub destroy: + ::std::option::Option ::std::os::raw::c_int>, + pub callback_ctrl: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut BIO, + arg2: ::std::os::raw::c_int, + arg3: bio_info_cb, + ) -> ::std::os::raw::c_long, + >, } #[test] -fn bindgen_test_layout_bignum_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); +fn bindgen_test_layout_bio_method_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!(bignum_st)) + ::std::mem::size_of::(), + 80usize, + concat!("Size of: ", stringify!(bio_method_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bignum_st)) + concat!("Alignment of ", stringify!(bio_method_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(d) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(width) + stringify!(name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, - 12usize, + unsafe { ::std::ptr::addr_of!((*ptr).bwrite) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(dmax) + stringify!(bwrite) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).bread) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(neg) + stringify!(bread) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).bputs) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(bignum_st), + stringify!(bio_method_st), "::", - stringify!(flags) + stringify!(bputs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bgets) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(bgets) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ctrl) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(ctrl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(create) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(destroy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ctrl) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bio_method_st), + "::", + stringify!(callback_ctrl) ) ); } -impl Default for bignum_st { +impl Default for bio_method_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7452,267 +7331,178 @@ impl Default for bignum_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bn_mont_ctx_st { - pub RR: BIGNUM, - pub N: BIGNUM, - pub n0: [BN_ULONG; 2usize], +pub struct bio_st { + pub method: *const BIO_METHOD, + pub ex_data: CRYPTO_EX_DATA, + pub callback_ex: BIO_callback_fn_ex, + pub cb_arg: *mut ::std::os::raw::c_char, + pub init: ::std::os::raw::c_int, + pub shutdown: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub retry_reason: ::std::os::raw::c_int, + pub num: ::std::os::raw::c_int, + pub references: CRYPTO_refcount_t, + pub ptr: *mut ::std::os::raw::c_void, + pub next_bio: *mut BIO, + pub num_read: u64, + pub num_write: u64, } #[test] -fn bindgen_test_layout_bn_mont_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bio_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!(bn_mont_ctx_st)) + ::std::mem::size_of::(), + 88usize, + concat!("Size of: ", stringify!(bio_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(bn_mont_ctx_st)) + concat!("Alignment of ", stringify!(bio_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(RR) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(ex_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback_ex) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(callback_ex) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cb_arg) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(N) + stringify!(cb_arg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(init) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(shutdown) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).retry_reason) as usize - ptr as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(retry_reason) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", - stringify!(bn_mont_ctx_st), + stringify!(bio_st), "::", - stringify!(n0) + stringify!(num) ) ); -} -impl Default for bn_mont_ctx_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_fips_0_12_15_BN_num_bits_word"] - pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2bit"] - pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_tag2str"] - pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -pub type d2i_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type i2d_of_void = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ITEM_EXP = ASN1_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_VALUE_st { - _unused: [u8; 0], -} -pub type ASN1_VALUE = ASN1_VALUE_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_new"] - pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_free"] - pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i"] - pub fn ASN1_item_d2i( - out: *mut *mut ASN1_VALUE, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - ) -> *mut ASN1_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d"] - pub fn ASN1_item_i2d( - val: *mut ASN1_VALUE, - outp: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_dup"] - pub fn ASN1_item_dup( - it: *const ASN1_ITEM, - x: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_fp"] - pub fn ASN1_item_d2i_fp( - it: *const ASN1_ITEM, - in_: *mut FILE, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_d2i_bio"] - pub fn ASN1_item_d2i_bio( - it: *const ASN1_ITEM, - in_: *mut BIO, - out: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_fp"] - pub fn ASN1_item_i2d_fp( - it: *const ASN1_ITEM, - out: *mut FILE, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_i2d_bio"] - pub fn ASN1_item_i2d_bio( - it: *const ASN1_ITEM, - out: *mut BIO, - in_: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_unpack"] - pub fn ASN1_item_unpack( - oct: *const ASN1_STRING, - it: *const ASN1_ITEM, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_item_pack"] - pub fn ASN1_item_pack( - obj: *mut ::std::os::raw::c_void, - it: *const ASN1_ITEM, - out: *mut *mut ASN1_STRING, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BOOLEAN"] - pub fn d2i_ASN1_BOOLEAN( - out: *mut ASN1_BOOLEAN, - inp: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> ASN1_BOOLEAN; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BOOLEAN"] - pub fn i2d_ASN1_BOOLEAN( - a: ASN1_BOOLEAN, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BOOLEAN_it"] - pub static ASN1_BOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TBOOLEAN_it"] - pub static ASN1_TBOOLEAN_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_FBOOLEAN_it"] - pub static ASN1_FBOOLEAN_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct asn1_string_st { - pub length: ::std::os::raw::c_int, - pub type_: ::std::os::raw::c_int, - pub data: *mut ::std::os::raw::c_uchar, - pub flags: ::std::os::raw::c_long, -} -#[test] -fn bindgen_test_layout_asn1_string_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!(asn1_string_st)) - ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_string_st)) + unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(bio_st), + "::", + stringify!(references) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(length) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).next_bio) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(type_) + stringify!(next_bio) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).num_read) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(data) + stringify!(num_read) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).num_write) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(asn1_string_st), + stringify!(bio_st), "::", - stringify!(flags) + stringify!(num_write) ) ); } -impl Default for asn1_string_st { +impl Default for bio_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7721,1186 +7511,1039 @@ impl Default for asn1_string_st { } } } +pub type BN_ULONG = u64; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type_new"] - pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_new"] + pub fn BN_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_new"] - pub fn ASN1_STRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_init"] + pub fn BN_init(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_free"] - pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_free"] + pub fn BN_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_clear_free"] - pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_free"] + pub fn BN_clear_free(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_copy"] - pub fn ASN1_STRING_copy( - dst: *mut ASN1_STRING, - str_: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dup"] + pub fn BN_dup(src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_dup"] - pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_copy"] + pub fn BN_copy(dest: *mut BIGNUM, src: *const BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_type"] - pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear"] + pub fn BN_clear(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get0_data"] - pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_value_one"] + pub fn BN_value_one() -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_data"] - pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits"] + pub fn BN_num_bits(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_length"] - pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bytes"] + pub fn BN_num_bytes(bn: *const BIGNUM) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_cmp"] - pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_zero"] + pub fn BN_zero(bn: *mut BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set"] - pub fn ASN1_STRING_set( - str_: *mut ASN1_STRING, - data: *const ::std::os::raw::c_void, - len: ossl_ssize_t, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_one"] + pub fn BN_one(bn: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set0"] - pub fn ASN1_STRING_set0( - str_: *mut ASN1_STRING, - data: *mut ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_word"] + pub fn BN_set_word(bn: *mut BIGNUM, value: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_new"] - pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_u64"] + pub fn BN_set_u64(bn: *mut BIGNUM, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_new"] - pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_negative"] + pub fn BN_set_negative(bn: *mut BIGNUM, sign: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_new"] - pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_negative"] + pub fn BN_is_negative(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_new"] - pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bin2bn"] + pub fn BN_bin2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_new"] - pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin"] + pub fn BN_bn2bin(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_new"] - pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_le2bn"] + pub fn BN_le2bn(in_: *const u8, len: usize, ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_new"] - pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2le_padded"] + pub fn BN_bn2le_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_new"] - pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2bin_padded"] + pub fn BN_bn2bin_padded(out: *mut u8, len: usize, in_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_new"] - pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2cbb_padded"] + pub fn BN_bn2cbb_padded(out: *mut CBB, len: usize, in_: *const BIGNUM) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_free"] - pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2hex"] + pub fn BN_bn2hex(bn: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_free"] - pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_hex2bn"] + pub fn BN_hex2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_free"] - pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2dec"] + pub fn BN_bn2dec(a: *const BIGNUM) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_free"] - pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_dec2bn"] + pub fn BN_dec2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_free"] - pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_asc2bn"] + pub fn BN_asc2bn( + outp: *mut *mut BIGNUM, + in_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_free"] - pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print"] + pub fn BN_print(bio: *mut BIO, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_free"] - pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_print_fp"] + pub fn BN_print_fp(fp: *mut FILE, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_free"] - pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_word"] + pub fn BN_get_word(bn: *const BIGNUM) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_free"] - pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_u64"] + pub fn BN_get_u64(bn: *const BIGNUM, out: *mut u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BMPSTRING"] - pub fn d2i_ASN1_BMPSTRING( - out: *mut *mut ASN1_BMPSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BMPSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_flags"] + pub fn BN_get_flags(bn: *const BIGNUM, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALSTRING"] - pub fn d2i_ASN1_GENERALSTRING( - out: *mut *mut ASN1_GENERALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_parse_asn1_unsigned"] + pub fn BN_parse_asn1_unsigned(cbs: *mut CBS, ret: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_IA5STRING"] - pub fn d2i_ASN1_IA5STRING( - out: *mut *mut ASN1_IA5STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_IA5STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_marshal_asn1"] + pub fn BN_marshal_asn1(cbb: *mut CBB, bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OCTET_STRING"] - pub fn d2i_ASN1_OCTET_STRING( - out: *mut *mut ASN1_OCTET_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_new"] + pub fn BN_CTX_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLESTRING"] - pub fn d2i_ASN1_PRINTABLESTRING( - out: *mut *mut ASN1_PRINTABLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_PRINTABLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_free"] + pub fn BN_CTX_free(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_T61STRING"] - pub fn d2i_ASN1_T61STRING( - out: *mut *mut ASN1_T61STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_T61STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_start"] + pub fn BN_CTX_start(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UNIVERSALSTRING"] - pub fn d2i_ASN1_UNIVERSALSTRING( - out: *mut *mut ASN1_UNIVERSALSTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UNIVERSALSTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_get"] + pub fn BN_CTX_get(ctx: *mut BN_CTX) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTF8STRING"] - pub fn d2i_ASN1_UTF8STRING( - out: *mut *mut ASN1_UTF8STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTF8STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_end"] + pub fn BN_CTX_end(ctx: *mut BN_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_VISIBLESTRING"] - pub fn d2i_ASN1_VISIBLESTRING( - out: *mut *mut ASN1_VISIBLESTRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_VISIBLESTRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add"] + pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BMPSTRING"] - pub fn i2d_ASN1_BMPSTRING( - in_: *const ASN1_BMPSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_uadd"] + pub fn BN_uadd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALSTRING"] - pub fn i2d_ASN1_GENERALSTRING( - in_: *const ASN1_GENERALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_add_word"] + pub fn BN_add_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_IA5STRING"] - pub fn i2d_ASN1_IA5STRING( - in_: *const ASN1_IA5STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub"] + pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OCTET_STRING"] - pub fn i2d_ASN1_OCTET_STRING( - in_: *const ASN1_OCTET_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_usub"] + pub fn BN_usub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLESTRING"] - pub fn i2d_ASN1_PRINTABLESTRING( - in_: *const ASN1_PRINTABLESTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sub_word"] + pub fn BN_sub_word(a: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_T61STRING"] - pub fn i2d_ASN1_T61STRING( - in_: *const ASN1_T61STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul"] + pub fn BN_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UNIVERSALSTRING"] - pub fn i2d_ASN1_UNIVERSALSTRING( - in_: *const ASN1_UNIVERSALSTRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mul_word"] + pub fn BN_mul_word(bn: *mut BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTF8STRING"] - pub fn i2d_ASN1_UTF8STRING( - in_: *const ASN1_UTF8STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqr"] + pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_VISIBLESTRING"] - pub fn i2d_ASN1_VISIBLESTRING( - in_: *const ASN1_VISIBLESTRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div"] + pub fn BN_div( + quotient: *mut BIGNUM, + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BMPSTRING_it"] - pub static ASN1_BMPSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_div_word"] + pub fn BN_div_word(numerator: *mut BIGNUM, divisor: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALSTRING_it"] - pub static ASN1_GENERALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_sqrt"] + pub fn BN_sqrt( + out_sqrt: *mut BIGNUM, + in_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_IA5STRING_it"] - pub static ASN1_IA5STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp"] + pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_it"] - pub static ASN1_OCTET_STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_cmp_word"] + pub fn BN_cmp_word(a: *const BIGNUM, b: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLESTRING_it"] - pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_ucmp"] + pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_T61STRING_it"] - pub static ASN1_T61STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_equal_consttime"] + pub fn BN_equal_consttime(a: *const BIGNUM, b: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UNIVERSALSTRING_it"] - pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_abs_is_word"] + pub fn BN_abs_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTF8STRING_it"] - pub static ASN1_UTF8STRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_zero"] + pub fn BN_is_zero(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_VISIBLESTRING_it"] - pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_one"] + pub fn BN_is_one(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_dup"] - pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_word"] + pub fn BN_is_word(bn: *const BIGNUM, w: BN_ULONG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_cmp"] - pub fn ASN1_OCTET_STRING_cmp( - a: *const ASN1_OCTET_STRING, - b: *const ASN1_OCTET_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_odd"] + pub fn BN_is_odd(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OCTET_STRING_set"] - pub fn ASN1_OCTET_STRING_set( - str_: *mut ASN1_OCTET_STRING, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_pow2"] + pub fn BN_is_pow2(a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_to_UTF8"] - pub fn ASN1_STRING_to_UTF8( - out: *mut *mut ::std::os::raw::c_uchar, - in_: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift"] + pub fn BN_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_copy"] - pub fn ASN1_mbstring_copy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_lshift1"] + pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_mbstring_ncopy"] - pub fn ASN1_mbstring_ncopy( - out: *mut *mut ASN1_STRING, - in_: *const u8, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - mask: ::std::os::raw::c_ulong, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift"] + pub fn BN_rshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_by_NID"] - pub fn ASN1_STRING_set_by_NID( - out: *mut *mut ASN1_STRING, - in_: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - inform: ::std::os::raw::c_int, - nid: ::std::os::raw::c_int, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_add"] - pub fn ASN1_STRING_TABLE_add( - nid: ::std::os::raw::c_int, - minsize: ::std::os::raw::c_long, - maxsize: ::std::os::raw::c_long, - mask: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rshift1"] + pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_new"] - pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_set_bit"] + pub fn BN_set_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_free"] - pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_clear_bit"] + pub fn BN_clear_bit(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIRECTORYSTRING"] - pub fn d2i_DIRECTORYSTRING( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_bit_set"] + pub fn BN_is_bit_set(a: *const BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIRECTORYSTRING"] - pub fn i2d_DIRECTORYSTRING( - in_: *const ASN1_STRING, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mask_bits"] + pub fn BN_mask_bits(a: *mut BIGNUM, n: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIRECTORYSTRING_it"] - pub static DIRECTORYSTRING_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_count_low_zero_bits"] + pub fn BN_count_low_zero_bits(bn: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_new"] - pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_word"] + pub fn BN_mod_word(a: *const BIGNUM, w: BN_ULONG) -> BN_ULONG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_free"] - pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_pow2"] + pub fn BN_mod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DISPLAYTEXT"] - pub fn d2i_DISPLAYTEXT( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod_pow2"] + pub fn BN_nnmod_pow2(r: *mut BIGNUM, a: *const BIGNUM, e: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DISPLAYTEXT"] - pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_nnmod"] + pub fn BN_nnmod( + rem: *mut BIGNUM, + numerator: *const BIGNUM, + divisor: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DISPLAYTEXT_it"] - pub static DISPLAYTEXT_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add"] + pub fn BN_mod_add( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_new"] - pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_add_quick"] + pub fn BN_mod_add_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_free"] - pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub"] + pub fn BN_mod_sub( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_BIT_STRING"] - pub fn d2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sub_quick"] + pub fn BN_mod_sub_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_BIT_STRING"] - pub fn i2d_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul"] + pub fn BN_mod_mul( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_BIT_STRING"] - pub fn c2i_ASN1_BIT_STRING( - out: *mut *mut ASN1_BIT_STRING, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqr"] + pub fn BN_mod_sqr( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_BIT_STRING"] - pub fn i2c_ASN1_BIT_STRING( - in_: *const ASN1_BIT_STRING, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift"] + pub fn BN_mod_lshift( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_it"] - pub static ASN1_BIT_STRING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_num_bytes"] - pub fn ASN1_BIT_STRING_num_bytes( - str_: *const ASN1_BIT_STRING, - out: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift_quick"] + pub fn BN_mod_lshift_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + n: ::std::os::raw::c_int, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set"] - pub fn ASN1_BIT_STRING_set( - str_: *mut ASN1_BIT_STRING, - d: *const ::std::os::raw::c_uchar, - length: ossl_ssize_t, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1"] + pub fn BN_mod_lshift1( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_set_bit"] - pub fn ASN1_BIT_STRING_set_bit( - str_: *mut ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - value: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_lshift1_quick"] + pub fn BN_mod_lshift1_quick( + r: *mut BIGNUM, + a: *const BIGNUM, + m: *const BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_get_bit"] - pub fn ASN1_BIT_STRING_get_bit( - str_: *const ASN1_BIT_STRING, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_sqrt"] + pub fn BN_mod_sqrt( + in_: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_BIT_STRING_check"] - pub fn ASN1_BIT_STRING_check( - str_: *const ASN1_BIT_STRING, - flags: *const ::std::os::raw::c_uchar, - flags_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand"] + pub fn BN_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_INTEGER { - _unused: [u8; 0], -} -pub type sk_ASN1_INTEGER_free_func = - ::std::option::Option; -pub type sk_ASN1_INTEGER_copy_func = - ::std::option::Option *mut ASN1_INTEGER>; -pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_INTEGER, - arg2: *mut *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_INTEGER, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_new"] - pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand"] + pub fn BN_pseudo_rand( + rnd: *mut BIGNUM, + bits: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_free"] - pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range"] + pub fn BN_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_dup"] - pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_rand_range_ex"] + pub fn BN_rand_range_ex( + r: *mut BIGNUM, + min_inclusive: BN_ULONG, + max_exclusive: *const BIGNUM, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_INTEGER"] - pub fn d2i_ASN1_INTEGER( - out: *mut *mut ASN1_INTEGER, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_pseudo_rand_range"] + pub fn BN_pseudo_rand_range(rnd: *mut BIGNUM, range: *const BIGNUM) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_INTEGER"] - pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct bn_gencb_st { + pub type_: u8, + pub arg: *mut ::std::os::raw::c_void, + pub callback: bn_gencb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_INTEGER"] - pub fn c2i_ASN1_INTEGER( - in_: *mut *mut ASN1_INTEGER, - outp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_INTEGER; +#[repr(C)] +#[derive(Copy, Clone)] +pub union bn_gencb_st__bindgen_ty_1 { + pub new_style: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut bn_gencb_st, + ) -> ::std::os::raw::c_int, + >, + pub old_style: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2c_ASN1_INTEGER"] - pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_bn_gencb_st__bindgen_ty_1() { + 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!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).new_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(new_style) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).old_style) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st__bindgen_ty_1), + "::", + stringify!(old_style) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_it"] - pub static ASN1_INTEGER_it: ASN1_ITEM; +impl Default for bn_gencb_st__bindgen_ty_1 { + 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_fips_0_12_15_ASN1_INTEGER_set_uint64"] - pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_bn_gencb_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!(bn_gencb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_gencb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(arg) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).callback) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(bn_gencb_st), + "::", + stringify!(callback) + ) + ); +} +impl Default for bn_gencb_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_fips_0_12_15_ASN1_INTEGER_set_int64"] - pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_new"] + pub fn BN_GENCB_new() -> *mut BN_GENCB; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_uint64"] - pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_free"] + pub fn BN_GENCB_free(callback: *mut BN_GENCB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get_int64"] - pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set"] + pub fn BN_GENCB_set( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + arg1: *mut BN_GENCB, + ) -> ::std::os::raw::c_int, + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_INTEGER"] - pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_call"] + pub fn BN_GENCB_call( + callback: *mut BN_GENCB, + event: ::std::os::raw::c_int, + n: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_to_BN"] - pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_get_arg"] + pub fn BN_GENCB_get_arg(callback: *const BN_GENCB) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_cmp"] - pub fn ASN1_INTEGER_cmp( - x: *const ASN1_INTEGER, - y: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_generate_prime_ex"] + pub fn BN_generate_prime_ex( + ret: *mut BIGNUM, + bits: ::std::os::raw::c_int, + safe: ::std::os::raw::c_int, + add: *const BIGNUM, + rem: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } +pub const bn_primality_result_t_bn_probably_prime: bn_primality_result_t = 0; +pub const bn_primality_result_t_bn_composite: bn_primality_result_t = 1; +pub const bn_primality_result_t_bn_non_prime_power_composite: bn_primality_result_t = 2; +pub type bn_primality_result_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_new"] - pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_enhanced_miller_rabin_primality_test"] + pub fn BN_enhanced_miller_rabin_primality_test( + out_result: *mut bn_primality_result_t, + w: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_free"] - pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_primality_test"] + pub fn BN_primality_test( + is_probably_prime: *mut ::std::os::raw::c_int, + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_ENUMERATED"] - pub fn d2i_ASN1_ENUMERATED( - out: *mut *mut ASN1_ENUMERATED, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_ENUMERATED"] - pub fn i2d_ASN1_ENUMERATED( - in_: *const ASN1_ENUMERATED, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_fasttest_ex"] + pub fn BN_is_prime_fasttest_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + do_trial_division: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_it"] - pub static ASN1_ENUMERATED_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_uint64"] - pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set_int64"] - pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_uint64"] - pub fn ASN1_ENUMERATED_get_uint64( - out: *mut u64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_is_prime_ex"] + pub fn BN_is_prime_ex( + candidate: *const BIGNUM, + checks: ::std::os::raw::c_int, + ctx: *mut BN_CTX, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get_int64"] - pub fn ASN1_ENUMERATED_get_int64( - out: *mut i64, - a: *const ASN1_ENUMERATED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_gcd"] + pub fn BN_gcd( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_to_ASN1_ENUMERATED"] - pub fn BN_to_ASN1_ENUMERATED( - bn: *const BIGNUM, - ai: *mut ASN1_ENUMERATED, - ) -> *mut ASN1_ENUMERATED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_to_BN"] - pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_new"] - pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_free"] - pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_UTCTIME"] - pub fn d2i_ASN1_UTCTIME( - out: *mut *mut ASN1_UTCTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_UTCTIME"] - pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_it"] - pub static ASN1_UTCTIME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_check"] - pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set"] - pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse"] + pub fn BN_mod_inverse( + out: *mut BIGNUM, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_adj"] - pub fn ASN1_UTCTIME_adj( - s: *mut ASN1_UTCTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_UTCTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_blinded"] + pub fn BN_mod_inverse_blinded( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_set_string"] - pub fn ASN1_UTCTIME_set_string( - s: *mut ASN1_UTCTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_inverse_odd"] + pub fn BN_mod_inverse_odd( + out: *mut BIGNUM, + out_no_inverse: *mut ::std::os::raw::c_int, + a: *const BIGNUM, + n: *const BIGNUM, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_cmp_time_t"] - pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_for_modulus"] + pub fn BN_MONT_CTX_new_for_modulus(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_new"] - pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new_consttime"] + pub fn BN_MONT_CTX_new_consttime(mod_: *const BIGNUM, ctx: *mut BN_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_free"] - pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_free"] + pub fn BN_MONT_CTX_free(mont: *mut BN_MONT_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_GENERALIZEDTIME"] - pub fn d2i_ASN1_GENERALIZEDTIME( - out: *mut *mut ASN1_GENERALIZEDTIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_copy"] + pub fn BN_MONT_CTX_copy(to: *mut BN_MONT_CTX, from: *const BN_MONT_CTX) -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_GENERALIZEDTIME"] - pub fn i2d_ASN1_GENERALIZEDTIME( - in_: *const ASN1_GENERALIZEDTIME, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_montgomery"] + pub fn BN_to_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_it"] - pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_from_montgomery"] + pub fn BN_from_montgomery( + ret: *mut BIGNUM, + a: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_check"] - pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_mul_montgomery"] + pub fn BN_mod_mul_montgomery( + r: *mut BIGNUM, + a: *const BIGNUM, + b: *const BIGNUM, + mont: *const BN_MONT_CTX, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set"] - pub fn ASN1_GENERALIZEDTIME_set( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_exp"] + pub fn BN_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_adj"] - pub fn ASN1_GENERALIZEDTIME_adj( - s: *mut ASN1_GENERALIZEDTIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp"] + pub fn BN_mod_exp( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_set_string"] - pub fn ASN1_GENERALIZEDTIME_set_string( - s: *mut ASN1_GENERALIZEDTIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont"] + pub fn BN_mod_exp_mont( + r: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_new"] - pub fn ASN1_TIME_new() -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime"] + pub fn BN_mod_exp_mont_consttime( + rr: *mut BIGNUM, + a: *const BIGNUM, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_free"] - pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_GENCB_set_old"] + pub fn BN_GENCB_set_old( + callback: *mut BN_GENCB, + f: ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: ::std::os::raw::c_int, + arg3: *mut ::std::os::raw::c_void, + ), + >, + cb_arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TIME"] - pub fn d2i_ASN1_TIME( - out: *mut *mut ASN1_TIME, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2mpi"] + pub fn BN_bn2mpi(in_: *const BIGNUM, out: *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TIME"] - pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mpi2bn"] + pub fn BN_mpi2bn(in_: *const u8, len: usize, out: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_it"] - pub static ASN1_TIME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_word"] + pub fn BN_mod_exp_mont_word( + r: *mut BIGNUM, + a: BN_ULONG, + p: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_diff"] - pub fn ASN1_TIME_diff( - out_days: *mut ::std::os::raw::c_int, - out_seconds: *mut ::std::os::raw::c_int, - from: *const ASN1_TIME, - to: *const ASN1_TIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp2_mont"] + pub fn BN_mod_exp2_mont( + r: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m: *const BIGNUM, + ctx: *mut BN_CTX, + mont: *const BN_MONT_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_posix"] - pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_new"] + pub fn BN_MONT_CTX_new() -> *mut BN_MONT_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set"] - pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_MONT_CTX_set"] + pub fn BN_MONT_CTX_set( + mont: *mut BN_MONT_CTX, + mod_: *const BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_adj"] - pub fn ASN1_TIME_adj( - s: *mut ASN1_TIME, - posix_time: i64, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_bn2binpad"] + pub fn BN_bn2binpad( + in_: *const BIGNUM, + out: *mut u8, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_check"] - pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_secure_new"] + pub fn BN_secure_new() -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_generalizedtime"] - pub fn ASN1_TIME_to_generalizedtime( - t: *const ASN1_TIME, - out: *mut *mut ASN1_GENERALIZEDTIME, - ) -> *mut ASN1_GENERALIZEDTIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_CTX_secure_new"] + pub fn BN_CTX_secure_new() -> *mut BN_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_set_string"] - pub fn ASN1_TIME_set_string( - s: *mut ASN1_TIME, - str_: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_mod_exp_mont_consttime_x2"] + pub fn BN_mod_exp_mont_consttime_x2( + rr1: *mut BIGNUM, + a1: *const BIGNUM, + p1: *const BIGNUM, + m1: *const BIGNUM, + in_mont1: *const BN_MONT_CTX, + rr2: *mut BIGNUM, + a2: *const BIGNUM, + p2: *const BIGNUM, + m2: *const BIGNUM, + in_mont2: *const BN_MONT_CTX, + ctx: *mut BN_CTX, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_time_t"] - pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_to_posix"] - pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_new"] - pub fn ASN1_NULL_new() -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_free"] - pub fn ASN1_NULL_free(null: *mut ASN1_NULL); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_NULL"] - pub fn d2i_ASN1_NULL( - out: *mut *mut ASN1_NULL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_NULL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_NULL"] - pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_NULL_it"] - pub static ASN1_NULL_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_OBJECT { - _unused: [u8; 0], -} -pub type sk_ASN1_OBJECT_free_func = - ::std::option::Option; -pub type sk_ASN1_OBJECT_copy_func = - ::std::option::Option *mut ASN1_OBJECT>; -pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_OBJECT, - arg2: *mut *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_create"] - pub fn ASN1_OBJECT_create( - nid: ::std::os::raw::c_int, - data: *const u8, - len: ::std::os::raw::c_int, - sn: *const ::std::os::raw::c_char, - ln: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_free"] - pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_OBJECT"] - pub fn d2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_OBJECT"] - pub fn i2d_ASN1_OBJECT(a: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_c2i_ASN1_OBJECT"] - pub fn c2i_ASN1_OBJECT( - out: *mut *mut ASN1_OBJECT, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_OBJECT_it"] - pub static ASN1_OBJECT_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct asn1_type_st { - pub type_: ::std::os::raw::c_int, - pub value: asn1_type_st__bindgen_ty_1, -} #[repr(C)] -#[derive(Copy, Clone)] -pub union asn1_type_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub boolean: ASN1_BOOLEAN, - pub asn1_string: *mut ASN1_STRING, - pub object: *mut ASN1_OBJECT, - pub integer: *mut ASN1_INTEGER, - pub enumerated: *mut ASN1_ENUMERATED, - pub bit_string: *mut ASN1_BIT_STRING, - pub octet_string: *mut ASN1_OCTET_STRING, - pub printablestring: *mut ASN1_PRINTABLESTRING, - pub t61string: *mut ASN1_T61STRING, - pub ia5string: *mut ASN1_IA5STRING, - pub generalstring: *mut ASN1_GENERALSTRING, - pub bmpstring: *mut ASN1_BMPSTRING, - pub universalstring: *mut ASN1_UNIVERSALSTRING, - pub utctime: *mut ASN1_UTCTIME, - pub generalizedtime: *mut ASN1_GENERALIZEDTIME, - pub visiblestring: *mut ASN1_VISIBLESTRING, - pub utf8string: *mut ASN1_UTF8STRING, - pub set: *mut ASN1_STRING, - pub sequence: *mut ASN1_STRING, - pub asn1_value: *mut ASN1_VALUE, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bignum_st { + pub d: *mut BN_ULONG, + pub width: ::std::os::raw::c_int, + pub dmax: ::std::os::raw::c_int, + pub neg: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_bignum_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!(asn1_type_st__bindgen_ty_1)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(bignum_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(boolean) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(asn1_string) - ) + concat!("Alignment of ", stringify!(bignum_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(object) + stringify!(d) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).width) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(integer) + stringify!(width) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).dmax) as usize - ptr as usize }, + 12usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(enumerated) + stringify!(dmax) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).neg) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(bit_string) + stringify!(neg) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 20usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bignum_st), "::", - stringify!(octet_string) + stringify!(flags) ) ); +} +impl Default for bignum_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 bn_mont_ctx_st { + pub RR: BIGNUM, + pub N: BIGNUM, + pub n0: [BN_ULONG; 2usize], +} +#[test] +fn bindgen_test_layout_bn_mont_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(printablestring) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(t61string) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(bn_mont_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).RR) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(ia5string) + stringify!(RR) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).N) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(generalstring) + stringify!(N) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).n0) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), + stringify!(bn_mont_ctx_st), "::", - stringify!(bmpstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(universalstring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utctime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(generalizedtime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(visiblestring) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(utf8string) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(sequence) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st__bindgen_ty_1), - "::", - stringify!(asn1_value) + stringify!(n0) ) ); } -impl Default for asn1_type_st__bindgen_ty_1 { +impl Default for bn_mont_ctx_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8909,391 +8552,224 @@ impl Default for asn1_type_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(asn1_type_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(asn1_type_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_num_bits_word"] + pub fn BN_num_bits_word(l: BN_ULONG) -> ::std::os::raw::c_uint; } -impl Default for asn1_type_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_fips_0_13_0_ASN1_tag2bit"] + pub fn ASN1_tag2bit(tag: ::std::os::raw::c_int) -> ::std::os::raw::c_ulong; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_TYPE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_tag2str"] + pub fn ASN1_tag2str(tag: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } -pub type sk_ASN1_TYPE_free_func = ::std::option::Option; -pub type sk_ASN1_TYPE_copy_func = - ::std::option::Option *mut ASN1_TYPE>; -pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< +pub type d2i_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const ASN1_TYPE, - arg2: *mut *const ASN1_TYPE, - ) -> ::std::os::raw::c_int, + arg1: *mut *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, >; -pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< +pub type i2d_of_void = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut ASN1_TYPE, - arg2: *mut ::std::os::raw::c_void, + arg1: *const ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int, >; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_new"] - pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_free"] - pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_TYPE"] - pub fn d2i_ASN1_TYPE( - out: *mut *mut ASN1_TYPE, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_TYPE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_TYPE"] - pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; +pub type ASN1_ITEM_EXP = ASN1_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_VALUE_st { + _unused: [u8; 0], } +pub type ASN1_VALUE = ASN1_VALUE_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ANY_it"] - pub static ASN1_ANY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_new"] + pub fn ASN1_item_new(it: *const ASN1_ITEM) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_get"] - pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_free"] + pub fn ASN1_item_free(val: *mut ASN1_VALUE, it: *const ASN1_ITEM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set"] - pub fn ASN1_TYPE_set( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i"] + pub fn ASN1_item_d2i( + out: *mut *mut ASN1_VALUE, + inp: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + ) -> *mut ASN1_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_set1"] - pub fn ASN1_TYPE_set1( - a: *mut ASN1_TYPE, - type_: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d"] + pub fn ASN1_item_i2d( + val: *mut ASN1_VALUE, + outp: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TYPE_cmp"] - pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_dup"] + pub fn ASN1_dup( + i2d: i2d_of_void, + d2i: d2i_of_void, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } -pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SEQUENCE_ANY"] - pub fn d2i_ASN1_SEQUENCE_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_dup"] + pub fn ASN1_item_dup( + it: *const ASN1_ITEM, + x: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SEQUENCE_ANY"] - pub fn i2d_ASN1_SEQUENCE_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_fp"] + pub fn ASN1_item_d2i_fp( + it: *const ASN1_ITEM, + in_: *mut FILE, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_SET_ANY"] - pub fn d2i_ASN1_SET_ANY( - out: *mut *mut ASN1_SEQUENCE_ANY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut ASN1_SEQUENCE_ANY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_d2i_bio"] + pub fn ASN1_item_d2i_bio( + it: *const ASN1_ITEM, + in_: *mut BIO, + out: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_SET_ANY"] - pub fn i2d_ASN1_SET_ANY( - in_: *const ASN1_SEQUENCE_ANY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_fp"] + pub fn ASN1_item_i2d_fp( + it: *const ASN1_ITEM, + out: *mut FILE, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_UTCTIME_print"] - pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_i2d_bio"] + pub fn ASN1_item_i2d_bio( + it: *const ASN1_ITEM, + out: *mut BIO, + in_: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_GENERALIZEDTIME_print"] - pub fn ASN1_GENERALIZEDTIME_print( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_i2d_bio"] + pub fn ASN1_i2d_bio( + i2d: i2d_of_void, out: *mut BIO, - a: *const ASN1_GENERALIZEDTIME, + in_: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_TIME_print"] - pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_unpack"] + pub fn ASN1_item_unpack( + oct: *const ASN1_STRING, + it: *const ASN1_ITEM, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print"] - pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_item_pack"] + pub fn ASN1_item_pack( + obj: *mut ::std::os::raw::c_void, + it: *const ASN1_ITEM, + out: *mut *mut ASN1_STRING, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex"] - pub fn ASN1_STRING_print_ex( - out: *mut BIO, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_print_ex_fp"] - pub fn ASN1_STRING_print_ex_fp( - fp: *mut FILE, - str_: *const ASN1_STRING, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_INTEGER"] - pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_ENUMERATED"] - pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_OBJECT"] - pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ASN1_STRING"] - pub fn i2a_ASN1_STRING( - bp: *mut BIO, - a: *const ASN1_STRING, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2t_ASN1_OBJECT"] - pub fn i2t_ASN1_OBJECT( - buf: *mut ::std::os::raw::c_char, - buf_len: ::std::os::raw::c_int, - a: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_get_object"] - pub fn ASN1_get_object( + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BOOLEAN"] + pub fn d2i_ASN1_BOOLEAN( + out: *mut ASN1_BOOLEAN, inp: *mut *const ::std::os::raw::c_uchar, - out_length: *mut ::std::os::raw::c_long, - out_tag: *mut ::std::os::raw::c_int, - out_class: *mut ::std::os::raw::c_int, - max_len: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_object"] - pub fn ASN1_put_object( - outp: *mut *mut ::std::os::raw::c_uchar, - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - xclass: ::std::os::raw::c_int, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_put_eoc"] - pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_object_size"] - pub fn ASN1_object_size( - constructed: ::std::os::raw::c_int, - length: ::std::os::raw::c_int, - tag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask"] - pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_set_default_mask_asc"] - pub fn ASN1_STRING_set_default_mask_asc( - p: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_get_default_mask"] - pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_STRING_TABLE_cleanup"] - pub fn ASN1_STRING_TABLE_cleanup(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_new"] - pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_free"] - pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ASN1_PRINTABLE"] - pub fn d2i_ASN1_PRINTABLE( - out: *mut *mut ASN1_STRING, - inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut ASN1_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ASN1_PRINTABLE"] - pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) - -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_PRINTABLE_it"] - pub static ASN1_PRINTABLE_it: ASN1_ITEM; + ) -> ASN1_BOOLEAN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_set"] - pub fn ASN1_INTEGER_set( - a: *mut ASN1_INTEGER, - v: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BOOLEAN"] + pub fn i2d_ASN1_BOOLEAN( + a: ASN1_BOOLEAN, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_set"] - pub fn ASN1_ENUMERATED_set( - a: *mut ASN1_ENUMERATED, - v: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BOOLEAN_it"] + pub static ASN1_BOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_INTEGER_get"] - pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TBOOLEAN_it"] + pub static ASN1_TBOOLEAN_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_ENUMERATED_get"] - pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; -} -pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASN1_TLC_st { - _unused: [u8; 0], + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_FBOOLEAN_it"] + pub static ASN1_FBOOLEAN_it: ASN1_ITEM; } -pub type ASN1_TLC = ASN1_TLC_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_TEMPLATE_st { - pub flags: u32, - pub tag: ::std::os::raw::c_int, - pub offset: ::std::os::raw::c_ulong, - pub field_name: *const ::std::os::raw::c_char, - pub item: *const ASN1_ITEM_st, +pub struct asn1_string_st { + pub length: ::std::os::raw::c_int, + pub type_: ::std::os::raw::c_int, + pub data: *mut ::std::os::raw::c_uchar, + pub flags: ::std::os::raw::c_long, } #[test] -fn bindgen_test_layout_ASN1_TEMPLATE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_asn1_string_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(asn1_string_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + concat!("Alignment of ", stringify!(asn1_string_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(flags) + stringify!(length) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(tag) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(offset) + stringify!(data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), - "::", - stringify!(field_name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_TEMPLATE_st), + stringify!(asn1_string_st), "::", - stringify!(item) + stringify!(flags) ) ); } -impl Default for ASN1_TEMPLATE_st { +impl Default for asn1_string_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9302,3005 +8778,3985 @@ impl Default for ASN1_TEMPLATE_st { } } } -pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; -pub type ASN1_ADB = ASN1_ADB_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct asn1_must_be_null_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_type_new"] + pub fn ASN1_STRING_type_new(type_: ::std::os::raw::c_int) -> *mut ASN1_STRING; } -pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_st { - pub flags: u32, - pub offset: ::std::os::raw::c_ulong, - pub unused: *mut ASN1_MUST_BE_NULL, - pub tbl: *const ASN1_ADB_TABLE, - pub tblcount: ::std::os::raw::c_long, - pub default_tt: *const ASN1_TEMPLATE, - pub null_tt: *const ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_new"] + pub fn ASN1_STRING_new() -> *mut ASN1_STRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(unused) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tbl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(tblcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(default_tt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_st), - "::", - stringify!(null_tt) - ) +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_free"] + pub fn ASN1_STRING_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_clear_free"] + pub fn ASN1_STRING_clear_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_copy"] + pub fn ASN1_STRING_copy( + dst: *mut ASN1_STRING, + str_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_dup"] + pub fn ASN1_STRING_dup(str_: *const ASN1_STRING) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_type"] + pub fn ASN1_STRING_type(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get0_data"] + pub fn ASN1_STRING_get0_data(str_: *const ASN1_STRING) -> *const ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_data"] + pub fn ASN1_STRING_data(str_: *mut ASN1_STRING) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_length"] + pub fn ASN1_STRING_length(str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_cmp"] + pub fn ASN1_STRING_cmp(a: *const ASN1_STRING, b: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set"] + pub fn ASN1_STRING_set( + str_: *mut ASN1_STRING, + data: *const ::std::os::raw::c_void, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set0"] + pub fn ASN1_STRING_set0( + str_: *mut ASN1_STRING, + data: *mut ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ); } -impl Default for ASN1_ADB_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_fips_0_13_0_ASN1_BMPSTRING_new"] + pub fn ASN1_BMPSTRING_new() -> *mut ASN1_BMPSTRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ADB_TABLE_st { - pub value: ::std::os::raw::c_int, - pub tt: ASN1_TEMPLATE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_new"] + pub fn ASN1_GENERALSTRING_new() -> *mut ASN1_GENERALSTRING; } -#[test] -fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ADB_TABLE_st), - "::", - stringify!(tt) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_new"] + pub fn ASN1_IA5STRING_new() -> *mut ASN1_IA5STRING; } -impl Default for ASN1_ADB_TABLE_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_fips_0_13_0_ASN1_OCTET_STRING_new"] + pub fn ASN1_OCTET_STRING_new() -> *mut ASN1_OCTET_STRING; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_ITEM_st { - pub itype: ::std::os::raw::c_char, - pub utype: ::std::os::raw::c_int, - pub templates: *const ASN1_TEMPLATE, - pub tcount: ::std::os::raw::c_long, - pub funcs: *const ::std::os::raw::c_void, - pub size: ::std::os::raw::c_long, - pub sname: *const ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_new"] + pub fn ASN1_PRINTABLESTRING_new() -> *mut ASN1_PRINTABLESTRING; } -#[test] -fn bindgen_test_layout_ASN1_ITEM_st() { - 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!(ASN1_ITEM_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_ITEM_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(itype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(utype) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(templates) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(tcount) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(funcs) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_ITEM_st), - "::", - stringify!(sname) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_new"] + pub fn ASN1_T61STRING_new() -> *mut ASN1_T61STRING; } -impl Default for ASN1_ITEM_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_fips_0_13_0_ASN1_UNIVERSALSTRING_new"] + pub fn ASN1_UNIVERSALSTRING_new() -> *mut ASN1_UNIVERSALSTRING; } -pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; -pub type ASN1_free_func = ::std::option::Option; -pub type ASN1_d2i_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut ASN1_VALUE, ->; -pub type ASN1_i2d_func = ::std::option::Option< - unsafe extern "C" fn( - a: *mut ASN1_VALUE, - in_: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_d2i = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - opt: ::std::os::raw::c_char, - ctx: *mut ASN1_TLC, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_i2d = ::std::option::Option< - unsafe extern "C" fn( - pval: *mut *mut ASN1_VALUE, - out: *mut *mut ::std::os::raw::c_uchar, - it: *const ASN1_ITEM, - tag: ::std::os::raw::c_int, - aclass: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_new_func = ::std::option::Option< - unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, ->; -pub type ASN1_ex_free_func = - ::std::option::Option; -pub type ASN1_ex_print_func = ::std::option::Option< - unsafe extern "C" fn( - out: *mut BIO, - pval: *mut *mut ASN1_VALUE, - indent: ::std::os::raw::c_int, - fname: *const ::std::os::raw::c_char, - pctx: *const ASN1_PCTX, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_EXTERN_FUNCS_st { - pub app_data: *mut ::std::os::raw::c_void, - pub asn1_ex_new: ASN1_ex_new_func, - pub asn1_ex_free: ASN1_ex_free_func, - pub asn1_ex_clear: ASN1_ex_free_func, - pub asn1_ex_d2i: ASN1_ex_d2i, - pub asn1_ex_i2d: ASN1_ex_i2d, - pub asn1_ex_print: ASN1_ex_print_func, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_new"] + pub fn ASN1_UTF8STRING_new() -> *mut ASN1_UTF8STRING; } -#[test] -fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_clear) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_clear) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ASN1_EXTERN_FUNCS_st), - "::", - stringify!(asn1_ex_print) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_new"] + pub fn ASN1_VISIBLESTRING_new() -> *mut ASN1_VISIBLESTRING; } -impl Default for ASN1_EXTERN_FUNCS_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_fips_0_13_0_ASN1_BMPSTRING_free"] + pub fn ASN1_BMPSTRING_free(str_: *mut ASN1_BMPSTRING); } -pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; -pub type ASN1_aux_cb = ::std::option::Option< - unsafe extern "C" fn( - operation: ::std::os::raw::c_int, - in_: *mut *mut ASN1_VALUE, - it: *const ASN1_ITEM, - exarg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ASN1_AUX_st { - pub app_data: *mut ::std::os::raw::c_void, - pub flags: u32, - pub ref_offset: ::std::os::raw::c_int, - pub asn1_cb: ASN1_aux_cb, - pub enc_offset: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_free"] + pub fn ASN1_GENERALSTRING_free(str_: *mut ASN1_GENERALSTRING); } -#[test] -fn bindgen_test_layout_ASN1_AUX_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ASN1_AUX_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(ref_offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(asn1_cb) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ASN1_AUX_st), - "::", - stringify!(enc_offset) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_IA5STRING_free"] + pub fn ASN1_IA5STRING_free(str_: *mut ASN1_IA5STRING); } -impl Default for ASN1_AUX_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_fips_0_13_0_ASN1_OCTET_STRING_free"] + pub fn ASN1_OCTET_STRING_free(str_: *mut ASN1_OCTET_STRING); } -pub type ASN1_AUX = ASN1_AUX_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ASN1_SEQUENCE_it"] - pub static ASN1_SEQUENCE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_free"] + pub fn ASN1_PRINTABLESTRING_free(str_: *mut ASN1_PRINTABLESTRING); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ASN1_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_free"] + pub fn ASN1_T61STRING_free(str_: *mut ASN1_T61STRING); } -pub type sk_ASN1_VALUE_free_func = - ::std::option::Option; -pub type sk_ASN1_VALUE_copy_func = - ::std::option::Option *mut ASN1_VALUE>; -pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const ASN1_VALUE, - arg2: *mut *const ASN1_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ASN1_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeBlock"] - pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_free"] + pub fn ASN1_UNIVERSALSTRING_free(str_: *mut ASN1_UNIVERSALSTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodedLength"] - pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_free"] + pub fn ASN1_UTF8STRING_free(str_: *mut ASN1_UTF8STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodedLength"] - pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_free"] + pub fn ASN1_VISIBLESTRING_free(str_: *mut ASN1_VISIBLESTRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBase64"] - pub fn EVP_DecodeBase64( - out: *mut u8, - out_len: *mut usize, - max_out: usize, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BMPSTRING"] + pub fn d2i_ASN1_BMPSTRING( + out: *mut *mut ASN1_BMPSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BMPSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_new"] - pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALSTRING"] + pub fn d2i_ASN1_GENERALSTRING( + out: *mut *mut ASN1_GENERALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ENCODE_CTX_free"] - pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_IA5STRING"] + pub fn d2i_ASN1_IA5STRING( + out: *mut *mut ASN1_IA5STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_IA5STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeInit"] - pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_OCTET_STRING"] + pub fn d2i_ASN1_OCTET_STRING( + out: *mut *mut ASN1_OCTET_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeUpdate"] - pub fn EVP_EncodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLESTRING"] + pub fn d2i_ASN1_PRINTABLESTRING( + out: *mut *mut ASN1_PRINTABLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_PRINTABLESTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncodeFinal"] - pub fn EVP_EncodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_T61STRING"] + pub fn d2i_ASN1_T61STRING( + out: *mut *mut ASN1_T61STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_T61STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeInit"] - pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UNIVERSALSTRING"] + pub fn d2i_ASN1_UNIVERSALSTRING( + out: *mut *mut ASN1_UNIVERSALSTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UNIVERSALSTRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeUpdate"] - pub fn EVP_DecodeUpdate( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UTF8STRING"] + pub fn d2i_ASN1_UTF8STRING( + out: *mut *mut ASN1_UTF8STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTF8STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_VISIBLESTRING"] + pub fn d2i_ASN1_VISIBLESTRING( + out: *mut *mut ASN1_VISIBLESTRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_VISIBLESTRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BMPSTRING"] + pub fn i2d_ASN1_BMPSTRING( + in_: *const ASN1_BMPSTRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeFinal"] - pub fn EVP_DecodeFinal( - ctx: *mut EVP_ENCODE_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALSTRING"] + pub fn i2d_ASN1_GENERALSTRING( + in_: *const ASN1_GENERALSTRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecodeBlock"] - pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_IA5STRING"] + pub fn i2d_ASN1_IA5STRING( + in_: *const ASN1_IA5STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_encode_ctx_st { - pub data_used: ::std::os::raw::c_uint, - pub data: [u8; 48usize], - pub eof_seen: ::std::os::raw::c_char, - pub error_encountered: ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OCTET_STRING"] + pub fn i2d_ASN1_OCTET_STRING( + in_: *const ASN1_OCTET_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_evp_encode_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(evp_encode_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(eof_seen) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, - 53usize, - concat!( - "Offset of field: ", - stringify!(evp_encode_ctx_st), - "::", - stringify!(error_encountered) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLESTRING"] + pub fn i2d_ASN1_PRINTABLESTRING( + in_: *const ASN1_PRINTABLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -impl Default for evp_encode_ctx_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_fips_0_13_0_i2d_ASN1_T61STRING"] + pub fn i2d_ASN1_T61STRING( + in_: *const ASN1_T61STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct blake2b_state_st { - pub h: [u64; 8usize], - pub t_low: u64, - pub t_high: u64, - pub block: blake2b_state_st__bindgen_ty_1, - pub block_used: usize, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UNIVERSALSTRING"] + pub fn i2d_ASN1_UNIVERSALSTRING( + in_: *const ASN1_UNIVERSALSTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union blake2b_state_st__bindgen_ty_1 { - pub bytes: [u8; 128usize], - pub words: [u64; 16usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTF8STRING"] + pub fn i2d_ASN1_UTF8STRING( + in_: *const ASN1_UTF8STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_blake2b_state_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 128usize, - concat!("Size of: ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).bytes) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(bytes) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).words) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st__bindgen_ty_1), - "::", - stringify!(words) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_VISIBLESTRING"] + pub fn i2d_ASN1_VISIBLESTRING( + in_: *const ASN1_VISIBLESTRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } -impl Default for blake2b_state_st__bindgen_ty_1 { - 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_fips_0_13_0_ASN1_BMPSTRING_it"] + pub static ASN1_BMPSTRING_it: ASN1_ITEM; } -#[test] -fn bindgen_test_layout_blake2b_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(blake2b_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(blake2b_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_low) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(t_high) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(blake2b_state_st), - "::", - stringify!(block_used) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALSTRING_it"] + pub static ASN1_GENERALSTRING_it: ASN1_ITEM; } -impl Default for blake2b_state_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_fips_0_13_0_ASN1_IA5STRING_it"] + pub static ASN1_IA5STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Init"] - pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_it"] + pub static ASN1_OCTET_STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Update"] - pub fn BLAKE2B256_Update( - b2b: *mut BLAKE2B_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLESTRING_it"] + pub static ASN1_PRINTABLESTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256_Final"] - pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_T61STRING_it"] + pub static ASN1_T61STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BLAKE2B256"] - pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UNIVERSALSTRING_it"] + pub static ASN1_UNIVERSALSTRING_it: ASN1_ITEM; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct bf_key_st { - pub P: [u32; 18usize], - pub S: [u32; 1024usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTF8STRING_it"] + pub static ASN1_UTF8STRING_it: ASN1_ITEM; } -#[test] -fn bindgen_test_layout_bf_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 4168usize, - concat!("Size of: ", stringify!(bf_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(bf_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(P) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(bf_key_st), - "::", - stringify!(S) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_VISIBLESTRING_it"] + pub static ASN1_VISIBLESTRING_it: ASN1_ITEM; } -impl Default for bf_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_fips_0_13_0_ASN1_OCTET_STRING_dup"] + pub fn ASN1_OCTET_STRING_dup(a: *const ASN1_OCTET_STRING) -> *mut ASN1_OCTET_STRING; } -pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_set_key"] - pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_cmp"] + pub fn ASN1_OCTET_STRING_cmp( + a: *const ASN1_OCTET_STRING, + b: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_encrypt"] - pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OCTET_STRING_set"] + pub fn ASN1_OCTET_STRING_set( + str_: *mut ASN1_OCTET_STRING, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_decrypt"] - pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_to_UTF8"] + pub fn ASN1_STRING_to_UTF8( + out: *mut *mut ::std::os::raw::c_uchar, + in_: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_ecb_encrypt"] - pub fn BF_ecb_encrypt( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_copy"] + pub fn ASN1_mbstring_copy( + out: *mut *mut ASN1_STRING, in_: *const u8, - out: *mut u8, - key: *const BF_KEY, - enc: ::std::os::raw::c_int, - ); + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BF_cbc_encrypt"] - pub fn BF_cbc_encrypt( + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_mbstring_ncopy"] + pub fn ASN1_mbstring_ncopy( + out: *mut *mut ASN1_STRING, in_: *const u8, - out: *mut u8, - length: usize, - schedule: *const BF_KEY, - ivec: *mut u8, - enc: ::std::os::raw::c_int, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbs_st { - pub data: *const u8, - pub len: usize, -} -#[test] -fn bindgen_test_layout_cbs_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!(cbs_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbs_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbs_st), - "::", - stringify!(len) - ) - ); + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + mask: ::std::os::raw::c_ulong, + minsize: ossl_ssize_t, + maxsize: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } -impl Default for cbs_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_fips_0_13_0_ASN1_STRING_set_by_NID"] + pub fn ASN1_STRING_set_by_NID( + out: *mut *mut ASN1_STRING, + in_: *const ::std::os::raw::c_uchar, + len: ossl_ssize_t, + inform: ::std::os::raw::c_int, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_init"] - pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_add"] + pub fn ASN1_STRING_TABLE_add( + nid: ::std::os::raw::c_int, + minsize: ::std::os::raw::c_long, + maxsize: ::std::os::raw::c_long, + mask: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_skip"] - pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_new"] + pub fn DIRECTORYSTRING_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_data"] - pub fn CBS_data(cbs: *const CBS) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_free"] + pub fn DIRECTORYSTRING_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_len"] - pub fn CBS_len(cbs: *const CBS) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIRECTORYSTRING"] + pub fn d2i_DIRECTORYSTRING( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_stow"] - pub fn CBS_stow( - cbs: *const CBS, - out_ptr: *mut *mut u8, - out_len: *mut usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIRECTORYSTRING"] + pub fn i2d_DIRECTORYSTRING( + in_: *const ASN1_STRING, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_strdup"] - pub fn CBS_strdup( - cbs: *const CBS, - out_ptr: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIRECTORYSTRING_it"] + pub static DIRECTORYSTRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_contains_zero_byte"] - pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_new"] + pub fn DISPLAYTEXT_new() -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_mem_equal"] - pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_free"] + pub fn DISPLAYTEXT_free(str_: *mut ASN1_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8"] - pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DISPLAYTEXT"] + pub fn d2i_DISPLAYTEXT( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16"] - pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DISPLAYTEXT"] + pub fn i2d_DISPLAYTEXT(in_: *const ASN1_STRING, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16le"] - pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DISPLAYTEXT_it"] + pub static DISPLAYTEXT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24"] - pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_new"] + pub fn ASN1_BIT_STRING_new() -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32"] - pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_free"] + pub fn ASN1_BIT_STRING_free(str_: *mut ASN1_BIT_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u32le"] - pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_BIT_STRING"] + pub fn d2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64"] - pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_BIT_STRING"] + pub fn i2d_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u64le"] - pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_BIT_STRING"] + pub fn c2i_ASN1_BIT_STRING( + out: *mut *mut ASN1_BIT_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_last_u8"] - pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_BIT_STRING"] + pub fn i2c_ASN1_BIT_STRING( + in_: *const ASN1_BIT_STRING, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_bytes"] - pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_it"] + pub static ASN1_BIT_STRING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_copy_bytes"] - pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_num_bytes"] + pub fn ASN1_BIT_STRING_num_bytes( + str_: *const ASN1_BIT_STRING, + out: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u8_length_prefixed"] - pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set"] + pub fn ASN1_BIT_STRING_set( + str_: *mut ASN1_BIT_STRING, + d: *const ::std::os::raw::c_uchar, + length: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u16_length_prefixed"] - pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_set_bit"] + pub fn ASN1_BIT_STRING_set_bit( + str_: *mut ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_u24_length_prefixed"] - pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_get_bit"] + pub fn ASN1_BIT_STRING_get_bit( + str_: *const ASN1_BIT_STRING, + n: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_until_first"] - pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_BIT_STRING_check"] + pub fn ASN1_BIT_STRING_check( + str_: *const ASN1_BIT_STRING, + flags: *const ::std::os::raw::c_uchar, + flags_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_INTEGER { + _unused: [u8; 0], } +pub type sk_ASN1_INTEGER_free_func = + ::std::option::Option; +pub type sk_ASN1_INTEGER_copy_func = + ::std::option::Option *mut ASN1_INTEGER>; +pub type sk_ASN1_INTEGER_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_INTEGER, + arg2: *const *const ASN1_INTEGER, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_INTEGER_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_INTEGER, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1"] - pub fn CBS_get_asn1( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_new"] + pub fn ASN1_INTEGER_new() -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_element"] - pub fn CBS_get_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - tag_value: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_free"] + pub fn ASN1_INTEGER_free(str_: *mut ASN1_INTEGER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_peek_asn1_tag"] - pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_dup"] + pub fn ASN1_INTEGER_dup(x: *const ASN1_INTEGER) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1"] - pub fn CBS_get_any_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_INTEGER"] + pub fn d2i_ASN1_INTEGER( + out: *mut *mut ASN1_INTEGER, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_asn1_element"] - pub fn CBS_get_any_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_INTEGER"] + pub fn i2d_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_any_ber_asn1_element"] - pub fn CBS_get_any_ber_asn1_element( - cbs: *mut CBS, - out: *mut CBS, - out_tag: *mut CBS_ASN1_TAG, - out_header_len: *mut usize, - out_ber_found: *mut ::std::os::raw::c_int, - out_indefinite: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_INTEGER"] + pub fn c2i_ASN1_INTEGER( + in_: *mut *mut ASN1_INTEGER, + outp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_uint64"] - pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2c_ASN1_INTEGER"] + pub fn i2c_ASN1_INTEGER(in_: *const ASN1_INTEGER, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_int64"] - pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_it"] + pub static ASN1_INTEGER_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_asn1_bool"] - pub fn CBS_get_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_uint64"] + pub fn ASN1_INTEGER_set_uint64(out: *mut ASN1_INTEGER, v: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1"] - pub fn CBS_get_optional_asn1( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set_int64"] + pub fn ASN1_INTEGER_set_int64(out: *mut ASN1_INTEGER, v: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_octet_string"] - pub fn CBS_get_optional_asn1_octet_string( - cbs: *mut CBS, - out: *mut CBS, - out_present: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get_uint64"] + pub fn ASN1_INTEGER_get_uint64(out: *mut u64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_uint64"] - pub fn CBS_get_optional_asn1_uint64( - cbs: *mut CBS, - out: *mut u64, - tag: CBS_ASN1_TAG, - default_value: u64, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get_int64"] + pub fn ASN1_INTEGER_get_int64(out: *mut i64, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_bool"] - pub fn CBS_get_optional_asn1_bool( - cbs: *mut CBS, - out: *mut ::std::os::raw::c_int, - tag: CBS_ASN1_TAG, - default_value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_INTEGER"] + pub fn BN_to_ASN1_INTEGER(bn: *const BIGNUM, ai: *mut ASN1_INTEGER) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_bitstring"] - pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_to_BN"] + pub fn ASN1_INTEGER_to_BN(ai: *const ASN1_INTEGER, bn: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_bitstring_has_bit"] - pub fn CBS_asn1_bitstring_has_bit( - cbs: *const CBS, - bit: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_cmp"] + pub fn ASN1_INTEGER_cmp( + x: *const ASN1_INTEGER, + y: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_valid_asn1_integer"] - pub fn CBS_is_valid_asn1_integer( - cbs: *const CBS, - out_is_negative: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_new"] + pub fn ASN1_ENUMERATED_new() -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_is_unsigned_asn1_integer"] - pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_free"] + pub fn ASN1_ENUMERATED_free(str_: *mut ASN1_ENUMERATED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_asn1_oid_to_text"] - pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_ENUMERATED"] + pub fn d2i_ASN1_ENUMERATED( + out: *mut *mut ASN1_ENUMERATED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_ENUMERATED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_generalized_time"] - pub fn CBS_parse_generalized_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_ENUMERATED"] + pub fn i2d_ASN1_ENUMERATED( + in_: *const ASN1_ENUMERATED, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_parse_utc_time"] - pub fn CBS_parse_utc_time( - cbs: *const CBS, - out_tm: *mut tm, - allow_timezone_offset: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_it"] + pub static ASN1_ENUMERATED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_uint64"] + pub fn ASN1_ENUMERATED_set_uint64(out: *mut ASN1_ENUMERATED, v: u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set_int64"] + pub fn ASN1_ENUMERATED_set_int64(out: *mut ASN1_ENUMERATED, v: i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_uint64"] + pub fn ASN1_ENUMERATED_get_uint64( + out: *mut u64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBS_get_optional_asn1_int64"] - pub fn CBS_get_optional_asn1_int64( - cbs: *mut CBS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get_int64"] + pub fn ASN1_ENUMERATED_get_int64( out: *mut i64, - tag: CBS_ASN1_TAG, - default_value: i64, + a: *const ASN1_ENUMERATED, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_buffer_st { - pub buf: *mut u8, - pub len: usize, - pub cap: usize, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_to_ASN1_ENUMERATED"] + pub fn BN_to_ASN1_ENUMERATED( + bn: *const BIGNUM, + ai: *mut ASN1_ENUMERATED, + ) -> *mut ASN1_ENUMERATED; } -#[test] -fn bindgen_test_layout_cbb_buffer_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_buffer_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_buffer_st), - "::", - stringify!(cap) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_to_BN"] + pub fn ASN1_ENUMERATED_to_BN(ai: *const ASN1_ENUMERATED, bn: *mut BIGNUM) -> *mut BIGNUM; } -impl Default for cbb_buffer_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_fips_0_13_0_ASN1_UTCTIME_new"] + pub fn ASN1_UTCTIME_new() -> *mut ASN1_UTCTIME; } -impl cbb_buffer_st { - #[inline] - pub fn can_resize(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn error(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - can_resize: ::std::os::raw::c_uint, - error: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; - can_resize as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let error: u32 = unsafe { ::std::mem::transmute(error) }; - error as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_free"] + pub fn ASN1_UTCTIME_free(str_: *mut ASN1_UTCTIME); } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct cbb_child_st { - pub base: *mut cbb_buffer_st, - pub offset: usize, - pub pending_len_len: u8, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u16; 3usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_UTCTIME"] + pub fn d2i_ASN1_UTCTIME( + out: *mut *mut ASN1_UTCTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } -#[test] -fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_child_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(offset) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(cbb_child_st), - "::", - stringify!(pending_len_len) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_UTCTIME"] + pub fn i2d_ASN1_UTCTIME(in_: *const ASN1_UTCTIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -impl Default for cbb_child_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_fips_0_13_0_ASN1_UTCTIME_it"] + pub static ASN1_UTCTIME_it: ASN1_ITEM; } -impl cbb_child_st { - #[inline] - pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - pending_is_asn1: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; - pending_is_asn1 as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_check"] + pub fn ASN1_UTCTIME_check(a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct cbb_st { - pub child: *mut CBB, - pub is_child: ::std::os::raw::c_char, - pub u: cbb_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set"] + pub fn ASN1_UTCTIME_set(s: *mut ASN1_UTCTIME, posix_time: i64) -> *mut ASN1_UTCTIME; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union cbb_st__bindgen_ty_1 { - pub base: cbb_buffer_st, - pub child: cbb_child_st, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_adj"] + pub fn ASN1_UTCTIME_adj( + s: *mut ASN1_UTCTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_UTCTIME; } -#[test] -fn bindgen_test_layout_cbb_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st__bindgen_ty_1), - "::", - stringify!(child) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_set_string"] + pub fn ASN1_UTCTIME_set_string( + s: *mut ASN1_UTCTIME, + str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } -impl Default for cbb_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_cbb_st() { - 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!(cbb_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(cbb_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(cbb_st), - "::", - stringify!(is_child) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) - ); -} -impl Default for cbb_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_fips_0_12_15_CBB_zero"] - pub fn CBB_zero(cbb: *mut CBB); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init"] - pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_init_fixed"] - pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_cleanup"] - pub fn CBB_cleanup(cbb: *mut CBB); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_finish"] - pub fn CBB_finish( - cbb: *mut CBB, - out_data: *mut *mut u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_cmp_time_t"] + pub fn ASN1_UTCTIME_cmp_time_t(s: *const ASN1_UTCTIME, t: time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush"] - pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_data"] - pub fn CBB_data(cbb: *const CBB) -> *const u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_new"] + pub fn ASN1_GENERALIZEDTIME_new() -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_len"] - pub fn CBB_len(cbb: *const CBB) -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_free"] + pub fn ASN1_GENERALIZEDTIME_free(str_: *mut ASN1_GENERALIZEDTIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8_length_prefixed"] - pub fn CBB_add_u8_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_GENERALIZEDTIME"] + pub fn d2i_ASN1_GENERALIZEDTIME( + out: *mut *mut ASN1_GENERALIZEDTIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16_length_prefixed"] - pub fn CBB_add_u16_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_GENERALIZEDTIME"] + pub fn i2d_ASN1_GENERALIZEDTIME( + in_: *const ASN1_GENERALIZEDTIME, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24_length_prefixed"] - pub fn CBB_add_u24_length_prefixed( - cbb: *mut CBB, - out_contents: *mut CBB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_it"] + pub static ASN1_GENERALIZEDTIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1"] - pub fn CBB_add_asn1( - cbb: *mut CBB, - out_contents: *mut CBB, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_check"] + pub fn ASN1_GENERALIZEDTIME_check(a: *const ASN1_GENERALIZEDTIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_bytes"] - pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set"] + pub fn ASN1_GENERALIZEDTIME_set( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_zeros"] - pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_adj"] + pub fn ASN1_GENERALIZEDTIME_adj( + s: *mut ASN1_GENERALIZEDTIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_space"] - pub fn CBB_add_space( - cbb: *mut CBB, - out_data: *mut *mut u8, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_set_string"] + pub fn ASN1_GENERALIZEDTIME_set_string( + s: *mut ASN1_GENERALIZEDTIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_reserve"] - pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_did_write"] - pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u8"] - pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16"] - pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u16le"] - pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_new"] + pub fn ASN1_TIME_new() -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u24"] - pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_free"] + pub fn ASN1_TIME_free(str_: *mut ASN1_TIME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32"] - pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TIME"] + pub fn d2i_ASN1_TIME( + out: *mut *mut ASN1_TIME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u32le"] - pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TIME"] + pub fn i2d_ASN1_TIME(in_: *const ASN1_TIME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64"] - pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_it"] + pub static ASN1_TIME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_u64le"] - pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_diff"] + pub fn ASN1_TIME_diff( + out_days: *mut ::std::os::raw::c_int, + out_seconds: *mut ::std::os::raw::c_int, + from: *const ASN1_TIME, + to: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_discard_child"] - pub fn CBB_discard_child(cbb: *mut CBB); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_posix"] + pub fn ASN1_TIME_set_posix(s: *mut ASN1_TIME, posix_time: i64) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64"] - pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set"] + pub fn ASN1_TIME_set(s: *mut ASN1_TIME, time: time_t) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_uint64_with_tag"] - pub fn CBB_add_asn1_uint64_with_tag( - cbb: *mut CBB, - value: u64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_adj"] + pub fn ASN1_TIME_adj( + s: *mut ASN1_TIME, + posix_time: i64, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64"] - pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_check"] + pub fn ASN1_TIME_check(t: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_int64_with_tag"] - pub fn CBB_add_asn1_int64_with_tag( - cbb: *mut CBB, - value: i64, - tag: CBS_ASN1_TAG, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_generalizedtime"] + pub fn ASN1_TIME_to_generalizedtime( + t: *const ASN1_TIME, + out: *mut *mut ASN1_GENERALIZEDTIME, + ) -> *mut ASN1_GENERALIZEDTIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_octet_string"] - pub fn CBB_add_asn1_octet_string( - cbb: *mut CBB, - data: *const u8, - data_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string"] + pub fn ASN1_TIME_set_string( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_bool"] - pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_tm"] + pub fn ASN1_TIME_to_tm(t: *const ASN1_TIME, out: *mut tm) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_add_asn1_oid_from_text"] - pub fn CBB_add_asn1_oid_from_text( - cbb: *mut CBB, - text: *const ::std::os::raw::c_char, - len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_set_string_X509"] + pub fn ASN1_TIME_set_string_X509( + s: *mut ASN1_TIME, + str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CBB_flush_asn1_set_of"] - pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_time_t"] + pub fn ASN1_TIME_to_time_t(t: *const ASN1_TIME, out: *mut time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_chacha_20"] - pub fn CRYPTO_chacha_20( - out: *mut u8, - in_: *const u8, - in_len: usize, - key: *const u8, - nonce: *const u8, - counter: u32, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_to_posix"] + pub fn ASN1_TIME_to_posix(t: *const ASN1_TIME, out: *mut i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc4"] - pub fn EVP_rc4() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_new"] + pub fn ASN1_NULL_new() -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_cbc"] - pub fn EVP_des_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_free"] + pub fn ASN1_NULL_free(null: *mut ASN1_NULL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ecb"] - pub fn EVP_des_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_NULL"] + pub fn d2i_ASN1_NULL( + out: *mut *mut ASN1_NULL, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_NULL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede"] - pub fn EVP_des_ede() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_NULL"] + pub fn i2d_ASN1_NULL(in_: *const ASN1_NULL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3"] - pub fn EVP_des_ede3() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_NULL_it"] + pub static ASN1_NULL_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede_cbc"] - pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_OBJECT { + _unused: [u8; 0], } +pub type sk_ASN1_OBJECT_free_func = + ::std::option::Option; +pub type sk_ASN1_OBJECT_copy_func = + ::std::option::Option *mut ASN1_OBJECT>; +pub type sk_ASN1_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_OBJECT, + arg2: *const *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_cbc"] - pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_create"] + pub fn ASN1_OBJECT_create( + nid: ::std::os::raw::c_int, + data: *const u8, + len: usize, + sn: *const ::std::os::raw::c_char, + ln: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ecb"] - pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_free"] + pub fn ASN1_OBJECT_free(a: *mut ASN1_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc"] - pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_OBJECT"] + pub fn d2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ctr"] - pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_OBJECT"] + pub fn i2d_ASN1_OBJECT(in_: *const ASN1_OBJECT, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_ofb"] - pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_c2i_ASN1_OBJECT"] + pub fn c2i_ASN1_OBJECT( + out: *mut *mut ASN1_OBJECT, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ecb"] - pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_OBJECT_it"] + pub static ASN1_OBJECT_it: ASN1_ITEM; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc"] - pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct asn1_type_st { + pub type_: ::std::os::raw::c_int, + pub value: asn1_type_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ctr"] - pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; +#[repr(C)] +#[derive(Copy, Clone)] +pub union asn1_type_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub boolean: ASN1_BOOLEAN, + pub asn1_string: *mut ASN1_STRING, + pub object: *mut ASN1_OBJECT, + pub integer: *mut ASN1_INTEGER, + pub enumerated: *mut ASN1_ENUMERATED, + pub bit_string: *mut ASN1_BIT_STRING, + pub octet_string: *mut ASN1_OCTET_STRING, + pub printablestring: *mut ASN1_PRINTABLESTRING, + pub t61string: *mut ASN1_T61STRING, + pub ia5string: *mut ASN1_IA5STRING, + pub generalstring: *mut ASN1_GENERALSTRING, + pub bmpstring: *mut ASN1_BMPSTRING, + pub universalstring: *mut ASN1_UNIVERSALSTRING, + pub utctime: *mut ASN1_UTCTIME, + pub generalizedtime: *mut ASN1_GENERALIZEDTIME, + pub visiblestring: *mut ASN1_VISIBLESTRING, + pub utf8string: *mut ASN1_UTF8STRING, + pub set: *mut ASN1_STRING, + pub sequence: *mut ASN1_STRING, + pub asn1_value: *mut ASN1_VALUE, +} +#[test] +fn bindgen_test_layout_asn1_type_st__bindgen_ty_1() { + 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!(asn1_type_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ptr) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).boolean) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(boolean) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).object) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(object) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).integer) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(integer) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enumerated) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(enumerated) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bit_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bit_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).octet_string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(octet_string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).printablestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(printablestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t61string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(t61string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(ia5string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).bmpstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(bmpstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).universalstring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(universalstring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utctime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utctime) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).generalizedtime) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(generalizedtime) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).visiblestring) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(visiblestring) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utf8string) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(utf8string) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(set) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sequence) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(sequence) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st__bindgen_ty_1), + "::", + stringify!(asn1_value) + ) + ); +} +impl Default for asn1_type_st__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[test] +fn bindgen_test_layout_asn1_type_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!(asn1_type_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(asn1_type_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(asn1_type_st), + "::", + stringify!(value) + ) + ); +} +impl Default for asn1_type_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)] +pub struct stack_st_ASN1_TYPE { + _unused: [u8; 0], +} +pub type sk_ASN1_TYPE_free_func = ::std::option::Option; +pub type sk_ASN1_TYPE_copy_func = + ::std::option::Option *mut ASN1_TYPE>; +pub type sk_ASN1_TYPE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_TYPE, + arg2: *const *const ASN1_TYPE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_TYPE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_TYPE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_new"] + pub fn ASN1_TYPE_new() -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_free"] + pub fn ASN1_TYPE_free(a: *mut ASN1_TYPE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_TYPE"] + pub fn d2i_ASN1_TYPE( + out: *mut *mut ASN1_TYPE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_TYPE"] + pub fn i2d_ASN1_TYPE(in_: *const ASN1_TYPE, outp: *mut *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ANY_it"] + pub static ASN1_ANY_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_get"] + pub fn ASN1_TYPE_get(a: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set"] + pub fn ASN1_TYPE_set( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_set1"] + pub fn ASN1_TYPE_set1( + a: *mut ASN1_TYPE, + type_: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TYPE_cmp"] + pub fn ASN1_TYPE_cmp(a: *const ASN1_TYPE, b: *const ASN1_TYPE) -> ::std::os::raw::c_int; +} +pub type ASN1_SEQUENCE_ANY = stack_st_ASN1_TYPE; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SEQUENCE_ANY"] + pub fn d2i_ASN1_SEQUENCE_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SEQUENCE_ANY"] + pub fn i2d_ASN1_SEQUENCE_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_SET_ANY"] + pub fn d2i_ASN1_SET_ANY( + out: *mut *mut ASN1_SEQUENCE_ANY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_SEQUENCE_ANY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_SET_ANY"] + pub fn i2d_ASN1_SET_ANY( + in_: *const ASN1_SEQUENCE_ANY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_UTCTIME_print"] + pub fn ASN1_UTCTIME_print(out: *mut BIO, a: *const ASN1_UTCTIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_GENERALIZEDTIME_print"] + pub fn ASN1_GENERALIZEDTIME_print( + out: *mut BIO, + a: *const ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_TIME_print"] + pub fn ASN1_TIME_print(out: *mut BIO, a: *const ASN1_TIME) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print"] + pub fn ASN1_STRING_print(out: *mut BIO, str_: *const ASN1_STRING) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex"] + pub fn ASN1_STRING_print_ex( + out: *mut BIO, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_print_ex_fp"] + pub fn ASN1_STRING_print_ex_fp( + fp: *mut FILE, + str_: *const ASN1_STRING, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_INTEGER"] + pub fn i2a_ASN1_INTEGER(bp: *mut BIO, a: *const ASN1_INTEGER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_ENUMERATED"] + pub fn i2a_ASN1_ENUMERATED(bp: *mut BIO, a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_OBJECT"] + pub fn i2a_ASN1_OBJECT(bp: *mut BIO, a: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2a_ASN1_STRING"] + pub fn i2a_ASN1_STRING( + bp: *mut BIO, + a: *const ASN1_STRING, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2t_ASN1_OBJECT"] + pub fn i2t_ASN1_OBJECT( + buf: *mut ::std::os::raw::c_char, + buf_len: ::std::os::raw::c_int, + a: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_get_object"] + pub fn ASN1_get_object( + inp: *mut *const ::std::os::raw::c_uchar, + out_length: *mut ::std::os::raw::c_long, + out_tag: *mut ::std::os::raw::c_int, + out_class: *mut ::std::os::raw::c_int, + max_len: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_object"] + pub fn ASN1_put_object( + outp: *mut *mut ::std::os::raw::c_uchar, + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + xclass: ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_put_eoc"] + pub fn ASN1_put_eoc(outp: *mut *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_object_size"] + pub fn ASN1_object_size( + constructed: ::std::os::raw::c_int, + length: ::std::os::raw::c_int, + tag: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_new"] + pub fn ASN1_PRINTABLE_new() -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_free"] + pub fn ASN1_PRINTABLE_free(str_: *mut ASN1_STRING); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ASN1_PRINTABLE"] + pub fn d2i_ASN1_PRINTABLE( + out: *mut *mut ASN1_STRING, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut ASN1_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ASN1_PRINTABLE"] + pub fn i2d_ASN1_PRINTABLE(in_: *const ASN1_STRING, outp: *mut *mut u8) + -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_PRINTABLE_it"] + pub static ASN1_PRINTABLE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_set"] + pub fn ASN1_INTEGER_set( + a: *mut ASN1_INTEGER, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_set"] + pub fn ASN1_ENUMERATED_set( + a: *mut ASN1_ENUMERATED, + v: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_INTEGER_get"] + pub fn ASN1_INTEGER_get(a: *const ASN1_INTEGER) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_ENUMERATED_get"] + pub fn ASN1_ENUMERATED_get(a: *const ASN1_ENUMERATED) -> ::std::os::raw::c_long; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask"] + pub fn ASN1_STRING_set_default_mask(mask: ::std::os::raw::c_ulong); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_set_default_mask_asc"] + pub fn ASN1_STRING_set_default_mask_asc( + p: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_get_default_mask"] + pub fn ASN1_STRING_get_default_mask() -> ::std::os::raw::c_ulong; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_STRING_TABLE_cleanup"] + pub fn ASN1_STRING_TABLE_cleanup(); +} +pub type ASN1_TEMPLATE = ASN1_TEMPLATE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASN1_TLC_st { + _unused: [u8; 0], +} +pub type ASN1_TLC = ASN1_TLC_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_TEMPLATE_st { + pub flags: u32, + pub tag: ::std::os::raw::c_int, + pub offset: ::std::os::raw::c_ulong, + pub field_name: *const ::std::os::raw::c_char, + pub item: *const ASN1_ITEM_st, +} +#[test] +fn bindgen_test_layout_ASN1_TEMPLATE_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_TEMPLATE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_TEMPLATE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(tag) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).field_name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(field_name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).item) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_TEMPLATE_st), + "::", + stringify!(item) + ) + ); +} +impl Default for ASN1_TEMPLATE_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() + } + } +} +pub type ASN1_ADB_TABLE = ASN1_ADB_TABLE_st; +pub type ASN1_ADB = ASN1_ADB_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct asn1_must_be_null_st { + _unused: [u8; 0], +} +pub type ASN1_MUST_BE_NULL = asn1_must_be_null_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_ADB_st { + pub flags: u32, + pub offset: ::std::os::raw::c_ulong, + pub unused: *mut ASN1_MUST_BE_NULL, + pub tbl: *const ASN1_ADB_TABLE, + pub tblcount: ::std::os::raw::c_long, + pub default_tt: *const ASN1_TEMPLATE, + pub null_tt: *const ASN1_TEMPLATE, +} +#[test] +fn bindgen_test_layout_ASN1_ADB_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(ASN1_ADB_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).unused) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(unused) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tbl) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tbl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tblcount) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(tblcount) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).default_tt) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(default_tt) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).null_tt) as usize - ptr as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_st), + "::", + stringify!(null_tt) + ) + ); +} +impl Default for ASN1_ADB_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 ASN1_ADB_TABLE_st { + pub value: ::std::os::raw::c_int, + pub tt: ASN1_TEMPLATE, +} +#[test] +fn bindgen_test_layout_ASN1_ADB_TABLE_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!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ADB_TABLE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(value) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tt) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ADB_TABLE_st), + "::", + stringify!(tt) + ) + ); +} +impl Default for ASN1_ADB_TABLE_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 ASN1_ITEM_st { + pub itype: ::std::os::raw::c_char, + pub utype: ::std::os::raw::c_int, + pub templates: *const ASN1_TEMPLATE, + pub tcount: ::std::os::raw::c_long, + pub funcs: *const ::std::os::raw::c_void, + pub size: ::std::os::raw::c_long, + pub sname: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_ASN1_ITEM_st() { + 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!(ASN1_ITEM_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_ITEM_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).itype) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(itype) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).utype) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(utype) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).templates) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(templates) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).tcount) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(tcount) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).funcs) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(funcs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_ITEM_st), + "::", + stringify!(sname) + ) + ); +} +impl Default for ASN1_ITEM_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() + } + } +} +pub type ASN1_new_func = ::std::option::Option *mut ASN1_VALUE>; +pub type ASN1_free_func = ::std::option::Option; +pub type ASN1_d2i_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + length: ::std::os::raw::c_long, + ) -> *mut ASN1_VALUE, +>; +pub type ASN1_i2d_func = ::std::option::Option< + unsafe extern "C" fn( + a: *mut ASN1_VALUE, + in_: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_d2i = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + opt: ::std::os::raw::c_char, + ctx: *mut ASN1_TLC, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_i2d = ::std::option::Option< + unsafe extern "C" fn( + pval: *mut *mut ASN1_VALUE, + out: *mut *mut ::std::os::raw::c_uchar, + it: *const ASN1_ITEM, + tag: ::std::os::raw::c_int, + aclass: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_new_func = ::std::option::Option< + unsafe extern "C" fn(pval: *mut *mut ASN1_VALUE, it: *const ASN1_ITEM) -> ::std::os::raw::c_int, +>; +pub type ASN1_ex_free_func = + ::std::option::Option; +pub type ASN1_ex_print_func = ::std::option::Option< + unsafe extern "C" fn( + out: *mut BIO, + pval: *mut *mut ASN1_VALUE, + indent: ::std::os::raw::c_int, + fname: *const ::std::os::raw::c_char, + pctx: *const ASN1_PCTX, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_EXTERN_FUNCS_st { + pub app_data: *mut ::std::os::raw::c_void, + pub asn1_ex_new: ASN1_ex_new_func, + pub asn1_ex_free: ASN1_ex_free_func, + pub asn1_ex_d2i: ASN1_ex_d2i, + pub asn1_ex_i2d: ASN1_ex_i2d, + pub asn1_ex_print: ASN1_ex_print_func, +} +#[test] +fn bindgen_test_layout_ASN1_EXTERN_FUNCS_st() { + 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!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_EXTERN_FUNCS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_new) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_new) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_free) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_free) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_d2i) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_d2i) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_i2d) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_i2d) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_ex_print) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(ASN1_EXTERN_FUNCS_st), + "::", + stringify!(asn1_ex_print) + ) + ); +} +impl Default for ASN1_EXTERN_FUNCS_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() + } + } +} +pub type ASN1_EXTERN_FUNCS = ASN1_EXTERN_FUNCS_st; +pub type ASN1_aux_cb = ::std::option::Option< + unsafe extern "C" fn( + operation: ::std::os::raw::c_int, + in_: *mut *mut ASN1_VALUE, + it: *const ASN1_ITEM, + exarg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ASN1_AUX_st { + pub app_data: *mut ::std::os::raw::c_void, + pub flags: u32, + pub ref_offset: ::std::os::raw::c_int, + pub asn1_cb: ASN1_aux_cb, + pub enc_offset: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_ASN1_AUX_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ASN1_AUX_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(app_data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ref_offset) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(ref_offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).asn1_cb) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(asn1_cb) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_offset) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ASN1_AUX_st), + "::", + stringify!(enc_offset) + ) + ); +} +impl Default for ASN1_AUX_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() + } + } +} +pub type ASN1_AUX = ASN1_AUX_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ASN1_SEQUENCE_it"] + pub static ASN1_SEQUENCE_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ASN1_VALUE { + _unused: [u8; 0], +} +pub type sk_ASN1_VALUE_free_func = + ::std::option::Option; +pub type sk_ASN1_VALUE_copy_func = + ::std::option::Option *mut ASN1_VALUE>; +pub type sk_ASN1_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ASN1_VALUE, + arg2: *const *const ASN1_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ASN1_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ASN1_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeBlock"] + pub fn EVP_EncodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodedLength"] + pub fn EVP_EncodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodedLength"] + pub fn EVP_DecodedLength(out_len: *mut usize, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBase64"] + pub fn EVP_DecodeBase64( + out: *mut u8, + out_len: *mut usize, + max_out: usize, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_new"] + pub fn EVP_ENCODE_CTX_new() -> *mut EVP_ENCODE_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ENCODE_CTX_free"] + pub fn EVP_ENCODE_CTX_free(ctx: *mut EVP_ENCODE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeInit"] + pub fn EVP_EncodeInit(ctx: *mut EVP_ENCODE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeUpdate"] + pub fn EVP_EncodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncodeFinal"] + pub fn EVP_EncodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeInit"] + pub fn EVP_DecodeInit(ctx: *mut EVP_ENCODE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeUpdate"] + pub fn EVP_DecodeUpdate( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeFinal"] + pub fn EVP_DecodeFinal( + ctx: *mut EVP_ENCODE_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecodeBlock"] + pub fn EVP_DecodeBlock(dst: *mut u8, src: *const u8, src_len: usize) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct evp_encode_ctx_st { + pub data_used: ::std::os::raw::c_uint, + pub data: [u8; 48usize], + pub eof_seen: ::std::os::raw::c_char, + pub error_encountered: ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_evp_encode_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 56usize, + concat!("Size of: ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(evp_encode_ctx_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data_used) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).eof_seen) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(eof_seen) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).error_encountered) as usize - ptr as usize }, + 53usize, + concat!( + "Offset of field: ", + stringify!(evp_encode_ctx_st), + "::", + stringify!(error_encountered) + ) + ); +} +impl Default for evp_encode_ctx_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 blake2b_state_st { + pub h: [u64; 8usize], + pub t_low: u64, + pub t_high: u64, + pub block: [u8; 128usize], + pub block_used: usize, +} +#[test] +fn bindgen_test_layout_blake2b_state_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 216usize, + concat!("Size of: ", stringify!(blake2b_state_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(blake2b_state_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(h) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_low) as usize - ptr as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_low) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).t_high) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(t_high) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block) as usize - ptr as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).block_used) as usize - ptr as usize }, + 208usize, + concat!( + "Offset of field: ", + stringify!(blake2b_state_st), + "::", + stringify!(block_used) + ) + ); +} +impl Default for blake2b_state_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_fips_0_13_0_BLAKE2B256_Init"] + pub fn BLAKE2B256_Init(b2b: *mut BLAKE2B_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Update"] + pub fn BLAKE2B256_Update( + b2b: *mut BLAKE2B_CTX, + data: *const ::std::os::raw::c_void, + len: usize, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256_Final"] + pub fn BLAKE2B256_Final(out: *mut u8, b2b: *mut BLAKE2B_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BLAKE2B256"] + pub fn BLAKE2B256(data: *const u8, len: usize, out: *mut u8); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct bf_key_st { + pub P: [u32; 18usize], + pub S: [u32; 1024usize], +} +#[test] +fn bindgen_test_layout_bf_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 4168usize, + concat!("Size of: ", stringify!(bf_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(bf_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).P) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(P) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).S) as usize - ptr as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(bf_key_st), + "::", + stringify!(S) + ) + ); } +impl Default for bf_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() + } + } +} +pub type BF_KEY = bf_key_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_ofb"] - pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_set_key"] + pub fn BF_set_key(key: *mut BF_KEY, len: usize, data: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_xts"] - pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_encrypt"] + pub fn BF_encrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_enc_null"] - pub fn EVP_enc_null() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_decrypt"] + pub fn BF_decrypt(data: *mut u32, key: *const BF_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_cbc"] - pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_ecb_encrypt"] + pub fn BF_ecb_encrypt( + in_: *const u8, + out: *mut u8, + key: *const BF_KEY, + enc: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_rc2_40_cbc"] - pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BF_cbc_encrypt"] + pub fn BF_cbc_encrypt( + in_: *const u8, + out: *mut u8, + length: usize, + schedule: *const BF_KEY, + ivec: *mut u8, + enc: ::std::os::raw::c_int, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbs_st { + pub data: *const u8, + pub len: usize, +} +#[test] +fn bindgen_test_layout_cbs_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!(cbs_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbs_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(data) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbs_st), + "::", + stringify!(len) + ) + ); +} +impl Default for cbs_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_fips_0_12_15_EVP_get_cipherbynid"] - pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_init"] + pub fn CBS_init(cbs: *mut CBS, data: *const u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_init"] - pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_skip"] + pub fn CBS_skip(cbs: *mut CBS, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_new"] - pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_data"] + pub fn CBS_data(cbs: *const CBS) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cleanup"] - pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_len"] + pub fn CBS_len(cbs: *const CBS) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_free"] - pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_stow"] + pub fn CBS_stow( + cbs: *const CBS, + out_ptr: *mut *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_copy"] - pub fn EVP_CIPHER_CTX_copy( - out: *mut EVP_CIPHER_CTX, - in_: *const EVP_CIPHER_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_strdup"] + pub fn CBS_strdup( + cbs: *const CBS, + out_ptr: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_contains_zero_byte"] + pub fn CBS_contains_zero_byte(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_mem_equal"] + pub fn CBS_mem_equal(cbs: *const CBS, data: *const u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8"] + pub fn CBS_get_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16"] + pub fn CBS_get_u16(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16le"] + pub fn CBS_get_u16le(cbs: *mut CBS, out: *mut u16) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24"] + pub fn CBS_get_u24(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32"] + pub fn CBS_get_u32(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u32le"] + pub fn CBS_get_u32le(cbs: *mut CBS, out: *mut u32) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64"] + pub fn CBS_get_u64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64le"] + pub fn CBS_get_u64le(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_last_u8"] + pub fn CBS_get_last_u8(cbs: *mut CBS, out: *mut u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_bytes"] + pub fn CBS_get_bytes(cbs: *mut CBS, out: *mut CBS, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_copy_bytes"] + pub fn CBS_copy_bytes(cbs: *mut CBS, out: *mut u8, len: usize) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u8_length_prefixed"] + pub fn CBS_get_u8_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u16_length_prefixed"] + pub fn CBS_get_u16_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u24_length_prefixed"] + pub fn CBS_get_u24_length_prefixed(cbs: *mut CBS, out: *mut CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_until_first"] + pub fn CBS_get_until_first(cbs: *mut CBS, out: *mut CBS, c: u8) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_u64_decimal"] + pub fn CBS_get_u64_decimal(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1"] + pub fn CBS_get_asn1( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_element"] + pub fn CBS_get_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + tag_value: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_peek_asn1_tag"] + pub fn CBS_peek_asn1_tag(cbs: *const CBS, tag_value: CBS_ASN1_TAG) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1"] + pub fn CBS_get_any_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_asn1_element"] + pub fn CBS_get_any_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_any_ber_asn1_element"] + pub fn CBS_get_any_ber_asn1_element( + cbs: *mut CBS, + out: *mut CBS, + out_tag: *mut CBS_ASN1_TAG, + out_header_len: *mut usize, + out_ber_found: *mut ::std::os::raw::c_int, + out_indefinite: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_uint64"] + pub fn CBS_get_asn1_uint64(cbs: *mut CBS, out: *mut u64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_int64"] + pub fn CBS_get_asn1_int64(cbs: *mut CBS, out: *mut i64) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_asn1_bool"] + pub fn CBS_get_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1"] + pub fn CBS_get_optional_asn1( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_octet_string"] + pub fn CBS_get_optional_asn1_octet_string( + cbs: *mut CBS, + out: *mut CBS, + out_present: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_reset"] - pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_uint64"] + pub fn CBS_get_optional_asn1_uint64( + cbs: *mut CBS, + out: *mut u64, + tag: CBS_ASN1_TAG, + default_value: u64, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit_ex"] - pub fn EVP_CipherInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - engine: *mut ENGINE, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_bool"] + pub fn CBS_get_optional_asn1_bool( + cbs: *mut CBS, + out: *mut ::std::os::raw::c_int, + tag: CBS_ASN1_TAG, + default_value: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit_ex"] - pub fn EVP_EncryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_bitstring"] + pub fn CBS_is_valid_asn1_bitstring(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit_ex"] - pub fn EVP_DecryptInit_ex( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - impl_: *mut ENGINE, - key: *const u8, - iv: *const u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_bitstring_has_bit"] + pub fn CBS_asn1_bitstring_has_bit( + cbs: *const CBS, + bit: ::std::os::raw::c_uint, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptUpdate"] - pub fn EVP_EncryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_integer"] + pub fn CBS_is_valid_asn1_integer( + cbs: *const CBS, + out_is_negative: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal_ex"] - pub fn EVP_EncryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_unsigned_asn1_integer"] + pub fn CBS_is_unsigned_asn1_integer(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptUpdate"] - pub fn EVP_DecryptUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_is_valid_asn1_oid"] + pub fn CBS_is_valid_asn1_oid(cbs: *const CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal_ex"] - pub fn EVP_DecryptFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_asn1_oid_to_text"] + pub fn CBS_asn1_oid_to_text(cbs: *const CBS) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherUpdate"] - pub fn EVP_CipherUpdate( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - in_: *const u8, - in_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_generalized_time"] + pub fn CBS_parse_generalized_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal_ex"] - pub fn EVP_CipherFinal_ex( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_parse_utc_time"] + pub fn CBS_parse_utc_time( + cbs: *const CBS, + out_tm: *mut tm, + allow_timezone_offset: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_cipher"] - pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBS_get_optional_asn1_int64"] + pub fn CBS_get_optional_asn1_int64( + cbs: *mut CBS, + out: *mut i64, + tag: CBS_ASN1_TAG, + default_value: i64, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_buffer_st { + pub buf: *mut u8, + pub len: usize, + pub cap: usize, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 7usize], +} +#[test] +fn bindgen_test_layout_cbb_buffer_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_buffer_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(buf) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cap) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_buffer_st), + "::", + stringify!(cap) + ) + ); +} +impl Default for cbb_buffer_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() + } + } +} +impl cbb_buffer_st { + #[inline] + pub fn can_resize(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_can_resize(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn error(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_error(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + can_resize: ::std::os::raw::c_uint, + error: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let can_resize: u32 = unsafe { ::std::mem::transmute(can_resize) }; + can_resize as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let error: u32 = unsafe { ::std::mem::transmute(error) }; + error as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct cbb_child_st { + pub base: *mut cbb_buffer_st, + pub offset: usize, + pub pending_len_len: u8, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u16; 3usize], +} +#[test] +fn bindgen_test_layout_cbb_child_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!(cbb_child_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_child_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(offset) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pending_len_len) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(cbb_child_st), + "::", + stringify!(pending_len_len) + ) + ); +} +impl Default for cbb_child_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_fips_0_12_15_EVP_CIPHER_CTX_nid"] - pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +impl cbb_child_st { + #[inline] + pub fn pending_is_asn1(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_pending_is_asn1(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + pending_is_asn1: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let pending_is_asn1: u32 = unsafe { ::std::mem::transmute(pending_is_asn1) }; + pending_is_asn1 as u64 + }); + __bindgen_bitfield_unit + } } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_encrypting"] - pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct cbb_st { + pub child: *mut CBB, + pub is_child: ::std::os::raw::c_char, + pub u: cbb_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_block_size"] - pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub union cbb_st__bindgen_ty_1 { + pub base: cbb_buffer_st, + pub child: cbb_child_st, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_key_length"] - pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +#[test] +fn bindgen_test_layout_cbb_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st__bindgen_ty_1), + "::", + stringify!(child) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_iv_length"] - pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +impl Default for cbb_st__bindgen_ty_1 { + 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_fips_0_12_15_EVP_CIPHER_CTX_get_app_data"] - pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; +#[test] +fn bindgen_test_layout_cbb_st() { + 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!(cbb_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(cbb_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).child) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).is_child) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(cbb_st), + "::", + stringify!(is_child) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, + 16usize, + concat!("Offset of field: ", stringify!(cbb_st), "::", stringify!(u)) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_app_data"] - pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); +impl Default for cbb_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_fips_0_12_15_EVP_CIPHER_CTX_flags"] - pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_zero"] + pub fn CBB_zero(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_mode"] - pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init"] + pub fn CBB_init(cbb: *mut CBB, initial_capacity: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_ctrl"] - pub fn EVP_CIPHER_CTX_ctrl( - ctx: *mut EVP_CIPHER_CTX, - command: ::std::os::raw::c_int, - arg: ::std::os::raw::c_int, - ptr: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_init_fixed"] + pub fn CBB_init_fixed(cbb: *mut CBB, buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_padding"] - pub fn EVP_CIPHER_CTX_set_padding( - ctx: *mut EVP_CIPHER_CTX, - pad: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_cleanup"] + pub fn CBB_cleanup(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_key_length"] - pub fn EVP_CIPHER_CTX_set_key_length( - ctx: *mut EVP_CIPHER_CTX, - key_len: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_finish"] + pub fn CBB_finish( + cbb: *mut CBB, + out_data: *mut *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_nid"] - pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_block_size"] - pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush"] + pub fn CBB_flush(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_key_length"] - pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_data"] + pub fn CBB_data(cbb: *const CBB) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_iv_length"] - pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_len"] + pub fn CBB_len(cbb: *const CBB) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_flags"] - pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8_length_prefixed"] + pub fn CBB_add_u8_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_mode"] - pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16_length_prefixed"] + pub fn CBB_add_u16_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_BytesToKey"] - pub fn EVP_BytesToKey( - type_: *const EVP_CIPHER, - md: *const EVP_MD, - salt: *const u8, - data: *const u8, - data_len: usize, - count: ::std::os::raw::c_uint, - key: *mut u8, - iv: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24_length_prefixed"] + pub fn CBB_add_u24_length_prefixed( + cbb: *mut CBB, + out_contents: *mut CBB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha1"] - pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1"] + pub fn CBB_add_asn1( + cbb: *mut CBB, + out_contents: *mut CBB, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha1"] - pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_bytes"] + pub fn CBB_add_bytes(cbb: *mut CBB, data: *const u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cbc_hmac_sha256"] - pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_zeros"] + pub fn CBB_add_zeros(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cbc_hmac_sha256"] - pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_space"] + pub fn CBB_add_space( + cbb: *mut CBB, + out_data: *mut *mut u8, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherInit"] - pub fn EVP_CipherInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - enc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_reserve"] + pub fn CBB_reserve(cbb: *mut CBB, out_data: *mut *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptInit"] - pub fn EVP_EncryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_did_write"] + pub fn CBB_did_write(cbb: *mut CBB, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptInit"] - pub fn EVP_DecryptInit( - ctx: *mut EVP_CIPHER_CTX, - cipher: *const EVP_CIPHER, - key: *const u8, - iv: *const u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u8"] + pub fn CBB_add_u8(cbb: *mut CBB, value: u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CipherFinal"] - pub fn EVP_CipherFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16"] + pub fn CBB_add_u16(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_EncryptFinal"] - pub fn EVP_EncryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u16le"] + pub fn CBB_add_u16le(cbb: *mut CBB, value: u16) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DecryptFinal"] - pub fn EVP_DecryptFinal( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - out_len: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u24"] + pub fn CBB_add_u24(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Cipher"] - pub fn EVP_Cipher( - ctx: *mut EVP_CIPHER_CTX, - out: *mut u8, - in_: *const u8, - in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32"] + pub fn CBB_add_u32(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_cipher_alias"] - pub fn EVP_add_cipher_alias( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u32le"] + pub fn CBB_add_u32le(cbb: *mut CBB, value: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_cipherbyname"] - pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64"] + pub fn CBB_add_u64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_gcm"] - pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_u64le"] + pub fn CBB_add_u64le(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_gcm"] - pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_discard_child"] + pub fn CBB_discard_child(cbb: *mut CBB); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ecb"] - pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64"] + pub fn CBB_add_asn1_uint64(cbb: *mut CBB, value: u64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cbc"] - pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_uint64_with_tag"] + pub fn CBB_add_asn1_uint64_with_tag( + cbb: *mut CBB, + value: u64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ctr"] - pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64"] + pub fn CBB_add_asn1_int64(cbb: *mut CBB, value: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_gcm"] - pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_int64_with_tag"] + pub fn CBB_add_asn1_int64_with_tag( + cbb: *mut CBB, + value: i64, + tag: CBS_ASN1_TAG, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_ofb"] - pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_octet_string"] + pub fn CBB_add_asn1_octet_string( + cbb: *mut CBB, + data: *const u8, + data_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_des_ede3_ecb"] - pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_bool"] + pub fn CBB_add_asn1_bool(cbb: *mut CBB, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb128"] - pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_add_asn1_oid_from_text"] + pub fn CBB_add_asn1_oid_from_text( + cbb: *mut CBB, + text: *const ::std::os::raw::c_char, + len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb"] - pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CBB_flush_asn1_set_of"] + pub fn CBB_flush_asn1_set_of(cbb: *mut CBB) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb1"] - pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_chacha_20"] + pub fn CRYPTO_chacha_20( + out: *mut u8, + in_: *const u8, + in_len: usize, + key: *const u8, + nonce: *const u8, + counter: u32, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_128_cfb8"] - pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc4"] + pub fn EVP_rc4() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb128"] - pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_cbc"] + pub fn EVP_des_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb"] - pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ecb"] + pub fn EVP_des_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb1"] - pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede"] + pub fn EVP_des_ede() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_192_cfb8"] - pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3"] + pub fn EVP_des_ede3() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb128"] - pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede_cbc"] + pub fn EVP_des_ede_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb"] - pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_cbc"] + pub fn EVP_des_ede3_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb1"] - pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ecb"] + pub fn EVP_aes_128_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aes_256_cfb8"] - pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc"] + pub fn EVP_aes_128_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_ecb"] - pub fn EVP_bf_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ctr"] + pub fn EVP_aes_128_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cbc"] - pub fn EVP_bf_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ofb"] + pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_bf_cfb"] - pub fn EVP_bf_cfb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ecb"] + pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_ecb"] - pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc"] + pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cast5_cbc"] - pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ctr"] + pub fn EVP_aes_256_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_CTX_set_flags"] - pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_ctx_st { - pub cipher: *const EVP_CIPHER, - pub app_data: *mut ::std::os::raw::c_void, - pub cipher_data: *mut ::std::os::raw::c_void, - pub key_len: ::std::os::raw::c_uint, - pub encrypt: ::std::os::raw::c_int, - pub flags: u32, - pub oiv: [u8; 16usize], - pub iv: [u8; 16usize], - pub buf: [u8; 32usize], - pub buf_len: ::std::os::raw::c_int, - pub num: ::std::os::raw::c_uint, - pub final_used: ::std::os::raw::c_int, - pub final_: [u8; 32usize], - pub poisoned: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ofb"] + pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_evp_cipher_ctx_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 152usize, - concat!("Size of: ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(cipher_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(key_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(encrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(oiv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(iv) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(buf_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(num) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_used) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(final_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_ctx_st), - "::", - stringify!(poisoned) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_xts"] + pub fn EVP_aes_256_xts() -> *const EVP_CIPHER; } -impl Default for evp_cipher_ctx_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_fips_0_13_0_EVP_aes_256_wrap"] + pub fn EVP_aes_256_wrap() -> *const EVP_CIPHER; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct evp_cipher_info_st { - pub cipher: *const EVP_CIPHER, - pub iv: [::std::os::raw::c_uchar; 16usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_enc_null"] + pub fn EVP_enc_null() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_evp_cipher_info_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!(evp_cipher_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_cipher_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_cipher_info_st), - "::", - stringify!(iv) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_rc2_cbc"] + pub fn EVP_rc2_cbc() -> *const EVP_CIPHER; } -impl Default for evp_cipher_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_fips_0_13_0_EVP_rc2_40_cbc"] + pub fn EVP_rc2_40_cbc() -> *const EVP_CIPHER; } -pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AES_CMAC"] - pub fn AES_CMAC( - out: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_chacha20_poly1305"] + pub fn EVP_chacha20_poly1305() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbynid"] + pub fn EVP_get_cipherbynid(nid: ::std::os::raw::c_int) -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_init"] + pub fn EVP_CIPHER_CTX_init(ctx: *mut EVP_CIPHER_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_new"] + pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cleanup"] + pub fn EVP_CIPHER_CTX_cleanup(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_free"] + pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_copy"] + pub fn EVP_CIPHER_CTX_copy( + out: *mut EVP_CIPHER_CTX, + in_: *const EVP_CIPHER_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_reset"] + pub fn EVP_CIPHER_CTX_reset(ctx: *mut EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit_ex"] + pub fn EVP_CipherInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, key: *const u8, - key_len: usize, + iv: *const u8, + enc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit_ex"] + pub fn EVP_EncryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit_ex"] + pub fn EVP_DecryptInit_ex( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + impl_: *mut ENGINE, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptUpdate"] + pub fn EVP_EncryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, in_: *const u8, - in_len: usize, + in_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_new"] - pub fn CMAC_CTX_new() -> *mut CMAC_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal_ex"] + pub fn EVP_EncryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_free"] - pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptUpdate"] + pub fn EVP_DecryptUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal_ex"] + pub fn EVP_DecryptFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherUpdate"] + pub fn EVP_CipherUpdate( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + in_: *const u8, + in_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal_ex"] + pub fn EVP_CipherFinal_ex( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_cipher"] + pub fn EVP_CIPHER_CTX_cipher(ctx: *const EVP_CIPHER_CTX) -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_nid"] + pub fn EVP_CIPHER_CTX_nid(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_encrypting"] + pub fn EVP_CIPHER_CTX_encrypting(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_block_size"] + pub fn EVP_CIPHER_CTX_block_size(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_key_length"] + pub fn EVP_CIPHER_CTX_key_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_iv_length"] + pub fn EVP_CIPHER_CTX_iv_length(ctx: *const EVP_CIPHER_CTX) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_get_app_data"] + pub fn EVP_CIPHER_CTX_get_app_data(ctx: *const EVP_CIPHER_CTX) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_app_data"] + pub fn EVP_CIPHER_CTX_set_app_data(ctx: *mut EVP_CIPHER_CTX, data: *mut ::std::os::raw::c_void); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_flags"] + pub fn EVP_CIPHER_CTX_flags(ctx: *const EVP_CIPHER_CTX) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_mode"] + pub fn EVP_CIPHER_CTX_mode(ctx: *const EVP_CIPHER_CTX) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_ctrl"] + pub fn EVP_CIPHER_CTX_ctrl( + ctx: *mut EVP_CIPHER_CTX, + command: ::std::os::raw::c_int, + arg: ::std::os::raw::c_int, + ptr: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_padding"] + pub fn EVP_CIPHER_CTX_set_padding( + ctx: *mut EVP_CIPHER_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_key_length"] + pub fn EVP_CIPHER_CTX_set_key_length( + ctx: *mut EVP_CIPHER_CTX, + key_len: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_nid"] + pub fn EVP_CIPHER_nid(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_name"] + pub fn EVP_CIPHER_name(cipher: *const EVP_CIPHER) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_block_size"] + pub fn EVP_CIPHER_block_size(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_key_length"] + pub fn EVP_CIPHER_key_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_iv_length"] + pub fn EVP_CIPHER_iv_length(cipher: *const EVP_CIPHER) -> ::std::os::raw::c_uint; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_flags"] + pub fn EVP_CIPHER_flags(cipher: *const EVP_CIPHER) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_mode"] + pub fn EVP_CIPHER_mode(cipher: *const EVP_CIPHER) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_BytesToKey"] + pub fn EVP_BytesToKey( + type_: *const EVP_CIPHER, + md: *const EVP_MD, + salt: *const u8, + data: *const u8, + data_len: usize, + count: ::std::os::raw::c_uint, + key: *mut u8, + iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha1"] + pub fn EVP_aes_128_cbc_hmac_sha1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha1"] + pub fn EVP_aes_256_cbc_hmac_sha1() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cbc_hmac_sha256"] + pub fn EVP_aes_128_cbc_hmac_sha256() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cbc_hmac_sha256"] + pub fn EVP_aes_256_cbc_hmac_sha256() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_CTX_copy"] - pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherInit"] + pub fn EVP_CipherInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + enc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Init"] - pub fn CMAC_Init( - ctx: *mut CMAC_CTX, - key: *const ::std::os::raw::c_void, - key_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptInit"] + pub fn EVP_EncryptInit( + ctx: *mut EVP_CIPHER_CTX, cipher: *const EVP_CIPHER, - engine: *mut ENGINE, + key: *const u8, + iv: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Reset"] - pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptInit"] + pub fn EVP_DecryptInit( + ctx: *mut EVP_CIPHER_CTX, + cipher: *const EVP_CIPHER, + key: *const u8, + iv: *const u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Update"] - pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CipherFinal"] + pub fn EVP_CipherFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CMAC_Final"] - pub fn CMAC_Final( - ctx: *mut CMAC_CTX, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_EncryptFinal"] + pub fn EVP_EncryptFinal( + ctx: *mut EVP_CIPHER_CTX, out: *mut u8, - out_len: *mut usize, + out_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct conf_value_st { - pub section: *mut ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_conf_value_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!(conf_value_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(conf_value_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(section) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(conf_value_st), - "::", - stringify!(value) - ) - ); -} -impl Default for conf_value_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)] -pub struct stack_st_CONF_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DecryptFinal"] + pub fn EVP_DecryptFinal( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + out_len: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -pub type sk_CONF_VALUE_free_func = - ::std::option::Option; -pub type sk_CONF_VALUE_copy_func = - ::std::option::Option *mut CONF_VALUE>; -pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const CONF_VALUE, - arg2: *mut *const CONF_VALUE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut CONF_VALUE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lhash_st_CONF_VALUE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Cipher"] + pub fn EVP_Cipher( + ctx: *mut EVP_CIPHER_CTX, + out: *mut u8, + in_: *const u8, + in_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_new"] - pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_cipherbyname"] + pub fn EVP_get_cipherbyname(name: *const ::std::os::raw::c_char) -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_free"] - pub fn NCONF_free(conf: *mut CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_gcm"] + pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load"] - pub fn NCONF_load( - conf: *mut CONF, - filename: *const ::std::os::raw::c_char, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_gcm"] + pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_load_bio"] - pub fn NCONF_load_bio( - conf: *mut CONF, - bio: *mut BIO, - out_error_line: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_ccm"] + pub fn EVP_aes_128_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_section"] - pub fn NCONF_get_section( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - ) -> *const stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ccm"] + pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NCONF_get_string"] - pub fn NCONF_get_string( - conf: *const CONF, - section: *const ::std::os::raw::c_char, - name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_ccm"] + pub fn EVP_aes_256_ccm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_load_file"] - pub fn CONF_modules_load_file( - filename: *const ::std::os::raw::c_char, - appname: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ecb"] + pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CONF_modules_free"] - pub fn CONF_modules_free(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cbc"] + pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_config"] - pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ctr"] + pub fn EVP_aes_192_ctr() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_no_config"] - pub fn OPENSSL_no_config(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_gcm"] + pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Init"] - pub fn SHA1_Init(sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_ofb"] + pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Update"] - pub fn SHA1_Update( - sha: *mut SHA_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_des_ede3_ecb"] + pub fn EVP_des_ede3_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Final"] - pub fn SHA1_Final(out: *mut u8, sha: *mut SHA_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb128"] + pub fn EVP_aes_128_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1"] - pub fn SHA1(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb"] + pub fn EVP_aes_128_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA1_Transform"] - pub fn SHA1_Transform(sha: *mut SHA_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb1"] + pub fn EVP_aes_128_cfb1() -> *const EVP_CIPHER; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha_state_st { - pub h: [u32; 5usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], - pub num: ::std::os::raw::c_uint, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_128_cfb8"] + pub fn EVP_aes_128_cfb8() -> *const EVP_CIPHER; } -#[test] -fn bindgen_test_layout_sha_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 96usize, - concat!("Size of: ", stringify!(sha_state_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha_state_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(h) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(Nh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(sha_state_st), - "::", - stringify!(num) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb128"] + pub fn EVP_aes_192_cfb128() -> *const EVP_CIPHER; } -impl Default for sha_state_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_fips_0_13_0_EVP_aes_192_cfb"] + pub fn EVP_aes_192_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Init"] - pub fn SHA224_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb1"] + pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Update"] - pub fn SHA224_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_192_cfb8"] + pub fn EVP_aes_192_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224_Final"] - pub fn SHA224_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb128"] + pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA224"] - pub fn SHA224(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb"] + pub fn EVP_aes_256_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Init"] - pub fn SHA256_Init(sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb1"] + pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Update"] - pub fn SHA256_Update( - sha: *mut SHA256_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aes_256_cfb8"] + pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Final"] - pub fn SHA256_Final(out: *mut u8, sha: *mut SHA256_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_ecb"] + pub fn EVP_bf_ecb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256"] - pub fn SHA256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cbc"] + pub fn EVP_bf_cbc() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_Transform"] - pub fn SHA256_Transform(sha: *mut SHA256_CTX, block: *const u8); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_bf_cfb"] + pub fn EVP_bf_cfb() -> *const EVP_CIPHER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA256_TransformBlocks"] - pub fn SHA256_TransformBlocks(state: *mut u32, data: *const u8, num_blocks: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_ecb"] + pub fn EVP_cast5_ecb() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cast5_cbc"] + pub fn EVP_cast5_cbc() -> *const EVP_CIPHER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_CTX_set_flags"] + pub fn EVP_CIPHER_CTX_set_flags(ctx: *const EVP_CIPHER_CTX, flags: u32); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_cipher_alias"] + pub fn EVP_add_cipher_alias( + a: *const ::std::os::raw::c_char, + b: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha256_state_st { - pub h: [u32; 8usize], - pub Nl: u32, - pub Nh: u32, - pub data: [u8; 64usize], +pub struct evp_cipher_ctx_st { + pub cipher: *const EVP_CIPHER, + pub app_data: *mut ::std::os::raw::c_void, + pub cipher_data: *mut ::std::os::raw::c_void, + pub key_len: ::std::os::raw::c_uint, + pub encrypt: ::std::os::raw::c_int, + pub flags: u32, + pub oiv: [u8; 16usize], + pub iv: [u8; 16usize], + pub buf: [u8; 32usize], + pub buf_len: ::std::os::raw::c_int, pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, + pub final_used: ::std::os::raw::c_int, + pub final_: [u8; 32usize], + pub poisoned: ::std::os::raw::c_int, } #[test] -fn bindgen_test_layout_sha256_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_evp_cipher_ctx_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 112usize, - concat!("Size of: ", stringify!(sha256_state_st)) + ::std::mem::size_of::(), + 152usize, + concat!("Size of: ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(sha256_state_st)) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_ctx_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(app_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 36usize, + unsafe { ::std::ptr::addr_of!((*ptr).cipher_data) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(cipher_data) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).key_len) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(data) + stringify!(key_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 104usize, + unsafe { ::std::ptr::addr_of!((*ptr).encrypt) as usize - ptr as usize }, + 28usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(num) + stringify!(encrypt) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 108usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(sha256_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(md_len) + stringify!(flags) ) ); -} -impl Default for sha256_state_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_fips_0_12_15_SHA384_Init"] - pub fn SHA384_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Update"] - pub fn SHA384_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384_Final"] - pub fn SHA384_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA384"] - pub fn SHA384(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Init"] - pub fn SHA512_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Update"] - pub fn SHA512_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Final"] - pub fn SHA512_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512"] - pub fn SHA512(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_Transform"] - pub fn SHA512_Transform(sha: *mut SHA512_CTX, block: *const u8); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct sha512_state_st { - pub h: [u64; 8usize], - pub Nl: u64, - pub Nh: u64, - pub p: [u8; 128usize], - pub num: ::std::os::raw::c_uint, - pub md_len: ::std::os::raw::c_uint, -} -#[test] -fn bindgen_test_layout_sha512_state_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 216usize, - concat!("Size of: ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).oiv) as usize - ptr as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(oiv) + ) ); assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(sha512_state_st)) + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(iv) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).h) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf) as usize - ptr as usize }, + 68usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(h) + stringify!(buf) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nl) as usize - ptr as usize }, - 64usize, + unsafe { ::std::ptr::addr_of!((*ptr).buf_len) as usize - ptr as usize }, + 100usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nl) + stringify!(buf_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).Nh) as usize - ptr as usize }, - 72usize, + unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, + 104usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), + "::", + stringify!(num) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_used) as usize - ptr as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), + "::", + stringify!(final_used) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).final_) as usize - ptr as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(evp_cipher_ctx_st), "::", - stringify!(Nh) + stringify!(final_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 80usize, + unsafe { ::std::ptr::addr_of!((*ptr).poisoned) as usize - ptr as usize }, + 144usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_ctx_st), "::", - stringify!(p) + stringify!(poisoned) ) ); +} +impl Default for evp_cipher_ctx_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 evp_cipher_info_st { + pub cipher: *const EVP_CIPHER, + pub iv: [::std::os::raw::c_uchar; 16usize], +} +#[test] +fn bindgen_test_layout_evp_cipher_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize }, - 208usize, + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(evp_cipher_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(num) + stringify!(cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).md_len) as usize - ptr as usize }, - 212usize, + unsafe { ::std::ptr::addr_of!((*ptr).iv) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(sha512_state_st), + stringify!(evp_cipher_info_st), "::", - stringify!(md_len) + stringify!(iv) ) ); } -impl Default for sha512_state_st { +impl Default for evp_cipher_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12309,327 +12765,223 @@ impl Default for sha512_state_st { } } } +pub type EVP_CIPHER_INFO = evp_cipher_info_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Init"] - pub fn SHA512_256_Init(sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Update"] - pub fn SHA512_256_Update( - sha: *mut SHA512_CTX, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256_Final"] - pub fn SHA512_256_Final(out: *mut u8, sha: *mut SHA512_CTX) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SHA512_256"] - pub fn SHA512_256(data: *const u8, len: usize, out: *mut u8) -> *mut u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_malloc"] - pub fn OPENSSL_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_free"] - pub fn OPENSSL_free(ptr: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_realloc"] - pub fn OPENSSL_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanse"] - pub fn OPENSSL_cleanse(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_memcmp"] - pub fn CRYPTO_memcmp( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_hash32"] - pub fn OPENSSL_hash32(ptr: *const ::std::os::raw::c_void, len: usize) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strhash"] - pub fn OPENSSL_strhash(s: *const ::std::os::raw::c_char) -> u32; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strdup"] - pub fn OPENSSL_strdup(s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strnlen"] - pub fn OPENSSL_strnlen(s: *const ::std::os::raw::c_char, len: usize) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_tolower"] - pub fn OPENSSL_tolower(c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strcasecmp"] - pub fn OPENSSL_strcasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strncasecmp"] - pub fn OPENSSL_strncasecmp( - a: *const ::std::os::raw::c_char, - b: *const ::std::os::raw::c_char, - n: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_AES_CMAC"] + pub fn AES_CMAC( + out: *mut u8, + key: *const u8, + key_len: usize, + in_: *const u8, + in_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_snprintf"] - pub fn BIO_snprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - ... - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_new"] + pub fn CMAC_CTX_new() -> *mut CMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BIO_vsnprintf"] - pub fn BIO_vsnprintf( - buf: *mut ::std::os::raw::c_char, - n: usize, - format: *const ::std::os::raw::c_char, - args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_free"] + pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_vasprintf"] - pub fn OPENSSL_vasprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_copy"] + pub fn CMAC_CTX_copy(out: *mut CMAC_CTX, in_: *const CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_asprintf"] - pub fn OPENSSL_asprintf( - str_: *mut *mut ::std::os::raw::c_char, - format: *const ::std::os::raw::c_char, - ... + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Init"] + pub fn CMAC_Init( + ctx: *mut CMAC_CTX, + key: *const ::std::os::raw::c_void, + key_len: usize, + cipher: *const EVP_CIPHER, + engine: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strndup"] - pub fn OPENSSL_strndup( - str_: *const ::std::os::raw::c_char, - size: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_memdup"] - pub fn OPENSSL_memdup( - data: *const ::std::os::raw::c_void, - size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcpy"] - pub fn OPENSSL_strlcpy( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_strlcat"] - pub fn OPENSSL_strlcat( - dst: *mut ::std::os::raw::c_char, - src: *const ::std::os::raw::c_char, - dst_size: usize, - ) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc"] - pub fn CRYPTO_malloc( - size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_realloc"] - pub fn CRYPTO_realloc( - ptr: *mut ::std::os::raw::c_void, - new_size: usize, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_free"] - pub fn CRYPTO_free( - ptr: *mut ::std::os::raw::c_void, - file: *const ::std::os::raw::c_char, - line: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Reset"] + pub fn CMAC_Reset(ctx: *mut CMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_clear_free"] - pub fn OPENSSL_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Update"] + pub fn CMAC_Update(ctx: *mut CMAC_CTX, in_: *const u8, in_len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_set_mem_functions"] - pub fn CRYPTO_set_mem_functions( - m: ::std::option::Option< - unsafe extern "C" fn( - arg1: usize, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - r: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: usize, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - f: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ), - >, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_Final"] + pub fn CMAC_Final( + ctx: *mut CMAC_CTX, + out: *mut u8, + out_len: *mut usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_malloc_init"] - pub fn CRYPTO_secure_malloc_init(size: usize, min_size: usize) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_malloc_initialized"] - pub fn CRYPTO_secure_malloc_initialized() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_secure_used"] - pub fn CRYPTO_secure_used() -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_secure_malloc"] - pub fn OPENSSL_secure_malloc(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_secure_clear_free"] - pub fn OPENSSL_secure_clear_free(ptr: *mut ::std::os::raw::c_void, len: usize); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_library_init"] - pub fn CRYPTO_library_init(); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_is_confidential_build"] - pub fn CRYPTO_is_confidential_build() -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_has_asm"] - pub fn CRYPTO_has_asm() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CMAC_CTX_get0_cipher_ctx"] + pub fn CMAC_CTX_get0_cipher_ctx(ctx: *mut CMAC_CTX) -> *mut EVP_CIPHER_CTX; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_self_test"] - pub fn BORINGSSL_self_test() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct conf_value_st { + pub section: *mut ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BORINGSSL_integrity_test"] - pub fn BORINGSSL_integrity_test() -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_conf_value_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!(conf_value_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(conf_value_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).section) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(section) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(conf_value_st), + "::", + stringify!(value) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_pre_sandbox_init"] - pub fn CRYPTO_pre_sandbox_init(); +impl Default for conf_value_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_fips_0_12_15_FIPS_mode"] - pub fn FIPS_mode() -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_CONF_VALUE { + _unused: [u8; 0], } -pub const fips_counter_t_fips_counter_evp_aes_128_gcm: fips_counter_t = 0; -pub const fips_counter_t_fips_counter_evp_aes_256_gcm: fips_counter_t = 1; -pub const fips_counter_t_fips_counter_evp_aes_128_ctr: fips_counter_t = 2; -pub const fips_counter_t_fips_counter_evp_aes_256_ctr: fips_counter_t = 3; -pub const fips_counter_t_fips_counter_max: fips_counter_t = 3; -pub type fips_counter_t = ::std::os::raw::c_uint; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_read_counter"] - pub fn FIPS_read_counter(counter: fips_counter_t) -> usize; +pub type sk_CONF_VALUE_free_func = + ::std::option::Option; +pub type sk_CONF_VALUE_copy_func = + ::std::option::Option *mut CONF_VALUE>; +pub type sk_CONF_VALUE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const CONF_VALUE, + arg2: *const *const CONF_VALUE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_CONF_VALUE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut CONF_VALUE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct lhash_st_CONF_VALUE { + _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version"] - pub fn OpenSSL_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_new"] + pub fn NCONF_new(method: *mut ::std::os::raw::c_void) -> *mut CONF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay_version"] - pub fn SSLeay_version(which: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_free"] + pub fn NCONF_free(conf: *mut CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SSLeay"] - pub fn SSLeay() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load"] + pub fn NCONF_load( + conf: *mut CONF, + filename: *const ::std::os::raw::c_char, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_version_num"] - pub fn OpenSSL_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_load_bio"] + pub fn NCONF_load_bio( + conf: *mut CONF, + bio: *mut BIO, + out_error_line: *mut ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_api_version_num"] - pub fn awslc_api_version_num() -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_section"] + pub fn NCONF_get_section( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + ) -> *const stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_malloc_init"] - pub fn CRYPTO_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NCONF_get_string"] + pub fn NCONF_get_string( + conf: *const CONF, + section: *const ::std::os::raw::c_char, + name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_malloc_init"] - pub fn OPENSSL_malloc_init() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_load_file"] + pub fn CONF_modules_load_file( + filename: *const ::std::os::raw::c_char, + appname: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_load_builtin_engines"] - pub fn ENGINE_load_builtin_engines(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_get1_default_config_file"] + pub fn CONF_get1_default_config_file() -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_register_all_complete"] - pub fn ENGINE_register_all_complete() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_free"] + pub fn CONF_modules_free(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_load_builtin_modules"] - pub fn OPENSSL_load_builtin_modules(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_unload"] + pub fn CONF_modules_unload(all: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_init_crypto"] - pub fn OPENSSL_init_crypto( - opts: u64, - settings: *const OPENSSL_INIT_SETTINGS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CONF_modules_finish"] + pub fn CONF_modules_finish(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_cleanup"] - pub fn OPENSSL_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_config"] + pub fn OPENSSL_config(config_name: *const ::std::os::raw::c_char); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_mode_set"] - pub fn FIPS_mode_set(on: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_no_config"] + pub fn OPENSSL_no_config(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_keypair"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_keypair"] pub fn X25519_keypair(out_public_value: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519"] pub fn X25519( out_shared_key: *mut u8, private_key: *const u8, @@ -12637,15 +12989,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X25519_public_from_private"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_X25519_public_from_private"] pub fn X25519_public_from_private(out_public_value: *mut u8, private_key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair"] pub fn ED25519_keypair(out_public_key: *mut u8, out_private_key: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_sign"] pub fn ED25519_sign( out_sig: *mut u8, message: *const u8, @@ -12654,7 +13006,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_verify"] pub fn ED25519_verify( message: *const u8, message_len: usize, @@ -12663,7 +13015,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ED25519_keypair_from_seed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ED25519_keypair_from_seed"] pub fn ED25519_keypair_from_seed( out_public_key: *mut u8, out_private_key: *mut u8, @@ -12674,7 +13026,7 @@ pub const spake2_role_t_spake2_role_alice: spake2_role_t = 0; pub const spake2_role_t_spake2_role_bob: spake2_role_t = 1; pub type spake2_role_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_new"] pub fn SPAKE2_CTX_new( my_role: spake2_role_t, my_name: *const u8, @@ -12684,11 +13036,11 @@ extern "C" { ) -> *mut SPAKE2_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_CTX_free"] pub fn SPAKE2_CTX_free(ctx: *mut SPAKE2_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_generate_msg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_generate_msg"] pub fn SPAKE2_generate_msg( ctx: *mut SPAKE2_CTX, out: *mut u8, @@ -12699,7 +13051,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SPAKE2_process_msg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SPAKE2_process_msg"] pub fn SPAKE2_process_msg( ctx: *mut SPAKE2_CTX, out_key: *mut u8, @@ -12772,15 +13124,33 @@ fn bindgen_test_layout_DES_ks() { } pub type DES_key_schedule = DES_ks; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_key"] - pub fn DES_set_key(key: *const DES_cblock, schedule: *mut DES_key_schedule); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_is_weak_key"] + pub fn DES_is_weak_key(key: *const DES_cblock) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key"] + pub fn DES_set_key( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_key_unchecked"] + pub fn DES_set_key_unchecked(key: *const DES_cblock, schedule: *mut DES_key_schedule); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_key_sched"] + pub fn DES_key_sched( + key: *const DES_cblock, + schedule: *mut DES_key_schedule, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_set_odd_parity"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_set_odd_parity"] pub fn DES_set_odd_parity(key: *mut DES_cblock); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb_encrypt"] pub fn DES_ecb_encrypt( in_: *const DES_cblock, out: *mut DES_cblock, @@ -12789,7 +13159,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ncbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ncbc_encrypt"] pub fn DES_ncbc_encrypt( in_: *const u8, out: *mut u8, @@ -12800,7 +13170,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ecb3_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ecb3_encrypt"] pub fn DES_ecb3_encrypt( input: *const DES_cblock, output: *mut DES_cblock, @@ -12811,7 +13181,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede3_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede3_cbc_encrypt"] pub fn DES_ede3_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -12824,7 +13194,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DES_ede2_cbc_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DES_ede2_cbc_encrypt"] pub fn DES_ede2_cbc_encrypt( in_: *const u8, out: *mut u8, @@ -12836,61 +13206,47 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new"] + pub fn DH_new() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_new"] - pub fn DH_new() -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_new_by_nid"] + pub fn DH_new_by_nid(nid: ::std::os::raw::c_int) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_free"] pub fn DH_free(dh: *mut DH); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_up_ref"] pub fn DH_up_ref(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_bits"] pub fn DH_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pub_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pub_key"] pub fn DH_get0_pub_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_priv_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_priv_key"] pub fn DH_get0_priv_key(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_p"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_p"] pub fn DH_get0_p(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_q"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_q"] pub fn DH_get0_q(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_g"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_g"] pub fn DH_get0_g(dh: *const DH) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_key"] pub fn DH_get0_key( dh: *const DH, out_pub_key: *mut *const BIGNUM, @@ -12898,7 +13254,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_key"] pub fn DH_set0_key( dh: *mut DH, pub_key: *mut BIGNUM, @@ -12906,7 +13262,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get0_pqg"] pub fn DH_get0_pqg( dh: *const DH, out_p: *mut *const BIGNUM, @@ -12915,7 +13271,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set0_pqg"] pub fn DH_set0_pqg( dh: *mut DH, p: *mut BIGNUM, @@ -12924,40 +13280,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_set_length"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_set_length"] pub fn DH_set_length(dh: *mut DH, priv_length: ::std::os::raw::c_uint) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_rfc7919_2048"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_2048"] pub fn DH_get_rfc7919_2048() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_1536"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_rfc7919_4096"] + pub fn DH_get_rfc7919_4096() -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_1536"] pub fn BN_get_rfc3526_prime_1536(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_2048"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_2048"] pub fn BN_get_rfc3526_prime_2048(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_3072"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_3072"] pub fn BN_get_rfc3526_prime_3072(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_4096"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_4096"] pub fn BN_get_rfc3526_prime_4096(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_6144"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_6144"] pub fn BN_get_rfc3526_prime_6144(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BN_get_rfc3526_prime_8192"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_BN_get_rfc3526_prime_8192"] pub fn BN_get_rfc3526_prime_8192(ret: *mut BIGNUM) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters_ex"] pub fn DH_generate_parameters_ex( dh: *mut DH, prime_bits: ::std::os::raw::c_int, @@ -12966,11 +13326,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_key"] pub fn DH_generate_key(dh: *mut DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key_padded"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_padded"] pub fn DH_compute_key_padded( out: *mut u8, peers_key: *const BIGNUM, @@ -12978,7 +13338,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key_hashed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key_hashed"] pub fn DH_compute_key_hashed( dh: *mut DH, out: *mut u8, @@ -12989,19 +13349,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_size"] pub fn DH_size(dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_num_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_num_bits"] pub fn DH_num_bits(dh: *const DH) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_check"] pub fn DH_check(dh: *const DH, out_flags: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_check_pub_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_check_pub_key"] pub fn DH_check_pub_key( dh: *const DH, pub_key: *const BIGNUM, @@ -13009,19 +13369,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DHparams_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DHparams_dup"] pub fn DHparams_dup(dh: *const DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_parse_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_parse_parameters"] pub fn DH_parse_parameters(cbs: *mut CBS) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_marshal_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_marshal_parameters"] pub fn DH_marshal_parameters(cbb: *mut CBB, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_generate_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_generate_parameters"] pub fn DH_generate_parameters( prime_len: ::std::os::raw::c_int, generator: ::std::os::raw::c_int, @@ -13036,7 +13396,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DHparams"] pub fn d2i_DHparams( ret: *mut *mut DH, inp: *mut *const ::std::os::raw::c_uchar, @@ -13044,14 +13404,14 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams"] pub fn i2d_DHparams( in_: *const DH, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_compute_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_compute_key"] pub fn DH_compute_key( out: *mut u8, peers_key: *const BIGNUM, @@ -13059,114 +13419,130 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DH_get_2048_256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_get_2048_256"] pub fn DH_get_2048_256() -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DH_clear_flags"] + pub fn DH_clear_flags(dh: *mut DH, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md4"] pub fn EVP_md4() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5"] pub fn EVP_md5() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_ripemd160"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_ripemd160"] pub fn EVP_ripemd160() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha1"] pub fn EVP_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha224"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha224"] pub fn EVP_sha224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha256"] pub fn EVP_sha256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha384"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha384"] pub fn EVP_sha384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512"] pub fn EVP_sha512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha512_256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_224"] + pub fn EVP_sha512_224() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha512_256"] pub fn EVP_sha512_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_224"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_224"] pub fn EVP_sha3_224() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_256"] pub fn EVP_sha3_256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_384"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_384"] pub fn EVP_sha3_384() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_sha3_512"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_sha3_512"] pub fn EVP_sha3_512() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_blake2b256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake128"] + pub fn EVP_shake128() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_shake256"] + pub fn EVP_shake256() -> *const EVP_MD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_blake2b256"] pub fn EVP_blake2b256() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_md5_sha1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md5_sha1"] pub fn EVP_md5_sha1() -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbynid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbynid"] pub fn EVP_get_digestbynid(nid: ::std::os::raw::c_int) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyobj"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyobj"] pub fn EVP_get_digestbyobj(obj: *const ASN1_OBJECT) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_init"] pub fn EVP_MD_CTX_init(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_new"] pub fn EVP_MD_CTX_new() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanup"] pub fn EVP_MD_CTX_cleanup(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_cleanse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_cleanse"] pub fn EVP_MD_CTX_cleanse(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_free"] pub fn EVP_MD_CTX_free(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy_ex"] pub fn EVP_MD_CTX_copy_ex( out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_move"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_move"] pub fn EVP_MD_CTX_move(out: *mut EVP_MD_CTX, in_: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_reset"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_reset"] pub fn EVP_MD_CTX_reset(ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit_ex"] pub fn EVP_DigestInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -13174,11 +13550,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestInit"] pub fn EVP_DigestInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestUpdate"] pub fn EVP_DigestUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -13186,7 +13562,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal_ex"] pub fn EVP_DigestFinal_ex( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13194,7 +13570,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinal"] pub fn EVP_DigestFinal( ctx: *mut EVP_MD_CTX, md_out: *mut u8, @@ -13202,86 +13578,74 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_Digest"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_Digest"] pub fn EVP_Digest( data: *const ::std::os::raw::c_void, len: usize, md_out: *mut u8, - md_out_size: *mut ::std::os::raw::c_uint, + out_size: *mut ::std::os::raw::c_uint, type_: *const EVP_MD, impl_: *mut ENGINE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_type"] pub fn EVP_MD_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_flags"] pub fn EVP_MD_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_size"] pub fn EVP_MD_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_block_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_block_size"] pub fn EVP_MD_block_size(md: *const EVP_MD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_md"] pub fn EVP_MD_CTX_md(ctx: *const EVP_MD_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_size"] pub fn EVP_MD_CTX_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_block_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_block_size"] pub fn EVP_MD_CTX_block_size(ctx: *const EVP_MD_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_type"] pub fn EVP_MD_CTX_type(ctx: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_digest_algorithm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_digest_algorithm"] pub fn EVP_parse_digest_algorithm(cbs: *mut CBS) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_digest_algorithm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_digest_algorithm"] pub fn EVP_marshal_digest_algorithm(cbb: *mut CBB, md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_enable"] - pub fn EVP_MD_unstable_sha3_enable(enable: bool); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_unstable_sha3_is_enabled"] - pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_copy"] pub fn EVP_MD_CTX_copy(out: *mut EVP_MD_CTX, in_: *const EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_add_digest"] - pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_get_digestbyname"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_get_digestbyname"] pub fn EVP_get_digestbyname(arg1: *const ::std::os::raw::c_char) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_create"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_create"] pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_destroy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_destroy"] pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestFinalXOF"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestFinalXOF"] pub fn EVP_DigestFinalXOF( ctx: *mut EVP_MD_CTX, out: *mut u8, @@ -13289,19 +13653,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_meth_get_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_meth_get_flags"] pub fn EVP_MD_meth_get_flags(md: *const EVP_MD) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_flags"] - pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_nid"] pub fn EVP_MD_nid(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_CTX_set_pkey_ctx"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_pkey_ctx"] pub fn EVP_MD_CTX_set_pkey_ctx(ctx: *mut EVP_MD_CTX, pctx: *mut EVP_PKEY_CTX); } #[repr(C)] @@ -13314,6 +13674,13 @@ pub struct evp_md_pctx_ops { pub struct env_md_ctx_st { pub digest: *const EVP_MD, pub md_data: *mut ::std::os::raw::c_void, + pub update: ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut EVP_MD_CTX, + data: *const ::std::os::raw::c_void, + count: usize, + ), + >, pub pctx: *mut EVP_PKEY_CTX, pub pctx_ops: *const evp_md_pctx_ops, pub flags: ::std::os::raw::c_ulong, @@ -13324,7 +13691,7 @@ fn bindgen_test_layout_env_md_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 40usize, + 48usize, concat!("Size of: ", stringify!(env_md_ctx_st)) ); assert_eq!( @@ -13353,169 +13720,129 @@ fn bindgen_test_layout_env_md_ctx_st() { ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).update) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx) + stringify!(update) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pctx) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", stringify!(env_md_ctx_st), "::", - stringify!(pctx_ops) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(env_md_ctx_st), - "::", - stringify!(flags) + stringify!(pctx) ) ); -} -impl Default for env_md_ctx_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_fips_0_12_15_EVP_md_null"] - pub fn EVP_md_null() -> *const EVP_MD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_new"] - pub fn ENGINE_new() -> *mut ENGINE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_free"] - pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_RSA_method"] - pub fn ENGINE_set_RSA_method( - engine: *mut ENGINE, - method: *const RSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_RSA_method"] - pub fn ENGINE_get_RSA_method(engine: *const ENGINE) -> *mut RSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_set_ECDSA_method"] - pub fn ENGINE_set_ECDSA_method( - engine: *mut ENGINE, - method: *const ECDSA_METHOD, - method_size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ENGINE_get_ECDSA_method"] - pub fn ENGINE_get_ECDSA_method(engine: *const ENGINE) -> *mut ECDSA_METHOD; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_ref"] - pub fn METHOD_ref(method: *mut ::std::os::raw::c_void); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_METHOD_unref"] - pub fn METHOD_unref(method: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] -pub struct openssl_method_common_st { - pub references: ::std::os::raw::c_int, - pub is_static: ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_openssl_method_common_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!(openssl_method_common_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(openssl_method_common_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).pctx_ops) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(references) + stringify!(pctx_ops) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).is_static) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(openssl_method_common_st), + stringify!(env_md_ctx_st), "::", - stringify!(is_static) + stringify!(flags) ) ); } +impl Default for env_md_ctx_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_fips_0_13_0_EVP_MD_unstable_sha3_enable"] + pub fn EVP_MD_unstable_sha3_enable(enable: bool); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_unstable_sha3_is_enabled"] + pub fn EVP_MD_unstable_sha3_is_enabled() -> bool; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_CTX_set_flags"] + pub fn EVP_MD_CTX_set_flags(ctx: *mut EVP_MD_CTX, flags: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_add_digest"] + pub fn EVP_add_digest(digest: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_md_null"] + pub fn EVP_md_null() -> *const EVP_MD; +} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_new"] pub fn DSA_new() -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_free"] pub fn DSA_free(dsa: *mut DSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_up_ref"] pub fn DSA_up_ref(dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print"] + pub fn DSA_print( + bio: *mut BIO, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_print_fp"] + pub fn DSA_print_fp( + fp: *mut FILE, + dsa: *const DSA, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_bits"] pub fn DSA_bits(dsa: *const DSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pub_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pub_key"] pub fn DSA_get0_pub_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_priv_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_priv_key"] pub fn DSA_get0_priv_key(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_p"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_p"] pub fn DSA_get0_p(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_q"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_q"] pub fn DSA_get0_q(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_g"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_g"] pub fn DSA_get0_g(dsa: *const DSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_key"] pub fn DSA_get0_key( dsa: *const DSA, out_pub_key: *mut *const BIGNUM, @@ -13523,7 +13850,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get0_pqg"] pub fn DSA_get0_pqg( dsa: *const DSA, out_p: *mut *const BIGNUM, @@ -13532,7 +13859,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_key"] pub fn DSA_set0_key( dsa: *mut DSA, pub_key: *mut BIGNUM, @@ -13540,7 +13867,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set0_pqg"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set0_pqg"] pub fn DSA_set0_pqg( dsa: *mut DSA, p: *mut BIGNUM, @@ -13549,7 +13876,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_parameters_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_parameters_ex"] pub fn DSA_generate_parameters_ex( dsa: *mut DSA, bits: ::std::os::raw::c_uint, @@ -13561,11 +13888,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSAparams_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSAparams_dup"] pub fn DSAparams_dup(dsa: *const DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_generate_key"] pub fn DSA_generate_key(dsa: *mut DSA) -> ::std::os::raw::c_int; } #[repr(C)] @@ -13619,28 +13946,28 @@ impl Default for DSA_SIG_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_new"] pub fn DSA_SIG_new() -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_free"] pub fn DSA_SIG_free(sig: *mut DSA_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_get0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_get0"] pub fn DSA_SIG_get0(sig: *const DSA_SIG, out_r: *mut *const BIGNUM, out_s: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_set0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_set0"] pub fn DSA_SIG_set0(sig: *mut DSA_SIG, r: *mut BIGNUM, s: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_sign"] pub fn DSA_do_sign(digest: *const u8, digest_len: usize, dsa: *const DSA) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_verify"] pub fn DSA_do_verify( digest: *const u8, digest_len: usize, @@ -13649,7 +13976,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_do_check_signature"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_do_check_signature"] pub fn DSA_do_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13659,7 +13986,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_sign"] pub fn DSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13670,7 +13997,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_verify"] pub fn DSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -13681,7 +14008,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_check_signature"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_check_signature"] pub fn DSA_check_signature( out_valid: *mut ::std::os::raw::c_int, digest: *const u8, @@ -13692,47 +14019,47 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_size"] pub fn DSA_size(dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_parse"] pub fn DSA_SIG_parse(cbs: *mut CBS) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_SIG_marshal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_SIG_marshal"] pub fn DSA_SIG_marshal(cbb: *mut CBB, sig: *const DSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_public_key"] pub fn DSA_parse_public_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_public_key"] pub fn DSA_marshal_public_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_private_key"] pub fn DSA_parse_private_key(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_private_key"] pub fn DSA_marshal_private_key(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_parse_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_parse_parameters"] pub fn DSA_parse_parameters(cbs: *mut CBS) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_marshal_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_marshal_parameters"] pub fn DSA_marshal_parameters(cbb: *mut CBB, dsa: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_dup_DH"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_dup_DH"] pub fn DSA_dup_DH(dsa: *const DSA) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_new_index"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_new_index"] pub fn DSA_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -13742,7 +14069,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_set_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_set_ex_data"] pub fn DSA_set_ex_data( dsa: *mut DSA, idx: ::std::os::raw::c_int, @@ -13750,14 +14077,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DSA_get_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_DSA_get_ex_data"] pub fn DSA_get_ex_data( dsa: *const DSA, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_SIG"] pub fn d2i_DSA_SIG( out_sig: *mut *mut DSA_SIG, inp: *mut *const u8, @@ -13765,11 +14092,11 @@ extern "C" { ) -> *mut DSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_SIG"] pub fn i2d_DSA_SIG(in_: *const DSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPublicKey"] pub fn d2i_DSAPublicKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -13777,11 +14104,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPublicKey"] pub fn i2d_DSAPublicKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAPrivateKey"] pub fn d2i_DSAPrivateKey( out: *mut *mut DSA, inp: *mut *const u8, @@ -13789,11 +14116,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAPrivateKey"] pub fn i2d_DSAPrivateKey(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSAparams"] pub fn d2i_DSAparams( out: *mut *mut DSA, inp: *mut *const u8, @@ -13801,154 +14128,9 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSAparams"] pub fn i2d_DSAparams(in_: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct dsa_st { - pub version: ::std::os::raw::c_long, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub g: *mut BIGNUM, - pub pub_key: *mut BIGNUM, - pub priv_key: *mut BIGNUM, - pub flags: ::std::os::raw::c_int, - pub method_mont_lock: CRYPTO_MUTEX, - pub method_mont_p: *mut BN_MONT_CTX, - pub method_mont_q: *mut BN_MONT_CTX, - pub references: CRYPTO_refcount_t, - pub ex_data: CRYPTO_EX_DATA, -} -#[test] -fn bindgen_test_layout_dsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 144usize, - concat!("Size of: ", stringify!(dsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(dsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(version) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).g) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(dsa_st), "::", stringify!(g)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pub_key) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(pub_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).priv_key) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(priv_key) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_lock) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_p) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method_mont_q) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(method_mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(dsa_st), - "::", - stringify!(ex_data) - ) - ); -} -impl Default for dsa_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(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum point_conversion_form_t { @@ -13957,19 +14139,31 @@ pub enum point_conversion_form_t { POINT_CONVERSION_HYBRID = 6, } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_by_curve_name"] - pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p224"] + pub fn EC_group_p224() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_free"] - pub fn EC_GROUP_free(group: *mut EC_GROUP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p256"] + pub fn EC_group_p256() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p384"] + pub fn EC_group_p384() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_p521"] + pub fn EC_group_p521() -> *const EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_group_secp256k1"] + pub fn EC_group_secp256k1() -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_dup"] - pub fn EC_GROUP_dup(a: *const EC_GROUP) -> *mut EC_GROUP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_by_curve_name"] + pub fn EC_GROUP_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_cmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_cmp"] pub fn EC_GROUP_cmp( a: *const EC_GROUP, b: *const EC_GROUP, @@ -13977,19 +14171,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_generator"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_generator"] pub fn EC_GROUP_get0_generator(group: *const EC_GROUP) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get0_order"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_order"] pub fn EC_GROUP_get0_order(group: *const EC_GROUP) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_order_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_order_bits"] pub fn EC_GROUP_order_bits(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_cofactor"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_cofactor"] pub fn EC_GROUP_get_cofactor( group: *const EC_GROUP, cofactor: *mut BIGNUM, @@ -13997,7 +14191,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_GFp"] pub fn EC_GROUP_get_curve_GFp( group: *const EC_GROUP, out_p: *mut BIGNUM, @@ -14007,53 +14201,53 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_curve_name"] pub fn EC_GROUP_get_curve_name(group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_degree"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_degree"] pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_curve_nid2nist"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nid2nist"] pub fn EC_curve_nid2nist(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_curve_nist2nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_curve_nist2nid"] pub fn EC_curve_nist2nid(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_new"] pub fn EC_POINT_new(group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_free"] pub fn EC_POINT_free(point: *mut EC_POINT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_copy"] pub fn EC_POINT_copy(dest: *mut EC_POINT, src: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dup"] pub fn EC_POINT_dup(src: *const EC_POINT, group: *const EC_GROUP) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_to_infinity"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_to_infinity"] pub fn EC_POINT_set_to_infinity( group: *const EC_GROUP, point: *mut EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_at_infinity"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_at_infinity"] pub fn EC_POINT_is_at_infinity( group: *const EC_GROUP, point: *const EC_POINT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_is_on_curve"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_is_on_curve"] pub fn EC_POINT_is_on_curve( group: *const EC_GROUP, point: *const EC_POINT, @@ -14061,7 +14255,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_cmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_cmp"] pub fn EC_POINT_cmp( group: *const EC_GROUP, a: *const EC_POINT, @@ -14070,7 +14264,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates_GFp"] pub fn EC_POINT_get_affine_coordinates_GFp( group: *const EC_GROUP, point: *const EC_POINT, @@ -14080,7 +14274,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_get_affine_coordinates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_get_affine_coordinates"] pub fn EC_POINT_get_affine_coordinates( group: *const EC_GROUP, point: *const EC_POINT, @@ -14090,7 +14284,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates_GFp"] pub fn EC_POINT_set_affine_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14100,7 +14294,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_affine_coordinates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_affine_coordinates"] pub fn EC_POINT_set_affine_coordinates( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14110,7 +14304,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2oct"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2oct"] pub fn EC_POINT_point2oct( group: *const EC_GROUP, point: *const EC_POINT, @@ -14121,7 +14315,7 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_point2cbb"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2cbb"] pub fn EC_POINT_point2cbb( out: *mut CBB, group: *const EC_GROUP, @@ -14131,7 +14325,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_oct2point"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_oct2point"] pub fn EC_POINT_oct2point( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14141,7 +14335,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_set_compressed_coordinates_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_set_compressed_coordinates_GFp"] pub fn EC_POINT_set_compressed_coordinates_GFp( group: *const EC_GROUP, point: *mut EC_POINT, @@ -14151,7 +14345,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_add"] pub fn EC_POINT_add( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14161,7 +14355,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_dbl"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_dbl"] pub fn EC_POINT_dbl( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14170,7 +14364,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_invert"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_invert"] pub fn EC_POINT_invert( group: *const EC_GROUP, a: *mut EC_POINT, @@ -14178,7 +14372,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_mul"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_mul"] pub fn EC_POINT_mul( group: *const EC_GROUP, r: *mut EC_POINT, @@ -14189,7 +14383,37 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_new_curve_GFp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p256_xmd_sha256_sswu"] + pub fn EC_hash_to_curve_p256_xmd_sha256_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_hash_to_curve_p384_xmd_sha384_sswu"] + pub fn EC_hash_to_curve_p384_xmd_sha384_sswu( + group: *const EC_GROUP, + out: *mut EC_POINT, + dst: *const u8, + dst_len: usize, + msg: *const u8, + msg_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_free"] + pub fn EC_GROUP_free(group: *mut EC_GROUP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_dup"] + pub fn EC_GROUP_dup(group: *const EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_new_curve_GFp"] pub fn EC_GROUP_new_curve_GFp( p: *const BIGNUM, a: *const BIGNUM, @@ -14198,7 +14422,7 @@ extern "C" { ) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_generator"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_generator"] pub fn EC_GROUP_set_generator( group: *mut EC_GROUP, generator: *const EC_POINT, @@ -14207,38 +14431,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_order"] - pub fn EC_GROUP_get_order( + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_point2bn"] + pub fn EC_POINT_point2bn( group: *const EC_GROUP, - order: *mut BIGNUM, + point: *const EC_POINT, + form: point_conversion_form_t, + ret: *mut BIGNUM, ctx: *mut BN_CTX, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_asn1_flag"] - pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_get_asn1_flag"] - pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ec_method_st { - _unused: [u8; 0], -} -pub type EC_METHOD = ec_method_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_method_of"] - pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; + ) -> *mut BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_METHOD_get_field_type"] - pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_bn2point"] + pub fn EC_POINT_bn2point( + group: *const EC_GROUP, + bn: *const BIGNUM, + point: *mut EC_POINT, + ctx: *mut BN_CTX, + ) -> *mut EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_GROUP_set_point_conversion_form"] - pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_order"] + pub fn EC_GROUP_get_order( + group: *const EC_GROUP, + order: *mut BIGNUM, + ctx: *mut BN_CTX, + ) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -14291,92 +14508,173 @@ impl Default for EC_builtin_curve { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_get_builtin_curves"] - pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) - -> usize; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_get_builtin_curves"] + pub fn EC_get_builtin_curves(out_curves: *mut EC_builtin_curve, max_num_curves: usize) + -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_POINT_clear_free"] + pub fn EC_POINT_clear_free(point: *mut EC_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_asn1_flag"] + pub fn EC_GROUP_set_asn1_flag(group: *mut EC_GROUP, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_asn1_flag"] + pub fn EC_GROUP_get_asn1_flag(group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_point_conversion_form"] + pub fn EC_GROUP_set_point_conversion_form(group: *mut EC_GROUP, form: point_conversion_form_t); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_set_seed"] + pub fn EC_GROUP_set_seed( + group: *mut EC_GROUP, + p: *const ::std::os::raw::c_uchar, + len: usize, + ) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get0_seed"] + pub fn EC_GROUP_get0_seed(group: *const EC_GROUP) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_get_seed_len"] + pub fn EC_GROUP_get_seed_len(group: *const EC_GROUP) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECPKParameters_print"] + pub fn ECPKParameters_print( + bio: *mut BIO, + group: *const EC_GROUP, + offset: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ec_method_st { + _unused: [u8; 0], +} +pub type EC_METHOD = ec_method_st; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_GROUP_method_of"] + pub fn EC_GROUP_method_of(group: *const EC_GROUP) -> *const EC_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_METHOD_get_field_type"] + pub fn EC_METHOD_get_field_type(meth: *const EC_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_new"] + pub fn ENGINE_new() -> *mut ENGINE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_free"] + pub fn ENGINE_free(engine: *mut ENGINE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_RSA"] + pub fn ENGINE_set_RSA(engine: *mut ENGINE, method: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_POINT_clear_free"] - pub fn EC_POINT_clear_free(point: *mut EC_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_RSA"] + pub fn ENGINE_get_RSA(engine: *const ENGINE) -> *const RSA_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_set_EC"] + pub fn ENGINE_set_EC( + engine: *mut ENGINE, + method: *const EC_KEY_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_get_EC"] + pub fn ENGINE_get_EC(engine: *const ENGINE) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ENGINE_cleanup"] + pub fn ENGINE_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new"] pub fn EC_KEY_new() -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_method"] pub fn EC_KEY_new_method(engine: *const ENGINE) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_new_by_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_new_by_curve_name"] pub fn EC_KEY_new_by_curve_name(nid: ::std::os::raw::c_int) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_free"] pub fn EC_KEY_free(key: *mut EC_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_dup"] pub fn EC_KEY_dup(src: *const EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_up_ref"] pub fn EC_KEY_up_ref(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_is_opaque"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_is_opaque"] pub fn EC_KEY_is_opaque(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_group"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_group"] pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_group"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_group"] pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_private_key"] pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_private_key"] pub fn EC_KEY_set_private_key(key: *mut EC_KEY, priv_: *const BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get0_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get0_public_key"] pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key"] pub fn EC_KEY_set_public_key(key: *mut EC_KEY, pub_: *const EC_POINT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_enc_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_enc_flags"] pub fn EC_KEY_get_enc_flags(key: *const EC_KEY) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_enc_flags"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_enc_flags"] pub fn EC_KEY_set_enc_flags(key: *mut EC_KEY, flags: ::std::os::raw::c_uint); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_conv_form"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_conv_form"] pub fn EC_KEY_get_conv_form(key: *const EC_KEY) -> point_conversion_form_t; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_conv_form"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_conv_form"] pub fn EC_KEY_set_conv_form(key: *mut EC_KEY, cform: point_conversion_form_t); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_key"] pub fn EC_KEY_check_key(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_check_fips"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_check_fips"] pub fn EC_KEY_check_fips(key: *const EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_public_key_affine_coordinates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_public_key_affine_coordinates"] pub fn EC_KEY_set_public_key_affine_coordinates( key: *mut EC_KEY, x: *const BIGNUM, @@ -14384,7 +14682,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_key2buf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_key2buf"] pub fn EC_KEY_key2buf( key: *const EC_KEY, form: point_conversion_form_t, @@ -14393,15 +14691,15 @@ extern "C" { ) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key"] pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_generate_key_fips"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_generate_key_fips"] pub fn EC_KEY_generate_key_fips(key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_derive_from_secret"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_derive_from_secret"] pub fn EC_KEY_derive_from_secret( group: *const EC_GROUP, secret: *const u8, @@ -14409,11 +14707,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_private_key"] pub fn EC_KEY_parse_private_key(cbs: *mut CBS, group: *const EC_GROUP) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_private_key"] pub fn EC_KEY_marshal_private_key( cbb: *mut CBB, key: *const EC_KEY, @@ -14421,22 +14719,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_curve_name"] pub fn EC_KEY_parse_curve_name(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_marshal_curve_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_marshal_curve_name"] pub fn EC_KEY_marshal_curve_name( cbb: *mut CBB, group: *const EC_GROUP, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_parse_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_parse_parameters"] pub fn EC_KEY_parse_parameters(cbs: *mut CBS) -> *mut EC_GROUP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_new_index"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_ex_new_index"] pub fn EC_KEY_get_ex_new_index( argl: ::std::os::raw::c_long, argp: *mut ::std::os::raw::c_void, @@ -14446,7 +14744,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_set_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_ex_data"] pub fn EC_KEY_set_ex_data( r: *mut EC_KEY, idx: ::std::os::raw::c_int, @@ -14454,133 +14752,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EC_KEY_get_ex_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_ex_data"] pub fn EC_KEY_get_ex_data( r: *const EC_KEY, idx: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ecdsa_method_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: - ::std::option::Option ::std::os::raw::c_int>, - pub finish: - ::std::option::Option ::std::os::raw::c_int>, - pub group_order_size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - digest: *const u8, - digest_len: usize, - sig: *mut u8, - sig_len: *mut ::std::os::raw::c_uint, - eckey: *mut EC_KEY, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_ecdsa_method_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 56usize, - concat!("Size of: ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(ecdsa_method_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).group_order_size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(group_order_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(ecdsa_method_st), - "::", - stringify!(flags) - ) - ); -} -impl Default for ecdsa_method_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_fips_0_12_15_EC_KEY_set_asn1_flag"] - pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); -} extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPrivateKey"] pub fn d2i_ECPrivateKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14588,11 +14767,11 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPrivateKey"] pub fn i2d_ECPrivateKey(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECParameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECParameters"] pub fn d2i_ECParameters( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14600,11 +14779,19 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECParameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECParameters"] pub fn i2d_ECParameters(key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_o2i_ECPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECPKParameters_bio"] + pub fn d2i_ECPKParameters_bio(bio: *mut BIO, out_group: *mut *mut EC_GROUP) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECPKParameters_bio"] + pub fn i2d_ECPKParameters_bio(bio: *mut BIO, group: *const EC_GROUP) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_o2i_ECPublicKey"] pub fn o2i_ECPublicKey( out_key: *mut *mut EC_KEY, inp: *mut *const u8, @@ -14612,14 +14799,86 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2o_ECPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2o_ECPublicKey"] pub fn i2o_ECPublicKey( key: *const EC_KEY, outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_default_method"] + pub fn EC_KEY_get_default_method() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_OpenSSL"] + pub fn EC_KEY_OpenSSL() -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_new"] + pub fn EC_KEY_METHOD_new(eckey_meth: *const EC_KEY_METHOD) -> *mut EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_free"] + pub fn EC_KEY_METHOD_free(eckey_meth: *mut EC_KEY_METHOD); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_method"] + pub fn EC_KEY_set_method(ec: *mut EC_KEY, meth: *const EC_KEY_METHOD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_get_method"] + pub fn EC_KEY_get_method(ec: *const EC_KEY) -> *const EC_KEY_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_sign_awslc"] + pub fn EC_KEY_METHOD_set_sign_awslc( + meth: *mut EC_KEY_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + digest: *const u8, + digest_len: ::std::os::raw::c_int, + sig: *mut u8, + siglen: *mut ::std::os::raw::c_uint, + k_inv: *const BIGNUM, + r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> ::std::os::raw::c_int, + >, + sign_sig: ::std::option::Option< + unsafe extern "C" fn( + digest: *const u8, + digest_len: ::std::os::raw::c_int, + in_kinv: *const BIGNUM, + in_r: *const BIGNUM, + eckey: *mut EC_KEY, + ) -> *mut ECDSA_SIG, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_init_awslc"] + pub fn EC_KEY_METHOD_set_init_awslc( + meth: *mut EC_KEY_METHOD, + init: ::std::option::Option< + unsafe extern "C" fn(key: *mut EC_KEY) -> ::std::os::raw::c_int, + >, + finish: ::std::option::Option, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_METHOD_set_flags"] + pub fn EC_KEY_METHOD_set_flags( + meth: *mut EC_KEY_METHOD, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EC_KEY_set_asn1_flag"] + pub fn EC_KEY_set_asn1_flag(key: *mut EC_KEY, flag: ::std::os::raw::c_int); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key"] pub fn ECDH_compute_key( out: *mut ::std::os::raw::c_void, outlen: usize, @@ -14636,7 +14895,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDH_compute_key_fips"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDH_compute_key_fips"] pub fn ECDH_compute_key_fips( out: *mut u8, out_len: usize, @@ -14645,7 +14904,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign"] pub fn ECDSA_sign( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14656,7 +14915,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_verify"] pub fn ECDSA_verify( type_: ::std::os::raw::c_int, digest: *const u8, @@ -14667,7 +14926,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_size"] pub fn ECDSA_size(key: *const EC_KEY) -> usize; } #[repr(C)] @@ -14721,23 +14980,23 @@ impl Default for ecdsa_sig_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_new"] pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_free"] pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_r"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_r"] pub fn ECDSA_SIG_get0_r(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0_s"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0_s"] pub fn ECDSA_SIG_get0_s(sig: *const ECDSA_SIG) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_get0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_get0"] pub fn ECDSA_SIG_get0( sig: *const ECDSA_SIG, out_r: *mut *const BIGNUM, @@ -14745,7 +15004,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_set0"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_set0"] pub fn ECDSA_SIG_set0( sig: *mut ECDSA_SIG, r: *mut BIGNUM, @@ -14753,7 +15012,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_sign"] pub fn ECDSA_do_sign( digest: *const u8, digest_len: usize, @@ -14761,7 +15020,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_do_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_do_verify"] pub fn ECDSA_do_verify( digest: *const u8, digest_len: usize, @@ -14770,19 +15029,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_parse"] pub fn ECDSA_SIG_parse(cbs: *mut CBS) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_from_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_from_bytes"] pub fn ECDSA_SIG_from_bytes(in_: *const u8, in_len: usize) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_marshal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_marshal"] pub fn ECDSA_SIG_marshal(cbb: *mut CBB, sig: *const ECDSA_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_to_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_to_bytes"] pub fn ECDSA_SIG_to_bytes( out_bytes: *mut *mut u8, out_len: *mut usize, @@ -14790,11 +15049,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_SIG_max_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_SIG_max_len"] pub fn ECDSA_SIG_max_len(order_len: usize) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ECDSA_sign_with_nonce_and_leak_private_key_for_testing"] pub fn ECDSA_sign_with_nonce_and_leak_private_key_for_testing( digest: *const u8, digest_len: usize, @@ -14804,7 +15063,7 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECDSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ECDSA_SIG"] pub fn d2i_ECDSA_SIG( out: *mut *mut ECDSA_SIG, inp: *mut *const u8, @@ -14812,89 +15071,89 @@ extern "C" { ) -> *mut ECDSA_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECDSA_SIG"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ECDSA_SIG"] pub fn i2d_ECDSA_SIG(sig: *const ECDSA_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm"] pub fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_192_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_192_gcm"] pub fn EVP_aead_aes_192_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm"] pub fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_chacha20_poly1305"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_chacha20_poly1305"] pub fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_xchacha20_poly1305"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_xchacha20_poly1305"] pub fn EVP_aead_xchacha20_poly1305() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ctr_hmac_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ctr_hmac_sha256"] pub fn EVP_aead_aes_128_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_ctr_hmac_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_ctr_hmac_sha256"] pub fn EVP_aead_aes_256_ctr_hmac_sha256() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_siv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_siv"] pub fn EVP_aead_aes_128_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_siv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_siv"] pub fn EVP_aead_aes_256_gcm_siv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_randnonce"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_randnonce"] pub fn EVP_aead_aes_128_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_randnonce"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_randnonce"] pub fn EVP_aead_aes_256_gcm_randnonce() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth"] pub fn EVP_aead_aes_128_ccm_bluetooth() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_bluetooth_8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_bluetooth_8"] pub fn EVP_aead_aes_128_ccm_bluetooth_8() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_ccm_matter"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_ccm_matter"] pub fn EVP_aead_aes_128_ccm_matter() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_has_aes_hardware"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_has_aes_hardware"] pub fn EVP_has_aes_hardware() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_key_length"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_key_length"] pub fn EVP_AEAD_key_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_nonce_length"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_nonce_length"] pub fn EVP_AEAD_nonce_length(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_overhead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_overhead"] pub fn EVP_AEAD_max_overhead(aead: *const EVP_AEAD) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_max_tag_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_max_tag_len"] pub fn EVP_AEAD_max_tag_len(aead: *const EVP_AEAD) -> usize; } #[repr(C)] #[derive(Copy, Clone)] pub union evp_aead_ctx_st_state { - pub opaque: [u8; 580usize], + pub opaque: [u8; 564usize], pub alignment: u64, pub ptr: *mut ::std::os::raw::c_void, } @@ -14905,7 +15164,7 @@ fn bindgen_test_layout_evp_aead_ctx_st_state() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 584usize, + 568usize, concat!("Size of: ", stringify!(evp_aead_ctx_st_state)) ); assert_eq!( @@ -14967,7 +15226,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 600usize, + 584usize, concat!("Size of: ", stringify!(evp_aead_ctx_st)) ); assert_eq!( @@ -14997,7 +15256,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).state_offset) as usize - ptr as usize }, - 592usize, + 576usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15007,7 +15266,7 @@ fn bindgen_test_layout_evp_aead_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).tag_len) as usize - ptr as usize }, - 593usize, + 577usize, concat!( "Offset of field: ", stringify!(evp_aead_ctx_st), @@ -15026,11 +15285,11 @@ impl Default for evp_aead_ctx_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_zero"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_zero"] pub fn EVP_AEAD_CTX_zero(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_new"] pub fn EVP_AEAD_CTX_new( aead: *const EVP_AEAD, key: *const u8, @@ -15039,11 +15298,11 @@ extern "C" { ) -> *mut EVP_AEAD_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_free"] pub fn EVP_AEAD_CTX_free(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init"] pub fn EVP_AEAD_CTX_init( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15054,11 +15313,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_cleanup"] pub fn EVP_AEAD_CTX_cleanup(ctx: *mut EVP_AEAD_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal"] pub fn EVP_AEAD_CTX_seal( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15073,7 +15332,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open"] pub fn EVP_AEAD_CTX_open( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15088,7 +15347,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_seal_scatter"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_seal_scatter"] pub fn EVP_AEAD_CTX_seal_scatter( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15106,7 +15365,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_open_gather"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_open_gather"] pub fn EVP_AEAD_CTX_open_gather( ctx: *const EVP_AEAD_CTX, out: *mut u8, @@ -15121,66 +15380,70 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_aead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_aead"] pub fn EVP_AEAD_CTX_aead(ctx: *const EVP_AEAD_CTX) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls"] pub fn EVP_aead_aes_128_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls"] pub fn EVP_aead_aes_256_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_aes_256_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls"] pub fn EVP_aead_aes_128_cbc_sha256_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_cbc_sha256_tls_implicit_iv"] pub fn EVP_aead_aes_128_cbc_sha256_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_cbc_sha384_tls"] + pub fn EVP_aead_aes_256_cbc_sha384_tls() -> *const EVP_AEAD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls"] pub fn EVP_aead_des_ede3_cbc_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv"] pub fn EVP_aead_des_ede3_cbc_sha1_tls_implicit_iv() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_null_sha1_tls"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_null_sha1_tls"] pub fn EVP_aead_null_sha1_tls() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls12"] pub fn EVP_aead_aes_128_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls12"] pub fn EVP_aead_aes_256_gcm_tls12() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_128_gcm_tls13"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_128_gcm_tls13"] pub fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_aead_aes_256_gcm_tls13"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_aead_aes_256_gcm_tls13"] pub fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; } pub const evp_aead_direction_t_evp_aead_open: evp_aead_direction_t = 0; pub const evp_aead_direction_t_evp_aead_seal: evp_aead_direction_t = 1; pub type evp_aead_direction_t = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_init_with_direction"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_init_with_direction"] pub fn EVP_AEAD_CTX_init_with_direction( ctx: *mut EVP_AEAD_CTX, aead: *const EVP_AEAD, @@ -15190,169 +15453,368 @@ extern "C" { dir: evp_aead_direction_t, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_get_iv"] - pub fn EVP_AEAD_CTX_get_iv( - ctx: *const EVP_AEAD_CTX, - out_iv: *mut *const u8, - out_len: *mut usize, - ) -> ::std::os::raw::c_int; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_get_iv"] + pub fn EVP_AEAD_CTX_get_iv( + ctx: *const EVP_AEAD_CTX, + out_iv: *mut *const u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_CTX_tag_len"] + pub fn EVP_AEAD_CTX_tag_len( + ctx: *const EVP_AEAD_CTX, + out_tag_len: *mut usize, + in_len: usize, + extra_in_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_AEAD_get_iv_from_ipv4_nanosecs"] + pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( + ipv4_address: u32, + nanosecs: u64, + out_iv: *mut u8, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_dup"] + pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cmp"] + pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get0_data"] + pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_length"] + pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2nid"] + pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cbs2nid"] + pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_sn2nid"] + pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_ln2nid"] + pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2nid"] + pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2obj"] + pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_get_undef"] + pub fn OBJ_get_undef() -> *const ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2sn"] + pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2ln"] + pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_nid2cbb"] + pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_txt2obj"] + pub fn OBJ_txt2obj( + s: *const ::std::os::raw::c_char, + dont_search_names: ::std::os::raw::c_int, + ) -> *mut ASN1_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_obj2txt"] + pub fn OBJ_obj2txt( + out: *mut ::std::os::raw::c_char, + out_len: ::std::os::raw::c_int, + obj: *const ASN1_OBJECT, + always_return_oid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_create"] + pub fn OBJ_create( + oid: *const ::std::os::raw::c_char, + short_name: *const ::std::os::raw::c_char, + long_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_algs"] + pub fn OBJ_find_sigid_algs( + sign_nid: ::std::os::raw::c_int, + out_digest_nid: *mut ::std::os::raw::c_int, + out_pkey_nid: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_find_sigid_by_algs"] + pub fn OBJ_find_sigid_by_algs( + out_sign_nid: *mut ::std::os::raw::c_int, + digest_nid: ::std::os::raw::c_int, + pkey_nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct obj_name_st { + pub type_: ::std::os::raw::c_int, + pub alias: ::std::os::raw::c_int, + pub name: *const ::std::os::raw::c_char, + pub data: *const ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_obj_name_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!(obj_name_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(obj_name_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(alias) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(obj_name_st), + "::", + stringify!(data) + ) + ); +} +impl Default for obj_name_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() + } + } } +pub type OBJ_NAME = obj_name_st; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_CTX_tag_len"] - pub fn EVP_AEAD_CTX_tag_len( - ctx: *const EVP_AEAD_CTX, - out_tag_len: *mut usize, - in_len: usize, - extra_in_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_NAME_do_all_sorted"] + pub fn OBJ_NAME_do_all_sorted( + type_: ::std::os::raw::c_int, + callback: ::std::option::Option< + unsafe extern "C" fn(arg1: *const OBJ_NAME, arg: *mut ::std::os::raw::c_void), + >, + arg: *mut ::std::os::raw::c_void, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_AEAD_get_iv_from_ipv4_nanosecs"] - pub fn EVP_AEAD_get_iv_from_ipv4_nanosecs( - ipv4_address: u32, - nanosecs: u64, - out_iv: *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OBJ_cleanup"] + pub fn OBJ_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new"] pub fn EVP_PKEY_new() -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_free"] pub fn EVP_PKEY_free(pkey: *mut EVP_PKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_up_ref"] pub fn EVP_PKEY_up_ref(pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_is_opaque"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_is_opaque"] pub fn EVP_PKEY_is_opaque(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp"] pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_copy_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_copy_parameters"] pub fn EVP_PKEY_copy_parameters( to: *mut EVP_PKEY, from: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_missing_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_missing_parameters"] pub fn EVP_PKEY_missing_parameters(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_size"] pub fn EVP_PKEY_size(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_bits"] pub fn EVP_PKEY_bits(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_id"] pub fn EVP_PKEY_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_type"] pub fn EVP_PKEY_type(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get0_name"] + pub fn EVP_MD_get0_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_name"] + pub fn EVP_MD_name(md: *const EVP_MD) -> *const ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_RSA"] pub fn EVP_PKEY_set1_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_RSA"] pub fn EVP_PKEY_assign_RSA(pkey: *mut EVP_PKEY, key: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_RSA"] pub fn EVP_PKEY_get0_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_RSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_RSA"] pub fn EVP_PKEY_get1_RSA(pkey: *const EVP_PKEY) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DSA"] pub fn EVP_PKEY_set1_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DSA"] pub fn EVP_PKEY_assign_DSA(pkey: *mut EVP_PKEY, key: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DSA"] pub fn EVP_PKEY_get0_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DSA"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DSA"] pub fn EVP_PKEY_get1_DSA(pkey: *const EVP_PKEY) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_EC_KEY"] pub fn EVP_PKEY_set1_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_EC_KEY"] pub fn EVP_PKEY_assign_EC_KEY(pkey: *mut EVP_PKEY, key: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_EC_KEY"] pub fn EVP_PKEY_get0_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_EC_KEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_EC_KEY"] pub fn EVP_PKEY_get1_EC_KEY(pkey: *const EVP_PKEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_assign"] - pub fn EVP_PKEY_assign( - pkey: *mut EVP_PKEY, - type_: ::std::os::raw::c_int, - key: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_DH"] + pub fn EVP_PKEY_set1_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign_DH"] + pub fn EVP_PKEY_assign_DH(pkey: *mut EVP_PKEY, key: *mut DH) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0_DH"] + pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_DH"] + pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set_type"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set_type"] pub fn EVP_PKEY_set_type( pkey: *mut EVP_PKEY, type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_cmp_parameters"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_cmp_parameters"] pub fn EVP_PKEY_cmp_parameters(a: *const EVP_PKEY, b: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_public_key"] pub fn EVP_parse_public_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_public_key"] pub fn EVP_marshal_public_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_parse_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_parse_private_key"] pub fn EVP_parse_private_key(cbs: *mut CBS) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key"] pub fn EVP_marshal_private_key(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_marshal_private_key_v2"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_marshal_private_key_v2"] pub fn EVP_marshal_private_key_v2(cbb: *mut CBB, key: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_private_key"] pub fn EVP_PKEY_new_raw_private_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15361,7 +15823,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_new_raw_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_new_raw_public_key"] pub fn EVP_PKEY_new_raw_public_key( type_: ::std::os::raw::c_int, unused: *mut ENGINE, @@ -15370,7 +15832,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_private_key"] pub fn EVP_PKEY_get_raw_private_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15378,7 +15840,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get_raw_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get_raw_public_key"] pub fn EVP_PKEY_get_raw_public_key( pkey: *const EVP_PKEY, out: *mut u8, @@ -15386,7 +15848,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignInit"] pub fn EVP_DigestSignInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15396,7 +15858,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignUpdate"] pub fn EVP_DigestSignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15404,7 +15866,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSignFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSignFinal"] pub fn EVP_DigestSignFinal( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15412,7 +15874,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestSign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestSign"] pub fn EVP_DigestSign( ctx: *mut EVP_MD_CTX, out_sig: *mut u8, @@ -15422,7 +15884,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyInit"] pub fn EVP_DigestVerifyInit( ctx: *mut EVP_MD_CTX, pctx: *mut *mut EVP_PKEY_CTX, @@ -15432,7 +15894,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyUpdate"] pub fn EVP_DigestVerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15440,7 +15902,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerifyFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerifyFinal"] pub fn EVP_DigestVerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15448,7 +15910,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_DigestVerify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_DigestVerify"] pub fn EVP_DigestVerify( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15458,7 +15920,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignInit_ex"] pub fn EVP_SignInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15466,11 +15928,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignInit"] pub fn EVP_SignInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignUpdate"] pub fn EVP_SignUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15478,7 +15940,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_SignFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_SignFinal"] pub fn EVP_SignFinal( ctx: *const EVP_MD_CTX, sig: *mut u8, @@ -15487,7 +15949,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit_ex"] pub fn EVP_VerifyInit_ex( ctx: *mut EVP_MD_CTX, type_: *const EVP_MD, @@ -15495,11 +15957,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyInit"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyInit"] pub fn EVP_VerifyInit(ctx: *mut EVP_MD_CTX, type_: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyUpdate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyUpdate"] pub fn EVP_VerifyUpdate( ctx: *mut EVP_MD_CTX, data: *const ::std::os::raw::c_void, @@ -15507,7 +15969,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_VerifyFinal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_VerifyFinal"] pub fn EVP_VerifyFinal( ctx: *mut EVP_MD_CTX, sig: *const u8, @@ -15516,7 +15978,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_public"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_public"] pub fn EVP_PKEY_print_public( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15525,7 +15987,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_private"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_private"] pub fn EVP_PKEY_print_private( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15534,7 +15996,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_print_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_print_params"] pub fn EVP_PKEY_print_params( out: *mut BIO, pkey: *const EVP_PKEY, @@ -15543,32 +16005,32 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC"] pub fn PKCS5_PBKDF2_HMAC( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, digest: *const EVP_MD, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS5_PBKDF2_HMAC_SHA1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS5_PBKDF2_HMAC_SHA1"] pub fn PKCS5_PBKDF2_HMAC_SHA1( password: *const ::std::os::raw::c_char, password_len: usize, salt: *const u8, salt_len: usize, - iterations: ::std::os::raw::c_uint, + iterations: u32, key_len: usize, out_key: *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PBE_scrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PBE_scrypt"] pub fn EVP_PBE_scrypt( password: *const ::std::os::raw::c_char, password_len: usize, @@ -15583,31 +16045,31 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new"] pub fn EVP_PKEY_CTX_new(pkey: *mut EVP_PKEY, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_new_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_new_id"] pub fn EVP_PKEY_CTX_new_id(id: ::std::os::raw::c_int, e: *mut ENGINE) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_free"] pub fn EVP_PKEY_CTX_free(ctx: *mut EVP_PKEY_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_dup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_dup"] pub fn EVP_PKEY_CTX_dup(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_pkey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_pkey"] pub fn EVP_PKEY_CTX_get0_pkey(ctx: *mut EVP_PKEY_CTX) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign_init"] pub fn EVP_PKEY_sign_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_sign"] pub fn EVP_PKEY_sign( ctx: *mut EVP_PKEY_CTX, sig: *mut u8, @@ -15617,11 +16079,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_init"] pub fn EVP_PKEY_verify_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify"] pub fn EVP_PKEY_verify( ctx: *mut EVP_PKEY_CTX, sig: *const u8, @@ -15631,11 +16093,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt_init"] pub fn EVP_PKEY_encrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encrypt"] pub fn EVP_PKEY_encrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15645,11 +16107,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt_init"] pub fn EVP_PKEY_decrypt_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decrypt"] pub fn EVP_PKEY_decrypt( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15659,11 +16121,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover_init"] pub fn EVP_PKEY_verify_recover_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_verify_recover"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_verify_recover"] pub fn EVP_PKEY_verify_recover( ctx: *mut EVP_PKEY_CTX, out: *mut u8, @@ -15673,18 +16135,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_init"] pub fn EVP_PKEY_derive_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive_set_peer"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive_set_peer"] pub fn EVP_PKEY_derive_set_peer( ctx: *mut EVP_PKEY_CTX, peer: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_derive"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_derive"] pub fn EVP_PKEY_derive( ctx: *mut EVP_PKEY_CTX, key: *mut u8, @@ -15692,18 +16154,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_keygen_init"] pub fn EVP_PKEY_keygen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_keygen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_keygen"] pub fn EVP_PKEY_keygen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_encapsulate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_encapsulate"] pub fn EVP_PKEY_encapsulate( ctx: *mut EVP_PKEY_CTX, ciphertext: *mut u8, @@ -15713,112 +16175,112 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_decapsulate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_decapsulate"] pub fn EVP_PKEY_decapsulate( ctx: *mut EVP_PKEY_CTX, shared_secret: *mut u8, shared_secret_len: *mut usize, - ciphertext: *mut u8, + ciphertext: *const u8, ciphertext_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen_init"] pub fn EVP_PKEY_paramgen_init(ctx: *mut EVP_PKEY_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_paramgen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_paramgen"] pub fn EVP_PKEY_paramgen( ctx: *mut EVP_PKEY_CTX, out_pkey: *mut *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_signature_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_signature_md"] pub fn EVP_PKEY_CTX_set_signature_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_signature_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_signature_md"] pub fn EVP_PKEY_CTX_get_signature_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_padding"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_padding"] pub fn EVP_PKEY_CTX_set_rsa_padding( ctx: *mut EVP_PKEY_CTX, padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_padding"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_padding"] pub fn EVP_PKEY_CTX_get_rsa_padding( ctx: *mut EVP_PKEY_CTX, out_padding: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_saltlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_pss_saltlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_pss_saltlen"] pub fn EVP_PKEY_CTX_get_rsa_pss_saltlen( ctx: *mut EVP_PKEY_CTX, out_salt_len: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_bits"] pub fn EVP_PKEY_CTX_set_rsa_keygen_bits( ctx: *mut EVP_PKEY_CTX, bits: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_keygen_pubexp"] pub fn EVP_PKEY_CTX_set_rsa_keygen_pubexp( ctx: *mut EVP_PKEY_CTX, e: *mut BIGNUM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_oaep_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_oaep_md"] pub fn EVP_PKEY_CTX_set_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_oaep_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_oaep_md"] pub fn EVP_PKEY_CTX_get_rsa_oaep_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_mgf1_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get_rsa_mgf1_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_rsa_mgf1_md"] pub fn EVP_PKEY_CTX_get_rsa_mgf1_md( ctx: *mut EVP_PKEY_CTX, out_md: *mut *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set0_rsa_oaep_label"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_set0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, label: *mut u8, @@ -15826,28 +16288,28 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_get0_rsa_oaep_label"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get0_rsa_oaep_label"] pub fn EVP_PKEY_CTX_get0_rsa_oaep_label( ctx: *mut EVP_PKEY_CTX, out_label: *mut *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid"] pub fn EVP_PKEY_CTX_set_ec_paramgen_curve_nid( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_kem_set_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_kem_set_params"] pub fn EVP_PKEY_CTX_kem_set_params( ctx: *mut EVP_PKEY_CTX, nid: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_public_key"] pub fn EVP_PKEY_kem_new_raw_public_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -15855,7 +16317,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_secret_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_secret_key"] pub fn EVP_PKEY_kem_new_raw_secret_key( nid: ::std::os::raw::c_int, in_: *const u8, @@ -15863,7 +16325,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_kem_new_raw_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_new_raw_key"] pub fn EVP_PKEY_kem_new_raw_key( nid: ::std::os::raw::c_int, in_public: *const u8, @@ -15873,31 +16335,60 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0"] - pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_kem_check_key"] + pub fn EVP_PKEY_kem_check_key(key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_algorithms"] - pub fn OpenSSL_add_all_algorithms(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dh_pad"] + pub fn EVP_PKEY_CTX_set_dh_pad( + ctx: *mut EVP_PKEY_CTX, + pad: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OPENSSL_add_all_algorithms_conf"] - pub fn OPENSSL_add_all_algorithms_conf(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get_count"] + pub fn EVP_PKEY_asn1_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_ciphers"] - pub fn OpenSSL_add_all_ciphers(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0"] + pub fn EVP_PKEY_asn1_get0(idx: ::std::os::raw::c_int) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OpenSSL_add_all_digests"] - pub fn OpenSSL_add_all_digests(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find"] + pub fn EVP_PKEY_asn1_find( + _pe: *mut *mut ENGINE, + type_: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_cleanup"] - pub fn EVP_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_find_str"] + pub fn EVP_PKEY_asn1_find_str( + _pe: *mut *mut ENGINE, + name: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + ) -> *const EVP_PKEY_ASN1_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_asn1_get0_info"] + pub fn EVP_PKEY_asn1_get0_info( + ppkey_id: *mut ::std::os::raw::c_int, + pkey_base_id: *mut ::std::os::raw::c_int, + ppkey_flags: *mut ::std::os::raw::c_int, + pinfo: *mut *const ::std::os::raw::c_char, + ppem_str: *mut *const ::std::os::raw::c_char, + ameth: *const EVP_PKEY_ASN1_METHOD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_get_pkey_type"] + pub fn EVP_MD_get_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_CIPHER_do_all_sorted"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_pkey_type"] + pub fn EVP_MD_pkey_type(md: *const EVP_MD) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_CIPHER_do_all_sorted"] pub fn EVP_CIPHER_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -15911,7 +16402,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_MD_do_all_sorted"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all_sorted"] pub fn EVP_MD_do_all_sorted( callback: ::std::option::Option< unsafe extern "C" fn( @@ -15925,15 +16416,29 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_MD_do_all"] + pub fn EVP_MD_do_all( + callback: ::std::option::Option< + unsafe extern "C" fn( + cipher: *const EVP_MD, + name: *const ::std::os::raw::c_char, + unused: *const ::std::os::raw::c_char, + arg: *mut ::std::os::raw::c_void, + ), + >, + arg: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PrivateKey"] pub fn i2d_PrivateKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PublicKey"] pub fn i2d_PublicKey(key: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PrivateKey"] pub fn d2i_PrivateKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -15942,7 +16447,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AutoPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AutoPrivateKey"] pub fn d2i_AutoPrivateKey( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -15950,7 +16455,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PublicKey"] pub fn d2i_PublicKey( type_: ::std::os::raw::c_int, out: *mut *mut EVP_PKEY, @@ -15959,22 +16464,14 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get0_DH"] - pub fn EVP_PKEY_get0_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_DH"] - pub fn EVP_PKEY_get1_DH(pkey: *const EVP_PKEY) -> *mut DH; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_ec_param_enc"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_ec_param_enc"] pub fn EVP_PKEY_CTX_set_ec_param_enc( ctx: *mut EVP_PKEY_CTX, encoding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_set1_tls_encodedpoint"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_set1_tls_encodedpoint"] pub fn EVP_PKEY_set1_tls_encodedpoint( pkey: *mut EVP_PKEY, in_: *const u8, @@ -15982,40 +16479,40 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_get1_tls_encodedpoint"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get1_tls_encodedpoint"] pub fn EVP_PKEY_get1_tls_encodedpoint(pkey: *const EVP_PKEY, out_ptr: *mut *mut u8) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_base_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_base_id"] pub fn EVP_PKEY_base_id(pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen( ctx: *mut EVP_PKEY_CTX, salt_len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md"] pub fn EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md( ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PUBKEY"] pub fn i2d_PUBKEY(pkey: *const EVP_PKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PUBKEY"] pub fn d2i_PUBKEY( out: *mut *mut EVP_PKEY, inp: *mut *const u8, @@ -16023,11 +16520,11 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSA_PUBKEY"] pub fn i2d_RSA_PUBKEY(rsa: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSA_PUBKEY"] pub fn d2i_RSA_PUBKEY( out: *mut *mut RSA, inp: *mut *const u8, @@ -16035,11 +16532,11 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DSA_PUBKEY"] pub fn i2d_DSA_PUBKEY(dsa: *const DSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DSA_PUBKEY"] pub fn d2i_DSA_PUBKEY( out: *mut *mut DSA, inp: *mut *const u8, @@ -16047,11 +16544,11 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EC_PUBKEY"] pub fn i2d_EC_PUBKEY(ec_key: *const EC_KEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EC_PUBKEY"] pub fn d2i_EC_PUBKEY( out: *mut *mut EC_KEY, inp: *mut *const u8, @@ -16059,188 +16556,91 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( - ctx: *mut EVP_PKEY_CTX, - nbits: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_assign"] + pub fn EVP_PKEY_assign( + pkey: *mut EVP_PKEY, + type_: ::std::os::raw::c_int, + key: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] - pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( - ctx: *mut EVP_PKEY_CTX, - qbits: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evp_pkey_st { - pub references: CRYPTO_refcount_t, - pub type_: ::std::os::raw::c_int, - pub pkey: evp_pkey_st__bindgen_ty_1, - pub ameth: *const EVP_PKEY_ASN1_METHOD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union evp_pkey_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_void, - pub rsa: *mut RSA, - pub dsa: *mut DSA, - pub dh: *mut DH, - pub ec: *mut EC_KEY, - pub kem_key: *mut KEM_KEY, -} -#[test] -fn bindgen_test_layout_evp_pkey_st__bindgen_ty_1() { - 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!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(rsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dsa) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dsa) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dh) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(dh) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ec) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(ec) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).kem_key) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st__bindgen_ty_1), - "::", - stringify!(kem_key) - ) - ); -} -impl Default for evp_pkey_st__bindgen_ty_1 { - 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_fips_0_13_0_EVP_PKEY_new_mac_key"] + pub fn EVP_PKEY_new_mac_key( + type_: ::std::os::raw::c_int, + engine: *mut ENGINE, + mac_key: *const u8, + mac_key_len: usize, + ) -> *mut EVP_PKEY; } -#[test] -fn bindgen_test_layout_evp_pkey_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!(evp_pkey_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(evp_pkey_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ameth) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(evp_pkey_st), - "::", - stringify!(ameth) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_get0"] + pub fn EVP_PKEY_get0(pkey: *const EVP_PKEY) -> *mut ::std::os::raw::c_void; } -impl Default for evp_pkey_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_fips_0_13_0_OpenSSL_add_all_algorithms"] + pub fn OpenSSL_add_all_algorithms(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OPENSSL_add_all_algorithms_conf"] + pub fn OPENSSL_add_all_algorithms_conf(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_ciphers"] + pub fn OpenSSL_add_all_ciphers(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OpenSSL_add_all_digests"] + pub fn OpenSSL_add_all_digests(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_cleanup"] + pub fn EVP_cleanup(); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_bits( + ctx: *mut EVP_PKEY_CTX, + nbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_dsa_paramgen_q_bits"] + pub fn EVP_PKEY_CTX_set_dsa_paramgen_q_bits( + ctx: *mut EVP_PKEY_CTX, + qbits: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_ctrl_str"] + pub fn EVP_PKEY_CTX_ctrl_str( + ctx: *mut EVP_PKEY_CTX, + type_: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +pub type EVP_PKEY_gen_cb = + ::std::option::Option ::std::os::raw::c_int>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_cb"] + pub fn EVP_PKEY_CTX_set_cb(ctx: *mut EVP_PKEY_CTX, cb: EVP_PKEY_gen_cb); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_set_app_data"] + pub fn EVP_PKEY_CTX_set_app_data(ctx: *mut EVP_PKEY_CTX, data: *mut ::std::os::raw::c_void); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_app_data"] + pub fn EVP_PKEY_CTX_get_app_data(ctx: *mut EVP_PKEY_CTX) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY_CTX_get_keygen_info"] + pub fn EVP_PKEY_CTX_get_keygen_info( + ctx: *mut EVP_PKEY_CTX, + idx: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF"] pub fn HKDF( out_key: *mut u8, out_len: usize, @@ -16254,7 +16654,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_extract"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_extract"] pub fn HKDF_extract( out_key: *mut u8, out_len: *mut usize, @@ -16266,7 +16666,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HKDF_expand"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HKDF_expand"] pub fn HKDF_expand( out_key: *mut u8, out_len: usize, @@ -16278,11 +16678,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Init"] pub fn MD5_Init(md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Update"] pub fn MD5_Update( md5: *mut MD5_CTX, data: *const ::std::os::raw::c_void, @@ -16290,15 +16690,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Final"] pub fn MD5_Final(out: *mut u8, md5: *mut MD5_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5"] pub fn MD5(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD5_Transform"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD5_Transform"] pub fn MD5_Transform(md5: *mut MD5_CTX, block: *const u8); } #[repr(C)] @@ -16385,7 +16785,7 @@ impl Default for md5_state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC"] pub fn HMAC( evp_md: *const EVP_MD, key: *const ::std::os::raw::c_void, @@ -16397,27 +16797,27 @@ extern "C" { ) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_init"] pub fn HMAC_CTX_init(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_new"] pub fn HMAC_CTX_new() -> *mut HMAC_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanup"] pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_cleanse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_cleanse"] pub fn HMAC_CTX_cleanse(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_free"] pub fn HMAC_CTX_free(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_ex"] pub fn HMAC_Init_ex( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16427,7 +16827,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Update"] pub fn HMAC_Update( ctx: *mut HMAC_CTX, data: *const u8, @@ -16435,7 +16835,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Final"] pub fn HMAC_Final( ctx: *mut HMAC_CTX, out: *mut u8, @@ -16443,23 +16843,44 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_size"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_size"] pub fn HMAC_size(ctx: *const HMAC_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_get_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_get_md"] pub fn HMAC_CTX_get_md(ctx: *const HMAC_CTX) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy_ex"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy_ex"] pub fn HMAC_CTX_copy_ex(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_reset"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_reset"] pub fn HMAC_CTX_reset(ctx: *mut HMAC_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_set_precomputed_key_export"] + pub fn HMAC_set_precomputed_key_export(ctx: *mut HMAC_CTX) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_get_precomputed_key"] + pub fn HMAC_get_precomputed_key( + ctx: *mut HMAC_CTX, + out: *mut u8, + out_len: *mut usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init_from_precomputed_key"] + pub fn HMAC_Init_from_precomputed_key( + ctx: *mut HMAC_CTX, + precomputed_key: *const u8, + precompute_key_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_Init"] pub fn HMAC_Init( ctx: *mut HMAC_CTX, key: *const ::std::os::raw::c_void, @@ -16468,7 +16889,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HMAC_CTX_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HMAC_CTX_copy"] pub fn HMAC_CTX_copy(dest: *mut HMAC_CTX, src: *const HMAC_CTX) -> ::std::os::raw::c_int; } #[repr(C)] @@ -16644,82 +17065,86 @@ impl Default for hmac_ctx_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_x25519_hkdf_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_x25519_hkdf_sha256"] pub fn EVP_hpke_x25519_hkdf_sha256() -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_id"] pub fn EVP_HPKE_KEM_id(kem: *const EVP_HPKE_KEM) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_public_key_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_public_key_len"] pub fn EVP_HPKE_KEM_public_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_private_key_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_private_key_len"] pub fn EVP_HPKE_KEM_private_key_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEM_enc_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEM_enc_len"] pub fn EVP_HPKE_KEM_enc_len(kem: *const EVP_HPKE_KEM) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_hkdf_sha256"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_hkdf_sha256"] pub fn EVP_hpke_hkdf_sha256() -> *const EVP_HPKE_KDF; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_id"] pub fn EVP_HPKE_KDF_id(kdf: *const EVP_HPKE_KDF) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KDF_hkdf_md"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KDF_hkdf_md"] pub fn EVP_HPKE_KDF_hkdf_md(kdf: *const EVP_HPKE_KDF) -> *const EVP_MD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_128_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_128_gcm"] pub fn EVP_hpke_aes_128_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_aes_256_gcm"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_aes_256_gcm"] pub fn EVP_hpke_aes_256_gcm() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_hpke_chacha20_poly1305"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_hpke_chacha20_poly1305"] pub fn EVP_hpke_chacha20_poly1305() -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_id"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_id"] pub fn EVP_HPKE_AEAD_id(aead: *const EVP_HPKE_AEAD) -> u16; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_AEAD_aead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_AEAD_aead"] pub fn EVP_HPKE_AEAD_aead(aead: *const EVP_HPKE_AEAD) -> *const EVP_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_zero"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_zero"] pub fn EVP_HPKE_KEY_zero(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_cleanup"] pub fn EVP_HPKE_KEY_cleanup(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_new"] pub fn EVP_HPKE_KEY_new() -> *mut EVP_HPKE_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_free"] pub fn EVP_HPKE_KEY_free(key: *mut EVP_HPKE_KEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_copy"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_copy"] pub fn EVP_HPKE_KEY_copy( dst: *mut EVP_HPKE_KEY, src: *const EVP_HPKE_KEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_move"] + pub fn EVP_HPKE_KEY_move(out: *mut EVP_HPKE_KEY, in_: *mut EVP_HPKE_KEY); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_init"] pub fn EVP_HPKE_KEY_init( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, @@ -16728,18 +17153,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_generate"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_generate"] pub fn EVP_HPKE_KEY_generate( key: *mut EVP_HPKE_KEY, kem: *const EVP_HPKE_KEM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_kem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_kem"] pub fn EVP_HPKE_KEY_kem(key: *const EVP_HPKE_KEY) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_public_key"] pub fn EVP_HPKE_KEY_public_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -16748,7 +17173,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_KEY_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_KEY_private_key"] pub fn EVP_HPKE_KEY_private_key( key: *const EVP_HPKE_KEY, out: *mut u8, @@ -16757,23 +17182,23 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_zero"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_zero"] pub fn EVP_HPKE_CTX_zero(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_cleanup"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_cleanup"] pub fn EVP_HPKE_CTX_cleanup(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_new"] pub fn EVP_HPKE_CTX_new() -> *mut EVP_HPKE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_free"] pub fn EVP_HPKE_CTX_free(ctx: *mut EVP_HPKE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender"] pub fn EVP_HPKE_CTX_setup_sender( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -16789,7 +17214,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_sender_with_seed_for_testing"] pub fn EVP_HPKE_CTX_setup_sender_with_seed_for_testing( ctx: *mut EVP_HPKE_CTX, out_enc: *mut u8, @@ -16807,7 +17232,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_setup_recipient"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_recipient"] pub fn EVP_HPKE_CTX_setup_recipient( ctx: *mut EVP_HPKE_CTX, key: *const EVP_HPKE_KEY, @@ -16820,7 +17245,56 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_open"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender"] + pub fn EVP_HPKE_CTX_setup_auth_sender( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing"] + pub fn EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing( + ctx: *mut EVP_HPKE_CTX, + out_enc: *mut u8, + out_enc_len: *mut usize, + max_enc: usize, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + peer_public_key: *const u8, + peer_public_key_len: usize, + info: *const u8, + info_len: usize, + seed: *const u8, + seed_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_setup_auth_recipient"] + pub fn EVP_HPKE_CTX_setup_auth_recipient( + ctx: *mut EVP_HPKE_CTX, + key: *const EVP_HPKE_KEY, + kdf: *const EVP_HPKE_KDF, + aead: *const EVP_HPKE_AEAD, + enc: *const u8, + enc_len: usize, + info: *const u8, + info_len: usize, + peer_public_key: *const u8, + peer_public_key_len: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_open"] pub fn EVP_HPKE_CTX_open( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -16833,7 +17307,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_seal"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_seal"] pub fn EVP_HPKE_CTX_seal( ctx: *mut EVP_HPKE_CTX, out: *mut u8, @@ -16846,7 +17320,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_export"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_export"] pub fn EVP_HPKE_CTX_export( ctx: *const EVP_HPKE_CTX, out: *mut u8, @@ -16856,19 +17330,19 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_max_overhead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_max_overhead"] pub fn EVP_HPKE_CTX_max_overhead(ctx: *const EVP_HPKE_CTX) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kem"] pub fn EVP_HPKE_CTX_kem(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_aead"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_aead"] pub fn EVP_HPKE_CTX_aead(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_AEAD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EVP_HPKE_CTX_kdf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_HPKE_CTX_kdf"] pub fn EVP_HPKE_CTX_kdf(ctx: *const EVP_HPKE_CTX) -> *const EVP_HPKE_KDF; } #[repr(C)] @@ -16889,7 +17363,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), - 728usize, + 712usize, concat!("Size of: ", stringify!(evp_hpke_ctx_st)) ); assert_eq!( @@ -16939,7 +17413,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).base_nonce) as usize - ptr as usize }, - 624usize, + 608usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -16949,7 +17423,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).exporter_secret) as usize - ptr as usize }, - 648usize, + 632usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -16959,7 +17433,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).seq) as usize - ptr as usize }, - 712usize, + 696usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -16969,7 +17443,7 @@ fn bindgen_test_layout_evp_hpke_ctx_st() { ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).is_sender) as usize - ptr as usize }, - 720usize, + 704usize, concat!( "Offset of field: ", stringify!(evp_hpke_ctx_st), @@ -17127,7 +17601,7 @@ impl Default for HRSS_public_key { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_generate_key"] pub fn HRSS_generate_key( out_pub: *mut HRSS_public_key, out_priv: *mut HRSS_private_key, @@ -17135,7 +17609,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_encap"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_encap"] pub fn HRSS_encap( out_ciphertext: *mut u8, out_shared_key: *mut u8, @@ -17144,7 +17618,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_decap"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_decap"] pub fn HRSS_decap( out_shared_key: *mut u8, in_priv: *const HRSS_private_key, @@ -17153,22 +17627,22 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_marshal_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_marshal_public_key"] pub fn HRSS_marshal_public_key(out: *mut u8, in_pub: *const HRSS_public_key); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_HRSS_parse_public_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_HRSS_parse_public_key"] pub fn HRSS_parse_public_key( out: *mut HRSS_public_key, in_: *const u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Init"] pub fn MD4_Init(md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Update"] pub fn MD4_Update( md4: *mut MD4_CTX, data: *const ::std::os::raw::c_void, @@ -17176,15 +17650,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Final"] pub fn MD4_Final(out: *mut u8, md4: *mut MD4_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4"] pub fn MD4(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_MD4_Transform"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_MD4_Transform"] pub fn MD4_Transform(md4: *mut MD4_CTX, block: *const u8); } #[repr(C)] @@ -17261,171 +17735,7 @@ fn bindgen_test_layout_md4_state_st() { ) ); } -impl Default for md4_state_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_fips_0_12_15_OBJ_dup"] - pub fn OBJ_dup(obj: *const ASN1_OBJECT) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cmp"] - pub fn OBJ_cmp(a: *const ASN1_OBJECT, b: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_get0_data"] - pub fn OBJ_get0_data(obj: *const ASN1_OBJECT) -> *const u8; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_length"] - pub fn OBJ_length(obj: *const ASN1_OBJECT) -> usize; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2nid"] - pub fn OBJ_obj2nid(obj: *const ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cbs2nid"] - pub fn OBJ_cbs2nid(cbs: *const CBS) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_sn2nid"] - pub fn OBJ_sn2nid(short_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_ln2nid"] - pub fn OBJ_ln2nid(long_name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2nid"] - pub fn OBJ_txt2nid(s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2obj"] - pub fn OBJ_nid2obj(nid: ::std::os::raw::c_int) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2sn"] - pub fn OBJ_nid2sn(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2ln"] - pub fn OBJ_nid2ln(nid: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_nid2cbb"] - pub fn OBJ_nid2cbb(out: *mut CBB, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_txt2obj"] - pub fn OBJ_txt2obj( - s: *const ::std::os::raw::c_char, - dont_search_names: ::std::os::raw::c_int, - ) -> *mut ASN1_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_obj2txt"] - pub fn OBJ_obj2txt( - out: *mut ::std::os::raw::c_char, - out_len: ::std::os::raw::c_int, - obj: *const ASN1_OBJECT, - always_return_oid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_create"] - pub fn OBJ_create( - oid: *const ::std::os::raw::c_char, - short_name: *const ::std::os::raw::c_char, - long_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_algs"] - pub fn OBJ_find_sigid_algs( - sign_nid: ::std::os::raw::c_int, - out_digest_nid: *mut ::std::os::raw::c_int, - out_pkey_nid: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_find_sigid_by_algs"] - pub fn OBJ_find_sigid_by_algs( - out_sign_nid: *mut ::std::os::raw::c_int, - digest_nid: ::std::os::raw::c_int, - pkey_nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct obj_name_st { - pub type_: ::std::os::raw::c_int, - pub alias: ::std::os::raw::c_int, - pub name: *const ::std::os::raw::c_char, - pub data: *const ::std::os::raw::c_char, -} -#[test] -fn bindgen_test_layout_obj_name_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!(obj_name_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(obj_name_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(alias) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(obj_name_st), - "::", - stringify!(data) - ) - ); -} -impl Default for obj_name_st { +impl Default for md4_state_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17434,11 +17744,6 @@ impl Default for obj_name_st { } } } -pub type OBJ_NAME = obj_name_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OBJ_cleanup"] - pub fn OBJ_cleanup(); -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct stack_st_CRYPTO_BUFFER { @@ -17455,7 +17760,7 @@ pub struct stack_st_X509_CRL { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_raw_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_raw_certificates"] pub fn PKCS7_get_raw_certificates( out_certs: *mut stack_st_CRYPTO_BUFFER, cbs: *mut CBS, @@ -17463,167 +17768,61 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_certificates"] pub fn PKCS7_get_certificates( out_certs: *mut stack_st_X509, cbs: *mut CBS, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_raw_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_raw_certificates"] pub fn PKCS7_bundle_raw_certificates( out: *mut CBB, certs: *const stack_st_CRYPTO_BUFFER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_certificates"] pub fn PKCS7_bundle_certificates( out: *mut CBB, certs: *const stack_st_X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_CRLs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_CRLs"] pub fn PKCS7_get_CRLs(out_crls: *mut stack_st_X509_CRL, cbs: *mut CBS) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_bundle_CRLs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_bundle_CRLs"] pub fn PKCS7_bundle_CRLs( out: *mut CBB, crls: *const stack_st_X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_certificates"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_certificates"] pub fn PKCS7_get_PEM_certificates( out_certs: *mut stack_st_X509, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_get_PEM_CRLs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_PEM_CRLs"] pub fn PKCS7_get_PEM_CRLs( out_crls: *mut stack_st_X509_CRL, pem_bio: *mut BIO, ) -> ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PKCS7_SIGNED { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGNED() { - 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!(PKCS7_SIGNED)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGNED)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGNED), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGNED { - 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 PKCS7_SIGN_ENVELOPE { - pub cert: *mut stack_st_X509, - pub crl: *mut stack_st_X509_CRL, -} -#[test] -fn bindgen_test_layout_PKCS7_SIGN_ENVELOPE() { - 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!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(PKCS7_SIGN_ENVELOPE)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(PKCS7_SIGN_ENVELOPE), - "::", - stringify!(crl) - ) - ); -} -impl Default for PKCS7_SIGN_ENVELOPE { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type PKCS7_ENVELOPE = ::std::os::raw::c_void; -pub type PKCS7_DIGEST = ::std::os::raw::c_void; -pub type PKCS7_ENCRYPT = ::std::os::raw::c_void; -pub type PKCS7_SIGNER_INFO = ::std::os::raw::c_void; -#[repr(C)] #[derive(Copy, Clone)] -pub struct PKCS7 { - pub ber_bytes: *mut u8, - pub ber_len: usize, +pub struct pkcs7_st { pub type_: *mut ASN1_OBJECT, - pub d: PKCS7__bindgen_ty_1, + pub d: pkcs7_st__bindgen_ty_1, } #[repr(C)] #[derive(Copy, Clone)] -pub union PKCS7__bindgen_ty_1 { +pub union pkcs7_st__bindgen_ty_1 { pub ptr: *mut ::std::os::raw::c_char, pub data: *mut ASN1_OCTET_STRING, pub sign: *mut PKCS7_SIGNED, @@ -17634,25 +17833,26 @@ pub union PKCS7__bindgen_ty_1 { pub other: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_PKCS7__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st__bindgen_ty_1() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Size of: ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7__bindgen_ty_1)) + concat!("Alignment of ", stringify!(pkcs7_st__bindgen_ty_1)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(ptr) ) @@ -17662,7 +17862,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(data) ) @@ -17672,7 +17872,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(sign) ) @@ -17682,7 +17882,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(enveloped) ) @@ -17692,7 +17892,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(signed_and_enveloped) ) @@ -17702,7 +17902,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(digest) ) @@ -17712,7 +17912,7 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(encrypted) ) @@ -17722,13 +17922,13 @@ fn bindgen_test_layout_PKCS7__bindgen_ty_1() { 0usize, concat!( "Offset of field: ", - stringify!(PKCS7__bindgen_ty_1), + stringify!(pkcs7_st__bindgen_ty_1), "::", stringify!(other) ) ); } -impl Default for PKCS7__bindgen_ty_1 { +impl Default for pkcs7_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17738,56 +17938,135 @@ impl Default for PKCS7__bindgen_ty_1 { } } #[test] -fn bindgen_test_layout_PKCS7() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_pkcs7_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(PKCS7)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(pkcs7_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PKCS7)) + concat!("Alignment of ", stringify!(pkcs7_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_bytes) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_st), "::", - stringify!(ber_bytes) + stringify!(d) ) ); +} +impl Default for pkcs7_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 pkcs7_signed_st { + pub version: *mut ASN1_INTEGER, + pub md_algs: *mut stack_st_X509_ALGOR, + pub contents: *mut PKCS7, + pub cert: *mut stack_st_X509, + pub crl: *mut stack_st_X509_CRL, + pub signer_info: *mut stack_st_PKCS7_SIGNER_INFO, +} +#[test] +fn bindgen_test_layout_pkcs7_signed_st() { + 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!(pkcs7_signed_st)) + ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ber_len) as usize - ptr as usize }, + ::std::mem::align_of::(), 8usize, + concat!("Alignment of ", stringify!(pkcs7_signed_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(ber_len) + stringify!(version) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).md_algs) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(md_algs) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).contents) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(PKCS7), + stringify!(pkcs7_signed_st), "::", - stringify!(type_) + stringify!(contents) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).cert) as usize - ptr as usize }, 24usize, - concat!("Offset of field: ", stringify!(PKCS7), "::", stringify!(d)) + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signer_info) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(pkcs7_signed_st), + "::", + stringify!(signer_info) + ) ); } -impl Default for PKCS7 { +impl Default for pkcs7_signed_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17797,51 +18076,243 @@ impl Default for PKCS7 { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7"] - pub fn d2i_PKCS7(out: *mut *mut PKCS7, inp: *mut *const u8, len: usize) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_new"] + pub fn PKCS7_new() -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_free"] + pub fn PKCS7_free(a: *mut PKCS7); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7"] + pub fn d2i_PKCS7( + a: *mut *mut PKCS7, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7"] + pub fn i2d_PKCS7( + a: *mut PKCS7, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_it"] + pub static PKCS7_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_new"] + pub fn PKCS7_RECIP_INFO_new() -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_free"] + pub fn PKCS7_RECIP_INFO_free(a: *mut PKCS7_RECIP_INFO); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_RECIP_INFO"] + pub fn d2i_PKCS7_RECIP_INFO( + a: *mut *mut PKCS7_RECIP_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_RECIP_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_RECIP_INFO"] + pub fn i2d_PKCS7_RECIP_INFO( + a: *mut PKCS7_RECIP_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_it"] + pub static PKCS7_RECIP_INFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_new"] + pub fn PKCS7_SIGNER_INFO_new() -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_free"] + pub fn PKCS7_SIGNER_INFO_free(a: *mut PKCS7_SIGNER_INFO); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_SIGNER_INFO"] + pub fn d2i_PKCS7_SIGNER_INFO( + a: *mut *mut PKCS7_SIGNER_INFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_SIGNER_INFO"] + pub fn i2d_PKCS7_SIGNER_INFO( + a: *mut PKCS7_SIGNER_INFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_it"] + pub static PKCS7_SIGNER_INFO_it: ASN1_ITEM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_RECIP_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_RECIP_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_RECIP_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_RECIP_INFO) -> *mut PKCS7_RECIP_INFO, +>; +pub type sk_PKCS7_RECIP_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_RECIP_INFO, + arg2: *const *const PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_RECIP_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_RECIP_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_PKCS7_SIGNER_INFO { + _unused: [u8; 0], +} +pub type sk_PKCS7_SIGNER_INFO_free_func = + ::std::option::Option; +pub type sk_PKCS7_SIGNER_INFO_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const PKCS7_SIGNER_INFO) -> *mut PKCS7_SIGNER_INFO, +>; +pub type sk_PKCS7_SIGNER_INFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const PKCS7_SIGNER_INFO, + arg2: *const *const PKCS7_SIGNER_INFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_PKCS7_SIGNER_INFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut PKCS7_SIGNER_INFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_dup"] + pub fn PKCS7_dup(p7: *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS7_bio"] + pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS7_bio"] + pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signed_attribute"] + pub fn PKCS7_get_signed_attribute( + si: *const PKCS7_SIGNER_INFO, + nid: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_get_signer_info"] + pub fn PKCS7_get_signer_info(p7: *mut PKCS7) -> *mut stack_st_PKCS7_SIGNER_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_set"] + pub fn PKCS7_RECIP_INFO_set( + p7i: *mut PKCS7_RECIP_INFO, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_set"] + pub fn PKCS7_SIGNER_INFO_set( + p7i: *mut PKCS7_SIGNER_INFO, + x509: *mut X509, + pkey: *mut EVP_PKEY, + dgst: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_certificate"] + pub fn PKCS7_add_certificate(p7: *mut PKCS7, x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_crl"] + pub fn PKCS7_add_crl(p7: *mut PKCS7, x509: *mut X509_CRL) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_recipient_info"] + pub fn PKCS7_add_recipient_info( + p7: *mut PKCS7, + ri: *mut PKCS7_RECIP_INFO, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_add_signer"] + pub fn PKCS7_add_signer(p7: *mut PKCS7, p7i: *mut PKCS7_SIGNER_INFO) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_content_new"] + pub fn PKCS7_content_new(p7: *mut PKCS7, nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS7_bio"] - pub fn d2i_PKCS7_bio(bio: *mut BIO, out: *mut *mut PKCS7) -> *mut PKCS7; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_cipher"] + pub fn PKCS7_set_cipher(p7: *mut PKCS7, cipher: *const EVP_CIPHER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7"] - pub fn i2d_PKCS7(p7: *const PKCS7, out: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_content"] + pub fn PKCS7_set_content(p7: *mut PKCS7, p7_data: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS7_bio"] - pub fn i2d_PKCS7_bio(bio: *mut BIO, p7: *const PKCS7) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_set_type"] + pub fn PKCS7_set_type(p7: *mut PKCS7, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_RECIP_INFO_get0_alg"] + pub fn PKCS7_RECIP_INFO_get0_alg(ri: *mut PKCS7_RECIP_INFO, penc: *mut *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_free"] - pub fn PKCS7_free(p7: *mut PKCS7); + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_SIGNER_INFO_get0_algs"] + pub fn PKCS7_SIGNER_INFO_get0_algs( + si: *mut PKCS7_SIGNER_INFO, + pk: *mut *mut EVP_PKEY, + pdig: *mut *mut X509_ALGOR, + psig: *mut *mut X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_data"] pub fn PKCS7_type_is_data(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_digest"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_digest"] pub fn PKCS7_type_is_digest(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_encrypted"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_encrypted"] pub fn PKCS7_type_is_encrypted(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_enveloped"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_enveloped"] pub fn PKCS7_type_is_enveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signed"] pub fn PKCS7_type_is_signed(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_type_is_signedAndEnveloped"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_type_is_signedAndEnveloped"] pub fn PKCS7_type_is_signedAndEnveloped(p7: *const PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS7_sign"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS7_sign"] pub fn PKCS7_sign( sign_cert: *mut X509, pkey: *mut EVP_PKEY, @@ -17856,8 +18327,8 @@ pub type sk_CRYPTO_BUFFER_copy_func = ::std::option::Option *mut CRYPTO_BUFFER>; pub type sk_CRYPTO_BUFFER_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const CRYPTO_BUFFER, - arg2: *mut *const CRYPTO_BUFFER, + arg1: *const *const CRYPTO_BUFFER, + arg2: *const *const CRYPTO_BUFFER, ) -> ::std::os::raw::c_int, >; pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< @@ -17867,15 +18338,15 @@ pub type sk_CRYPTO_BUFFER_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_new"] pub fn CRYPTO_BUFFER_POOL_new() -> *mut CRYPTO_BUFFER_POOL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_POOL_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_POOL_free"] pub fn CRYPTO_BUFFER_POOL_free(pool: *mut CRYPTO_BUFFER_POOL); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new"] pub fn CRYPTO_BUFFER_new( data: *const u8, len: usize, @@ -17883,18 +18354,18 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_alloc"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_alloc"] pub fn CRYPTO_BUFFER_alloc(out_data: *mut *mut u8, len: usize) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_CBS"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_CBS"] pub fn CRYPTO_BUFFER_new_from_CBS( cbs: *const CBS, pool: *mut CRYPTO_BUFFER_POOL, ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_new_from_static_data_unsafe"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_new_from_static_data_unsafe"] pub fn CRYPTO_BUFFER_new_from_static_data_unsafe( data: *const u8, len: usize, @@ -17902,79 +18373,96 @@ extern "C" { ) -> *mut CRYPTO_BUFFER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_free"] pub fn CRYPTO_BUFFER_free(buf: *mut CRYPTO_BUFFER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_up_ref"] pub fn CRYPTO_BUFFER_up_ref(buf: *mut CRYPTO_BUFFER) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_data"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_data"] pub fn CRYPTO_BUFFER_data(buf: *const CRYPTO_BUFFER) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_len"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_len"] pub fn CRYPTO_BUFFER_len(buf: *const CRYPTO_BUFFER) -> usize; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_BUFFER_init_CBS"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_BUFFER_init_CBS"] pub fn CRYPTO_BUFFER_init_CBS(buf: *const CRYPTO_BUFFER, out: *mut CBS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_public_key"] + pub fn RSA_new_public_key(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key"] + pub fn RSA_new_private_key( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new"] pub fn RSA_new() -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_new_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_method"] pub fn RSA_new_method(engine: *const ENGINE) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_free"] pub fn RSA_free(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_up_ref"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_up_ref"] pub fn RSA_up_ref(rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_bits"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_bits"] pub fn RSA_bits(rsa: *const RSA) -> ::std::os::raw::c_uint; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_n"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_n"] pub fn RSA_get0_n(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_e"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_e"] pub fn RSA_get0_e(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_d"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_d"] pub fn RSA_get0_d(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_p"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_p"] pub fn RSA_get0_p(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_q"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_q"] pub fn RSA_get0_q(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmp1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmp1"] pub fn RSA_get0_dmp1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_dmq1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_dmq1"] pub fn RSA_get0_dmq1(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_iqmp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_iqmp"] pub fn RSA_get0_iqmp(rsa: *const RSA) -> *const BIGNUM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_key"] pub fn RSA_get0_key( rsa: *const RSA, out_n: *mut *const BIGNUM, @@ -17983,11 +18471,11 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_factors"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_factors"] pub fn RSA_get0_factors(rsa: *const RSA, out_p: *mut *const BIGNUM, out_q: *mut *const BIGNUM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_crt_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_crt_params"] pub fn RSA_get0_crt_params( rsa: *const RSA, out_dmp1: *mut *const BIGNUM, @@ -17996,7 +18484,7 @@ extern "C" { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_key"] pub fn RSA_set0_key( rsa: *mut RSA, n: *mut BIGNUM, @@ -18005,12 +18493,12 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_factors"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_factors"] pub fn RSA_set0_factors(rsa: *mut RSA, p: *mut BIGNUM, q: *mut BIGNUM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set0_crt_params"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set0_crt_params"] pub fn RSA_set0_crt_params( rsa: *mut RSA, dmp1: *mut BIGNUM, @@ -18019,2550 +18507,2127 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_ex"] - pub fn RSA_generate_key_ex( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - e: *const BIGNUM, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_default_method"] + pub fn RSA_get_default_method() -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key_fips"] - pub fn RSA_generate_key_fips( - rsa: *mut RSA, - bits: ::std::os::raw::c_int, - cb: *mut BN_GENCB, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_new"] + pub fn RSA_meth_new( + name: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_int, + ) -> *mut RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_encrypt"] - pub fn RSA_encrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_method"] + pub fn RSA_set_method(rsa: *mut RSA, meth: *const RSA_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_decrypt"] - pub fn RSA_decrypt( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_method"] + pub fn RSA_get_method(rsa: *const RSA) -> *const RSA_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_encrypt"] - pub fn RSA_public_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_free"] + pub fn RSA_meth_free(meth: *mut RSA_METHOD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_decrypt"] - pub fn RSA_private_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_init"] + pub fn RSA_meth_set_init( + meth: *mut RSA_METHOD, + init: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign"] - pub fn RSA_sign( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_finish"] + pub fn RSA_meth_set_finish( + meth: *mut RSA_METHOD, + finish: ::std::option::Option ::std::os::raw::c_int>, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_pss_mgf1"] - pub fn RSA_sign_pss_mgf1( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_dec"] + pub fn RSA_meth_set_priv_dec( + meth: *mut RSA_METHOD, + priv_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_sign_raw"] - pub fn RSA_sign_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_priv_enc"] + pub fn RSA_meth_set_priv_enc( + meth: *mut RSA_METHOD, + priv_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify"] - pub fn RSA_verify( - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - sig: *const u8, - sig_len: usize, - rsa: *mut RSA, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_pub_dec"] + pub fn RSA_meth_set_pub_dec( + meth: *mut RSA_METHOD, + pub_dec: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_pss_mgf1"] - pub fn RSA_verify_pss_mgf1( - rsa: *mut RSA, - digest: *const u8, - digest_len: usize, - md: *const EVP_MD, - mgf1_md: *const EVP_MD, - salt_len: ::std::os::raw::c_int, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_pub_enc"] + pub fn RSA_meth_set_pub_enc( + meth: *mut RSA_METHOD, + pub_enc: ::std::option::Option< + unsafe extern "C" fn( + max_out: ::std::os::raw::c_int, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_raw"] - pub fn RSA_verify_raw( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set0_app_data"] + pub fn RSA_meth_set0_app_data( + meth: *mut RSA_METHOD, + app_data: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_encrypt"] - pub fn RSA_private_encrypt( - flen: usize, - from: *const u8, - to: *mut u8, - rsa: *mut RSA, - padding: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_meth_set_sign"] + pub fn RSA_meth_set_sign( + meth: *mut RSA_METHOD, + sign: ::std::option::Option< + unsafe extern "C" fn( + type_: ::std::os::raw::c_int, + m: *const ::std::os::raw::c_uchar, + m_length: ::std::os::raw::c_uint, + sigret: *mut ::std::os::raw::c_uchar, + siglen: *mut ::std::os::raw::c_uint, + rsa: *const RSA, + ) -> ::std::os::raw::c_int, + >, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_decrypt"] - pub fn RSA_public_decrypt( - flen: usize, - from: *const u8, - to: *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_ex"] + pub fn RSA_generate_key_ex( rsa: *mut RSA, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_size"] - pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_is_opaque"] - pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPublicKey_dup"] - pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSAPrivateKey_dup"] - pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_key"] - pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_check_fips"] - pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS_mgf1"] - pub fn RSA_verify_PKCS1_PSS_mgf1( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS_mgf1"] - pub fn RSA_padding_add_PKCS1_PSS_mgf1( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - mgf1Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP_mgf1"] - pub fn RSA_padding_add_PKCS1_OAEP_mgf1( - to: *mut u8, - to_len: usize, - from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, - md: *const EVP_MD, - mgf1md: *const EVP_MD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_add_pkcs1_prefix"] - pub fn RSA_add_pkcs1_prefix( - out_msg: *mut *mut u8, - out_msg_len: *mut usize, - is_alloced: *mut ::std::os::raw::c_int, - hash_nid: ::std::os::raw::c_int, - digest: *const u8, - digest_len: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_public_key"] - pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_key_from_bytes"] - pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_public_key"] - pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_public_key_to_bytes"] - pub fn RSA_public_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_parse_private_key"] - pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_from_bytes"] - pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_marshal_private_key"] - pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_private_key_to_bytes"] - pub fn RSA_private_key_to_bytes( - out_bytes: *mut *mut u8, - out_len: *mut usize, - rsa: *const RSA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_new_index"] - pub fn RSA_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, + bits: ::std::os::raw::c_int, + e: *const BIGNUM, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_set_ex_data"] - pub fn RSA_set_ex_data( + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key_fips"] + pub fn RSA_generate_key_fips( rsa: *mut RSA, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, + bits: ::std::os::raw::c_int, + cb: *mut BN_GENCB, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get_ex_data"] - pub fn RSA_get_ex_data( - rsa: *const RSA, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_flags"] - pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_encrypt"] + pub fn RSA_encrypt( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_test_flags"] - pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_decrypt"] + pub fn RSA_decrypt( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_blinding_on"] - pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_encrypt"] + pub fn RSA_public_encrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_generate_key"] - pub fn RSA_generate_key( - bits: ::std::os::raw::c_int, - e: u64, - callback: *mut ::std::os::raw::c_void, - cb_arg: *mut ::std::os::raw::c_void, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_decrypt"] + pub fn RSA_private_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey"] - pub fn d2i_RSAPublicKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign"] + pub fn RSA_sign( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPublicKey"] - pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign_pss_mgf1"] + pub fn RSA_sign_pss_mgf1( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey"] - pub fn d2i_RSAPrivateKey( - out: *mut *mut RSA, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_sign_raw"] + pub fn RSA_sign_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSAPrivateKey"] - pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify"] + pub fn RSA_verify( + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + sig: *const u8, + sig_len: usize, + rsa: *mut RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_PSS"] - pub fn RSA_padding_add_PKCS1_PSS( - rsa: *const RSA, - EM: *mut u8, - mHash: *const u8, - Hash: *const EVP_MD, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_pss_mgf1"] + pub fn RSA_verify_pss_mgf1( + rsa: *mut RSA, + digest: *const u8, + digest_len: usize, + md: *const EVP_MD, + mgf1_md: *const EVP_MD, + salt_len: ::std::os::raw::c_int, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_verify_PKCS1_PSS"] - pub fn RSA_verify_PKCS1_PSS( - rsa: *const RSA, - mHash: *const u8, - Hash: *const EVP_MD, - EM: *const u8, - sLen: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_raw"] + pub fn RSA_verify_raw( + rsa: *mut RSA, + out_len: *mut usize, + out: *mut u8, + max_out: usize, + in_: *const u8, + in_len: usize, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_padding_add_PKCS1_OAEP"] - pub fn RSA_padding_add_PKCS1_OAEP( - to: *mut u8, - to_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_encrypt"] + pub fn RSA_private_encrypt( + flen: usize, from: *const u8, - from_len: usize, - param: *const u8, - param_len: usize, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_print"] - pub fn RSA_print( - bio: *mut BIO, - rsa: *const RSA, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_decrypt"] + pub fn RSA_public_decrypt( + flen: usize, + from: *const u8, + to: *mut u8, + rsa: *mut RSA, + padding: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_get0_pss_params"] - pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_size"] + pub fn RSA_size(rsa: *const RSA) -> ::std::os::raw::c_uint; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_meth_st { - pub common: openssl_method_common_st, - pub app_data: *mut ::std::os::raw::c_void, - pub init: ::std::option::Option ::std::os::raw::c_int>, - pub finish: ::std::option::Option ::std::os::raw::c_int>, - pub size: ::std::option::Option usize>, - pub sign: ::std::option::Option< - unsafe extern "C" fn( - type_: ::std::os::raw::c_int, - m: *const u8, - m_length: ::std::os::raw::c_uint, - sigret: *mut u8, - siglen: *mut ::std::os::raw::c_uint, - rsa: *const RSA, - ) -> ::std::os::raw::c_int, - >, - pub sign_raw: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub decrypt: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out_len: *mut usize, - out: *mut u8, - max_out: usize, - in_: *const u8, - in_len: usize, - padding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub private_transform: ::std::option::Option< - unsafe extern "C" fn( - rsa: *mut RSA, - out: *mut u8, - in_: *const u8, - len: usize, - ) -> ::std::os::raw::c_int, - >, - pub flags: ::std::os::raw::c_int, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_is_opaque"] + pub fn RSA_is_opaque(rsa: *const RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_meth_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(rsa_meth_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_meth_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).common) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(common) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).app_data) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(app_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).init) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(init) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).finish) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(finish) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sign_raw) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(sign_raw) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).decrypt) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(decrypt) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).private_transform) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(private_transform) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_meth_st), - "::", - stringify!(flags) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSAPublicKey_dup"] + pub fn RSAPublicKey_dup(rsa: *const RSA) -> *mut RSA; } -impl Default for rsa_meth_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_fips_0_13_0_RSAPrivateKey_dup"] + pub fn RSAPrivateKey_dup(rsa: *const RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct bn_blinding_st { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_check_key"] + pub fn RSA_check_key(rsa: *const RSA) -> ::std::os::raw::c_int; } -pub type BN_BLINDING = bn_blinding_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct rsa_st { - pub meth: *mut RSA_METHOD, - pub n: *mut BIGNUM, - pub e: *mut BIGNUM, - pub d: *mut BIGNUM, - pub p: *mut BIGNUM, - pub q: *mut BIGNUM, - pub dmp1: *mut BIGNUM, - pub dmq1: *mut BIGNUM, - pub iqmp: *mut BIGNUM, - pub pss: *mut RSASSA_PSS_PARAMS, - pub ex_data: CRYPTO_EX_DATA, - pub references: CRYPTO_refcount_t, - pub flags: ::std::os::raw::c_int, - pub lock: CRYPTO_MUTEX, - pub mont_n: *mut BN_MONT_CTX, - pub mont_p: *mut BN_MONT_CTX, - pub mont_q: *mut BN_MONT_CTX, - pub d_fixed: *mut BIGNUM, - pub dmp1_fixed: *mut BIGNUM, - pub dmq1_fixed: *mut BIGNUM, - pub inv_small_mod_large_mont: *mut BIGNUM, - pub num_blindings: usize, - pub blindings: *mut *mut BN_BLINDING, - pub blindings_inuse: *mut ::std::os::raw::c_uchar, - pub blinding_fork_generation: u64, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 7usize], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_check_fips"] + pub fn RSA_check_fips(key: *mut RSA) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_rsa_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 248usize, - concat!("Size of: ", stringify!(rsa_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).meth) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(meth) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).n) as usize - ptr as usize }, - 8usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(n)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).e) as usize - ptr as usize }, - 16usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(e)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 24usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(d)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).p) as usize - ptr as usize }, - 32usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(p)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).q) as usize - ptr as usize }, - 40usize, - concat!("Offset of field: ", stringify!(rsa_st), "::", stringify!(q)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iqmp) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(iqmp) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pss) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(pss) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ex_data) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(ex_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).references) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(references) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).lock) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(lock) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_n) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_n) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_p) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_p) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).mont_q) as usize - ptr as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(mont_q) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d_fixed) as usize - ptr as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(d_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmp1_fixed) as usize - ptr as usize }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmp1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dmq1_fixed) as usize - ptr as usize }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(dmq1_fixed) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inv_small_mod_large_mont) as usize - ptr as usize }, - 200usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(inv_small_mod_large_mont) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).num_blindings) as usize - ptr as usize }, - 208usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(num_blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings) as usize - ptr as usize }, - 216usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blindings_inuse) as usize - ptr as usize }, - 224usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blindings_inuse) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).blinding_fork_generation) as usize - ptr as usize }, - 232usize, - concat!( - "Offset of field: ", - stringify!(rsa_st), - "::", - stringify!(blinding_fork_generation) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS_mgf1"] + pub fn RSA_verify_PKCS1_PSS_mgf1( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl Default for rsa_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_fips_0_13_0_RSA_padding_add_PKCS1_PSS_mgf1"] + pub fn RSA_padding_add_PKCS1_PSS_mgf1( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + mgf1Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } -impl rsa_st { - #[inline] - pub fn private_key_frozen(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_private_key_frozen(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - private_key_frozen: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let private_key_frozen: u32 = unsafe { ::std::mem::transmute(private_key_frozen) }; - private_key_frozen as u64 - }); - __bindgen_bitfield_unit - } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP_mgf1"] + pub fn RSA_padding_add_PKCS1_OAEP_mgf1( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + md: *const EVP_MD, + mgf1md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -pub type sk_X509_free_func = ::std::option::Option; -pub type sk_X509_copy_func = - ::std::option::Option *mut X509>; -pub type sk_X509_cmp_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut *const X509, arg2: *mut *const X509) -> ::std::os::raw::c_int, ->; -pub type sk_X509_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_it"] - pub static X509_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS1_MGF1"] + pub fn PKCS1_MGF1( + out: *mut u8, + len: usize, + seed: *const u8, + seed_len: usize, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_add_pkcs1_prefix"] + pub fn RSA_add_pkcs1_prefix( + out_msg: *mut *mut u8, + out_msg_len: *mut usize, + is_alloced: *mut ::std::os::raw::c_int, + hash_nid: ::std::os::raw::c_int, + digest: *const u8, + digest_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_up_ref"] - pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_parse_public_key"] + pub fn RSA_parse_public_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_chain_up_ref"] - pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_key_from_bytes"] + pub fn RSA_public_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_dup"] - pub fn X509_dup(x509: *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_marshal_public_key"] + pub fn RSA_marshal_public_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_free"] - pub fn X509_free(x509: *mut X509); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_public_key_to_bytes"] + pub fn RSA_public_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509"] - pub fn d2i_X509( - out: *mut *mut X509, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_parse_private_key"] + pub fn RSA_parse_private_key(cbs: *mut CBS) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_parse_from_buffer"] - pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_key_from_bytes"] + pub fn RSA_private_key_from_bytes(in_: *const u8, in_len: usize) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509"] - pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_marshal_private_key"] + pub fn RSA_marshal_private_key(cbb: *mut CBB, rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_version"] - pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_private_key_to_bytes"] + pub fn RSA_private_key_to_bytes( + out_bytes: *mut *mut u8, + out_len: *mut usize, + rsa: *const RSA, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_serialNumber"] - pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_crt"] + pub fn RSA_new_private_key_no_crt( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notBefore"] - pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_no_e"] + pub fn RSA_new_private_key_no_e(n: *const BIGNUM, d: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_notAfter"] - pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_public_key_large_e"] + pub fn RSA_new_public_key_large_e(n: *const BIGNUM, e: *const BIGNUM) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_issuer_name"] - pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_private_key_large_e"] + pub fn RSA_new_private_key_large_e( + n: *const BIGNUM, + e: *const BIGNUM, + d: *const BIGNUM, + p: *const BIGNUM, + q: *const BIGNUM, + dmp1: *const BIGNUM, + dmq1: *const BIGNUM, + iqmp: *const BIGNUM, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_subject_name"] - pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_ex_new_index"] + pub fn RSA_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_fips_0_12_15_X509_get_X509_PUBKEY"] - pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_ex_data"] + pub fn RSA_set_ex_data( + rsa: *mut RSA, + 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_fips_0_12_15_X509_get_pubkey"] - pub fn X509_get_pubkey(x509: *mut X509) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get_ex_data"] + pub fn RSA_get_ex_data( + rsa: *const RSA, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_pubkey_bitstr"] - pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_flags"] + pub fn RSA_flags(rsa: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_uids"] - pub fn X509_get0_uids( - x509: *const X509, - out_issuer_uid: *mut *const ASN1_BIT_STRING, - out_subject_uid: *mut *const ASN1_BIT_STRING, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_set_flags"] + pub fn RSA_set_flags(rsa: *mut RSA, flags: ::std::os::raw::c_int); } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_EXTENSION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_test_flags"] + pub fn RSA_test_flags(rsa: *const RSA, flags: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_extensions"] - pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_blinding_on"] + pub fn RSA_blinding_on(rsa: *mut RSA, ctx: *mut BN_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_count"] - pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_blinding_off_temp_for_accp_compatibility"] + pub fn RSA_blinding_off_temp_for_accp_compatibility(rsa: *mut RSA); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_NID"] - pub fn X509_get_ext_by_NID( - x: *const X509, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_pkey_ctx_ctrl"] + pub fn RSA_pkey_ctx_ctrl( + ctx: *mut EVP_PKEY_CTX, + optype: ::std::os::raw::c_int, + cmd: ::std::os::raw::c_int, + p1: ::std::os::raw::c_int, + p2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_OBJ"] - pub fn X509_get_ext_by_OBJ( - x: *const X509, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_generate_key"] + pub fn RSA_generate_key( + bits: ::std::os::raw::c_int, + e: u64, + callback: *mut ::std::os::raw::c_void, + cb_arg: *mut ::std::os::raw::c_void, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext_by_critical"] - pub fn X509_get_ext_by_critical( - x: *const X509, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPublicKey"] + pub fn d2i_RSAPublicKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_ext"] - pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSAPublicKey"] + pub fn i2d_RSAPublicKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_tbs_sigalg"] - pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_RSAPrivateKey"] + pub fn d2i_RSAPrivateKey( + out: *mut *mut RSA, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_signature"] - pub fn X509_get0_signature( - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - x509: *const X509, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_RSAPrivateKey"] + pub fn i2d_RSAPrivateKey(in_: *const RSA, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_signature_nid"] - pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_PSS"] + pub fn RSA_padding_add_PKCS1_PSS( + rsa: *const RSA, + EM: *mut u8, + mHash: *const u8, + Hash: *const EVP_MD, + sLen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_tbs"] - pub fn i2d_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_verify_PKCS1_PSS"] + pub fn RSA_verify_PKCS1_PSS( + rsa: *const RSA, + mHash: *const u8, + Hash: *const EVP_MD, + EM: *const u8, + sLen: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_new"] - pub fn X509_new() -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_padding_add_PKCS1_OAEP"] + pub fn RSA_padding_add_PKCS1_OAEP( + to: *mut u8, + to_len: usize, + from: *const u8, + from_len: usize, + param: *const u8, + param_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_version"] - pub fn X509_set_version( - x509: *mut X509, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_print"] + pub fn RSA_print( + bio: *mut BIO, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_serialNumber"] - pub fn X509_set_serialNumber( - x509: *mut X509, - serial: *const ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_print_fp"] + pub fn RSA_print_fp( + fp: *mut FILE, + rsa: *const RSA, + indent: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notBefore"] - pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_get0_pss_params"] + pub fn RSA_get0_pss_params(rsa: *const RSA) -> *const RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_notAfter"] - pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_new_method_no_e"] + pub fn RSA_new_method_no_e(engine: *const ENGINE, n: *const BIGNUM) -> *mut RSA; } +pub type sk_X509_free_func = ::std::option::Option; +pub type sk_X509_copy_func = + ::std::option::Option *mut X509>; +pub type sk_X509_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509, + arg2: *const *const X509, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notBefore"] - pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_it"] + pub static X509_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_getm_notAfter"] - pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_up_ref"] + pub fn X509_up_ref(x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_issuer_name"] - pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_chain_up_ref"] + pub fn X509_chain_up_ref(chain: *mut stack_st_X509) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_subject_name"] - pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_dup"] + pub fn X509_dup(x509: *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set_pubkey"] - pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_free"] + pub fn X509_free(x509: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_delete_ext"] - pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509"] + pub fn d2i_X509( + out: *mut *mut X509, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add_ext"] - pub fn X509_add_ext( - x: *mut X509, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_parse_from_buffer"] + pub fn X509_parse_from_buffer(buf: *mut CRYPTO_BUFFER) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign"] - pub fn X509_sign( - x509: *mut X509, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509"] + pub fn i2d_X509(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_sign_ctx"] - pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_version"] + pub fn X509_get_version(x509: *const X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_tbs"] - pub fn i2d_re_X509_tbs( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_serialNumber"] + pub fn X509_get0_serialNumber(x509: *const X509) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_algo"] - pub fn X509_set1_signature_algo( - x509: *mut X509, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_notBefore"] + pub fn X509_get0_notBefore(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_set1_signature_value"] - pub fn X509_set1_signature_value( - x509: *mut X509, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_notAfter"] + pub fn X509_get0_notAfter(x509: *const X509) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_AUX"] - pub fn i2d_X509_AUX( - x509: *mut X509, - outp: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_issuer_name"] + pub fn X509_get_issuer_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_AUX"] - pub fn d2i_X509_AUX( - x509: *mut *mut X509, - inp: *mut *const ::std::os::raw::c_uchar, - length: ::std::os::raw::c_long, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_subject_name"] + pub fn X509_get_subject_name(x509: *const X509) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_set1"] - pub fn X509_alias_set1( - x509: *mut X509, - name: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_X509_PUBKEY"] + pub fn X509_get_X509_PUBKEY(x509: *const X509) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_keyid_set1"] - pub fn X509_keyid_set1( - x509: *mut X509, - id: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_pubkey"] + pub fn X509_get0_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_alias_get0"] - pub fn X509_alias_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_pubkey"] + pub fn X509_get_pubkey(x509: *const X509) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_keyid_get0"] - pub fn X509_keyid_get0( - x509: *mut X509, - out_len: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_pubkey_bitstr"] + pub fn X509_get0_pubkey_bitstr(x509: *const X509) -> *mut ASN1_BIT_STRING; } -pub type sk_X509_CRL_free_func = ::std::option::Option; -pub type sk_X509_CRL_copy_func = - ::std::option::Option *mut X509_CRL>; -pub type sk_X509_CRL_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_CRL, - arg2: *mut *const X509_CRL, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_CRL_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_CRL, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_it"] - pub static X509_CRL_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_check_private_key"] + pub fn X509_check_private_key( + x509: *const X509, + pkey: *const EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_up_ref"] - pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_uids"] + pub fn X509_get0_uids( + x509: *const X509, + out_issuer_uid: *mut *const ASN1_BIT_STRING, + out_subject_uid: *mut *const ASN1_BIT_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_dup"] - pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_extension_flags"] + pub fn X509_get_extension_flags(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_free"] - pub fn X509_CRL_free(crl: *mut X509_CRL); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_pathlen"] + pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_CRL"] - pub fn d2i_X509_CRL( - out: *mut *mut X509_CRL, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_key_usage"] + pub fn X509_get_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_CRL"] - pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_extended_key_usage"] + pub fn X509_get_extended_key_usage(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_version"] - pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_subject_key_id"] + pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_lastUpdate"] - pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_key_id"] + pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_NAME { + _unused: [u8; 0], } +pub type sk_GENERAL_NAME_free_func = + ::std::option::Option; +pub type sk_GENERAL_NAME_copy_func = + ::std::option::Option *mut GENERAL_NAME>; +pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_NAME, + arg2: *const *const GENERAL_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type GENERAL_NAMES = stack_st_GENERAL_NAME; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_nextUpdate"] - pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_issuer"] + pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_issuer"] - pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_authority_serial"] + pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_REVOKED { +pub struct stack_st_X509_EXTENSION { _unused: [u8; 0], } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_REVOKED"] - pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_extensions"] - pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_extensions"] + pub fn X509_get0_extensions(x509: *const X509) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_count"] - pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_count"] + pub fn X509_get_ext_count(x: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_NID"] - pub fn X509_CRL_get_ext_by_NID( - x: *const X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_NID"] + pub fn X509_get_ext_by_NID( + x: *const X509, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_OBJ"] - pub fn X509_CRL_get_ext_by_OBJ( - x: *const X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_OBJ"] + pub fn X509_get_ext_by_OBJ( + x: *const X509, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext_by_critical"] - pub fn X509_CRL_get_ext_by_critical( - x: *const X509_CRL, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_by_critical"] + pub fn X509_get_ext_by_critical( + x: *const X509, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_ext"] - pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext"] + pub fn X509_get_ext(x: *const X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_signature"] - pub fn X509_CRL_get0_signature( - crl: *const X509_CRL, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_ext_d2i"] + pub fn X509_get_ext_d2i( + x509: *const X509, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_signature_nid"] - pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_tbs_sigalg"] + pub fn X509_get0_tbs_sigalg(x509: *const X509) -> *const X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_CRL_tbs"] - pub fn i2d_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_signature_info"] + pub fn X509_get_signature_info( + x509: *mut X509, + digest_nid: *mut ::std::os::raw::c_int, + pubkey_nid: *mut ::std::os::raw::c_int, + sec_bits: *mut ::std::os::raw::c_int, + flags: *mut u32, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_new"] - pub fn X509_CRL_new() -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get0_signature"] + pub fn X509_get0_signature( + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + x509: *const X509, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_version"] - pub fn X509_CRL_set_version( - crl: *mut X509_CRL, - version: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_signature_nid"] + pub fn X509_get_signature_nid(x509: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set_issuer_name"] - pub fn X509_CRL_set_issuer_name( - crl: *mut X509_CRL, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_tbs"] + pub fn i2d_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_lastUpdate"] - pub fn X509_CRL_set1_lastUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify"] + pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_nextUpdate"] - pub fn X509_CRL_set1_nextUpdate( - crl: *mut X509_CRL, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_email"] + pub fn X509_get1_email(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_delete_ext"] - pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) - -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get1_ocsp"] + pub fn X509_get1_ocsp(x509: *const X509) -> *mut stack_st_OPENSSL_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add_ext"] - pub fn X509_CRL_add_ext( - x: *mut X509_CRL, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_email_free"] + pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign"] - pub fn X509_CRL_sign( - crl: *mut X509_CRL, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_new"] + pub fn X509_new() -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sign_ctx"] - pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_version"] + pub fn X509_set_version( + x509: *mut X509, + version: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_CRL_tbs"] - pub fn i2d_re_X509_CRL_tbs( - crl: *mut X509_CRL, - outp: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_serialNumber"] + pub fn X509_set_serialNumber( + x509: *mut X509, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_signature_algo"] - pub fn X509_CRL_set1_signature_algo( - crl: *mut X509_CRL, - algo: *const X509_ALGOR, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notBefore"] + pub fn X509_set1_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_set1_signature_value"] - pub fn X509_CRL_set1_signature_value( - crl: *mut X509_CRL, - sig: *const u8, - sig_len: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_notAfter"] + pub fn X509_set1_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_it"] - pub static X509_REQ_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notBefore"] + pub fn X509_getm_notBefore(x509: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_dup"] - pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_getm_notAfter"] + pub fn X509_getm_notAfter(x: *mut X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_free"] - pub fn X509_REQ_free(req: *mut X509_REQ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_issuer_name"] + pub fn X509_set_issuer_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REQ"] - pub fn d2i_X509_REQ( - out: *mut *mut X509_REQ, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_subject_name"] + pub fn X509_set_subject_name(x509: *mut X509, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REQ"] - pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set_pubkey"] + pub fn X509_set_pubkey(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_version"] - pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_delete_ext"] + pub fn X509_delete_ext(x: *mut X509, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_subject_name"] - pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add_ext"] + pub fn X509_add_ext( + x: *mut X509, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_pubkey"] - pub fn X509_REQ_get_pubkey(req: *mut X509_REQ) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_ext_i2d"] + pub fn X509_add1_ext_i2d( + x: *mut X509, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get0_signature"] - pub fn X509_REQ_get0_signature( - req: *const X509_REQ, - out_sig: *mut *const ASN1_BIT_STRING, - out_alg: *mut *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign"] + pub fn X509_sign( + x509: *mut X509, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_signature_nid"] - pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_sign_ctx"] + pub fn X509_sign_ctx(x509: *mut X509, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_new"] - pub fn X509_REQ_new() -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_tbs"] + pub fn i2d_re_X509_tbs( + x509: *mut X509, + outp: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_version"] - pub fn X509_REQ_set_version( - req: *mut X509_REQ, - version: ::std::os::raw::c_long, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_algo"] + pub fn X509_set1_signature_algo( + x509: *mut X509, + algo: *const X509_ALGOR, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_subject_name"] - pub fn X509_REQ_set_subject_name( - req: *mut X509_REQ, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_set1_signature_value"] + pub fn X509_set1_signature_value( + x509: *mut X509, + sig: *const u8, + sig_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set_pubkey"] - pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_AUX"] + pub fn i2d_X509_AUX(x509: *mut X509, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign"] - pub fn X509_REQ_sign( - req: *mut X509_REQ, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_AUX"] + pub fn d2i_X509_AUX( + x509: *mut *mut X509, + inp: *mut *const u8, + length: ::std::os::raw::c_long, + ) -> *mut X509; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_set1"] + pub fn X509_alias_set1( + x509: *mut X509, + name: *const u8, + len: ossl_ssize_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_sign_ctx"] - pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_set1"] + pub fn X509_keyid_set1( + x509: *mut X509, + id: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_re_X509_REQ_tbs"] - pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_alias_get0"] + pub fn X509_alias_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_algo"] - pub fn X509_REQ_set1_signature_algo( - req: *mut X509_REQ, - algo: *const X509_ALGOR, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_keyid_get0"] + pub fn X509_keyid_get0(x509: *const X509, out_len: *mut ::std::os::raw::c_int) -> *const u8; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_trust_object"] + pub fn X509_add1_trust_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_set1_signature_value"] - pub fn X509_REQ_set1_signature_value( - req: *mut X509_REQ, - sig: *const u8, - sig_len: usize, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_add1_reject_object"] + pub fn X509_add1_reject_object( + x509: *mut X509, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME_ENTRY { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_trust_clear"] + pub fn X509_trust_clear(x509: *mut X509); } -pub type sk_X509_NAME_ENTRY_free_func = - ::std::option::Option; -pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, ->; -pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_reject_clear"] + pub fn X509_reject_clear(x509: *mut X509); +} +pub type sk_X509_CRL_free_func = ::std::option::Option; +pub type sk_X509_CRL_copy_func = + ::std::option::Option *mut X509_CRL>; +pub type sk_X509_CRL_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME_ENTRY, - arg2: *mut *const X509_NAME_ENTRY, + arg1: *const *const X509_CRL, + arg2: *const *const X509_CRL, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< +pub type sk_X509_CRL_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME_ENTRY, + arg1: *mut X509_CRL, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_NAME { +pub struct stack_st_X509_REVOKED { _unused: [u8; 0], } -pub type sk_X509_NAME_free_func = ::std::option::Option; -pub type sk_X509_NAME_copy_func = - ::std::option::Option *mut X509_NAME>; -pub type sk_X509_NAME_cmp_func = ::std::option::Option< +pub type sk_X509_REVOKED_free_func = + ::std::option::Option; +pub type sk_X509_REVOKED_copy_func = + ::std::option::Option *mut X509_REVOKED>; +pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const X509_NAME, - arg2: *mut *const X509_NAME, + arg1: *const *const X509_REVOKED, + arg2: *const *const X509_REVOKED, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_NAME_delete_if_func = ::std::option::Option< +pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_NAME, + arg1: *mut X509_REVOKED, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_it"] - pub static X509_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_it"] + pub static X509_CRL_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_new"] - pub fn X509_NAME_new() -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_up_ref"] + pub fn X509_CRL_up_ref(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_free"] - pub fn X509_NAME_free(name: *mut X509_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_dup"] + pub fn X509_CRL_dup(crl: *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME"] - pub fn d2i_X509_NAME( - out: *mut *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_free"] + pub fn X509_CRL_free(crl: *mut X509_CRL); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_CRL"] + pub fn d2i_X509_CRL( + out: *mut *mut X509_CRL, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_NAME; + ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME"] - pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_CRL"] + pub fn i2d_X509_CRL(crl: *mut X509_CRL, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_dup"] - pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_version"] + pub fn X509_CRL_get_version(crl: *const X509_CRL) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get0_der"] - pub fn X509_NAME_get0_der( - name: *mut X509_NAME, - out_der: *mut *const u8, - out_der_len: *mut usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_lastUpdate"] + pub fn X509_CRL_get0_lastUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_set"] - pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_nextUpdate"] + pub fn X509_CRL_get0_nextUpdate(crl: *const X509_CRL) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_entry_count"] - pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_issuer"] + pub fn X509_CRL_get_issuer(crl: *const X509_CRL) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_NID"] - pub fn X509_NAME_get_index_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_by_serial"] + pub fn X509_CRL_get0_by_serial( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_index_by_OBJ"] - pub fn X509_NAME_get_index_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_by_cert"] + pub fn X509_CRL_get0_by_cert( + crl: *mut X509_CRL, + out: *mut *mut X509_REVOKED, + x509: *mut X509, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_entry"] - pub fn X509_NAME_get_entry( - name: *const X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_REVOKED"] + pub fn X509_CRL_get_REVOKED(crl: *mut X509_CRL) -> *mut stack_st_X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_delete_entry"] - pub fn X509_NAME_delete_entry( - name: *mut X509_NAME, - loc: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_extensions"] + pub fn X509_CRL_get0_extensions(crl: *const X509_CRL) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry"] - pub fn X509_NAME_add_entry( - name: *mut X509_NAME, - entry: *const X509_NAME_ENTRY, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_count"] + pub fn X509_CRL_get_ext_count(x: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_OBJ"] - pub fn X509_NAME_add_entry_by_OBJ( - name: *mut X509_NAME, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_NID"] + pub fn X509_CRL_get_ext_by_NID( + x: *const X509_CRL, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_NID"] - pub fn X509_NAME_add_entry_by_NID( - name: *mut X509_NAME, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_OBJ"] + pub fn X509_CRL_get_ext_by_OBJ( + x: *const X509_CRL, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_add_entry_by_txt"] - pub fn X509_NAME_add_entry_by_txt( - name: *mut X509_NAME, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - loc: ::std::os::raw::c_int, - set: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_by_critical"] + pub fn X509_CRL_get_ext_by_critical( + x: *const X509_CRL, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_it"] - pub static X509_NAME_ENTRY_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext"] + pub fn X509_CRL_get_ext(x: *const X509_CRL, loc: ::std::os::raw::c_int) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_new"] - pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_ext_d2i"] + pub fn X509_CRL_get_ext_d2i( + crl: *const X509_CRL, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_free"] - pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get0_signature"] + pub fn X509_CRL_get0_signature( + crl: *const X509_CRL, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_NAME_ENTRY"] - pub fn d2i_X509_NAME_ENTRY( - out: *mut *mut X509_NAME_ENTRY, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_get_signature_nid"] + pub fn X509_CRL_get_signature_nid(crl: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_NAME_ENTRY"] - pub fn i2d_X509_NAME_ENTRY( - in_: *const X509_NAME_ENTRY, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_CRL_tbs"] + pub fn i2d_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_dup"] - pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_verify"] + pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_object"] - pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_new"] + pub fn X509_CRL_new() -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_object"] - pub fn X509_NAME_ENTRY_set_object( - entry: *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set_version"] + pub fn X509_CRL_set_version( + crl: *mut X509_CRL, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_get_data"] - pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set_issuer_name"] + pub fn X509_CRL_set_issuer_name( + crl: *mut X509_CRL, + name: *mut X509_NAME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set_data"] - pub fn X509_NAME_ENTRY_set_data( - entry: *mut X509_NAME_ENTRY, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_lastUpdate"] + pub fn X509_CRL_set1_lastUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_set"] - pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_nextUpdate"] + pub fn X509_CRL_set1_nextUpdate( + crl: *mut X509_CRL, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_OBJ"] - pub fn X509_NAME_ENTRY_create_by_OBJ( - out: *mut *mut X509_NAME_ENTRY, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add0_revoked"] + pub fn X509_CRL_add0_revoked( + crl: *mut X509_CRL, + rev: *mut X509_REVOKED, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_NID"] - pub fn X509_NAME_ENTRY_create_by_NID( - out: *mut *mut X509_NAME_ENTRY, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_sort"] + pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_ENTRY_create_by_txt"] - pub fn X509_NAME_ENTRY_create_by_txt( - out: *mut *mut X509_NAME_ENTRY, - field: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const u8, - len: ::std::os::raw::c_int, - ) -> *mut X509_NAME_ENTRY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_delete_ext"] + pub fn X509_CRL_delete_ext(x: *mut X509_CRL, loc: ::std::os::raw::c_int) + -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_it"] - pub static X509_EXTENSION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add_ext"] + pub fn X509_CRL_add_ext( + x: *mut X509_CRL, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_new"] - pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_add1_ext_i2d"] + pub fn X509_CRL_add1_ext_i2d( + x: *mut X509_CRL, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_free"] - pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_sign"] + pub fn X509_CRL_sign( + crl: *mut X509_CRL, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSION"] - pub fn d2i_X509_EXTENSION( - out: *mut *mut X509_EXTENSION, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_sign_ctx"] + pub fn X509_CRL_sign_ctx(crl: *mut X509_CRL, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSION"] - pub fn i2d_X509_EXTENSION( - alg: *const X509_EXTENSION, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_re_X509_CRL_tbs"] + pub fn i2d_re_X509_CRL_tbs( + crl: *mut X509_CRL, + outp: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_dup"] - pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_algo"] + pub fn X509_CRL_set1_signature_algo( + crl: *mut X509_CRL, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_NID"] - pub fn X509_EXTENSION_create_by_NID( - ex: *mut *mut X509_EXTENSION, - nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_set1_signature_value"] + pub fn X509_CRL_set1_signature_value( + crl: *mut X509_CRL, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_create_by_OBJ"] - pub fn X509_EXTENSION_create_by_OBJ( - ex: *mut *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - crit: ::std::os::raw::c_int, - data: *const ASN1_OCTET_STRING, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_CRL_http_nbio"] + pub fn X509_CRL_http_nbio( + rctx: *mut OCSP_REQ_CTX, + pcrl: *mut *mut X509_CRL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_it"] + pub static X509_REVOKED_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_new"] + pub fn X509_REVOKED_new() -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_object"] - pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_free"] + pub fn X509_REVOKED_free(rev: *mut X509_REVOKED); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_data"] - pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REVOKED"] + pub fn d2i_X509_REVOKED( + out: *mut *mut X509_REVOKED, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_get_critical"] - pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REVOKED"] + pub fn i2d_X509_REVOKED(alg: *const X509_REVOKED, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_object"] - pub fn X509_EXTENSION_set_object( - ex: *mut X509_EXTENSION, - obj: *const ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_dup"] + pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_critical"] - pub fn X509_EXTENSION_set_critical( - ex: *mut X509_EXTENSION, - crit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_serialNumber"] + pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSION_set_data"] - pub fn X509_EXTENSION_set_data( - ex: *mut X509_EXTENSION, - data: *const ASN1_OCTET_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_serialNumber"] + pub fn X509_REVOKED_set_serialNumber( + revoked: *mut X509_REVOKED, + serial: *const ASN1_INTEGER, ) -> ::std::os::raw::c_int; } -pub type sk_X509_EXTENSION_free_func = - ::std::option::Option; -pub type sk_X509_EXTENSION_copy_func = - ::std::option::Option *mut X509_EXTENSION>; -pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_EXTENSION, - arg2: *mut *const X509_EXTENSION, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_EXTENSION, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_EXTENSIONS_it"] - pub static X509_EXTENSIONS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_revocationDate"] + pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_EXTENSIONS"] - pub fn d2i_X509_EXTENSIONS( - out: *mut *mut X509_EXTENSIONS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_EXTENSIONS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_set_revocationDate"] + pub fn X509_REVOKED_set_revocationDate( + revoked: *mut X509_REVOKED, + tm: *const ASN1_TIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_EXTENSIONS"] - pub fn i2d_X509_EXTENSIONS( - alg: *const X509_EXTENSIONS, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get0_extensions"] + pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_count"] - pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_count"] + pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_NID"] - pub fn X509v3_get_ext_by_NID( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_NID"] + pub fn X509_REVOKED_get_ext_by_NID( + x: *const X509_REVOKED, nid: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_OBJ"] - pub fn X509v3_get_ext_by_OBJ( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_OBJ"] + pub fn X509_REVOKED_get_ext_by_OBJ( + x: *const X509_REVOKED, obj: *const ASN1_OBJECT, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext_by_critical"] - pub fn X509v3_get_ext_by_critical( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_by_critical"] + pub fn X509_REVOKED_get_ext_by_critical( + x: *const X509_REVOKED, crit: ::std::os::raw::c_int, lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_get_ext"] - pub fn X509v3_get_ext( - x: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext"] + pub fn X509_REVOKED_get_ext( + x: *const X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_delete_ext"] - pub fn X509v3_delete_ext( - x: *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_delete_ext"] + pub fn X509_REVOKED_delete_ext( + x: *mut X509_REVOKED, loc: ::std::os::raw::c_int, ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509v3_add_ext"] - pub fn X509v3_add_ext( - x: *mut *mut stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add_ext"] + pub fn X509_REVOKED_add_ext( + x: *mut X509_REVOKED, ex: *const X509_EXTENSION, loc: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_EXTENSION; + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ALGOR { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_get_ext_d2i"] + pub fn X509_REVOKED_get_ext_d2i( + revoked: *const X509_REVOKED, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -pub type sk_X509_ALGOR_free_func = - ::std::option::Option; -pub type sk_X509_ALGOR_copy_func = - ::std::option::Option *mut X509_ALGOR>; -pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ALGOR, - arg2: *mut *const X509_ALGOR, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ALGOR, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_it"] - pub static X509_ALGOR_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REVOKED_add1_ext_i2d"] + pub fn X509_REVOKED_add1_ext_i2d( + x: *mut X509_REVOKED, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_new"] - pub fn X509_ALGOR_new() -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_it"] + pub static X509_REQ_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_dup"] - pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_dup"] + pub fn X509_REQ_dup(req: *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_free"] - pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_free"] + pub fn X509_REQ_free(req: *mut X509_REQ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ALGOR"] - pub fn d2i_X509_ALGOR( - out: *mut *mut X509_ALGOR, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_REQ"] + pub fn d2i_X509_REQ( + out: *mut *mut X509_REQ, inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_ALGOR; + ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ALGOR"] - pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_REQ"] + pub fn i2d_X509_REQ(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set0"] - pub fn X509_ALGOR_set0( - alg: *mut X509_ALGOR, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_version"] + pub fn X509_REQ_get_version(req: *const X509_REQ) -> ::std::os::raw::c_long; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_get0"] - pub fn X509_ALGOR_get0( - out_obj: *mut *const ASN1_OBJECT, - out_param_type: *mut ::std::os::raw::c_int, - out_param_value: *mut *const ::std::os::raw::c_void, - alg: *const X509_ALGOR, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_subject_name"] + pub fn X509_REQ_get_subject_name(req: *const X509_REQ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_set_md"] - pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_pubkey"] + pub fn X509_REQ_get0_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ALGOR_cmp"] - pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_pubkey"] + pub fn X509_REQ_get_pubkey(req: *const X509_REQ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_check_private_key"] + pub fn X509_REQ_check_private_key( + req: *const X509_REQ, + pkey: *const EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_count"] + pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr"] + pub fn X509_REQ_get_attr( + req: *const X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_attr_by_NID"] + pub fn X509_REQ_get_attr_by_NID( + req: *const X509_REQ, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_get_attr_by_OBJ"] + pub fn X509_REQ_get_attr_by_OBJ( + req: *const X509_REQ, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_extension_nid"] + pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_extensions"] + pub fn X509_REQ_get_extensions(req: *const X509_REQ) -> *mut stack_st_X509_EXTENSION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get0_signature"] + pub fn X509_REQ_get0_signature( + req: *const X509_REQ, + out_sig: *mut *const ASN1_BIT_STRING, + out_alg: *mut *const X509_ALGOR, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get_signature_nid"] + pub fn X509_REQ_get_signature_nid(req: *const X509_REQ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_verify"] + pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_get1_email"] + pub fn X509_REQ_get1_email(req: *const X509_REQ) -> *mut stack_st_OPENSSL_STRING; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_new"] + pub fn X509_REQ_new() -> *mut X509_REQ; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_version"] + pub fn X509_REQ_set_version( + req: *mut X509_REQ, + version: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_subject_name"] + pub fn X509_REQ_set_subject_name( + req: *mut X509_REQ, + name: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set_pubkey"] + pub fn X509_REQ_set_pubkey(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_delete_attr"] + pub fn X509_REQ_delete_attr( + req: *mut X509_REQ, + loc: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr"] + pub fn X509_REQ_add1_attr( + req: *mut X509_REQ, + attr: *const X509_ATTRIBUTE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_OBJ"] + pub fn X509_REQ_add1_attr_by_OBJ( + req: *mut X509_REQ, + obj: *const ASN1_OBJECT, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_NID"] + pub fn X509_REQ_add1_attr_by_NID( + req: *mut X509_REQ, + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add1_attr_by_txt"] + pub fn X509_REQ_add1_attr_by_txt( + req: *mut X509_REQ, + attrname: *const ::std::os::raw::c_char, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_add_extensions_nid"] + pub fn X509_REQ_add_extensions_nid( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_add_extensions"] + pub fn X509_REQ_add_extensions( + req: *mut X509_REQ, + exts: *const stack_st_X509_EXTENSION, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_sign"] + pub fn X509_REQ_sign( + req: *mut X509_REQ, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_sign_ctx"] + pub fn X509_REQ_sign_ctx(req: *mut X509_REQ, ctx: *mut EVP_MD_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_re_X509_REQ_tbs"] + pub fn i2d_re_X509_REQ_tbs(req: *mut X509_REQ, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_REQ_set1_signature_algo"] + pub fn X509_REQ_set1_signature_algo( + req: *mut X509_REQ, + algo: *const X509_ALGOR, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_REQ_set1_signature_value"] + pub fn X509_REQ_set1_signature_value( + req: *mut X509_REQ, + sig: *const u8, + sig_len: usize, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME_ENTRY { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; +pub type sk_X509_NAME_ENTRY_free_func = + ::std::option::Option; +pub type sk_X509_NAME_ENTRY_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY, +>; +pub type sk_X509_NAME_ENTRY_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME_ENTRY, + arg2: *const *const X509_NAME_ENTRY, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_ENTRY_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME_ENTRY, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_NAME { + _unused: [u8; 0], } +pub type sk_X509_NAME_free_func = ::std::option::Option; +pub type sk_X509_NAME_copy_func = + ::std::option::Option *mut X509_NAME>; +pub type sk_X509_NAME_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_NAME, + arg2: *const *const X509_NAME, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_NAME_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_NAME, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_it"] + pub static X509_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_new"] + pub fn X509_NAME_new() -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_free"] + pub fn X509_NAME_free(name: *mut X509_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_NAME"] + pub fn d2i_X509_NAME( + out: *mut *mut X509_NAME, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_NAME"] + pub fn i2d_X509_NAME(in_: *mut X509_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_dup"] + pub fn X509_NAME_dup(name: *mut X509_NAME) -> *mut X509_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_cmp"] + pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get0_der"] + pub fn X509_NAME_get0_der( + name: *mut X509_NAME, + out_der: *mut *const u8, + out_der_len: *mut usize, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_set"] + pub fn X509_NAME_set(xn: *mut *mut X509_NAME, name: *mut X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_entry_count"] + pub fn X509_NAME_entry_count(name: *const X509_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_get_index_by_NID"] + pub fn X509_NAME_get_index_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_index_by_OBJ"] + pub fn X509_NAME_get_index_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_get_entry"] + pub fn X509_NAME_get_entry( + name: *const X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_delete_entry"] + pub fn X509_NAME_delete_entry( + name: *mut X509_NAME, + loc: ::std::os::raw::c_int, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry"] + pub fn X509_NAME_add_entry( + name: *mut X509_NAME, + entry: *const X509_NAME_ENTRY, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_add_entry_by_OBJ"] + pub fn X509_NAME_add_entry_by_OBJ( + name: *mut X509_NAME, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_NID"] + pub fn X509_NAME_add_entry_by_NID( + name: *mut X509_NAME, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_add_entry_by_txt"] + pub fn X509_NAME_add_entry_by_txt( + name: *mut X509_NAME, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + loc: ::std::os::raw::c_int, + set: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_it"] + pub static X509_NAME_ENTRY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_new"] + pub fn X509_NAME_ENTRY_new() -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_free"] + pub fn X509_NAME_ENTRY_free(entry: *mut X509_NAME_ENTRY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_NAME_ENTRY"] + pub fn d2i_X509_NAME_ENTRY( + out: *mut *mut X509_NAME_ENTRY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_NAME_ENTRY"] + pub fn i2d_X509_NAME_ENTRY( + in_: *const X509_NAME_ENTRY, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_dup"] + pub fn X509_NAME_ENTRY_dup(entry: *const X509_NAME_ENTRY) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_get_object"] + pub fn X509_NAME_ENTRY_get_object(entry: *const X509_NAME_ENTRY) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set_object"] + pub fn X509_NAME_ENTRY_set_object( + entry: *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_get_data"] + pub fn X509_NAME_ENTRY_get_data(entry: *const X509_NAME_ENTRY) -> *mut ASN1_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_ENTRY_set_data"] + pub fn X509_NAME_ENTRY_set_data( + entry: *mut X509_NAME_ENTRY, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_set"] + pub fn X509_NAME_ENTRY_set(entry: *const X509_NAME_ENTRY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_OBJ"] + pub fn X509_NAME_ENTRY_create_by_OBJ( + out: *mut *mut X509_NAME_ENTRY, + obj: *const ASN1_OBJECT, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_NID"] + pub fn X509_NAME_ENTRY_create_by_NID( + out: *mut *mut X509_NAME_ENTRY, + nid: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_NAME_ENTRY_create_by_txt"] + pub fn X509_NAME_ENTRY_create_by_txt( + out: *mut *mut X509_NAME_ENTRY, + field: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const u8, + len: ossl_ssize_t, + ) -> *mut X509_NAME_ENTRY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_it"] + pub static X509_PUBKEY_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_new"] + pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_free"] + pub fn X509_PUBKEY_free(key: *mut X509_PUBKEY); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_PUBKEY"] + pub fn d2i_X509_PUBKEY( + out: *mut *mut X509_PUBKEY, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_PUBKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_PUBKEY"] + pub fn i2d_X509_PUBKEY(key: *const X509_PUBKEY, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set"] + pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0"] + pub fn X509_PUBKEY_get0(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get"] + pub fn X509_PUBKEY_get(key: *const X509_PUBKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_set0_param"] + pub fn X509_PUBKEY_set0_param( + pub_: *mut X509_PUBKEY, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, + key: *mut u8, + key_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_param"] + pub fn X509_PUBKEY_get0_param( + out_obj: *mut *mut ASN1_OBJECT, + out_key: *mut *const u8, + out_key_len: *mut ::std::os::raw::c_int, + out_alg: *mut *mut X509_ALGOR, + pub_: *mut X509_PUBKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PUBKEY_get0_public_key"] + pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_it"] + pub static X509_EXTENSION_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_new"] + pub fn X509_EXTENSION_new() -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_free"] + pub fn X509_EXTENSION_free(ex: *mut X509_EXTENSION); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSION"] + pub fn d2i_X509_EXTENSION( + out: *mut *mut X509_EXTENSION, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_X509_EXTENSION"] + pub fn i2d_X509_EXTENSION( + ex: *const X509_EXTENSION, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_dup"] + pub fn X509_EXTENSION_dup(ex: *const X509_EXTENSION) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_NID"] + pub fn X509_EXTENSION_create_by_NID( + ex: *mut *mut X509_EXTENSION, + nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_create_by_OBJ"] + pub fn X509_EXTENSION_create_by_OBJ( + ex: *mut *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, + crit: ::std::os::raw::c_int, + data: *const ASN1_OCTET_STRING, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_object"] + pub fn X509_EXTENSION_get_object(ex: *const X509_EXTENSION) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_data"] + pub fn X509_EXTENSION_get_data(ne: *const X509_EXTENSION) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSION_get_critical"] + pub fn X509_EXTENSION_get_critical(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_object"] + pub fn X509_EXTENSION_set_object( + ex: *mut X509_EXTENSION, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_critical"] + pub fn X509_EXTENSION_set_critical( + ex: *mut X509_EXTENSION, + crit: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_EXTENSION_set_data"] + pub fn X509_EXTENSION_set_data( + ex: *mut X509_EXTENSION, + data: *const ASN1_OCTET_STRING, + ) -> ::std::os::raw::c_int; } +pub type sk_X509_EXTENSION_free_func = + ::std::option::Option; +pub type sk_X509_EXTENSION_copy_func = + ::std::option::Option *mut X509_EXTENSION>; +pub type sk_X509_EXTENSION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_EXTENSION, + arg2: *const *const X509_EXTENSION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_EXTENSION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_EXTENSION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type X509_EXTENSIONS = stack_st_X509_EXTENSION; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_EXTENSIONS_it"] + pub static X509_EXTENSIONS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_EXTENSIONS"] + pub fn d2i_X509_EXTENSIONS( + out: *mut *mut X509_EXTENSIONS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_EXTENSIONS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_EXTENSIONS"] + pub fn i2d_X509_EXTENSIONS( + alg: *const X509_EXTENSIONS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_count"] + pub fn X509v3_get_ext_count(x: *const stack_st_X509_EXTENSION) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_NID"] + pub fn X509v3_get_ext_by_NID( + x: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_OBJ"] + pub fn X509v3_get_ext_by_OBJ( + x: *const stack_st_X509_EXTENSION, obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext_by_critical"] + pub fn X509v3_get_ext_by_critical( + x: *const stack_st_X509_EXTENSION, + crit: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, ) -> ::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, -} -#[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) - ) - ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_ATTRIBUTE { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_get_ext"] + pub fn X509v3_get_ext( + x: *const stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -pub type sk_X509_ATTRIBUTE_free_func = - ::std::option::Option; -pub type sk_X509_ATTRIBUTE_copy_func = - ::std::option::Option *mut X509_ATTRIBUTE>; -pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_ATTRIBUTE, - arg2: *mut *const X509_ATTRIBUTE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_ATTRIBUTE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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_fips_0_13_0_X509v3_delete_ext"] + pub fn X509v3_delete_ext( + x: *mut stack_st_X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAME { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509v3_add_ext"] + pub fn X509v3_add_ext( + x: *mut *mut stack_st_X509_EXTENSION, + ex: *const X509_EXTENSION, + loc: ::std::os::raw::c_int, + ) -> *mut stack_st_X509_EXTENSION; } #[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: *mut x509_trust_st, - 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, +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct otherName_st { + pub type_id: *mut ASN1_OBJECT, + pub value: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_otherName_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)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(otherName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) + concat!("Alignment of ", stringify!(otherName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_id) 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!(otherName_st), "::", - stringify!(flags) + stringify!(type_id) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).value) 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!(otherName_st), "::", - stringify!(arg2) + stringify!(value) ) ); } -impl Default for x509_trust_st { +impl Default for otherName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20571,156 +20636,49 @@ impl Default for x509_trust_st { } } } -#[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: *mut *const X509_TRUST, - arg2: *mut *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, ->; -pub type sk_X509_REVOKED_free_func = - ::std::option::Option; -pub type sk_X509_REVOKED_copy_func = - ::std::option::Option *mut X509_REVOKED>; -pub type sk_X509_REVOKED_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_REVOKED, - arg2: *mut *const X509_REVOKED, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_REVOKED_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_REVOKED, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_NAMES { - _unused: [u8; 0], -} +pub type OTHERNAME = otherName_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub version: ::std::os::raw::c_int, - pub enc_algor: *mut X509_ALGOR, - pub enc_pkey: *mut ASN1_OCTET_STRING, - pub dec_pkey: *mut EVP_PKEY, - pub key_length: ::std::os::raw::c_int, - pub key_data: *mut ::std::os::raw::c_char, - pub key_free: ::std::os::raw::c_int, - pub cipher: EVP_CIPHER_INFO, +pub struct EDIPartyName_st { + pub nameAssigner: *mut ASN1_STRING, + pub partyName: *mut ASN1_STRING, } #[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_EDIPartyName_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 80usize, - concat!("Size of: ", stringify!(private_key_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(EDIPartyName_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(private_key_st)) + concat!("Alignment of ", stringify!(EDIPartyName_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(version) + stringify!(nameAssigner) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_algor) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(enc_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_length) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_length) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_data) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_data) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).key_free) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(key_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cipher) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), + stringify!(EDIPartyName_st), "::", - stringify!(cipher) + stringify!(partyName) ) ); } -impl Default for private_key_st { +impl Default for EDIPartyName_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20729,1307 +20687,1066 @@ impl Default for private_key_st { } } } +pub type EDIPARTYNAME = EDIPartyName_st; #[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, +#[derive(Copy, Clone)] +pub struct GENERAL_NAME_st { + pub type_: ::std::os::raw::c_int, + pub d: GENERAL_NAME_st__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union GENERAL_NAME_st__bindgen_ty_1 { + pub ptr: *mut ::std::os::raw::c_char, + pub otherName: *mut OTHERNAME, + pub rfc822Name: *mut ASN1_IA5STRING, + pub dNSName: *mut ASN1_IA5STRING, + pub x400Address: *mut ASN1_STRING, + pub directoryName: *mut X509_NAME, + pub ediPartyName: *mut EDIPARTYNAME, + pub uniformResourceIdentifier: *mut ASN1_IA5STRING, + pub iPAddress: *mut ASN1_OCTET_STRING, + pub registeredID: *mut ASN1_OBJECT, + pub ip: *mut ASN1_OCTET_STRING, + pub dirn: *mut X509_NAME, + pub ia5: *mut ASN1_IA5STRING, + pub rid: *mut ASN1_OBJECT, } #[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_GENERAL_NAME_st__bindgen_ty_1() { + 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)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) + concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x509) + stringify!(ptr) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(crl) + stringify!(otherName) ) ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(x_pkey) + stringify!(rfc822Name) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, + unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_cipher) + stringify!(dNSName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, + unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_len) + stringify!(x400Address) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, + unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(X509_info_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(enc_data) + stringify!(directoryName) ) ); -} -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() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], -} -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: *mut *const X509_INFO, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).ediPartyName) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(pubkey) + stringify!(ediPartyName) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spkac_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(challenge) + stringify!(uniformResourceIdentifier) ) ); -} -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() - } - } -} -#[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 }, + unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(spkac) + stringify!(iPAddress) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(sig_algor) + stringify!(registeredID) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(Netscape_spki_st), + stringify!(GENERAL_NAME_st__bindgen_ty_1), "::", - stringify!(signature) + stringify!(ip) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(dirn) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(ia5) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st__bindgen_ty_1), + "::", + stringify!(rid) ) ); } -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_fips_0_12_15_X509_get_pathlen"] - pub fn X509_get_pathlen(x509: *mut X509) -> ::std::os::raw::c_long; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_verify"] - pub fn X509_verify(x509: *mut X509, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_verify"] - pub fn X509_REQ_verify(req: *mut X509_REQ, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_verify"] - pub fn X509_CRL_verify(crl: *mut X509_CRL, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *mut NETSCAPE_SPKI) -> *mut EVP_PKEY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_ATTRIBUTE_dup"] - pub fn X509_ATTRIBUTE_dup(xa: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_dup"] - pub fn X509_REVOKED_dup(rev: *const X509_REVOKED) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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: *mut time_t, - ) -> *mut ASN1_TIME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_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_fips_0_12_15_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_st__bindgen_ty_1 { + 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_fips_0_12_15_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; +#[test] +fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_NAME_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_NAME_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; +impl Default for GENERAL_NAME_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_fips_0_12_15_X509_PUBKEY_new"] - pub fn X509_PUBKEY_new() -> *mut X509_PUBKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_new"] + pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_free"] - pub fn X509_PUBKEY_free(a: *mut X509_PUBKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_free"] + pub fn GENERAL_NAME_free(gen: *mut GENERAL_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_PUBKEY"] - pub fn d2i_X509_PUBKEY( - a: *mut *mut X509_PUBKEY, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAME"] + pub fn d2i_GENERAL_NAME( + out: *mut *mut GENERAL_NAME, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_PUBKEY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_PUBKEY"] - pub fn i2d_X509_PUBKEY( - a: *const X509_PUBKEY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_it"] - pub static X509_PUBKEY_it: ASN1_ITEM; + ) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_set"] - pub fn X509_PUBKEY_set(x: *mut *mut X509_PUBKEY, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAME"] + pub fn i2d_GENERAL_NAME(in_: *mut GENERAL_NAME, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PUBKEY_get"] - pub fn X509_PUBKEY_get(key: *mut X509_PUBKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_dup"] + pub fn GENERAL_NAME_dup(gen: *mut GENERAL_NAME) -> *mut GENERAL_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_new"] + pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_free"] - pub fn X509_SIG_free(a: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAMES_free"] + pub fn GENERAL_NAMES_free(gens: *mut GENERAL_NAMES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - a: *mut *mut X509_SIG, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_GENERAL_NAMES"] + pub fn d2i_GENERAL_NAMES( + out: *mut *mut GENERAL_NAMES, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_SIG"] - pub fn i2d_X509_SIG( - a: *const X509_SIG, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + ) -> *mut GENERAL_NAMES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_new"] - pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_GENERAL_NAMES"] + pub fn i2d_GENERAL_NAMES(in_: *mut GENERAL_NAMES, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_free"] - pub fn X509_ATTRIBUTE_free(a: *mut X509_ATTRIBUTE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_new"] + pub fn OTHERNAME_new() -> *mut OTHERNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_ATTRIBUTE"] - pub fn d2i_X509_ATTRIBUTE( - a: *mut *mut X509_ATTRIBUTE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OTHERNAME_free"] + pub fn OTHERNAME_free(name: *mut OTHERNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_ATTRIBUTE"] - pub fn i2d_X509_ATTRIBUTE( - a: *const X509_ATTRIBUTE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_new"] + pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_it"] - pub static X509_ATTRIBUTE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EDIPARTYNAME_free"] + pub fn EDIPARTYNAME_free(name: *mut EDIPARTYNAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_ATTRIBUTE_create"] - pub fn X509_ATTRIBUTE_create( - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_set0_value"] + pub fn GENERAL_NAME_set0_value( + gen: *mut GENERAL_NAME, + type_: ::std::os::raw::c_int, value: *mut ::std::os::raw::c_void, - ) -> *mut X509_ATTRIBUTE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_trust_object"] - pub fn X509_add1_trust_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_add1_reject_object"] - pub fn X509_add1_reject_object(x: *mut X509, obj: *mut ASN1_OBJECT) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_trust_clear"] - pub fn X509_trust_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_reject_clear"] - pub fn X509_reject_clear(x: *mut X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_X509_REVOKED_new"] - pub fn X509_REVOKED_new() -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_free"] - pub fn X509_REVOKED_free(a: *mut X509_REVOKED); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_X509_REVOKED"] - pub fn d2i_X509_REVOKED( - a: *mut *mut X509_REVOKED, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut X509_REVOKED; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_X509_REVOKED"] - pub fn i2d_X509_REVOKED( - a: *const X509_REVOKED, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_it"] - pub static X509_REVOKED_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_value"] + pub fn GENERAL_NAME_get0_value( + gen: *const GENERAL_NAME, + out_type: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_add0_revoked"] - pub fn X509_CRL_add0_revoked( - crl: *mut X509_CRL, - rev: *mut X509_REVOKED, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_set0_othername"] + pub fn GENERAL_NAME_set0_othername( + gen: *mut GENERAL_NAME, + oid: *mut ASN1_OBJECT, + value: *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_serial"] - pub fn X509_CRL_get0_by_serial( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - serial: *mut ASN1_INTEGER, + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_NAME_get0_otherName"] + pub fn GENERAL_NAME_get0_otherName( + gen: *const GENERAL_NAME, + out_oid: *mut *mut ASN1_OBJECT, + out_value: *mut *mut ASN1_TYPE, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_get0_by_cert"] - pub fn X509_CRL_get0_by_cert( - crl: *mut X509_CRL, - ret: *mut *mut X509_REVOKED, - x: *mut X509, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ALGOR { + _unused: [u8; 0], } +pub type sk_X509_ALGOR_free_func = + ::std::option::Option; +pub type sk_X509_ALGOR_copy_func = + ::std::option::Option *mut X509_ALGOR>; +pub type sk_X509_ALGOR_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ALGOR, + arg2: *const *const X509_ALGOR, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ALGOR_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ALGOR, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_new"] - pub fn X509_PKEY_new() -> *mut X509_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_it"] + pub static X509_ALGOR_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PKEY_free"] - pub fn X509_PKEY_free(a: *mut X509_PKEY); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_new"] + pub fn X509_ALGOR_new() -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_dup"] + pub fn X509_ALGOR_dup(alg: *const X509_ALGOR) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(a: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_free"] + pub fn X509_ALGOR_free(alg: *mut X509_ALGOR); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - a: *mut *mut NETSCAPE_SPKI, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ALGOR"] + pub fn d2i_X509_ALGOR( + out: *mut *mut X509_ALGOR, + inp: *mut *const u8, len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - a: *const NETSCAPE_SPKI, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(a: *mut NETSCAPE_SPKAC); + ) -> *mut X509_ALGOR; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - a: *mut *mut NETSCAPE_SPKAC, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ALGOR"] + pub fn i2d_X509_ALGOR(alg: *const X509_ALGOR, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - a: *const NETSCAPE_SPKAC, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_set0"] + pub fn X509_ALGOR_set0( + alg: *mut X509_ALGOR, + obj: *mut ASN1_OBJECT, + param_type: ::std::os::raw::c_int, + param_value: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_new"] - pub fn X509_INFO_new() -> *mut X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_INFO_free"] - pub fn X509_INFO_free(a: *mut X509_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - a: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ALGOR_get0"] + pub fn X509_ALGOR_get0( + out_obj: *mut *const ASN1_OBJECT, + out_param_type: *mut ::std::os::raw::c_int, + out_param_value: *mut *const ::std::os::raw::c_void, + alg: *const X509_ALGOR, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_set_md"] + pub fn X509_ALGOR_set_md(alg: *mut X509_ALGOR, md: *const EVP_MD); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ALGOR_cmp"] + pub fn X509_ALGOR_cmp(a: *const X509_ALGOR, b: *const X509_ALGOR) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_ATTRIBUTE { + _unused: [u8; 0], } +pub type sk_X509_ATTRIBUTE_free_func = + ::std::option::Option; +pub type sk_X509_ATTRIBUTE_copy_func = + ::std::option::Option *mut X509_ATTRIBUTE>; +pub type sk_X509_ATTRIBUTE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_ATTRIBUTE, + arg2: *const *const X509_ATTRIBUTE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_ATTRIBUTE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_ATTRIBUTE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_it"] + pub static X509_ATTRIBUTE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_ATTRIBUTE_new"] + pub fn X509_ATTRIBUTE_new() -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_extension_nid"] - pub fn X509_REQ_extension_nid(nid: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_dup"] + pub fn X509_ATTRIBUTE_dup(attr: *const X509_ATTRIBUTE) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_extensions"] - pub fn X509_REQ_get_extensions(req: *mut X509_REQ) -> *mut stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_free"] + pub fn X509_ATTRIBUTE_free(attr: *mut X509_ATTRIBUTE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions_nid"] - pub fn X509_REQ_add_extensions_nid( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_ATTRIBUTE"] + pub fn d2i_X509_ATTRIBUTE( + out: *mut *mut X509_ATTRIBUTE, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add_extensions"] - pub fn X509_REQ_add_extensions( - req: *mut X509_REQ, - exts: *const stack_st_X509_EXTENSION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_X509_ATTRIBUTE"] + pub fn i2d_X509_ATTRIBUTE( + alg: *const X509_ATTRIBUTE, + outp: *mut *mut u8, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_count"] - pub fn X509_REQ_get_attr_count(req: *const X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create"] + pub fn X509_ATTRIBUTE_create( + nid: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_NID"] - pub fn X509_REQ_get_attr_by_NID( - req: *const X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_NID"] + pub fn X509_ATTRIBUTE_create_by_NID( + attr: *mut *mut X509_ATTRIBUTE, nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, + ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr_by_OBJ"] - pub fn X509_REQ_get_attr_by_OBJ( - req: *const X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_OBJ"] + pub fn X509_ATTRIBUTE_create_by_OBJ( + attr: *mut *mut X509_ATTRIBUTE, obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get_attr"] - pub fn X509_REQ_get_attr( - req: *const X509_REQ, - loc: ::std::os::raw::c_int, + attrtype: ::std::os::raw::c_int, + data: *const ::std::os::raw::c_void, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_delete_attr"] - pub fn X509_REQ_delete_attr( - req: *mut X509_REQ, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_create_by_txt"] + pub fn X509_ATTRIBUTE_create_by_txt( + attr: *mut *mut X509_ATTRIBUTE, + attrname: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + bytes: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, ) -> *mut X509_ATTRIBUTE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr"] - pub fn X509_REQ_add1_attr( - req: *mut X509_REQ, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_object"] + pub fn X509_ATTRIBUTE_set1_object( attr: *mut X509_ATTRIBUTE, + obj: *const ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_OBJ"] - pub fn X509_REQ_add1_attr_by_OBJ( - req: *mut X509_REQ, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_set1_data"] + pub fn X509_ATTRIBUTE_set1_data( + attr: *mut X509_ATTRIBUTE, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, + data: *const ::std::os::raw::c_void, len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_NID"] - pub fn X509_REQ_add1_attr_by_NID( - req: *mut X509_REQ, - nid: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_data"] + pub fn X509_ATTRIBUTE_get0_data( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + unused: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_add1_attr_by_txt"] - pub fn X509_REQ_add1_attr_by_txt( - req: *mut X509_REQ, - attrname: *const ::std::os::raw::c_char, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_count"] + pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_CRL_sort"] - pub fn X509_CRL_sort(crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_object"] + pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_serialNumber"] - pub fn X509_REVOKED_get0_serialNumber(revoked: *const X509_REVOKED) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_ATTRIBUTE_get0_type"] + pub fn X509_ATTRIBUTE_get0_type( + attr: *mut X509_ATTRIBUTE, + idx: ::std::os::raw::c_int, + ) -> *mut ASN1_TYPE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_set_serialNumber"] - pub fn X509_REVOKED_set_serialNumber( - revoked: *mut X509_REVOKED, - serial: *const ASN1_INTEGER, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_revocationDate"] - pub fn X509_REVOKED_get0_revocationDate(revoked: *const X509_REVOKED) -> *const ASN1_TIME; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_set_revocationDate"] - pub fn X509_REVOKED_set_revocationDate( - revoked: *mut X509_REVOKED, - tm: *const ASN1_TIME, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get0_extensions"] - pub fn X509_REVOKED_get0_extensions(r: *const X509_REVOKED) -> *const stack_st_X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_diff"] - pub fn X509_CRL_diff( - base: *mut X509_CRL, - newer: *mut X509_CRL, - skey: *mut EVP_PKEY, - md: *const EVP_MD, - flags: ::std::os::raw::c_uint, - ) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_check_private_key"] - pub fn X509_REQ_check_private_key( - x509: *mut X509_REQ, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_check_private_key"] - pub fn X509_check_private_key(x509: *mut X509, pkey: *const EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(a: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x: *mut X509) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_cmp"] - pub fn X509_NAME_cmp(a: *const X509_NAME, b: *const X509_NAME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash"] - pub fn X509_NAME_hash(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(x: *mut X509_NAME) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - bp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_print_fp"] - pub fn X509_print_fp(bp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(bp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(bp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_get_ext_d2i"] - pub fn X509_get_ext_d2i( - x509: *const X509, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_add1_ext_i2d"] - pub fn X509_add1_ext_i2d( - x: *mut X509, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_get_ext_d2i"] - pub fn X509_CRL_get_ext_d2i( - crl: *const X509_CRL, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_CRL_add1_ext_i2d"] - pub fn X509_CRL_add1_ext_i2d( - x: *mut X509_CRL, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_get_ext_count"] - pub fn X509_REVOKED_get_ext_count(x: *const X509_REVOKED) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_NID"] - pub fn X509_REVOKED_get_ext_by_NID( - x: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_OBJ"] - pub fn X509_REVOKED_get_ext_by_OBJ( - x: *const X509_REVOKED, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_by_critical"] - pub fn X509_REVOKED_get_ext_by_critical( - x: *const X509_REVOKED, - crit: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext"] - pub fn X509_REVOKED_get_ext( - x: *const X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_delete_ext"] - pub fn X509_REVOKED_delete_ext( - x: *mut X509_REVOKED, - loc: ::std::os::raw::c_int, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REVOKED_add_ext"] - pub fn X509_REVOKED_add_ext( - x: *mut X509_REVOKED, - ex: *const X509_EXTENSION, - loc: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_get_ext_d2i"] - pub fn X509_REVOKED_get_ext_d2i( - revoked: *const X509_REVOKED, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_REVOKED_add1_ext_i2d"] - pub fn X509_REVOKED_add1_ext_i2d( - x: *mut X509_REVOKED, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_count"] - pub fn X509at_get_attr_count(x: *const stack_st_X509_ATTRIBUTE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509at_get_attr_by_NID"] - pub fn X509at_get_attr_by_NID( - x: *const stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - lastpos: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr_by_OBJ"] - pub fn X509at_get_attr_by_OBJ( - sk: *const stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - lastpos: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_get_attr"] - pub fn X509at_get_attr( - x: *const stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_delete_attr"] - pub fn X509at_delete_attr( - x: *mut stack_st_X509_ATTRIBUTE, - loc: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr"] - pub fn X509at_add1_attr( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attr: *mut X509_ATTRIBUTE, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_OBJ"] - pub fn X509at_add1_attr_by_OBJ( - x: *mut *mut stack_st_X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_NID"] - pub fn X509at_add1_attr_by_NID( - x: *mut *mut stack_st_X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509at_add1_attr_by_txt"] - pub fn X509at_add1_attr_by_txt( - x: *mut *mut stack_st_X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut stack_st_X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_NID"] - pub fn X509_ATTRIBUTE_create_by_NID( - attr: *mut *mut X509_ATTRIBUTE, - nid: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_OBJ"] - pub fn X509_ATTRIBUTE_create_by_OBJ( - attr: *mut *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_create_by_txt"] - pub fn X509_ATTRIBUTE_create_by_txt( - attr: *mut *mut X509_ATTRIBUTE, - attrname: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - bytes: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> *mut X509_ATTRIBUTE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_object"] - pub fn X509_ATTRIBUTE_set1_object( - attr: *mut X509_ATTRIBUTE, - obj: *const ASN1_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_set1_data"] - pub fn X509_ATTRIBUTE_set1_data( - attr: *mut X509_ATTRIBUTE, - attrtype: ::std::os::raw::c_int, - data: *const ::std::os::raw::c_void, - len: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_data"] - pub fn X509_ATTRIBUTE_get0_data( - attr: *mut X509_ATTRIBUTE, - idx: ::std::os::raw::c_int, - attrtype: ::std::os::raw::c_int, - unused: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_count"] - pub fn X509_ATTRIBUTE_count(attr: *const X509_ATTRIBUTE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_object"] - pub fn X509_ATTRIBUTE_get0_object(attr: *mut X509_ATTRIBUTE) -> *mut ASN1_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_ATTRIBUTE_get0_type"] - pub fn X509_ATTRIBUTE_get0_type( - attr: *mut X509_ATTRIBUTE, - 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) + ) + ); +} +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_fips_0_12_15_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(a: *mut PKCS8_PRIV_KEY_INFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - a: *mut *mut PKCS8_PRIV_KEY_INFO, - in_: *mut *const ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_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 PKCS8_PRIV_KEY_INFO; + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - a: *const PKCS8_PRIV_KEY_INFO, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_set0_param"] - pub fn X509_PUBKEY_set0_param( - pub_: *mut X509_PUBKEY, - obj: *mut ASN1_OBJECT, - param_type: ::std::os::raw::c_int, - param_value: *mut ::std::os::raw::c_void, - key: *mut u8, - key_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_param"] - pub fn X509_PUBKEY_get0_param( - out_obj: *mut *mut ASN1_OBJECT, - out_key: *mut *const u8, - out_key_len: *mut ::std::os::raw::c_int, - out_alg: *mut *mut X509_ALGOR, - pub_: *mut X509_PUBKEY, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_PUBKEY_get0_public_key"] - pub fn X509_PUBKEY_get0_public_key(pub_: *const X509_PUBKEY) -> *const ASN1_BIT_STRING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::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_fips_0_12_15_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *mut X509_TRUST; +#[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) + ) + ); +} +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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_add"] - pub fn X509_TRUST_add( - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_TRUST_cleanup"] - pub fn X509_TRUST_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -22091,1435 +21808,967 @@ fn bindgen_test_layout_rsa_pss_params_st() { "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) - ) - ); -} -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_fips_0_12_15_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(a: *mut RSA_PSS_PARAMS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - a: *mut *mut RSA_PSS_PARAMS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - a: *const RSA_PSS_PARAMS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_LOOKUP { - _unused: [u8; 0], -} -pub type sk_X509_LOOKUP_free_func = - ::std::option::Option; -pub type sk_X509_LOOKUP_copy_func = - ::std::option::Option *mut X509_LOOKUP>; -pub type sk_X509_LOOKUP_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_LOOKUP, - arg2: *mut *const X509_LOOKUP, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_LOOKUP_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_LOOKUP, - arg2: *mut ::std::os::raw::c_void, - ) -> ::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: *mut *const X509_OBJECT, - arg2: *mut *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, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_VERIFY_PARAM { - _unused: [u8; 0], -} -pub type sk_X509_VERIFY_PARAM_free_func = - ::std::option::Option; -pub type sk_X509_VERIFY_PARAM_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509_VERIFY_PARAM) -> *mut X509_VERIFY_PARAM, ->; -pub type sk_X509_VERIFY_PARAM_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_VERIFY_PARAM, - arg2: *mut *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_VERIFY_PARAM_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_VERIFY_PARAM, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -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, ->; -pub type X509_STORE_CTX_verify_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_get_issuer_fn = ::std::option::Option< - unsafe extern "C" fn( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_issued_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - x: *mut X509, - issuer: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_revocation_fn = - ::std::option::Option ::std::os::raw::c_int>; -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, ->; -pub type X509_STORE_CTX_cert_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_policy_fn = - ::std::option::Option ::std::os::raw::c_int>; -pub type X509_STORE_CTX_lookup_certs_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509, ->; -pub type X509_STORE_CTX_lookup_crls_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, nm: *mut X509_NAME) -> *mut stack_st_X509_CRL, ->; -pub type X509_STORE_CTX_cleanup_fn = - ::std::option::Option ::std::os::raw::c_int>; + 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) + ) + ); +} +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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_idx_by_subject"] - pub fn X509_OBJECT_idx_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_X509_OBJECT_retrieve_by_subject"] - pub fn X509_OBJECT_retrieve_by_subject( - h: *mut stack_st_X509_OBJECT, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_OBJECT_retrieve_match"] - pub fn X509_OBJECT_retrieve_match( - h: *mut stack_st_X509_OBJECT, - x: *mut X509_OBJECT, - ) -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_up_ref_count"] - pub fn X509_OBJECT_up_ref_count(a: *mut X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_free_contents"] - pub fn X509_OBJECT_free_contents(a: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(a: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(a: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_free"] - pub fn X509_STORE_free(v: *mut X509_STORE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get1_certs"] - pub fn X509_STORE_get1_certs(st: *mut X509_STORE_CTX, nm: *mut X509_NAME) - -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get1_crls"] - pub fn X509_STORE_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - ctx: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - ctx: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - ctx: *mut X509_STORE, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - ctx: *mut X509_STORE, - pm: *mut X509_VERIFY_PARAM, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(ctx: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify"] - pub fn X509_STORE_set_verify(ctx: *mut X509_STORE, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - pub fn X509_STORE_CTX_set_verify(ctx: *mut X509_STORE_CTX, verify: X509_STORE_CTX_verify_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify"] - pub fn X509_STORE_get_verify(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(ctx: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_verify_cb"] - pub fn X509_STORE_get_verify_cb(ctx: *mut X509_STORE) -> X509_STORE_CTX_verify_cb; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_issuer"] - pub fn X509_STORE_set_get_issuer( - ctx: *mut X509_STORE, - get_issuer: X509_STORE_CTX_get_issuer_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_issuer"] - pub fn X509_STORE_get_get_issuer(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_issuer_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_issued"] - pub fn X509_STORE_set_check_issued( - ctx: *mut X509_STORE, - check_issued: X509_STORE_CTX_check_issued_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_issued"] - pub fn X509_STORE_get_check_issued(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_issued_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_revocation"] - pub fn X509_STORE_set_check_revocation( - ctx: *mut X509_STORE, - check_revocation: X509_STORE_CTX_check_revocation_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_get_check_revocation"] - pub fn X509_STORE_get_check_revocation( - ctx: *mut X509_STORE, - ) -> X509_STORE_CTX_check_revocation_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(ctx: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_get_crl"] - pub fn X509_STORE_get_get_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_get_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(ctx: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_check_crl"] - pub fn X509_STORE_get_check_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_check_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cert_crl"] - pub fn X509_STORE_set_cert_crl(ctx: *mut X509_STORE, cert_crl: X509_STORE_CTX_cert_crl_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cert_crl"] - pub fn X509_STORE_get_cert_crl(ctx: *mut X509_STORE) -> X509_STORE_CTX_cert_crl_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_certs"] - pub fn X509_STORE_set_lookup_certs( - ctx: *mut X509_STORE, - lookup_certs: X509_STORE_CTX_lookup_certs_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_certs"] - pub fn X509_STORE_get_lookup_certs(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_certs_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_lookup_crls"] - pub fn X509_STORE_set_lookup_crls( - ctx: *mut X509_STORE, - lookup_crls: X509_STORE_CTX_lookup_crls_fn, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_lookup_crls"] - pub fn X509_STORE_get_lookup_crls(ctx: *mut X509_STORE) -> X509_STORE_CTX_lookup_crls_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_set_cleanup"] - pub fn X509_STORE_set_cleanup(ctx: *mut X509_STORE, cleanup: X509_STORE_CTX_cleanup_fn); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_get_cleanup"] - pub fn X509_STORE_get_cleanup(ctx: *mut X509_STORE) -> X509_STORE_CTX_cleanup_fn; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_zero"] - pub fn X509_STORE_CTX_zero(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *mut X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *mut X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_get_by_subject"] - pub fn X509_STORE_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_new"] - pub fn X509_LOOKUP_new(method: *mut X509_LOOKUP_METHOD) -> *mut X509_LOOKUP; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_init"] - pub fn X509_LOOKUP_init(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_by_subject"] - pub fn X509_LOOKUP_by_subject( - ctx: *mut X509_LOOKUP, - type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_LOOKUP_shutdown"] - pub fn X509_LOOKUP_shutdown(ctx: *mut X509_LOOKUP) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_set1_name"] - pub fn X509_VERIFY_PARAM_set1_name( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_peername"] - pub fn X509_VERIFY_PARAM_get0_peername( - arg1: *mut X509_VERIFY_PARAM, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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_fips_0_13_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_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_fips_0_13_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_fips_0_12_15_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0_name"] - pub fn X509_VERIFY_PARAM_get0_name( - param: *const X509_VERIFY_PARAM, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_add0_table"] - pub fn X509_VERIFY_PARAM_add0_table(param: *mut X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get_count"] - pub fn X509_VERIFY_PARAM_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_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; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_VERIFY_PARAM_get0"] - pub fn X509_VERIFY_PARAM_get0(id: ::std::os::raw::c_int) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_lookup"] - pub fn X509_VERIFY_PARAM_lookup( - name: *const ::std::os::raw::c_char, - ) -> *const X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_12_15_X509_VERIFY_PARAM_table_cleanup"] - pub fn X509_VERIFY_PARAM_table_cleanup(); -} -pub type X509V3_EXT_METHOD = v3_ext_method; -pub type X509V3_EXT_NEW = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type X509V3_EXT_FREE = - ::std::option::Option; -pub type X509V3_EXT_D2I = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *const ::std::os::raw::c_uchar, - arg3: ::std::os::raw::c_long, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2D = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_I2V = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE, ->; -pub type X509V3_EXT_V2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - values: *const stack_st_CONF_VALUE, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2S = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_char, ->; -pub type X509V3_EXT_S2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -pub type X509V3_EXT_I2R = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ext: *mut ::std::os::raw::c_void, - out: *mut BIO, - indent: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type X509V3_EXT_R2I = ::std::option::Option< - unsafe extern "C" fn( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_method { - pub ext_nid: ::std::os::raw::c_int, - pub ext_flags: ::std::os::raw::c_int, - pub it: *const ASN1_ITEM_st, - pub ext_new: X509V3_EXT_NEW, - pub ext_free: X509V3_EXT_FREE, - pub d2i: X509V3_EXT_D2I, - pub i2d: X509V3_EXT_I2D, - pub i2s: X509V3_EXT_I2S, - pub s2i: X509V3_EXT_S2I, - pub i2v: X509V3_EXT_I2V, - pub v2i: X509V3_EXT_V2I, - pub i2r: X509V3_EXT_I2R, - pub r2i: X509V3_EXT_R2I, - pub usr_data: *mut ::std::os::raw::c_void, -} -#[test] -fn bindgen_test_layout_v3_ext_method() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 104usize, - concat!("Size of: ", stringify!(v3_ext_method)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_method)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_nid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(it) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_new) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(ext_free) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(d2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2d) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2s) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(s2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2v) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(v2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(i2r) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(r2i) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_method), - "::", - stringify!(usr_data) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -impl Default for v3_ext_method { - 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_fips_0_13_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; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509V3_EXT_METHOD { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -pub type sk_X509V3_EXT_METHOD_free_func = - ::std::option::Option; -pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, ->; -pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509V3_EXT_METHOD, - arg2: *mut *const X509V3_EXT_METHOD, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509V3_EXT_METHOD, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct BASIC_CONSTRAINTS_st { - pub ca: ::std::os::raw::c_int, - pub pathlen: *mut ASN1_INTEGER, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_BASIC_CONSTRAINTS_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!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(ca) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(BASIC_CONSTRAINTS_st), - "::", - stringify!(pathlen) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; } -impl Default for BASIC_CONSTRAINTS_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_fips_0_13_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct otherName_st { - pub type_id: *mut ASN1_OBJECT, - pub value: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_otherName_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!(otherName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(otherName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_id) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(type_id) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(otherName_st), - "::", - stringify!(value) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; } -impl Default for otherName_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_fips_0_13_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; } -pub type OTHERNAME = otherName_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct EDIPartyName_st { - pub nameAssigner: *mut ASN1_STRING, - pub partyName: *mut ASN1_STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[test] -fn bindgen_test_layout_EDIPartyName_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!(EDIPartyName_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(EDIPartyName_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).nameAssigner) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(nameAssigner) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).partyName) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(EDIPartyName_st), - "::", - stringify!(partyName) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -impl Default for EDIPartyName_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_fips_0_13_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; } -pub type EDIPARTYNAME = EDIPartyName_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct GENERAL_NAME_st { - pub type_: ::std::os::raw::c_int, - pub d: GENERAL_NAME_st__bindgen_ty_1, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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; } -#[repr(C)] -#[derive(Copy, Clone)] -pub union GENERAL_NAME_st__bindgen_ty_1 { - pub ptr: *mut ::std::os::raw::c_char, - pub otherName: *mut OTHERNAME, - pub rfc822Name: *mut ASN1_IA5STRING, - pub dNSName: *mut ASN1_IA5STRING, - pub x400Address: *mut ASN1_STRING, - pub directoryName: *mut X509_NAME, - pub ediPartyName: *mut EDIPARTYNAME, - pub uniformResourceIdentifier: *mut ASN1_IA5STRING, - pub iPAddress: *mut ASN1_OCTET_STRING, - pub registeredID: *mut ASN1_OBJECT, - pub ip: *mut ASN1_OCTET_STRING, - pub dirn: *mut X509_NAME, - pub ia5: *mut ASN1_IA5STRING, - pub rid: *mut ASN1_OBJECT, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_GENERAL_NAME_st__bindgen_ty_1() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), + ::std::mem::size_of::(), 8usize, - concat!("Size of: ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) + concat!("Size of: ", stringify!(private_key_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ptr) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).otherName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(otherName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rfc822Name) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(rfc822Name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dNSName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(dNSName) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x400Address) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(x400Address) - ) + concat!("Alignment of ", stringify!(private_key_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).directoryName) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(private_key_st), "::", - stringify!(directoryName) + 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).ediPartyName) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(ediPartyName) - ) + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).uniformResourceIdentifier) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), - "::", - stringify!(uniformResourceIdentifier) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).iPAddress) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(iPAddress) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).registeredID) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(registeredID) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ip) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ip) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dirn) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(dirn) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ia5) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(ia5) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).rid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(GENERAL_NAME_st__bindgen_ty_1), + stringify!(X509_info_st), "::", - stringify!(rid) + stringify!(enc_data) ) ); } -impl Default for GENERAL_NAME_st__bindgen_ty_1 { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23528,127 +22777,116 @@ impl Default for GENERAL_NAME_st__bindgen_ty_1 { } } } -#[test] -fn bindgen_test_layout_GENERAL_NAME_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!(GENERAL_NAME_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_NAME_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(GENERAL_NAME_st), - "::", - stringify!(d) - ) - ); -} -impl Default for GENERAL_NAME_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)] +pub struct stack_st_X509_INFO { + _unused: [u8; 0], } -pub type GENERAL_NAME = GENERAL_NAME_st; -pub type sk_GENERAL_NAME_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAME_copy_func = - ::std::option::Option *mut GENERAL_NAME>; -pub type sk_GENERAL_NAME_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const GENERAL_NAME, - arg2: *mut *const GENERAL_NAME, - ) -> ::std::os::raw::c_int, ->; -pub type sk_GENERAL_NAME_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut GENERAL_NAME, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type GENERAL_NAMES = stack_st_GENERAL_NAME; -pub type sk_GENERAL_NAMES_free_func = - ::std::option::Option; -pub type sk_GENERAL_NAMES_copy_func = - ::std::option::Option *mut GENERAL_NAMES>; -pub type sk_GENERAL_NAMES_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: *mut *const GENERAL_NAMES, - arg2: *mut *const GENERAL_NAMES, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_NAMES_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_NAMES, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ACCESS_DESCRIPTION_st { - pub method: *mut ASN1_OBJECT, - pub location: *mut GENERAL_NAME, +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_ACCESS_DESCRIPTION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +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::(), - 16usize, - concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) + concat!("Alignment of ", stringify!(v3_ext_ctx)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(method) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ACCESS_DESCRIPTION_st), + stringify!(v3_ext_ctx), "::", - stringify!(location) + 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 ACCESS_DESCRIPTION_st { +impl Default for v3_ext_ctx { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23657,138 +22895,317 @@ impl Default for ACCESS_DESCRIPTION_st { } } } -pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_ACCESS_DESCRIPTION { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -pub type sk_ACCESS_DESCRIPTION_free_func = - ::std::option::Option; -pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, ->; -pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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: *mut *const ACCESS_DESCRIPTION, - arg2: *mut *const ACCESS_DESCRIPTION, + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, ) -> ::std::os::raw::c_int, >; -pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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, + >, + ); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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( - arg1: *mut ACCESS_DESCRIPTION, - arg2: *mut ::std::os::raw::c_void, + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, ) -> ::std::os::raw::c_int, >; -pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; -pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DIST_POINT_NAME_st { - pub type_: ::std::os::raw::c_int, - pub name: DIST_POINT_NAME_st__bindgen_ty_1, - pub dpname: *mut X509_NAME, +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_fips_0_13_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); } -#[repr(C)] -#[derive(Copy, Clone)] -pub union DIST_POINT_NAME_st__bindgen_ty_1 { - pub fullname: *mut GENERAL_NAMES, - pub relativename: *mut stack_st_X509_NAME_ENTRY, +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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); } -#[test] -fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { - 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!(DIST_POINT_NAME_st__bindgen_ty_1)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!( - "Alignment of ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(fullname) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st__bindgen_ty_1), - "::", - stringify!(relativename) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { - 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_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } #[test] -fn bindgen_test_layout_DIST_POINT_NAME_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 24usize, - concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) + concat!("Alignment of ", stringify!(X509_algor_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(type_) + stringify!(algorithm) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_NAME_st), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_NAME_st), + stringify!(X509_algor_st), "::", - stringify!(dpname) + stringify!(parameter) ) ); } -impl Default for DIST_POINT_NAME_st { +impl Default for X509_algor_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23797,199 +23214,103 @@ impl Default for DIST_POINT_NAME_st { } } } -pub type DIST_POINT_NAME = DIST_POINT_NAME_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct DIST_POINT_st { - pub distpoint: *mut DIST_POINT_NAME, - pub reasons: *mut ASN1_BIT_STRING, - pub CRLissuer: *mut GENERAL_NAMES, - pub dp_reasons: ::std::os::raw::c_int, +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, } #[test] -fn bindgen_test_layout_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +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::(), - 32usize, - concat!("Size of: ", stringify!(DIST_POINT_st)) + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(DIST_POINT_st)) + concat!("Alignment of ", stringify!(x509_trust_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(distpoint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(reasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), - "::", - stringify!(CRLissuer) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dp_reasons) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(DIST_POINT_st), + stringify!(x509_trust_st), "::", - stringify!(dp_reasons) + stringify!(trust) ) ); -} -impl Default for DIST_POINT_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() - } - } -} -pub type CRL_DIST_POINTS = stack_st_DIST_POINT; -pub type sk_DIST_POINT_free_func = - ::std::option::Option; -pub type sk_DIST_POINT_copy_func = - ::std::option::Option *mut DIST_POINT>; -pub type sk_DIST_POINT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const DIST_POINT, - arg2: *mut *const DIST_POINT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut DIST_POINT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct AUTHORITY_KEYID_st { - pub keyid: *mut ASN1_OCTET_STRING, - pub issuer: *mut GENERAL_NAMES, - pub serial: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_AUTHORITY_KEYID_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!(AUTHORITY_KEYID_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(keyid) + stringify!(flags) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(issuer) + stringify!(check_trust) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(AUTHORITY_KEYID_st), + stringify!(x509_trust_st), "::", - stringify!(serial) + stringify!(name) ) ); -} -impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { - pub organization: *mut ASN1_STRING, - pub noticenos: *mut stack_st_ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_NOTICEREF_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!(NOTICEREF_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(NOTICEREF_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(organization) + stringify!(arg1) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(NOTICEREF_st), + stringify!(x509_trust_st), "::", - stringify!(noticenos) + stringify!(arg2) ) ); } -impl Default for NOTICEREF_st { +impl Default for x509_trust_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23998,391 +23319,495 @@ impl Default for NOTICEREF_st { } } } -pub type NOTICEREF = NOTICEREF_st; +#[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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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_fips_0_13_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>; +pub type X509V3_EXT_FREE = + ::std::option::Option; +pub type X509V3_EXT_D2I = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *const ::std::os::raw::c_uchar, + arg3: ::std::os::raw::c_long, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2D = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_I2V = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE, +>; +pub type X509V3_EXT_V2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + values: *const stack_st_CONF_VALUE, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2S = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_char, +>; +pub type X509V3_EXT_S2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; +pub type X509V3_EXT_I2R = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ext: *mut ::std::os::raw::c_void, + out: *mut BIO, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type X509V3_EXT_R2I = ::std::option::Option< + unsafe extern "C" fn( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_void, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct USERNOTICE_st { - pub noticeref: *mut NOTICEREF, - pub exptext: *mut ASN1_STRING, +pub struct v3_ext_method { + pub ext_nid: ::std::os::raw::c_int, + pub ext_flags: ::std::os::raw::c_int, + pub it: *const ASN1_ITEM_st, + pub ext_new: X509V3_EXT_NEW, + pub ext_free: X509V3_EXT_FREE, + pub d2i: X509V3_EXT_D2I, + pub i2d: X509V3_EXT_I2D, + pub i2s: X509V3_EXT_I2S, + pub s2i: X509V3_EXT_S2I, + pub i2v: X509V3_EXT_I2V, + pub v2i: X509V3_EXT_V2I, + pub i2r: X509V3_EXT_I2R, + pub r2i: X509V3_EXT_R2I, + pub usr_data: *mut ::std::os::raw::c_void, } #[test] -fn bindgen_test_layout_USERNOTICE_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_v3_ext_method() { + 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!(USERNOTICE_st)) + ::std::mem::size_of::(), + 104usize, + concat!("Size of: ", stringify!(v3_ext_method)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(USERNOTICE_st)) + concat!("Alignment of ", stringify!(v3_ext_method)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ext_nid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(noticeref) + stringify!(ext_nid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_flags) as usize - ptr as usize }, + 4usize, concat!( "Offset of field: ", - stringify!(USERNOTICE_st), + stringify!(v3_ext_method), "::", - stringify!(exptext) + stringify!(ext_flags) ) ); -} -impl Default for USERNOTICE_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() - } - } -} -pub type USERNOTICE = USERNOTICE_st; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct POLICYQUALINFO_st { - pub pqualid: *mut ASN1_OBJECT, - pub d: POLICYQUALINFO_st__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union POLICYQUALINFO_st__bindgen_ty_1 { - pub cpsuri: *mut ASN1_IA5STRING, - pub usernotice: *mut USERNOTICE, - pub other: *mut ASN1_TYPE, -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { - 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!(POLICYQUALINFO_st__bindgen_ty_1)) - ); assert_eq!( - ::std::mem::align_of::(), + unsafe { ::std::ptr::addr_of!((*ptr).it) as usize - ptr as usize }, 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, - 0usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(cpsuri) + stringify!(it) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_new) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(usernotice) + stringify!(ext_new) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).ext_free) as usize - ptr as usize }, + 24usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st__bindgen_ty_1), + stringify!(v3_ext_method), "::", - stringify!(other) + stringify!(ext_free) ) ); -} -impl Default for POLICYQUALINFO_st__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[test] -fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).d2i) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(pqualid) + stringify!(d2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2d) as usize - ptr as usize }, + 40usize, concat!( "Offset of field: ", - stringify!(POLICYQUALINFO_st), + stringify!(v3_ext_method), "::", - stringify!(d) + stringify!(i2d) ) ); -} -impl Default for POLICYQUALINFO_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() - } - } -} -pub type POLICYQUALINFO = POLICYQUALINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYQUALINFO { - _unused: [u8; 0], -} -pub type sk_POLICYQUALINFO_free_func = - ::std::option::Option; -pub type sk_POLICYQUALINFO_copy_func = - ::std::option::Option *mut POLICYQUALINFO>; -pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYQUALINFO, - arg2: *mut *const POLICYQUALINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYQUALINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICYINFO_st { - pub policyid: *mut ASN1_OBJECT, - pub qualifiers: *mut stack_st_POLICYQUALINFO, -} -#[test] -fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICYINFO_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, - 0usize, + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).i2s) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(policyid) + stringify!(i2s) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).s2i) as usize - ptr as usize }, + 56usize, concat!( "Offset of field: ", - stringify!(POLICYINFO_st), + stringify!(v3_ext_method), "::", - stringify!(qualifiers) + stringify!(s2i) ) ); -} -impl Default for POLICYINFO_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() - } - } -} -pub type POLICYINFO = POLICYINFO_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICYINFO { - _unused: [u8; 0], -} -pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; -pub type sk_POLICYINFO_free_func = - ::std::option::Option; -pub type sk_POLICYINFO_copy_func = - ::std::option::Option *mut POLICYINFO>; -pub type sk_POLICYINFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICYINFO, - arg2: *mut *const POLICYINFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICYINFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_MAPPING_st { - pub issuerDomainPolicy: *mut ASN1_OBJECT, - pub subjectDomainPolicy: *mut ASN1_OBJECT, -} -#[test] -fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2v) as usize - ptr as usize }, + 64usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(issuerDomainPolicy) + stringify!(i2v) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).v2i) as usize - ptr as usize }, + 72usize, concat!( "Offset of field: ", - stringify!(POLICY_MAPPING_st), + stringify!(v3_ext_method), "::", - stringify!(subjectDomainPolicy) + stringify!(v2i) ) ); -} -impl Default for POLICY_MAPPING_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() - } - } -} -pub type POLICY_MAPPING = POLICY_MAPPING_st; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_POLICY_MAPPING { - _unused: [u8; 0], -} -pub type sk_POLICY_MAPPING_free_func = - ::std::option::Option; -pub type sk_POLICY_MAPPING_copy_func = - ::std::option::Option *mut POLICY_MAPPING>; -pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const POLICY_MAPPING, - arg2: *mut *const POLICY_MAPPING, - ) -> ::std::os::raw::c_int, ->; -pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut POLICY_MAPPING, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct GENERAL_SUBTREE_st { - pub base: *mut GENERAL_NAME, - pub minimum: *mut ASN1_INTEGER, - pub maximum: *mut ASN1_INTEGER, -} -#[test] -fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) - ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, - 0usize, + unsafe { ::std::ptr::addr_of!((*ptr).i2r) as usize - ptr as usize }, + 80usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(base) + stringify!(i2r) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).r2i) as usize - ptr as usize }, + 88usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(minimum) + stringify!(r2i) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 96usize, concat!( "Offset of field: ", - stringify!(GENERAL_SUBTREE_st), + stringify!(v3_ext_method), "::", - stringify!(maximum) + stringify!(usr_data) ) ); } -impl Default for GENERAL_SUBTREE_st { +impl Default for v3_ext_method { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24391,71 +23816,70 @@ impl Default for GENERAL_SUBTREE_st { } } } -pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_GENERAL_SUBTREE { +pub struct stack_st_X509V3_EXT_METHOD { _unused: [u8; 0], } -pub type sk_GENERAL_SUBTREE_free_func = - ::std::option::Option; -pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< - unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +pub type sk_X509V3_EXT_METHOD_free_func = + ::std::option::Option; +pub type sk_X509V3_EXT_METHOD_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const X509V3_EXT_METHOD) -> *mut X509V3_EXT_METHOD, >; -pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const GENERAL_SUBTREE, - arg2: *mut *const GENERAL_SUBTREE, + arg1: *const *const X509V3_EXT_METHOD, + arg2: *const *const X509V3_EXT_METHOD, ) -> ::std::os::raw::c_int, >; -pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< +pub type sk_X509V3_EXT_METHOD_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut GENERAL_SUBTREE, + arg1: *mut X509V3_EXT_METHOD, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct NAME_CONSTRAINTS_st { - pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, - pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, +pub struct BASIC_CONSTRAINTS_st { + pub ca: ::std::os::raw::c_int, + pub pathlen: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_NAME_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_BASIC_CONSTRAINTS_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(BASIC_CONSTRAINTS_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).ca) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(permittedSubtrees) + stringify!(ca) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).pathlen) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(NAME_CONSTRAINTS_st), + stringify!(BASIC_CONSTRAINTS_st), "::", - stringify!(excludedSubtrees) + stringify!(pathlen) ) ); } -impl Default for NAME_CONSTRAINTS_st { +impl Default for BASIC_CONSTRAINTS_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24466,47 +23890,47 @@ impl Default for NAME_CONSTRAINTS_st { } #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct POLICY_CONSTRAINTS_st { - pub requireExplicitPolicy: *mut ASN1_INTEGER, - pub inhibitPolicyMapping: *mut ASN1_INTEGER, +pub struct ACCESS_DESCRIPTION_st { + pub method: *mut ASN1_OBJECT, + pub location: *mut GENERAL_NAME, } #[test] -fn bindgen_test_layout_POLICY_CONSTRAINTS_st() { - const UNINIT: ::std::mem::MaybeUninit = +fn bindgen_test_layout_ACCESS_DESCRIPTION_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), + ::std::mem::size_of::(), 16usize, - concat!("Size of: ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Size of: ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + concat!("Alignment of ", stringify!(ACCESS_DESCRIPTION_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).method) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(requireExplicitPolicy) + stringify!(method) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).location) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(POLICY_CONSTRAINTS_st), + stringify!(ACCESS_DESCRIPTION_st), "::", - stringify!(inhibitPolicyMapping) + stringify!(location) ) ); } -impl Default for POLICY_CONSTRAINTS_st { +impl Default for ACCESS_DESCRIPTION_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24515,49 +23939,84 @@ impl Default for POLICY_CONSTRAINTS_st { } } } -pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +pub type ACCESS_DESCRIPTION = ACCESS_DESCRIPTION_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_ACCESS_DESCRIPTION { + _unused: [u8; 0], +} +pub type sk_ACCESS_DESCRIPTION_free_func = + ::std::option::Option; +pub type sk_ACCESS_DESCRIPTION_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const ACCESS_DESCRIPTION) -> *mut ACCESS_DESCRIPTION, +>; +pub type sk_ACCESS_DESCRIPTION_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const ACCESS_DESCRIPTION, + arg2: *const *const ACCESS_DESCRIPTION, + ) -> ::std::os::raw::c_int, +>; +pub type sk_ACCESS_DESCRIPTION_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ACCESS_DESCRIPTION, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type AUTHORITY_INFO_ACCESS = stack_st_ACCESS_DESCRIPTION; +pub type EXTENDED_KEY_USAGE = stack_st_ASN1_OBJECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DIST_POINT_NAME_st { + pub type_: ::std::os::raw::c_int, + pub name: DIST_POINT_NAME_st__bindgen_ty_1, + pub dpname: *mut X509_NAME, +} #[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_POLICY_st { - pub policyLanguage: *mut ASN1_OBJECT, - pub policy: *mut ASN1_OCTET_STRING, +#[derive(Copy, Clone)] +pub union DIST_POINT_NAME_st__bindgen_ty_1 { + pub fullname: *mut GENERAL_NAMES, + pub relativename: *mut stack_st_X509_NAME_ENTRY, } #[test] -fn bindgen_test_layout_PROXY_POLICY_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_st__bindgen_ty_1() { + 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!(PROXY_POLICY_st)) + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st__bindgen_ty_1)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_POLICY_st)) + concat!( + "Alignment of ", + stringify!(DIST_POINT_NAME_st__bindgen_ty_1) + ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policyLanguage) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).fullname) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policyLanguage) + stringify!(fullname) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).policy) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).relativename) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(PROXY_POLICY_st), + stringify!(DIST_POINT_NAME_st__bindgen_ty_1), "::", - stringify!(policy) + stringify!(relativename) ) ); } -impl Default for PROXY_POLICY_st { +impl Default for DIST_POINT_NAME_st__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24566,50 +24025,52 @@ impl Default for PROXY_POLICY_st { } } } -pub type PROXY_POLICY = PROXY_POLICY_st; -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct PROXY_CERT_INFO_EXTENSION_st { - pub pcPathLengthConstraint: *mut ASN1_INTEGER, - pub proxyPolicy: *mut PROXY_POLICY, -} #[test] -fn bindgen_test_layout_PROXY_CERT_INFO_EXTENSION_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_NAME_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!(PROXY_CERT_INFO_EXTENSION_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(PROXY_CERT_INFO_EXTENSION_st)) + concat!("Alignment of ", stringify!(DIST_POINT_NAME_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pcPathLengthConstraint) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), "::", - stringify!(pcPathLengthConstraint) + stringify!(type_) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).proxyPolicy) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(PROXY_CERT_INFO_EXTENSION_st), + stringify!(DIST_POINT_NAME_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dpname) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(DIST_POINT_NAME_st), "::", - stringify!(proxyPolicy) + stringify!(dpname) ) ); } -impl Default for PROXY_CERT_INFO_EXTENSION_st { +impl Default for DIST_POINT_NAME_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24618,148 +24079,60 @@ impl Default for PROXY_CERT_INFO_EXTENSION_st { } } } -pub type PROXY_CERT_INFO_EXTENSION = PROXY_CERT_INFO_EXTENSION_st; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_new"] - pub fn PROXY_POLICY_new() -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_free"] - pub fn PROXY_POLICY_free(a: *mut PROXY_POLICY); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_POLICY"] - pub fn d2i_PROXY_POLICY( - a: *mut *mut PROXY_POLICY, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_POLICY; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_POLICY"] - pub fn i2d_PROXY_POLICY( - a: *const PROXY_POLICY, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_POLICY_it"] - pub static PROXY_POLICY_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_new"] - pub fn PROXY_CERT_INFO_EXTENSION_new() -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_free"] - pub fn PROXY_CERT_INFO_EXTENSION_free(a: *mut PROXY_CERT_INFO_EXTENSION); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PROXY_CERT_INFO_EXTENSION"] - pub fn d2i_PROXY_CERT_INFO_EXTENSION( - a: *mut *mut PROXY_CERT_INFO_EXTENSION, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut PROXY_CERT_INFO_EXTENSION; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PROXY_CERT_INFO_EXTENSION"] - pub fn i2d_PROXY_CERT_INFO_EXTENSION( - a: *const PROXY_CERT_INFO_EXTENSION, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PROXY_CERT_INFO_EXTENSION_it"] - pub static PROXY_CERT_INFO_EXTENSION_it: ASN1_ITEM; -} +pub type DIST_POINT_NAME = DIST_POINT_NAME_st; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct ISSUING_DIST_POINT_st { +pub struct DIST_POINT_st { pub distpoint: *mut DIST_POINT_NAME, - pub onlyuser: ::std::os::raw::c_int, - pub onlyCA: ::std::os::raw::c_int, - pub onlysomereasons: *mut ASN1_BIT_STRING, - pub indirectCRL: ::std::os::raw::c_int, - pub onlyattr: ::std::os::raw::c_int, + pub reasons: *mut ASN1_BIT_STRING, + pub CRLissuer: *mut GENERAL_NAMES, } #[test] -fn bindgen_test_layout_ISSUING_DIST_POINT_st() { - const UNINIT: ::std::mem::MaybeUninit = - ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); let ptr = UNINIT.as_ptr(); assert_eq!( - ::std::mem::size_of::(), - 32usize, - concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(DIST_POINT_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + concat!("Alignment of ", stringify!(DIST_POINT_st)) ); assert_eq!( unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", stringify!(distpoint) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).reasons) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlyuser) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyCA) + stringify!(reasons) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).CRLissuer) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(onlysomereasons) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), - "::", - stringify!(indirectCRL) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(ISSUING_DIST_POINT_st), + stringify!(DIST_POINT_st), "::", - stringify!(onlyattr) + stringify!(CRLissuer) ) ); } -impl Default for ISSUING_DIST_POINT_st { +impl Default for DIST_POINT_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24768,109 +24141,126 @@ impl Default for ISSUING_DIST_POINT_st { } } } +pub type CRL_DIST_POINTS = stack_st_DIST_POINT; +pub type sk_DIST_POINT_free_func = + ::std::option::Option; +pub type sk_DIST_POINT_copy_func = + ::std::option::Option *mut DIST_POINT>; +pub type sk_DIST_POINT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const DIST_POINT, + arg2: *const *const DIST_POINT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_DIST_POINT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut DIST_POINT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_purpose_st { - pub purpose: ::std::os::raw::c_int, - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_purpose: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const x509_purpose_st, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub sname: *mut ::std::os::raw::c_char, - pub usr_data: *mut ::std::os::raw::c_void, +pub struct AUTHORITY_KEYID_st { + pub keyid: *mut ASN1_OCTET_STRING, + pub issuer: *mut GENERAL_NAMES, + pub serial: *mut ASN1_INTEGER, } #[test] -fn bindgen_test_layout_x509_purpose_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); +fn bindgen_test_layout_AUTHORITY_KEYID_st() { + 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!(x509_purpose_st)) + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - ::std::mem::align_of::(), + ::std::mem::align_of::(), 8usize, - concat!("Alignment of ", stringify!(x509_purpose_st)) + concat!("Alignment of ", stringify!(AUTHORITY_KEYID_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).keyid) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(purpose) + stringify!(keyid) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, - 4usize, + unsafe { ::std::ptr::addr_of!((*ptr).issuer) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(trust) + stringify!(issuer) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 8usize, + unsafe { ::std::ptr::addr_of!((*ptr).serial) as usize - ptr as usize }, + 16usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(AUTHORITY_KEYID_st), "::", - stringify!(flags) + stringify!(serial) ) ); +} +impl Default for AUTHORITY_KEYID_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 NOTICEREF_st { + pub organization: *mut ASN1_STRING, + pub noticenos: *mut stack_st_ASN1_INTEGER, +} +#[test] +fn bindgen_test_layout_NOTICEREF_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + ::std::mem::size_of::(), 16usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(check_purpose) - ) + concat!("Size of: ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(x509_purpose_st), - "::", - stringify!(name) - ) + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NOTICEREF_st)) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).organization) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(sname) + stringify!(organization) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, - 40usize, + unsafe { ::std::ptr::addr_of!((*ptr).noticenos) as usize - ptr as usize }, + 8usize, concat!( "Offset of field: ", - stringify!(x509_purpose_st), + stringify!(NOTICEREF_st), "::", - stringify!(usr_data) + stringify!(noticenos) ) ); } -impl Default for x509_purpose_st { +impl Default for NOTICEREF_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -24879,1182 +24269,1291 @@ impl Default for x509_purpose_st { } } } -pub type X509_PURPOSE = x509_purpose_st; +pub type NOTICEREF = NOTICEREF_st; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_PURPOSE { - _unused: [u8; 0], -} -pub type sk_X509_PURPOSE_free_func = - ::std::option::Option; -pub type sk_X509_PURPOSE_copy_func = - ::std::option::Option *mut X509_PURPOSE>; -pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const X509_PURPOSE, - arg2: *mut *const X509_PURPOSE, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_PURPOSE, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_new"] - pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_free"] - pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_BASIC_CONSTRAINTS"] - pub fn d2i_BASIC_CONSTRAINTS( - a: *mut *mut BASIC_CONSTRAINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut BASIC_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_BASIC_CONSTRAINTS"] - pub fn i2d_BASIC_CONSTRAINTS( - a: *const BASIC_CONSTRAINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_BASIC_CONSTRAINTS_it"] - pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_new"] - pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_free"] - pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_KEYID"] - pub fn d2i_AUTHORITY_KEYID( - a: *mut *mut AUTHORITY_KEYID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_KEYID; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_KEYID"] - pub fn i2d_AUTHORITY_KEYID( - a: *mut AUTHORITY_KEYID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_KEYID_it"] - pub static AUTHORITY_KEYID_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_new"] - pub fn GENERAL_NAME_new() -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_free"] - pub fn GENERAL_NAME_free(a: *mut GENERAL_NAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAME"] - pub fn d2i_GENERAL_NAME( - a: *mut *mut GENERAL_NAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAME"] - pub fn i2d_GENERAL_NAME( - a: *mut GENERAL_NAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_it"] - pub static GENERAL_NAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_dup"] - pub fn GENERAL_NAME_dup(a: *mut GENERAL_NAME) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_cmp"] - pub fn GENERAL_NAME_cmp( - a: *const GENERAL_NAME, - b: *const GENERAL_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *mut GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_new"] - pub fn GENERAL_NAMES_new() -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_free"] - pub fn GENERAL_NAMES_free(a: *mut GENERAL_NAMES); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_GENERAL_NAMES"] - pub fn d2i_GENERAL_NAMES( - a: *mut *mut GENERAL_NAMES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_GENERAL_NAMES"] - pub fn i2d_GENERAL_NAMES( - a: *mut GENERAL_NAMES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAMES_it"] - pub static GENERAL_NAMES_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *mut GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAMES"] - pub fn v2i_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - nval: *const stack_st_CONF_VALUE, - ) -> *mut GENERAL_NAMES; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_new"] - pub fn OTHERNAME_new() -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_free"] - pub fn OTHERNAME_free(a: *mut OTHERNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OTHERNAME"] - pub fn d2i_OTHERNAME( - a: *mut *mut OTHERNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OTHERNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OTHERNAME"] - pub fn i2d_OTHERNAME( - a: *const OTHERNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_it"] - pub static OTHERNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_new"] - pub fn EDIPARTYNAME_new() -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_free"] - pub fn EDIPARTYNAME_free(a: *mut EDIPARTYNAME); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EDIPARTYNAME"] - pub fn d2i_EDIPARTYNAME( - a: *mut *mut EDIPARTYNAME, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EDIPARTYNAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EDIPARTYNAME"] - pub fn i2d_EDIPARTYNAME( - a: *const EDIPARTYNAME, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EDIPARTYNAME_it"] - pub static EDIPARTYNAME_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OTHERNAME_cmp"] - pub fn OTHERNAME_cmp(a: *mut OTHERNAME, b: *mut OTHERNAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_value"] - pub fn GENERAL_NAME_set0_value( - a: *mut GENERAL_NAME, - type_: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_value"] - pub fn GENERAL_NAME_get0_value( - a: *const GENERAL_NAME, - ptype: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_set0_othername"] - pub fn GENERAL_NAME_set0_othername( - gen: *mut GENERAL_NAME, - oid: *mut ASN1_OBJECT, - value: *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_NAME_get0_otherName"] - pub fn GENERAL_NAME_get0_otherName( - gen: *const GENERAL_NAME, - poid: *mut *mut ASN1_OBJECT, - pvalue: *mut *mut ASN1_TYPE, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ia5: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_12_15_EXTENDED_KEY_USAGE_new"] - pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_free"] - pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_EXTENDED_KEY_USAGE"] - pub fn d2i_EXTENDED_KEY_USAGE( - a: *mut *mut EXTENDED_KEY_USAGE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut EXTENDED_KEY_USAGE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_EXTENDED_KEY_USAGE"] - pub fn i2d_EXTENDED_KEY_USAGE( - a: *const EXTENDED_KEY_USAGE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_EXTENDED_KEY_USAGE_it"] - pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2a_ACCESS_DESCRIPTION"] - pub fn i2a_ACCESS_DESCRIPTION( - bp: *mut BIO, - a: *const ACCESS_DESCRIPTION, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_new"] - pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct USERNOTICE_st { + pub noticeref: *mut NOTICEREF, + pub exptext: *mut ASN1_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_free"] - pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); +#[test] +fn bindgen_test_layout_USERNOTICE_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!(USERNOTICE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(USERNOTICE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).noticeref) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(noticeref) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).exptext) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(USERNOTICE_st), + "::", + stringify!(exptext) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CERTIFICATEPOLICIES"] - pub fn d2i_CERTIFICATEPOLICIES( - a: *mut *mut CERTIFICATEPOLICIES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CERTIFICATEPOLICIES; +impl Default for USERNOTICE_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_fips_0_12_15_i2d_CERTIFICATEPOLICIES"] - pub fn i2d_CERTIFICATEPOLICIES( - a: *const CERTIFICATEPOLICIES, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type USERNOTICE = USERNOTICE_st; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct POLICYQUALINFO_st { + pub pqualid: *mut ASN1_OBJECT, + pub d: POLICYQUALINFO_st__bindgen_ty_1, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CERTIFICATEPOLICIES_it"] - pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; +#[repr(C)] +#[derive(Copy, Clone)] +pub union POLICYQUALINFO_st__bindgen_ty_1 { + pub cpsuri: *mut ASN1_IA5STRING, + pub usernotice: *mut USERNOTICE, + pub other: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_new"] - pub fn POLICYINFO_new() -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_st__bindgen_ty_1() { + 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!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st__bindgen_ty_1)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).cpsuri) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(cpsuri) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usernotice) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(usernotice) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).other) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st__bindgen_ty_1), + "::", + stringify!(other) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYINFO_free"] - pub fn POLICYINFO_free(a: *mut POLICYINFO); +impl Default for POLICYQUALINFO_st__bindgen_ty_1 { + 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_fips_0_12_15_d2i_POLICYINFO"] - pub fn d2i_POLICYINFO( - a: *mut *mut POLICYINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYINFO; +#[test] +fn bindgen_test_layout_POLICYQUALINFO_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!(POLICYQUALINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYQUALINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pqualid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(pqualid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).d) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYQUALINFO_st), + "::", + stringify!(d) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_POLICYINFO"] - pub fn i2d_POLICYINFO( - a: *const POLICYINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for POLICYQUALINFO_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_fips_0_12_15_POLICYINFO_it"] - pub static POLICYINFO_it: ASN1_ITEM; +pub type POLICYQUALINFO = POLICYQUALINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYQUALINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_new"] - pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; +pub type sk_POLICYQUALINFO_free_func = + ::std::option::Option; +pub type sk_POLICYQUALINFO_copy_func = + ::std::option::Option *mut POLICYQUALINFO>; +pub type sk_POLICYQUALINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYQUALINFO, + arg2: *const *const POLICYQUALINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYQUALINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYQUALINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICYINFO_st { + pub policyid: *mut ASN1_OBJECT, + pub qualifiers: *mut stack_st_POLICYQUALINFO, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_free"] - pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); +#[test] +fn bindgen_test_layout_POLICYINFO_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!(POLICYINFO_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICYINFO_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).policyid) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(policyid) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).qualifiers) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICYINFO_st), + "::", + stringify!(qualifiers) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_POLICYQUALINFO"] - pub fn d2i_POLICYQUALINFO( - a: *mut *mut POLICYQUALINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut POLICYQUALINFO; +impl Default for POLICYINFO_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_fips_0_12_15_i2d_POLICYQUALINFO"] - pub fn i2d_POLICYQUALINFO( - a: *const POLICYQUALINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICYINFO = POLICYINFO_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICYINFO { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICYQUALINFO_it"] - pub static POLICYQUALINFO_it: ASN1_ITEM; +pub type CERTIFICATEPOLICIES = stack_st_POLICYINFO; +pub type sk_POLICYINFO_free_func = + ::std::option::Option; +pub type sk_POLICYINFO_copy_func = + ::std::option::Option *mut POLICYINFO>; +pub type sk_POLICYINFO_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICYINFO, + arg2: *const *const POLICYINFO, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICYINFO_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICYINFO, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_MAPPING_st { + pub issuerDomainPolicy: *mut ASN1_OBJECT, + pub subjectDomainPolicy: *mut ASN1_OBJECT, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_new"] - pub fn USERNOTICE_new() -> *mut USERNOTICE; +#[test] +fn bindgen_test_layout_POLICY_MAPPING_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!(POLICY_MAPPING_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_MAPPING_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuerDomainPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(issuerDomainPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subjectDomainPolicy) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_MAPPING_st), + "::", + stringify!(subjectDomainPolicy) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_free"] - pub fn USERNOTICE_free(a: *mut USERNOTICE); +impl Default for POLICY_MAPPING_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_fips_0_12_15_d2i_USERNOTICE"] - pub fn d2i_USERNOTICE( - a: *mut *mut USERNOTICE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut USERNOTICE; +pub type POLICY_MAPPING = POLICY_MAPPING_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_POLICY_MAPPING { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_USERNOTICE"] - pub fn i2d_USERNOTICE( - a: *const USERNOTICE, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type sk_POLICY_MAPPING_free_func = + ::std::option::Option; +pub type sk_POLICY_MAPPING_copy_func = + ::std::option::Option *mut POLICY_MAPPING>; +pub type sk_POLICY_MAPPING_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const POLICY_MAPPING, + arg2: *const *const POLICY_MAPPING, + ) -> ::std::os::raw::c_int, +>; +pub type sk_POLICY_MAPPING_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut POLICY_MAPPING, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type POLICY_MAPPINGS = stack_st_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct GENERAL_SUBTREE_st { + pub base: *mut GENERAL_NAME, + pub minimum: *mut ASN1_INTEGER, + pub maximum: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_USERNOTICE_it"] - pub static USERNOTICE_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_GENERAL_SUBTREE_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!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(GENERAL_SUBTREE_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).minimum) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(minimum) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maximum) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(GENERAL_SUBTREE_st), + "::", + stringify!(maximum) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_new"] - pub fn NOTICEREF_new() -> *mut NOTICEREF; +impl Default for GENERAL_SUBTREE_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_fips_0_12_15_NOTICEREF_free"] - pub fn NOTICEREF_free(a: *mut NOTICEREF); +pub type GENERAL_SUBTREE = GENERAL_SUBTREE_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_GENERAL_SUBTREE { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_NOTICEREF"] - pub fn d2i_NOTICEREF( - a: *mut *mut NOTICEREF, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut NOTICEREF; +pub type sk_GENERAL_SUBTREE_free_func = + ::std::option::Option; +pub type sk_GENERAL_SUBTREE_copy_func = ::std::option::Option< + unsafe extern "C" fn(arg1: *const GENERAL_SUBTREE) -> *mut GENERAL_SUBTREE, +>; +pub type sk_GENERAL_SUBTREE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const GENERAL_SUBTREE, + arg2: *const *const GENERAL_SUBTREE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_GENERAL_SUBTREE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut GENERAL_SUBTREE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct NAME_CONSTRAINTS_st { + pub permittedSubtrees: *mut stack_st_GENERAL_SUBTREE, + pub excludedSubtrees: *mut stack_st_GENERAL_SUBTREE, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_NOTICEREF"] - pub fn i2d_NOTICEREF( - a: *const NOTICEREF, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_NAME_CONSTRAINTS_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!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(NAME_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).permittedSubtrees) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(permittedSubtrees) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).excludedSubtrees) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(NAME_CONSTRAINTS_st), + "::", + stringify!(excludedSubtrees) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NOTICEREF_it"] - pub static NOTICEREF_it: ASN1_ITEM; +impl Default for NAME_CONSTRAINTS_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_fips_0_12_15_CRL_DIST_POINTS_new"] - pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct POLICY_CONSTRAINTS_st { + pub requireExplicitPolicy: *mut ASN1_INTEGER, + pub inhibitPolicyMapping: *mut ASN1_INTEGER, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_free"] - pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); +#[test] +fn bindgen_test_layout_POLICY_CONSTRAINTS_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!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(POLICY_CONSTRAINTS_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).requireExplicitPolicy) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(requireExplicitPolicy) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).inhibitPolicyMapping) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(POLICY_CONSTRAINTS_st), + "::", + stringify!(inhibitPolicyMapping) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_CRL_DIST_POINTS"] - pub fn d2i_CRL_DIST_POINTS( - a: *mut *mut CRL_DIST_POINTS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut CRL_DIST_POINTS; +impl Default for POLICY_CONSTRAINTS_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_fips_0_12_15_i2d_CRL_DIST_POINTS"] - pub fn i2d_CRL_DIST_POINTS( - a: *mut CRL_DIST_POINTS, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +pub type POLICY_CONSTRAINTS = POLICY_CONSTRAINTS_st; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct ISSUING_DIST_POINT_st { + pub distpoint: *mut DIST_POINT_NAME, + pub onlyuser: ASN1_BOOLEAN, + pub onlyCA: ASN1_BOOLEAN, + pub onlysomereasons: *mut ASN1_BIT_STRING, + pub indirectCRL: ASN1_BOOLEAN, + pub onlyattr: ASN1_BOOLEAN, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRL_DIST_POINTS_it"] - pub static CRL_DIST_POINTS_it: ASN1_ITEM; +#[test] +fn bindgen_test_layout_ISSUING_DIST_POINT_st() { + const UNINIT: ::std::mem::MaybeUninit = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 32usize, + concat!("Size of: ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(ISSUING_DIST_POINT_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).distpoint) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(distpoint) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyuser) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyuser) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyCA) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyCA) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlysomereasons) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlysomereasons) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).indirectCRL) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(indirectCRL) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).onlyattr) as usize - ptr as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(ISSUING_DIST_POINT_st), + "::", + stringify!(onlyattr) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_new"] - pub fn DIST_POINT_new() -> *mut DIST_POINT; +impl Default for ISSUING_DIST_POINT_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_fips_0_12_15_DIST_POINT_free"] - pub fn DIST_POINT_free(a: *mut DIST_POINT); +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_purpose_st { + pub purpose: ::std::os::raw::c_int, + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_purpose: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const x509_purpose_st, + arg2: *const X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub sname: *mut ::std::os::raw::c_char, + pub usr_data: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT"] - pub fn d2i_DIST_POINT( - a: *mut *mut DIST_POINT, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT; +#[test] +fn bindgen_test_layout_x509_purpose_st() { + 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!(x509_purpose_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_purpose_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).purpose) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_purpose) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(check_purpose) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sname) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(sname) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).usr_data) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(x509_purpose_st), + "::", + stringify!(usr_data) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT"] - pub fn i2d_DIST_POINT( - a: *mut DIST_POINT, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; +impl Default for x509_purpose_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_fips_0_12_15_DIST_POINT_it"] - pub static DIST_POINT_it: ASN1_ITEM; +pub type X509_PURPOSE = x509_purpose_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_PURPOSE { + _unused: [u8; 0], } +pub type sk_X509_PURPOSE_free_func = + ::std::option::Option; +pub type sk_X509_PURPOSE_copy_func = + ::std::option::Option *mut X509_PURPOSE>; +pub type sk_X509_PURPOSE_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_PURPOSE, + arg2: *const *const X509_PURPOSE, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_PURPOSE_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_PURPOSE, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_new"] - pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_new"] + pub fn BASIC_CONSTRAINTS_new() -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_free"] - pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_free"] + pub fn BASIC_CONSTRAINTS_free(a: *mut BASIC_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_DIST_POINT_NAME"] - pub fn d2i_DIST_POINT_NAME( - a: *mut *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_BASIC_CONSTRAINTS"] + pub fn d2i_BASIC_CONSTRAINTS( + a: *mut *mut BASIC_CONSTRAINTS, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut DIST_POINT_NAME; + ) -> *mut BASIC_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_DIST_POINT_NAME"] - pub fn i2d_DIST_POINT_NAME( - a: *mut DIST_POINT_NAME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_BASIC_CONSTRAINTS"] + pub fn i2d_BASIC_CONSTRAINTS( + a: *const BASIC_CONSTRAINTS, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_NAME_it"] - pub static DIST_POINT_NAME_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_BASIC_CONSTRAINTS_it"] + pub static BASIC_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_new"] - pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_new"] + pub fn AUTHORITY_KEYID_new() -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_free"] - pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_free"] + pub fn AUTHORITY_KEYID_free(a: *mut AUTHORITY_KEYID); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ISSUING_DIST_POINT"] - pub fn d2i_ISSUING_DIST_POINT( - a: *mut *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_KEYID"] + pub fn d2i_AUTHORITY_KEYID( + a: *mut *mut AUTHORITY_KEYID, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ISSUING_DIST_POINT; + ) -> *mut AUTHORITY_KEYID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ISSUING_DIST_POINT"] - pub fn i2d_ISSUING_DIST_POINT( - a: *mut ISSUING_DIST_POINT, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_KEYID"] + pub fn i2d_AUTHORITY_KEYID( + a: *mut AUTHORITY_KEYID, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ISSUING_DIST_POINT_it"] - pub static ISSUING_DIST_POINT_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_DIST_POINT_set_dpname"] - pub fn DIST_POINT_set_dpname( - dpn: *mut DIST_POINT_NAME, - iname: *mut X509_NAME, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check(x: *mut X509, nc: *mut NAME_CONSTRAINTS) - -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_KEYID_it"] + pub static AUTHORITY_KEYID_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_new"] - pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_new"] + pub fn EXTENDED_KEY_USAGE_new() -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_free"] - pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_free"] + pub fn EXTENDED_KEY_USAGE_free(a: *mut EXTENDED_KEY_USAGE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_ACCESS_DESCRIPTION"] - pub fn d2i_ACCESS_DESCRIPTION( - a: *mut *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_EXTENDED_KEY_USAGE"] + pub fn d2i_EXTENDED_KEY_USAGE( + a: *mut *mut EXTENDED_KEY_USAGE, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut ACCESS_DESCRIPTION; + ) -> *mut EXTENDED_KEY_USAGE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_ACCESS_DESCRIPTION"] - pub fn i2d_ACCESS_DESCRIPTION( - a: *mut ACCESS_DESCRIPTION, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_EXTENDED_KEY_USAGE"] + pub fn i2d_EXTENDED_KEY_USAGE( + a: *const EXTENDED_KEY_USAGE, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ACCESS_DESCRIPTION_it"] - pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_EXTENDED_KEY_USAGE_it"] + pub static EXTENDED_KEY_USAGE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_new"] - pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_new"] + pub fn CERTIFICATEPOLICIES_new() -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_free"] - pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_free"] + pub fn CERTIFICATEPOLICIES_free(a: *mut CERTIFICATEPOLICIES); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_AUTHORITY_INFO_ACCESS"] - pub fn d2i_AUTHORITY_INFO_ACCESS( - a: *mut *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CERTIFICATEPOLICIES"] + pub fn d2i_CERTIFICATEPOLICIES( + a: *mut *mut CERTIFICATEPOLICIES, in_: *mut *const ::std::os::raw::c_uchar, len: ::std::os::raw::c_long, - ) -> *mut AUTHORITY_INFO_ACCESS; + ) -> *mut CERTIFICATEPOLICIES; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_AUTHORITY_INFO_ACCESS"] - pub fn i2d_AUTHORITY_INFO_ACCESS( - a: *mut AUTHORITY_INFO_ACCESS, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CERTIFICATEPOLICIES"] + pub fn i2d_CERTIFICATEPOLICIES( + a: *const CERTIFICATEPOLICIES, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_AUTHORITY_INFO_ACCESS_it"] - pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_it"] - pub static POLICY_MAPPING_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_new"] - pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPING_free"] - pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_MAPPINGS_it"] - pub static POLICY_MAPPINGS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_it"] - pub static GENERAL_SUBTREE_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_new"] - pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_GENERAL_SUBTREE_free"] - pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_it"] - pub static NAME_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_new"] - pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_NAME_CONSTRAINTS_free"] - pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_new"] - pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_free"] - pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_POLICY_CONSTRAINTS_it"] - pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_GENERAL_NAME"] - pub fn a2i_GENERAL_NAME( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - gen_type: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME"] - pub fn v2i_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - ) -> *mut GENERAL_NAME; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_v2i_GENERAL_NAME_ex"] - pub fn v2i_GENERAL_NAME_ex( - out: *mut GENERAL_NAME, - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - cnf: *const CONF_VALUE, - is_nc: ::std::os::raw::c_int, - ) -> *mut GENERAL_NAME; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CERTIFICATEPOLICIES_it"] + pub static CERTIFICATEPOLICIES_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); -} -#[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) - ) - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYINFO_new"] + pub fn POLICYINFO_new() -> *mut POLICYINFO; } -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_fips_0_13_0_POLICYINFO_free"] + pub fn POLICYINFO_free(a: *mut POLICYINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYINFO"] + pub fn d2i_POLICYINFO( + a: *mut *mut POLICYINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYINFO"] + pub fn i2d_POLICYINFO( + a: *const POLICYINFO, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYINFO_it"] + pub static POLICYINFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_new"] + pub fn POLICYQUALINFO_new() -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_POLICYQUALINFO_free"] + pub fn POLICYQUALINFO_free(a: *mut POLICYQUALINFO); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_d2i_POLICYQUALINFO"] + pub fn d2i_POLICYQUALINFO( + a: *mut *mut POLICYQUALINFO, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut POLICYQUALINFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_POLICYQUALINFO"] + pub fn i2d_POLICYQUALINFO( + a: *const POLICYQUALINFO, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICYQUALINFO_it"] + pub static POLICYQUALINFO_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_new"] + pub fn USERNOTICE_new() -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_free"] + pub fn USERNOTICE_free(a: *mut USERNOTICE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_USERNOTICE"] + pub fn d2i_USERNOTICE( + a: *mut *mut USERNOTICE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut USERNOTICE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_USERNOTICE"] + pub fn i2d_USERNOTICE( + a: *const USERNOTICE, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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, + #[link_name = "\u{1}aws_lc_fips_0_13_0_USERNOTICE_it"] + pub static USERNOTICE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_new"] + pub fn NOTICEREF_new() -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_free"] + pub fn NOTICEREF_free(a: *mut NOTICEREF); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_NOTICEREF"] + pub fn d2i_NOTICEREF( + a: *mut *mut NOTICEREF, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut NOTICEREF; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_NOTICEREF"] + pub fn i2d_NOTICEREF( + a: *const NOTICEREF, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NOTICEREF_it"] + pub static NOTICEREF_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - meth: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_new"] + pub fn CRL_DIST_POINTS_new() -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - meth: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_free"] + pub fn CRL_DIST_POINTS_free(a: *mut CRL_DIST_POINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add"] - pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_CRL_DIST_POINTS"] + pub fn d2i_CRL_DIST_POINTS( + a: *mut *mut CRL_DIST_POINTS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut CRL_DIST_POINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_list"] - pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_CRL_DIST_POINTS"] + pub fn i2d_CRL_DIST_POINTS( + a: *mut CRL_DIST_POINTS, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_add_alias"] - pub fn X509V3_EXT_add_alias( - nid_to: ::std::os::raw::c_int, - nid_from: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRL_DIST_POINTS_it"] + pub static CRL_DIST_POINTS_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_new"] + pub fn DIST_POINT_new() -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_free"] + pub fn DIST_POINT_free(a: *mut DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT"] + pub fn d2i_DIST_POINT( + a: *mut *mut DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_DIST_POINT"] + pub fn i2d_DIST_POINT( + a: *mut DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_cleanup"] - pub fn X509V3_EXT_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_it"] + pub static DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get"] - pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_new"] + pub fn DIST_POINT_NAME_new() -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_get_nid"] - pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_free"] + pub fn DIST_POINT_NAME_free(a: *mut DIST_POINT_NAME); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_DIST_POINT_NAME"] + pub fn d2i_DIST_POINT_NAME( + a: *mut *mut DIST_POINT_NAME, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut DIST_POINT_NAME; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_i2d_DIST_POINT_NAME"] + pub fn i2d_DIST_POINT_NAME( + a: *mut DIST_POINT_NAME, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_d2i"] - pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_NAME_it"] + pub static DIST_POINT_NAME_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_get_d2i"] - pub fn X509V3_get_d2i( - extensions: *const stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - out_critical: *mut ::std::os::raw::c_int, - out_idx: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_new"] + pub fn ISSUING_DIST_POINT_new() -> *mut ISSUING_DIST_POINT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_free"] - pub fn X509V3_EXT_free( - nid: ::std::os::raw::c_int, - ext_data: *mut ::std::os::raw::c_void, + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_free"] + pub fn ISSUING_DIST_POINT_free(a: *mut ISSUING_DIST_POINT); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ISSUING_DIST_POINT"] + pub fn d2i_ISSUING_DIST_POINT( + a: *mut *mut ISSUING_DIST_POINT, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ISSUING_DIST_POINT; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ISSUING_DIST_POINT"] + pub fn i2d_ISSUING_DIST_POINT( + a: *mut ISSUING_DIST_POINT, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_i2d"] - pub fn X509V3_EXT_i2d( - ext_nid: ::std::os::raw::c_int, - crit: ::std::os::raw::c_int, - ext_struc: *mut ::std::os::raw::c_void, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_fips_0_13_0_ISSUING_DIST_POINT_it"] + pub static ISSUING_DIST_POINT_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_add1_i2d"] - pub fn X509V3_add1_i2d( - x: *mut *mut stack_st_X509_EXTENSION, - nid: ::std::os::raw::c_int, - value: *mut ::std::os::raw::c_void, - crit: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_fips_0_13_0_DIST_POINT_set_dpname"] + pub fn DIST_POINT_set_dpname( + dpn: *mut DIST_POINT_NAME, + iname: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509V3_EXT_val_prn"] - pub fn X509V3_EXT_val_prn( - out: *mut BIO, - val: *const stack_st_CONF_VALUE, - indent: ::std::os::raw::c_int, - ml: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_fips_0_13_0_ACCESS_DESCRIPTION_new"] + pub fn ACCESS_DESCRIPTION_new() -> *mut ACCESS_DESCRIPTION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_free"] + pub fn ACCESS_DESCRIPTION_free(a: *mut ACCESS_DESCRIPTION); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_ACCESS_DESCRIPTION"] + pub fn d2i_ACCESS_DESCRIPTION( + a: *mut *mut ACCESS_DESCRIPTION, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut ACCESS_DESCRIPTION; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_ACCESS_DESCRIPTION"] + pub fn i2d_ACCESS_DESCRIPTION( + a: *mut ACCESS_DESCRIPTION, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_ACCESS_DESCRIPTION_it"] + pub static ACCESS_DESCRIPTION_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_new"] + pub fn AUTHORITY_INFO_ACCESS_new() -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_free"] + pub fn AUTHORITY_INFO_ACCESS_free(a: *mut AUTHORITY_INFO_ACCESS); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_AUTHORITY_INFO_ACCESS"] + pub fn d2i_AUTHORITY_INFO_ACCESS( + a: *mut *mut AUTHORITY_INFO_ACCESS, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut AUTHORITY_INFO_ACCESS; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_AUTHORITY_INFO_ACCESS"] + pub fn i2d_AUTHORITY_INFO_ACCESS( + a: *mut AUTHORITY_INFO_ACCESS, + out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_AUTHORITY_INFO_ACCESS_it"] + pub static AUTHORITY_INFO_ACCESS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ca"] - pub fn X509_check_ca(x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_it"] + pub static POLICY_MAPPING_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_new"] + pub fn POLICY_MAPPING_new() -> *mut POLICY_MAPPING; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPING_free"] + pub fn POLICY_MAPPING_free(a: *mut POLICY_MAPPING); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_set"] - pub fn X509_PURPOSE_set( - p: *mut ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_MAPPINGS_it"] + pub static POLICY_MAPPINGS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_GENERAL_SUBTREE_it"] + pub static GENERAL_SUBTREE_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_akid"] - pub fn X509_check_akid(issuer: *mut X509, akid: *mut AUTHORITY_KEYID) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_new"] + pub fn GENERAL_SUBTREE_new() -> *mut GENERAL_SUBTREE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extension_flags"] - pub fn X509_get_extension_flags(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_GENERAL_SUBTREE_free"] + pub fn GENERAL_SUBTREE_free(a: *mut GENERAL_SUBTREE); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_key_usage"] - pub fn X509_get_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_it"] + pub static NAME_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get_extended_key_usage"] - pub fn X509_get_extended_key_usage(x: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_new"] + pub fn NAME_CONSTRAINTS_new() -> *mut NAME_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_subject_key_id"] - pub fn X509_get0_subject_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_NAME_CONSTRAINTS_free"] + pub fn NAME_CONSTRAINTS_free(a: *mut NAME_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_key_id"] - pub fn X509_get0_authority_key_id(x509: *mut X509) -> *const ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_new"] + pub fn POLICY_CONSTRAINTS_new() -> *mut POLICY_CONSTRAINTS; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_issuer"] - pub fn X509_get0_authority_issuer(x509: *mut X509) -> *const GENERAL_NAMES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_free"] + pub fn POLICY_CONSTRAINTS_free(a: *mut POLICY_CONSTRAINTS); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get0_authority_serial"] - pub fn X509_get0_authority_serial(x509: *mut X509) -> *const ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_fips_0_13_0_POLICY_CONSTRAINTS_it"] + pub static POLICY_CONSTRAINTS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_count"] - pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add"] + pub fn X509V3_EXT_add(ext: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0"] - pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *mut X509_PURPOSE; + pub fn X509V3_EXT_add_list(extlist: *mut X509V3_EXT_METHOD) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_sname"] - pub fn X509_PURPOSE_get_by_sname(sname: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_add_alias"] + pub fn X509V3_EXT_add_alias( + nid_to: ::std::os::raw::c_int, + nid_from: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_by_id"] - pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + pub fn X509V3_EXT_cleanup(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_add"] - pub fn X509_PURPOSE_add( - id: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ck: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_PURPOSE, - arg2: *const X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - name: *mut ::std::os::raw::c_char, - sname: *mut ::std::os::raw::c_char, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get"] + pub fn X509V3_EXT_get(ext: *const X509_EXTENSION) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_name"] - pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_get_nid"] + pub fn X509V3_EXT_get_nid(nid: ::std::os::raw::c_int) -> *const X509V3_EXT_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get0_sname"] - pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_d2i"] + pub fn X509V3_EXT_d2i(ext: *const X509_EXTENSION) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_trust"] - pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_get_d2i"] + pub fn X509V3_get_d2i( + extensions: *const stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + out_critical: *mut ::std::os::raw::c_int, + out_idx: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_cleanup"] - pub fn X509_PURPOSE_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_free"] + pub fn X509V3_EXT_free( + nid: ::std::os::raw::c_int, + ext_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_PURPOSE_get_id"] - pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_EXT_i2d"] + pub fn X509V3_EXT_i2d( + ext_nid: ::std::os::raw::c_int, + crit: ::std::os::raw::c_int, + ext_struc: *mut ::std::os::raw::c_void, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_email"] - pub fn X509_get1_email(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509V3_add1_i2d"] + pub fn X509V3_add1_i2d( + x: *mut *mut stack_st_X509_EXTENSION, + nid: ::std::os::raw::c_int, + value: *mut ::std::os::raw::c_void, + crit: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_REQ_get1_email"] - pub fn X509_REQ_get1_email(x: *mut X509_REQ) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_set"] + pub fn X509_PURPOSE_set( + p: *mut ::std::os::raw::c_int, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_email_free"] - pub fn X509_email_free(sk: *mut stack_st_OPENSSL_STRING); + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_count"] + pub fn X509_PURPOSE_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_get1_ocsp"] - pub fn X509_get1_ocsp(x: *mut X509) -> *mut stack_st_OPENSSL_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0"] + pub fn X509_PURPOSE_get0(idx: ::std::os::raw::c_int) -> *const X509_PURPOSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_host"] - pub fn X509_check_host( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_sname"] + pub fn X509_PURPOSE_get_by_sname(sname: *const ::std::os::raw::c_char) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_email"] - pub fn X509_check_email( - x: *mut X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_by_id"] + pub fn X509_PURPOSE_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip"] - pub fn X509_check_ip( - x: *mut X509, - chk: *const ::std::os::raw::c_uchar, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get0_name"] + pub fn X509_PURPOSE_get0_name(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x: *mut 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_fips_0_13_0_X509_PURPOSE_get0_sname"] + pub fn X509_PURPOSE_get0_sname(xp: *const X509_PURPOSE) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_fips_0_13_0_X509_PURPOSE_get_trust"] + pub fn X509_PURPOSE_get_trust(xp: *const X509_PURPOSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_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_fips_0_13_0_X509_PURPOSE_get_id"] + pub fn X509_PURPOSE_get_id(arg1: *const X509_PURPOSE) -> ::std::os::raw::c_int; } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -26064,10 +25563,16 @@ pub struct ocsp_cert_id_st { pub type OCSP_CERTID = ocsp_cert_id_st; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ocsp_responder_id_st { +pub struct ocsp_one_request_st { _unused: [u8; 0], } -pub type OCSP_RESPID = ocsp_responder_id_st; +pub type OCSP_ONEREQ = ocsp_one_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ocsp_req_info_st { + _unused: [u8; 0], +} +pub type OCSP_REQINFO = ocsp_req_info_st; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ocsp_signature_st { @@ -26076,6 +25581,12 @@ pub struct ocsp_signature_st { pub type OCSP_SIGNATURE = ocsp_signature_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_request_st { + _unused: [u8; 0], +} +pub type OCSP_REQUEST = ocsp_request_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_resp_bytes_st { _unused: [u8; 0], } @@ -26112,6 +25623,12 @@ pub struct ocsp_response_st { pub type OCSP_RESPONSE = ocsp_response_st; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct ocsp_responder_id_st { + _unused: [u8; 0], +} +pub type OCSP_RESPID = ocsp_responder_id_st; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct ocsp_basic_response_st { _unused: [u8; 0], } @@ -26127,8 +25644,8 @@ pub type sk_OCSP_CERTID_copy_func = ::std::option::Option *mut OCSP_CERTID>; pub type sk_OCSP_CERTID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_CERTID, - arg2: *mut *const OCSP_CERTID, + arg1: *const *const OCSP_CERTID, + arg2: *const *const OCSP_CERTID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< @@ -26139,6 +25656,27 @@ pub type sk_OCSP_CERTID_delete_if_func = ::std::option::Option< >; #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct stack_st_OCSP_ONEREQ { + _unused: [u8; 0], +} +pub type sk_OCSP_ONEREQ_free_func = + ::std::option::Option; +pub type sk_OCSP_ONEREQ_copy_func = + ::std::option::Option *mut OCSP_ONEREQ>; +pub type sk_OCSP_ONEREQ_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const OCSP_ONEREQ, + arg2: *const *const OCSP_ONEREQ, + ) -> ::std::os::raw::c_int, +>; +pub type sk_OCSP_ONEREQ_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut OCSP_ONEREQ, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct stack_st_OCSP_RESPID { _unused: [u8; 0], } @@ -26148,8 +25686,8 @@ pub type sk_OCSP_RESPID_copy_func = ::std::option::Option *mut OCSP_RESPID>; pub type sk_OCSP_RESPID_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_RESPID, - arg2: *mut *const OCSP_RESPID, + arg1: *const *const OCSP_RESPID, + arg2: *const *const OCSP_RESPID, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_RESPID_delete_if_func = ::std::option::Option< @@ -26170,8 +25708,8 @@ pub type sk_OCSP_SINGLERESP_copy_func = ::std::option::Option< >; pub type sk_OCSP_SINGLERESP_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const OCSP_SINGLERESP, - arg2: *mut *const OCSP_SINGLERESP, + arg1: *const *const OCSP_SINGLERESP, + arg2: *const *const OCSP_SINGLERESP, ) -> ::std::os::raw::c_int, >; pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< @@ -26181,15 +25719,123 @@ pub type sk_OCSP_SINGLERESP_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_new"] + pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_free"] + pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_BASICRESP"] + pub fn d2i_OCSP_BASICRESP( + a: *mut *mut OCSP_BASICRESP, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_BASICRESP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_BASICRESP"] + pub fn i2d_OCSP_BASICRESP( + a: *mut OCSP_BASICRESP, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_it"] + pub static OCSP_BASICRESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_new"] + pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_free"] + pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE"] + pub fn d2i_OCSP_RESPONSE( + a: *mut *mut OCSP_RESPONSE, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE"] + pub fn i2d_OCSP_RESPONSE( + a: *mut OCSP_RESPONSE, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_it"] + pub static OCSP_RESPONSE_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_new"] + pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_free"] + pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_CERTID"] + pub fn d2i_OCSP_CERTID( + a: *mut *mut OCSP_CERTID, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_CERTID"] + pub fn i2d_OCSP_CERTID( + a: *mut OCSP_CERTID, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_it"] + pub static OCSP_CERTID_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_new"] + pub fn OCSP_REQUEST_new() -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_free"] + pub fn OCSP_REQUEST_free(a: *mut OCSP_REQUEST); +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST"] + pub fn d2i_OCSP_REQUEST( + a: *mut *mut OCSP_REQUEST, + in_: *mut *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_long, + ) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST"] + pub fn i2d_OCSP_REQUEST( + a: *mut OCSP_REQUEST, + out: *mut *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_it"] + pub static OCSP_REQUEST_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_new"] pub fn OCSP_SINGLERESP_new() -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_free"] pub fn OCSP_SINGLERESP_free(a: *mut OCSP_SINGLERESP); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_SINGLERESP"] pub fn d2i_OCSP_SINGLERESP( a: *mut *mut OCSP_SINGLERESP, in_: *mut *const ::std::os::raw::c_uchar, @@ -26197,290 +25843,418 @@ extern "C" { ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_SINGLERESP"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_SINGLERESP"] pub fn i2d_OCSP_SINGLERESP( a: *mut OCSP_SINGLERESP, out: *mut *mut ::std::os::raw::c_uchar, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_SINGLERESP_it"] - pub static OCSP_SINGLERESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_it"] + pub static OCSP_SINGLERESP_it: ASN1_ITEM; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_REQUEST_bio"] + pub fn d2i_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut *mut OCSP_REQUEST) -> *mut OCSP_REQUEST; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_OCSP_RESPONSE_bio"] + pub fn d2i_OCSP_RESPONSE_bio( + bp: *mut BIO, + presp: *mut *mut OCSP_RESPONSE, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_RESPONSE_bio"] + pub fn i2d_OCSP_RESPONSE_bio(bp: *mut BIO, presp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_OCSP_REQUEST_bio"] + pub fn i2d_OCSP_REQUEST_bio(bp: *mut BIO, preq: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_CERTID_dup"] + pub fn OCSP_CERTID_dup(id: *mut OCSP_CERTID) -> *mut OCSP_CERTID; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_bio"] + pub fn OCSP_sendreq_bio( + b: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + ) -> *mut OCSP_RESPONSE; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_new"] + pub fn OCSP_sendreq_new( + io: *mut BIO, + path: *const ::std::os::raw::c_char, + req: *mut OCSP_REQUEST, + maxline: ::std::os::raw::c_int, + ) -> *mut OCSP_REQ_CTX; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_sendreq_nbio"] + pub fn OCSP_sendreq_nbio( + presp: *mut *mut OCSP_RESPONSE, + rctx: *mut OCSP_REQ_CTX, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_new"] - pub fn OCSP_CERTSTATUS_new() -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_new"] + pub fn OCSP_REQ_CTX_new(io: *mut BIO, maxline: ::std::os::raw::c_int) -> *mut OCSP_REQ_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_free"] - pub fn OCSP_CERTSTATUS_free(a: *mut OCSP_CERTSTATUS); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_free"] + pub fn OCSP_REQ_CTX_free(rctx: *mut OCSP_REQ_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTSTATUS"] - pub fn d2i_OCSP_CERTSTATUS( - a: *mut *mut OCSP_CERTSTATUS, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTSTATUS; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_set_max_response_length"] + pub fn OCSP_set_max_response_length(rctx: *mut OCSP_REQ_CTX, len: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTSTATUS"] - pub fn i2d_OCSP_CERTSTATUS( - a: *mut OCSP_CERTSTATUS, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_http"] + pub fn OCSP_REQ_CTX_http( + rctx: *mut OCSP_REQ_CTX, + op: *const ::std::os::raw::c_char, + path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTSTATUS_it"] - pub static OCSP_CERTSTATUS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_set1_req"] + pub fn OCSP_REQ_CTX_set1_req( + rctx: *mut OCSP_REQ_CTX, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_new"] - pub fn OCSP_REVOKEDINFO_new() -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_add1_header"] + pub fn OCSP_REQ_CTX_add1_header( + rctx: *mut OCSP_REQ_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_free"] - pub fn OCSP_REVOKEDINFO_free(a: *mut OCSP_REVOKEDINFO); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQ_CTX_i2d"] + pub fn OCSP_REQ_CTX_i2d( + rctx: *mut OCSP_REQ_CTX, + it: *const ASN1_ITEM, + val: *mut ASN1_VALUE, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_REVOKEDINFO"] - pub fn d2i_OCSP_REVOKEDINFO( - a: *mut *mut OCSP_REVOKEDINFO, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_REVOKEDINFO; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add0_id"] + pub fn OCSP_request_add0_id(req: *mut OCSP_REQUEST, cid: *mut OCSP_CERTID) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_REVOKEDINFO"] - pub fn i2d_OCSP_REVOKEDINFO( - a: *mut OCSP_REVOKEDINFO, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_onereq_get0_id"] + pub fn OCSP_onereq_get0_id(one: *mut OCSP_ONEREQ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_REVOKEDINFO_it"] - pub static OCSP_REVOKEDINFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_nonce"] + pub fn OCSP_request_add1_nonce( + req: *mut OCSP_REQUEST, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_new"] - pub fn OCSP_BASICRESP_new() -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_nonce"] + pub fn OCSP_basic_add1_nonce( + resp: *mut OCSP_BASICRESP, + val: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_free"] - pub fn OCSP_BASICRESP_free(a: *mut OCSP_BASICRESP); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_nonce"] + pub fn OCSP_check_nonce( + req: *mut OCSP_REQUEST, + bs: *mut OCSP_BASICRESP, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_BASICRESP"] - pub fn d2i_OCSP_BASICRESP( - a: *mut *mut OCSP_BASICRESP, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_copy_nonce"] + pub fn OCSP_copy_nonce( + resp: *mut OCSP_BASICRESP, + req: *mut OCSP_REQUEST, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_BASICRESP"] - pub fn i2d_OCSP_BASICRESP( - a: *mut OCSP_BASICRESP, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_set1_name"] + pub fn OCSP_request_set1_name( + req: *mut OCSP_REQUEST, + nm: *mut X509_NAME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_BASICRESP_it"] - pub static OCSP_BASICRESP_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_add1_cert"] + pub fn OCSP_request_add1_cert(req: *mut OCSP_REQUEST, cert: *mut X509) + -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_new"] - pub fn OCSP_RESPDATA_new() -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_is_signed"] + pub fn OCSP_request_is_signed(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_free"] - pub fn OCSP_RESPDATA_free(a: *mut OCSP_RESPDATA); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_count"] + pub fn OCSP_request_onereq_count(req: *mut OCSP_REQUEST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPDATA"] - pub fn d2i_OCSP_RESPDATA( - a: *mut *mut OCSP_RESPDATA, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPDATA; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_onereq_get0"] + pub fn OCSP_request_onereq_get0( + req: *mut OCSP_REQUEST, + i: ::std::os::raw::c_int, + ) -> *mut OCSP_ONEREQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPDATA"] - pub fn i2d_OCSP_RESPDATA( - a: *mut OCSP_RESPDATA, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_sign"] + pub fn OCSP_request_sign( + req: *mut OCSP_REQUEST, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPDATA_it"] - pub static OCSP_RESPDATA_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status"] + pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_new"] - pub fn OCSP_RESPID_new() -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_get1_basic"] + pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_free"] - pub fn OCSP_RESPID_free(a: *mut OCSP_RESPID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_count"] + pub fn OCSP_resp_count(bs: *mut OCSP_BASICRESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPID"] - pub fn d2i_OCSP_RESPID( - a: *mut *mut OCSP_RESPID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_get0"] + pub fn OCSP_resp_get0(bs: *mut OCSP_BASICRESP, idx: usize) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPID"] - pub fn i2d_OCSP_RESPID( - a: *mut OCSP_RESPID, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_single_get0_status"] + pub fn OCSP_single_get0_status( + single: *mut OCSP_SINGLERESP, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPID_it"] - pub static OCSP_RESPID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find"] + pub fn OCSP_resp_find( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + last: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_new"] - pub fn OCSP_RESPONSE_new() -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_resp_find_status"] + pub fn OCSP_resp_find_status( + bs: *mut OCSP_BASICRESP, + id: *mut OCSP_CERTID, + status: *mut ::std::os::raw::c_int, + reason: *mut ::std::os::raw::c_int, + revtime: *mut *mut ASN1_GENERALIZEDTIME, + thisupd: *mut *mut ASN1_GENERALIZEDTIME, + nextupd: *mut *mut ASN1_GENERALIZEDTIME, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_free"] - pub fn OCSP_RESPONSE_free(a: *mut OCSP_RESPONSE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_check_validity"] + pub fn OCSP_check_validity( + thisUpdate: *mut ASN1_GENERALIZEDTIME, + nextUpdate: *mut ASN1_GENERALIZEDTIME, + drift_num_seconds: ::std::os::raw::c_long, + max_age_seconds: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPONSE"] - pub fn d2i_OCSP_RESPONSE( - a: *mut *mut OCSP_RESPONSE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPONSE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_verify"] + pub fn OCSP_basic_verify( + bs: *mut OCSP_BASICRESP, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPONSE"] - pub fn i2d_OCSP_RESPONSE( - a: *mut OCSP_RESPONSE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_request_verify"] + pub fn OCSP_request_verify( + req: *mut OCSP_REQUEST, + certs: *mut stack_st_X509, + st: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPONSE_it"] - pub static OCSP_RESPONSE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_id_new"] + pub fn OCSP_cert_id_new( + dgst: *const EVP_MD, + issuerName: *const X509_NAME, + issuerKey: *const ASN1_BIT_STRING, + serialNumber: *const ASN1_INTEGER, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_new"] - pub fn OCSP_RESPBYTES_new() -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_to_id"] + pub fn OCSP_cert_to_id( + dgst: *const EVP_MD, + subject: *const X509, + issuer: *const X509, + ) -> *mut OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_free"] - pub fn OCSP_RESPBYTES_free(a: *mut OCSP_RESPBYTES); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_parse_url"] + pub fn OCSP_parse_url( + url: *const ::std::os::raw::c_char, + phost: *mut *mut ::std::os::raw::c_char, + pport: *mut *mut ::std::os::raw::c_char, + ppath: *mut *mut ::std::os::raw::c_char, + pssl: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_RESPBYTES"] - pub fn d2i_OCSP_RESPBYTES( - a: *mut *mut OCSP_RESPBYTES, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_RESPBYTES; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_issuer_cmp"] + pub fn OCSP_id_issuer_cmp( + a: *const OCSP_CERTID, + b: *const OCSP_CERTID, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_RESPBYTES"] - pub fn i2d_OCSP_RESPBYTES( - a: *mut OCSP_RESPBYTES, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_cmp"] + pub fn OCSP_id_cmp(a: *const OCSP_CERTID, b: *const OCSP_CERTID) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_id_get0_info"] + pub fn OCSP_id_get0_info( + nameHash: *mut *mut ASN1_OCTET_STRING, + algor: *mut *mut ASN1_OBJECT, + keyHash: *mut *mut ASN1_OCTET_STRING, + serial: *mut *mut ASN1_INTEGER, + cid: *mut OCSP_CERTID, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_RESPBYTES_it"] - pub static OCSP_RESPBYTES_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_cert"] + pub fn OCSP_basic_add1_cert( + resp: *mut OCSP_BASICRESP, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_new"] - pub fn OCSP_CERTID_new() -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_add1_status"] + pub fn OCSP_basic_add1_status( + resp: *mut OCSP_BASICRESP, + cid: *mut OCSP_CERTID, + status: ::std::os::raw::c_int, + revoked_reason: ::std::os::raw::c_int, + revoked_time: *mut ASN1_TIME, + this_update: *mut ASN1_TIME, + next_update: *mut ASN1_TIME, + ) -> *mut OCSP_SINGLERESP; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_free"] - pub fn OCSP_CERTID_free(a: *mut OCSP_CERTID); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_basic_sign"] + pub fn OCSP_basic_sign( + resp: *mut OCSP_BASICRESP, + signer: *mut X509, + key: *mut EVP_PKEY, + dgst: *const EVP_MD, + certs: *mut stack_st_X509, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_OCSP_CERTID"] - pub fn d2i_OCSP_CERTID( - a: *mut *mut OCSP_CERTID, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_create"] + pub fn OCSP_response_create( + status: ::std::os::raw::c_int, + bs: *mut OCSP_BASICRESP, + ) -> *mut OCSP_RESPONSE; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_OCSP_CERTID"] - pub fn i2d_OCSP_CERTID( - a: *mut OCSP_CERTID, - out: *mut *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get0_id"] + pub fn OCSP_SINGLERESP_get0_id(x: *const OCSP_SINGLERESP) -> *const OCSP_CERTID; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_CERTID_it"] - pub static OCSP_CERTID_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_response_status_str"] + pub fn OCSP_response_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_new() -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_cert_status_str"] + pub fn OCSP_cert_status_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn OCSP_SIGNATURE_free(a: *mut OCSP_SIGNATURE); + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_crl_reason_str"] + pub fn OCSP_crl_reason_str( + status_code: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - pub fn d2i_OCSP_SIGNATURE( - a: *mut *mut OCSP_SIGNATURE, - in_: *mut *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_long, - ) -> *mut OCSP_SIGNATURE; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_REQUEST_print"] + pub fn OCSP_REQUEST_print( + bp: *mut BIO, + req: *mut OCSP_REQUEST, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - pub fn i2d_OCSP_SIGNATURE( - a: *mut OCSP_SIGNATURE, - out: *mut *mut ::std::os::raw::c_uchar, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_RESPONSE_print"] + pub fn OCSP_RESPONSE_print( + bp: *mut BIO, + resp: *mut OCSP_RESPONSE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - pub static OCSP_SIGNATURE_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext_by_NID"] + pub fn OCSP_BASICRESP_get_ext_by_NID( + bs: *mut OCSP_BASICRESP, + nid: ::std::os::raw::c_int, + lastpos: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_status"] - pub fn OCSP_response_status(resp: *mut OCSP_RESPONSE) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_get_ext"] + pub fn OCSP_BASICRESP_get_ext( + bs: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_response_get1_basic"] - pub fn OCSP_response_get1_basic(resp: *mut OCSP_RESPONSE) -> *mut OCSP_BASICRESP; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_BASICRESP_delete_ext"] + pub fn OCSP_BASICRESP_delete_ext( + x: *mut OCSP_BASICRESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_resp_find_status"] - pub fn OCSP_resp_find_status( - bs: *mut OCSP_BASICRESP, - id: *mut OCSP_CERTID, - status: *mut ::std::os::raw::c_int, - reason: *mut ::std::os::raw::c_int, - revtime: *mut *mut ASN1_GENERALIZEDTIME, - thisupd: *mut *mut ASN1_GENERALIZEDTIME, - nextupd: *mut *mut ASN1_GENERALIZEDTIME, + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_add_ext"] + pub fn OCSP_SINGLERESP_add_ext( + sresp: *mut OCSP_SINGLERESP, + ex: *mut X509_EXTENSION, + loc: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_basic_verify"] - pub fn OCSP_basic_verify( - bs: *mut OCSP_BASICRESP, - certs: *mut stack_st_X509, - st: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext_count"] + pub fn OCSP_SINGLERESP_get_ext_count(sresp: *mut OCSP_SINGLERESP) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_OCSP_cert_to_id"] - pub fn OCSP_cert_to_id( - dgst: *const EVP_MD, - subject: *const X509, - issuer: *const X509, - ) -> *mut OCSP_CERTID; + #[link_name = "\u{1}aws_lc_fips_0_13_0_OCSP_SINGLERESP_get_ext"] + pub fn OCSP_SINGLERESP_get_ext( + sresp: *mut OCSP_SINGLERESP, + loc: ::std::os::raw::c_int, + ) -> *mut X509_EXTENSION; } pub type pem_password_cb = ::std::option::Option< unsafe extern "C" fn( @@ -26491,14 +26265,14 @@ pub type pem_password_cb = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_get_EVP_CIPHER_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_get_EVP_CIPHER_INFO"] pub fn PEM_get_EVP_CIPHER_INFO( header: *mut ::std::os::raw::c_char, cipher: *mut EVP_CIPHER_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_do_header"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_do_header"] pub fn PEM_do_header( cipher: *mut EVP_CIPHER_INFO, data: *mut ::std::os::raw::c_uchar, @@ -26508,7 +26282,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio"] pub fn PEM_read_bio( bp: *mut BIO, name: *mut *mut ::std::os::raw::c_char, @@ -26518,7 +26292,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio"] pub fn PEM_write_bio( bp: *mut BIO, name: *const ::std::os::raw::c_char, @@ -26528,7 +26302,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_bytes_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_bytes_read_bio"] pub fn PEM_bytes_read_bio( pdata: *mut *mut ::std::os::raw::c_uchar, plen: *mut ::std::os::raw::c_long, @@ -26540,7 +26314,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read_bio"] pub fn PEM_ASN1_read_bio( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26551,7 +26325,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write_bio"] pub fn PEM_ASN1_write_bio( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26565,7 +26339,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read_bio"] pub fn PEM_X509_INFO_read_bio( bp: *mut BIO, sk: *mut stack_st_X509_INFO, @@ -26574,7 +26348,16 @@ extern "C" { ) -> *mut stack_st_X509_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_X509_INFO_read"] + pub fn PEM_X509_INFO_read( + fp: *mut FILE, + sk: *mut stack_st_X509_INFO, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut stack_st_X509_INFO; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read"] pub fn PEM_read( fp: *mut FILE, name: *mut *mut ::std::os::raw::c_char, @@ -26584,7 +26367,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write"] pub fn PEM_write( fp: *mut FILE, name: *const ::std::os::raw::c_char, @@ -26594,7 +26377,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_read"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_read"] pub fn PEM_ASN1_read( d2i: d2i_of_void, name: *const ::std::os::raw::c_char, @@ -26605,7 +26388,7 @@ extern "C" { ) -> *mut ::std::os::raw::c_void; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_ASN1_write"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_ASN1_write"] pub fn PEM_ASN1_write( i2d: i2d_of_void, name: *const ::std::os::raw::c_char, @@ -26619,16 +26402,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_X509_INFO_read"] - pub fn PEM_X509_INFO_read( - fp: *mut FILE, - sk: *mut stack_st_X509_INFO, - cb: pem_password_cb, - u: *mut ::std::os::raw::c_void, - ) -> *mut stack_st_X509_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_def_callback"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_def_callback"] pub fn PEM_def_callback( buf: *mut ::std::os::raw::c_char, size: ::std::os::raw::c_int, @@ -26637,20 +26411,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_proc_type"] - pub fn PEM_proc_type(buf: *mut ::std::os::raw::c_char, type_: ::std::os::raw::c_int); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_dek_info"] - pub fn PEM_dek_info( - buf: *mut ::std::os::raw::c_char, - type_: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - str_: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509"] pub fn PEM_read_bio_X509( bp: *mut BIO, x: *mut *mut X509, @@ -26659,7 +26420,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509"] pub fn PEM_read_X509( fp: *mut FILE, x: *mut *mut X509, @@ -26668,15 +26429,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509"] pub fn PEM_write_bio_X509(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509"] pub fn PEM_write_X509(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_AUX"] pub fn PEM_read_bio_X509_AUX( bp: *mut BIO, x: *mut *mut X509, @@ -26685,7 +26446,7 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_AUX"] pub fn PEM_read_X509_AUX( fp: *mut FILE, x: *mut *mut X509, @@ -26694,15 +26455,15 @@ extern "C" { ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_AUX"] pub fn PEM_write_bio_X509_AUX(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_AUX"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_AUX"] pub fn PEM_write_X509_AUX(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_REQ"] pub fn PEM_read_bio_X509_REQ( bp: *mut BIO, x: *mut *mut X509_REQ, @@ -26711,7 +26472,7 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_REQ"] pub fn PEM_read_X509_REQ( fp: *mut FILE, x: *mut *mut X509_REQ, @@ -26720,23 +26481,23 @@ extern "C" { ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ"] pub fn PEM_write_bio_X509_REQ(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ"] pub fn PEM_write_X509_REQ(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_REQ_NEW"] pub fn PEM_write_bio_X509_REQ_NEW(bp: *mut BIO, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_REQ_NEW"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_REQ_NEW"] pub fn PEM_write_X509_REQ_NEW(fp: *mut FILE, x: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_X509_CRL"] pub fn PEM_read_bio_X509_CRL( bp: *mut BIO, x: *mut *mut X509_CRL, @@ -26745,7 +26506,7 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_X509_CRL"] pub fn PEM_read_X509_CRL( fp: *mut FILE, x: *mut *mut X509_CRL, @@ -26754,15 +26515,15 @@ extern "C" { ) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_X509_CRL"] pub fn PEM_write_bio_X509_CRL(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_X509_CRL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_X509_CRL"] pub fn PEM_write_X509_CRL(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS7"] pub fn PEM_read_bio_PKCS7( bp: *mut BIO, x: *mut *mut PKCS7, @@ -26771,7 +26532,7 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS7"] pub fn PEM_read_PKCS7( fp: *mut FILE, x: *mut *mut PKCS7, @@ -26780,15 +26541,15 @@ extern "C" { ) -> *mut PKCS7; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS7"] pub fn PEM_write_bio_PKCS7(bp: *mut BIO, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS7"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS7"] pub fn PEM_write_PKCS7(fp: *mut FILE, x: *mut PKCS7) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8"] pub fn PEM_read_bio_PKCS8( bp: *mut BIO, x: *mut *mut X509_SIG, @@ -26797,7 +26558,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8"] pub fn PEM_read_PKCS8( fp: *mut FILE, x: *mut *mut X509_SIG, @@ -26806,15 +26567,15 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8"] pub fn PEM_write_bio_PKCS8(bp: *mut BIO, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8"] pub fn PEM_write_PKCS8(fp: *mut FILE, x: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -26823,7 +26584,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PKCS8_PRIV_KEY_INFO"] pub fn PEM_read_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut *mut PKCS8_PRIV_KEY_INFO, @@ -26832,21 +26593,21 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_bio_PKCS8_PRIV_KEY_INFO( bp: *mut BIO, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8_PRIV_KEY_INFO"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8_PRIV_KEY_INFO"] pub fn PEM_write_PKCS8_PRIV_KEY_INFO( fp: *mut FILE, x: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPrivateKey"] pub fn PEM_read_bio_RSAPrivateKey( bp: *mut BIO, x: *mut *mut RSA, @@ -26855,7 +26616,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPrivateKey"] pub fn PEM_read_RSAPrivateKey( fp: *mut FILE, x: *mut *mut RSA, @@ -26864,7 +26625,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPrivateKey"] pub fn PEM_write_bio_RSAPrivateKey( bp: *mut BIO, x: *mut RSA, @@ -26876,7 +26637,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPrivateKey"] pub fn PEM_write_RSAPrivateKey( fp: *mut FILE, x: *mut RSA, @@ -26888,7 +26649,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSAPublicKey"] pub fn PEM_read_bio_RSAPublicKey( bp: *mut BIO, x: *mut *mut RSA, @@ -26897,7 +26658,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSAPublicKey"] pub fn PEM_read_RSAPublicKey( fp: *mut FILE, x: *mut *mut RSA, @@ -26906,15 +26667,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSAPublicKey"] pub fn PEM_write_bio_RSAPublicKey(bp: *mut BIO, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSAPublicKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSAPublicKey"] pub fn PEM_write_RSAPublicKey(fp: *mut FILE, x: *const RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_RSA_PUBKEY"] pub fn PEM_read_bio_RSA_PUBKEY( bp: *mut BIO, x: *mut *mut RSA, @@ -26923,7 +26684,7 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_RSA_PUBKEY"] pub fn PEM_read_RSA_PUBKEY( fp: *mut FILE, x: *mut *mut RSA, @@ -26932,15 +26693,15 @@ extern "C" { ) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_RSA_PUBKEY"] pub fn PEM_write_bio_RSA_PUBKEY(bp: *mut BIO, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_RSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_RSA_PUBKEY"] pub fn PEM_write_RSA_PUBKEY(fp: *mut FILE, x: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAPrivateKey"] pub fn PEM_read_bio_DSAPrivateKey( bp: *mut BIO, x: *mut *mut DSA, @@ -26949,7 +26710,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAPrivateKey"] pub fn PEM_read_DSAPrivateKey( fp: *mut FILE, x: *mut *mut DSA, @@ -26958,7 +26719,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAPrivateKey"] pub fn PEM_write_bio_DSAPrivateKey( bp: *mut BIO, x: *mut DSA, @@ -26970,7 +26731,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAPrivateKey"] pub fn PEM_write_DSAPrivateKey( fp: *mut FILE, x: *mut DSA, @@ -26982,7 +26743,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSA_PUBKEY"] pub fn PEM_read_bio_DSA_PUBKEY( bp: *mut BIO, x: *mut *mut DSA, @@ -26991,7 +26752,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSA_PUBKEY"] pub fn PEM_read_DSA_PUBKEY( fp: *mut FILE, x: *mut *mut DSA, @@ -27000,15 +26761,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSA_PUBKEY"] pub fn PEM_write_bio_DSA_PUBKEY(bp: *mut BIO, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSA_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSA_PUBKEY"] pub fn PEM_write_DSA_PUBKEY(fp: *mut FILE, x: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DSAparams"] pub fn PEM_read_bio_DSAparams( bp: *mut BIO, x: *mut *mut DSA, @@ -27017,7 +26778,7 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DSAparams"] pub fn PEM_read_DSAparams( fp: *mut FILE, x: *mut *mut DSA, @@ -27026,15 +26787,15 @@ extern "C" { ) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DSAparams"] pub fn PEM_write_bio_DSAparams(bp: *mut BIO, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DSAparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DSAparams"] pub fn PEM_write_DSAparams(fp: *mut FILE, x: *const DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPrivateKey"] pub fn PEM_read_bio_ECPrivateKey( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27043,7 +26804,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_ECPrivateKey"] pub fn PEM_read_ECPrivateKey( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27052,7 +26813,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPrivateKey"] pub fn PEM_write_bio_ECPrivateKey( bp: *mut BIO, x: *mut EC_KEY, @@ -27064,7 +26825,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_ECPrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_ECPrivateKey"] pub fn PEM_write_ECPrivateKey( fp: *mut FILE, x: *mut EC_KEY, @@ -27076,7 +26837,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_EC_PUBKEY"] pub fn PEM_read_bio_EC_PUBKEY( bp: *mut BIO, x: *mut *mut EC_KEY, @@ -27085,7 +26846,7 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_EC_PUBKEY"] pub fn PEM_read_EC_PUBKEY( fp: *mut FILE, x: *mut *mut EC_KEY, @@ -27094,15 +26855,15 @@ extern "C" { ) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_EC_PUBKEY"] pub fn PEM_write_bio_EC_PUBKEY(bp: *mut BIO, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_EC_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_EC_PUBKEY"] pub fn PEM_write_EC_PUBKEY(fp: *mut FILE, x: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_DHparams"] pub fn PEM_read_bio_DHparams( bp: *mut BIO, x: *mut *mut DH, @@ -27111,7 +26872,7 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_DHparams"] pub fn PEM_read_DHparams( fp: *mut FILE, x: *mut *mut DH, @@ -27120,15 +26881,15 @@ extern "C" { ) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_DHparams"] pub fn PEM_write_bio_DHparams(bp: *mut BIO, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_DHparams"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_DHparams"] pub fn PEM_write_DHparams(fp: *mut FILE, x: *const DH) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PrivateKey"] pub fn PEM_read_bio_PrivateKey( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27137,7 +26898,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PrivateKey"] pub fn PEM_read_PrivateKey( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27146,7 +26907,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey"] pub fn PEM_write_bio_PrivateKey( bp: *mut BIO, x: *mut EVP_PKEY, @@ -27158,7 +26919,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PrivateKey"] pub fn PEM_write_PrivateKey( fp: *mut FILE, x: *mut EVP_PKEY, @@ -27170,7 +26931,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_PUBKEY"] pub fn PEM_read_bio_PUBKEY( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27179,7 +26940,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_read_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_PUBKEY"] pub fn PEM_read_PUBKEY( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27188,18 +26949,18 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PUBKEY"] pub fn PEM_write_bio_PUBKEY(bp: *mut BIO, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PUBKEY"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PUBKEY"] pub fn PEM_write_PUBKEY(fp: *mut FILE, x: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey_nid"] pub fn PEM_write_bio_PKCS8PrivateKey_nid( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27208,10 +26969,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_bio_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PKCS8PrivateKey"] pub fn PEM_write_bio_PKCS8PrivateKey( arg1: *mut BIO, - arg2: *mut EVP_PKEY, + arg2: *const EVP_PKEY, arg3: *const EVP_CIPHER, arg4: *mut ::std::os::raw::c_char, arg5: ::std::os::raw::c_int, @@ -27220,10 +26981,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_bio"] pub fn i2d_PKCS8PrivateKey_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27232,10 +26993,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_bio"] pub fn i2d_PKCS8PrivateKey_nid_bio( bp: *mut BIO, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27244,7 +27005,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_bio"] pub fn d2i_PKCS8PrivateKey_bio( bp: *mut BIO, x: *mut *mut EVP_PKEY, @@ -27253,10 +27014,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_fp"] pub fn i2d_PKCS8PrivateKey_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27265,10 +27026,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS8PrivateKey_nid_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS8PrivateKey_nid_fp"] pub fn i2d_PKCS8PrivateKey_nid_fp( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27277,10 +27038,10 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey_nid"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey_nid"] pub fn PEM_write_PKCS8PrivateKey_nid( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, nid: ::std::os::raw::c_int, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27289,7 +27050,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS8PrivateKey_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS8PrivateKey_fp"] pub fn d2i_PKCS8PrivateKey_fp( fp: *mut FILE, x: *mut *mut EVP_PKEY, @@ -27298,10 +27059,10 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PEM_write_PKCS8PrivateKey"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_PKCS8PrivateKey"] pub fn PEM_write_PKCS8PrivateKey( fp: *mut FILE, - x: *mut EVP_PKEY, + x: *const EVP_PKEY, enc: *const EVP_CIPHER, kstr: *mut ::std::os::raw::c_char, klen: ::std::os::raw::c_int, @@ -27310,7 +27071,43 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_encrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_Parameters"] + pub fn PEM_read_bio_Parameters(bio: *mut BIO, pkey: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_Parameters"] + pub fn PEM_write_bio_Parameters(bio: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_read_bio_ECPKParameters"] + pub fn PEM_read_bio_ECPKParameters( + bio: *mut BIO, + out_group: *mut *mut EC_GROUP, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> *mut EC_GROUP; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_ECPKParameters"] + pub fn PEM_write_bio_ECPKParameters( + out: *mut BIO, + group: *const EC_GROUP, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PEM_write_bio_PrivateKey_traditional"] + pub fn PEM_write_bio_PrivateKey_traditional( + bp: *mut BIO, + x: *mut EVP_PKEY, + enc: *const EVP_CIPHER, + kstr: *mut ::std::os::raw::c_uchar, + klen: ::std::os::raw::c_int, + cb: pem_password_cb, + u: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_encrypt"] pub fn PKCS8_encrypt( pbe_nid: ::std::os::raw::c_int, cipher: *const EVP_CIPHER, @@ -27323,7 +27120,7 @@ extern "C" { ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_marshal_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_marshal_encrypted_private_key"] pub fn PKCS8_marshal_encrypted_private_key( out: *mut CBB, pbe_nid: ::std::os::raw::c_int, @@ -27337,7 +27134,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_decrypt"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_decrypt"] pub fn PKCS8_decrypt( pkcs8: *mut X509_SIG, pass: *const ::std::os::raw::c_char, @@ -27345,7 +27142,7 @@ extern "C" { ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS8_parse_encrypted_private_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS8_parse_encrypted_private_key"] pub fn PKCS8_parse_encrypted_private_key( cbs: *mut CBS, pass: *const ::std::os::raw::c_char, @@ -27353,7 +27150,7 @@ extern "C" { ) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_get_key_and_certs"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_get_key_and_certs"] pub fn PKCS12_get_key_and_certs( out_key: *mut *mut EVP_PKEY, out_certs: *mut stack_st_X509, @@ -27362,11 +27159,11 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_PBE_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_PBE_add"] pub fn PKCS12_PBE_add(); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12"] pub fn d2i_PKCS12( out_p12: *mut *mut PKCS12, ber_bytes: *mut *const u8, @@ -27374,27 +27171,27 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_bio"] pub fn d2i_PKCS12_bio(bio: *mut BIO, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_d2i_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_d2i_PKCS12_fp"] pub fn d2i_PKCS12_fp(fp: *mut FILE, out_p12: *mut *mut PKCS12) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12"] pub fn i2d_PKCS12(p12: *const PKCS12, out: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_bio"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_bio"] pub fn i2d_PKCS12_bio(bio: *mut BIO, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_i2d_PKCS12_fp"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_i2d_PKCS12_fp"] pub fn i2d_PKCS12_fp(fp: *mut FILE, p12: *const PKCS12) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_parse"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_parse"] pub fn PKCS12_parse( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27404,7 +27201,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_verify_mac"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_verify_mac"] pub fn PKCS12_verify_mac( p12: *const PKCS12, password: *const ::std::os::raw::c_char, @@ -27412,7 +27209,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_create"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_create"] pub fn PKCS12_create( password: *const ::std::os::raw::c_char, name: *const ::std::os::raw::c_char, @@ -27427,76 +27224,95 @@ extern "C" { ) -> *mut PKCS12; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_PKCS12_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_new"] + pub fn PKCS12_new() -> *mut PKCS12; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_PKCS12_free"] pub fn PKCS12_free(p12: *mut PKCS12); } pub type poly1305_state = [u8; 512usize]; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_init"] pub fn CRYPTO_poly1305_init(state: *mut poly1305_state, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_update"] pub fn CRYPTO_poly1305_update(state: *mut poly1305_state, in_: *const u8, in_len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_poly1305_finish"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_poly1305_finish"] pub fn CRYPTO_poly1305_finish(state: *mut poly1305_state, mac: *mut u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_bytes"] pub fn RAND_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_system_entropy_for_custom_prng"] - pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_priv_bytes"] + pub fn RAND_priv_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_cleanup"] - pub fn RAND_cleanup(); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_enable_fork_unsafe_buffering"] + pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_enable_fork_unsafe_buffering"] - pub fn RAND_enable_fork_unsafe_buffering(fd: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_system_entropy_for_custom_prng"] + pub fn RAND_get_system_entropy_for_custom_prng(buf: *mut u8, len: usize); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_pseudo_bytes"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_pseudo_bytes"] pub fn RAND_pseudo_bytes(buf: *mut u8, len: usize) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_seed"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_seed"] pub fn RAND_seed(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_load_file"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_load_file"] pub fn RAND_load_file( path: *const ::std::os::raw::c_char, num: ::std::os::raw::c_long, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_file_name"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_write_file"] + pub fn RAND_write_file(file: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_file_name"] pub fn RAND_file_name( buf: *mut ::std::os::raw::c_char, num: usize, ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_add"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_add"] pub fn RAND_add(buf: *const ::std::os::raw::c_void, num: ::std::os::raw::c_int, entropy: f64); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_egd"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd"] pub fn RAND_egd(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_poll"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_egd_bytes"] + pub fn RAND_egd_bytes( + arg1: *const ::std::os::raw::c_char, + bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_poll"] pub fn RAND_poll() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_status"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_status"] pub fn RAND_status() -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_cleanup"] + pub fn RAND_cleanup(); +} #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] pub struct rand_meth_st { @@ -27595,21 +27411,25 @@ fn bindgen_test_layout_rand_meth_st() { ); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_SSLeay"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_SSLeay"] pub fn RAND_SSLeay() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_OpenSSL"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_OpenSSL"] pub fn RAND_OpenSSL() -> *mut RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_get_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_get_rand_method"] pub fn RAND_get_rand_method() -> *const RAND_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RAND_set_rand_method"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_set_rand_method"] pub fn RAND_set_rand_method(arg1: *const RAND_METHOD) -> ::std::os::raw::c_int; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_RAND_keep_random_devices_open"] + pub fn RAND_keep_random_devices_open(a: ::std::os::raw::c_int); +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct rc4_key_st { @@ -27672,11 +27492,11 @@ impl Default for rc4_key_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4_set_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4_set_key"] pub fn RC4_set_key(rc4key: *mut RC4_KEY, len: ::std::os::raw::c_uint, key: *const u8); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RC4"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RC4"] pub fn RC4(key: *mut RC4_KEY, len: usize, in_: *const u8, out: *mut u8); } #[repr(C)] @@ -27763,11 +27583,11 @@ impl Default for RIPEMD160state_st { } } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Init"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Init"] pub fn RIPEMD160_Init(ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Update"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Update"] pub fn RIPEMD160_Update( ctx: *mut RIPEMD160_CTX, data: *const ::std::os::raw::c_void, @@ -27775,44 +27595,52 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160_Final"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160_Final"] pub fn RIPEMD160_Final(out: *mut u8, ctx: *mut RIPEMD160_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_RIPEMD160"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_RIPEMD160"] pub fn RIPEMD160(data: *const u8, len: usize, out: *mut u8) -> *mut u8; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_before_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_before_call"] pub fn FIPS_service_indicator_before_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_FIPS_service_indicator_after_call"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_FIPS_service_indicator_after_call"] pub fn FIPS_service_indicator_after_call() -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_awslc_version_string"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_awslc_version_string"] pub fn awslc_version_string() -> *const ::std::os::raw::c_char; } pub const FIPSStatus_AWSLC_NOT_APPROVED: FIPSStatus = 0; pub const FIPSStatus_AWSLC_APPROVED: FIPSStatus = 1; pub type FIPSStatus = ::std::os::raw::c_uint; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_SIPHASH_24"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_SIPHASH_24"] pub fn SIPHASH_24(key: *const u64, input: *const u8, input_len: usize) -> u64; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v1"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v1"] pub fn TRUST_TOKEN_experiment_v1() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_voprf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_voprf"] pub fn TRUST_TOKEN_experiment_v2_voprf() -> *const TRUST_TOKEN_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_experiment_v2_pmb"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_experiment_v2_pmb"] pub fn TRUST_TOKEN_experiment_v2_pmb() -> *const TRUST_TOKEN_METHOD; } +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_voprf"] + pub fn TRUST_TOKEN_pst_v1_voprf() -> *const TRUST_TOKEN_METHOD; +} +extern "C" { + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_pst_v1_pmb"] + pub fn TRUST_TOKEN_pst_v1_pmb() -> *const TRUST_TOKEN_METHOD; +} #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct trust_token_st { @@ -27874,8 +27702,8 @@ pub type sk_TRUST_TOKEN_copy_func = ::std::option::Option *mut TRUST_TOKEN>; pub type sk_TRUST_TOKEN_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut *const TRUST_TOKEN, - arg2: *mut *const TRUST_TOKEN, + arg1: *const *const TRUST_TOKEN, + arg2: *const *const TRUST_TOKEN, ) -> ::std::os::raw::c_int, >; pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< @@ -27885,15 +27713,15 @@ pub type sk_TRUST_TOKEN_delete_if_func = ::std::option::Option< ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_new"] pub fn TRUST_TOKEN_new(data: *const u8, len: usize) -> *mut TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_free"] pub fn TRUST_TOKEN_free(token: *mut TRUST_TOKEN); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_generate_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_generate_key"] pub fn TRUST_TOKEN_generate_key( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -27906,7 +27734,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_derive_key_from_secret"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_derive_key_from_secret"] pub fn TRUST_TOKEN_derive_key_from_secret( method: *const TRUST_TOKEN_METHOD, out_priv_key: *mut u8, @@ -27921,18 +27749,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_new"] pub fn TRUST_TOKEN_CLIENT_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_CLIENT; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_free"] pub fn TRUST_TOKEN_CLIENT_free(ctx: *mut TRUST_TOKEN_CLIENT); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_add_key"] pub fn TRUST_TOKEN_CLIENT_add_key( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -27941,14 +27769,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_set_srr_key"] pub fn TRUST_TOKEN_CLIENT_set_srr_key( ctx: *mut TRUST_TOKEN_CLIENT, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance"] pub fn TRUST_TOKEN_CLIENT_begin_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -27957,7 +27785,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_issuance_over_message"] pub fn TRUST_TOKEN_CLIENT_begin_issuance_over_message( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -27968,7 +27796,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_issuance"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_issuance"] pub fn TRUST_TOKEN_CLIENT_finish_issuance( ctx: *mut TRUST_TOKEN_CLIENT, out_key_index: *mut usize, @@ -27977,7 +27805,7 @@ extern "C" { ) -> *mut stack_st_TRUST_TOKEN; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_begin_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_begin_redemption"] pub fn TRUST_TOKEN_CLIENT_begin_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out: *mut *mut u8, @@ -27989,7 +27817,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_CLIENT_finish_redemption"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_CLIENT_finish_redemption"] pub fn TRUST_TOKEN_CLIENT_finish_redemption( ctx: *mut TRUST_TOKEN_CLIENT, out_rr: *mut *mut u8, @@ -28001,18 +27829,18 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_new"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_new"] pub fn TRUST_TOKEN_ISSUER_new( method: *const TRUST_TOKEN_METHOD, max_batchsize: usize, ) -> *mut TRUST_TOKEN_ISSUER; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_free"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_free"] pub fn TRUST_TOKEN_ISSUER_free(ctx: *mut TRUST_TOKEN_ISSUER); } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_add_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_add_key"] pub fn TRUST_TOKEN_ISSUER_add_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28020,14 +27848,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_srr_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_srr_key"] pub fn TRUST_TOKEN_ISSUER_set_srr_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *mut EVP_PKEY, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_set_metadata_key"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_set_metadata_key"] pub fn TRUST_TOKEN_ISSUER_set_metadata_key( ctx: *mut TRUST_TOKEN_ISSUER, key: *const u8, @@ -28035,7 +27863,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_issue"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_issue"] pub fn TRUST_TOKEN_ISSUER_issue( ctx: *const TRUST_TOKEN_ISSUER, out: *mut *mut u8, @@ -28049,23 +27877,8 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem"] pub fn TRUST_TOKEN_ISSUER_redeem( - ctx: *const TRUST_TOKEN_ISSUER, - out: *mut *mut u8, - out_len: *mut usize, - out_token: *mut *mut TRUST_TOKEN, - out_client_data: *mut *mut u8, - out_client_data_len: *mut usize, - out_redemption_time: *mut u64, - request: *const u8, - request_len: usize, - lifetime: u64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_raw"] - pub fn TRUST_TOKEN_ISSUER_redeem_raw( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, out_private: *mut u8, @@ -28077,7 +27890,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_ISSUER_redeem_over_message"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_ISSUER_redeem_over_message"] pub fn TRUST_TOKEN_ISSUER_redeem_over_message( ctx: *const TRUST_TOKEN_ISSUER, out_public: *mut u32, @@ -28092,7 +27905,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_TRUST_TOKEN_decode_private_metadata"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_TRUST_TOKEN_decode_private_metadata"] pub fn TRUST_TOKEN_decode_private_metadata( method: *const TRUST_TOKEN_METHOD, out_value: *mut u8, @@ -28104,7 +27917,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_CRYPTO_tls1_prf"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_CRYPTO_tls1_prf"] pub fn CRYPTO_tls1_prf( digest: *const EVP_MD, out: *mut u8, @@ -28120,15 +27933,15 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_LIB_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_LIB_RUST"] pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_REASON_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_REASON_RUST"] pub fn ERR_GET_REASON_RUST(packed_error: u32) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_fips_0_12_15_ERR_GET_FUNC_RUST"] + #[link_name = "\u{1}aws_lc_fips_0_13_0_ERR_GET_FUNC_RUST"] pub fn ERR_GET_FUNC_RUST(packed_error: u32) -> ::std::os::raw::c_int; } pub type __builtin_va_list = [__va_list_tag; 1usize]; diff --git a/aws-lc-fips-sys/symbols/aarch64-apple-darwin.txt b/aws-lc-fips-sys/symbols/aarch64-apple-darwin.txt index 7d94e101818..c92e44ec568 100644 --- a/aws-lc-fips-sys/symbols/aarch64-apple-darwin.txt +++ b/aws-lc-fips-sys/symbols/aarch64-apple-darwin.txt @@ -121,9 +121,11 @@ ASN1_TIME_print ASN1_TIME_set ASN1_TIME_set_posix ASN1_TIME_set_string +ASN1_TIME_set_string_X509 ASN1_TIME_to_generalizedtime ASN1_TIME_to_posix ASN1_TIME_to_time_t +ASN1_TIME_to_tm ASN1_TYPE_cmp ASN1_TYPE_free ASN1_TYPE_get @@ -149,7 +151,9 @@ ASN1_VISIBLESTRING_free ASN1_VISIBLESTRING_it ASN1_VISIBLESTRING_new ASN1_digest +ASN1_dup ASN1_get_object +ASN1_i2d_bio ASN1_item_d2i ASN1_item_d2i_bio ASN1_item_d2i_fp @@ -237,6 +241,7 @@ BIO_meth_set_gets BIO_meth_set_puts BIO_meth_set_read BIO_meth_set_write +BIO_method_name BIO_method_type BIO_new BIO_new_bio_pair @@ -257,6 +262,7 @@ BIO_push BIO_puts BIO_read BIO_read_asn1 +BIO_read_ex BIO_read_filename BIO_reset BIO_rw_filename @@ -264,6 +270,7 @@ BIO_s_connect BIO_s_fd BIO_s_file BIO_s_mem +BIO_s_secmem BIO_s_socket BIO_seek BIO_set_callback_arg @@ -301,6 +308,7 @@ BIO_vsnprintf BIO_wpending BIO_write BIO_write_all +BIO_write_ex BIO_write_filename BLAKE2B256 BLAKE2B256_Final @@ -310,12 +318,14 @@ BN_CTX_end BN_CTX_free BN_CTX_get BN_CTX_new +BN_CTX_secure_new BN_CTX_start BN_GENCB_call BN_GENCB_free BN_GENCB_get_arg BN_GENCB_new BN_GENCB_set +BN_GENCB_set_old BN_MONT_CTX_copy BN_MONT_CTX_free BN_MONT_CTX_new @@ -353,6 +363,7 @@ BN_free BN_from_montgomery BN_gcd BN_generate_prime_ex +BN_get_flags BN_get_rfc3526_prime_1536 BN_get_rfc3526_prime_2048 BN_get_rfc3526_prime_3072 @@ -383,8 +394,10 @@ BN_mod_exp BN_mod_exp2_mont BN_mod_exp_mont BN_mod_exp_mont_consttime +BN_mod_exp_mont_consttime_x2 BN_mod_exp_mont_word BN_mod_inverse +BN_mod_inverse_blinded BN_mod_lshift BN_mod_lshift1 BN_mod_lshift1_quick @@ -512,6 +525,7 @@ CBS_get_u24_length_prefixed CBS_get_u32 CBS_get_u32le CBS_get_u64 +CBS_get_u64_decimal CBS_get_u64le CBS_get_u8 CBS_get_u8_length_prefixed @@ -520,6 +534,7 @@ CBS_init CBS_is_unsigned_asn1_integer CBS_is_valid_asn1_bitstring CBS_is_valid_asn1_integer +CBS_is_valid_asn1_oid CBS_len CBS_mem_equal CBS_parse_generalized_time @@ -533,13 +548,17 @@ CERTIFICATEPOLICIES_it CERTIFICATEPOLICIES_new CMAC_CTX_copy CMAC_CTX_free +CMAC_CTX_get0_cipher_ctx CMAC_CTX_new CMAC_Final CMAC_Init CMAC_Reset CMAC_Update +CONF_get1_default_config_file +CONF_modules_finish CONF_modules_free CONF_modules_load_file +CONF_modules_unload CONF_parse_list CRL_DIST_POINTS_free CRL_DIST_POINTS_it @@ -596,6 +615,7 @@ CRYPTO_get_snapsafe_supported CRYPTO_get_sysgenid_path CRYPTO_get_thread_local CRYPTO_has_asm +CRYPTO_is_ARMv8_DIT_capable_for_testing CRYPTO_is_confidential_build CRYPTO_library_init CRYPTO_malloc @@ -636,12 +656,16 @@ DES_ecb_encrypt DES_ede2_cbc_encrypt DES_ede3_cbc_encrypt DES_encrypt3 +DES_is_weak_key +DES_key_sched DES_ncbc_encrypt DES_set_key +DES_set_key_unchecked DES_set_odd_parity DH_bits DH_check DH_check_pub_key +DH_clear_flags DH_compute_key DH_compute_key_hashed DH_compute_key_padded @@ -658,8 +682,12 @@ DH_get0_pub_key DH_get0_q DH_get_2048_256 DH_get_rfc7919_2048 +DH_get_rfc7919_3072 +DH_get_rfc7919_4096 +DH_get_rfc7919_8192 DH_marshal_parameters DH_new +DH_new_by_nid DH_num_bits DH_parse_parameters DH_set0_key @@ -712,6 +740,8 @@ DSA_new DSA_parse_parameters DSA_parse_private_key DSA_parse_public_key +DSA_print +DSA_print_fp DSA_set0_key DSA_set0_pqg DSA_set_ex_data @@ -739,17 +769,20 @@ ECDSA_sign ECDSA_sign_with_nonce_and_leak_private_key_for_testing ECDSA_size ECDSA_verify +ECPKParameters_print EC_GROUP_cmp EC_GROUP_dup EC_GROUP_free EC_GROUP_get0_generator EC_GROUP_get0_order +EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_cofactor EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name EC_GROUP_get_degree EC_GROUP_get_order +EC_GROUP_get_seed_len EC_GROUP_method_of EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp @@ -757,6 +790,13 @@ EC_GROUP_order_bits EC_GROUP_set_asn1_flag EC_GROUP_set_generator EC_GROUP_set_point_conversion_form +EC_GROUP_set_seed +EC_KEY_METHOD_free +EC_KEY_METHOD_new +EC_KEY_METHOD_set_flags +EC_KEY_METHOD_set_init_awslc +EC_KEY_METHOD_set_sign_awslc +EC_KEY_OpenSSL EC_KEY_check_fips EC_KEY_check_key EC_KEY_derive_from_secret @@ -768,9 +808,11 @@ EC_KEY_get0_group EC_KEY_get0_private_key EC_KEY_get0_public_key EC_KEY_get_conv_form +EC_KEY_get_default_method EC_KEY_get_enc_flags EC_KEY_get_ex_data EC_KEY_get_ex_new_index +EC_KEY_get_method EC_KEY_is_opaque EC_KEY_key2buf EC_KEY_marshal_curve_name @@ -786,12 +828,14 @@ EC_KEY_set_conv_form EC_KEY_set_enc_flags EC_KEY_set_ex_data EC_KEY_set_group +EC_KEY_set_method EC_KEY_set_private_key EC_KEY_set_public_key EC_KEY_set_public_key_affine_coordinates EC_KEY_up_ref EC_METHOD_get_field_type EC_POINT_add +EC_POINT_bn2point EC_POINT_clear_free EC_POINT_cmp EC_POINT_copy @@ -806,6 +850,7 @@ EC_POINT_is_on_curve EC_POINT_mul EC_POINT_new EC_POINT_oct2point +EC_POINT_point2bn EC_POINT_point2cbb EC_POINT_point2oct EC_POINT_set_affine_coordinates @@ -815,21 +860,29 @@ EC_POINT_set_to_infinity EC_curve_nid2nist EC_curve_nist2nid EC_get_builtin_curves +EC_group_p224 +EC_group_p256 +EC_group_p384 +EC_group_p521 +EC_group_secp256k1 +EC_hash_to_curve_p256_xmd_sha256_sswu +EC_hash_to_curve_p384_xmd_sha384_sswu +ED25519_check_public_key ED25519_keypair ED25519_keypair_from_seed ED25519_sign ED25519_verify EDIPARTYNAME_free -EDIPARTYNAME_it EDIPARTYNAME_new +ENGINE_cleanup ENGINE_free -ENGINE_get_ECDSA_method -ENGINE_get_RSA_method +ENGINE_get_EC +ENGINE_get_RSA ENGINE_load_builtin_engines ENGINE_new ENGINE_register_all_complete -ENGINE_set_ECDSA_method -ENGINE_set_RSA_method +ENGINE_set_EC +ENGINE_set_RSA ERR_SAVE_STATE_free ERR_add_error_data ERR_add_error_dataf @@ -845,6 +898,7 @@ ERR_get_error_line_data ERR_get_next_error_library ERR_lib_error_string ERR_load_BIO_strings +ERR_load_CRYPTO_strings ERR_load_ERR_strings ERR_load_RAND_strings ERR_load_crypto_strings @@ -914,6 +968,7 @@ EVP_CIPHER_flags EVP_CIPHER_iv_length EVP_CIPHER_key_length EVP_CIPHER_mode +EVP_CIPHER_name EVP_CIPHER_nid EVP_Cipher EVP_CipherFinal @@ -971,6 +1026,9 @@ EVP_HPKE_CTX_max_overhead EVP_HPKE_CTX_new EVP_HPKE_CTX_open EVP_HPKE_CTX_seal +EVP_HPKE_CTX_setup_auth_recipient +EVP_HPKE_CTX_setup_auth_sender +EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing EVP_HPKE_CTX_setup_recipient EVP_HPKE_CTX_setup_sender EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -987,6 +1045,7 @@ EVP_HPKE_KEY_free EVP_HPKE_KEY_generate EVP_HPKE_KEY_init EVP_HPKE_KEY_kem +EVP_HPKE_KEY_move EVP_HPKE_KEY_new EVP_HPKE_KEY_private_key EVP_HPKE_KEY_public_key @@ -1009,10 +1068,15 @@ EVP_MD_CTX_set_pkey_ctx EVP_MD_CTX_size EVP_MD_CTX_type EVP_MD_block_size +EVP_MD_do_all EVP_MD_do_all_sorted EVP_MD_flags +EVP_MD_get0_name +EVP_MD_get_pkey_type EVP_MD_meth_get_flags +EVP_MD_name EVP_MD_nid +EVP_MD_pkey_type EVP_MD_size EVP_MD_type EVP_MD_unstable_sha3_enable @@ -1022,10 +1086,13 @@ EVP_PKCS82PKEY EVP_PKEY2PKCS8 EVP_PKEY_CTX_add1_hkdf_info EVP_PKEY_CTX_ctrl +EVP_PKEY_CTX_ctrl_str EVP_PKEY_CTX_dup EVP_PKEY_CTX_free EVP_PKEY_CTX_get0_pkey EVP_PKEY_CTX_get0_rsa_oaep_label +EVP_PKEY_CTX_get_app_data +EVP_PKEY_CTX_get_keygen_info EVP_PKEY_CTX_get_rsa_mgf1_md EVP_PKEY_CTX_get_rsa_oaep_md EVP_PKEY_CTX_get_rsa_padding @@ -1033,11 +1100,15 @@ EVP_PKEY_CTX_get_rsa_pss_saltlen EVP_PKEY_CTX_get_signature_md EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_kem_set_params +EVP_PKEY_CTX_md EVP_PKEY_CTX_new EVP_PKEY_CTX_new_id EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set1_hkdf_key EVP_PKEY_CTX_set1_hkdf_salt +EVP_PKEY_CTX_set_app_data +EVP_PKEY_CTX_set_cb +EVP_PKEY_CTX_set_dh_pad EVP_PKEY_CTX_set_dsa_paramgen_bits EVP_PKEY_CTX_set_dsa_paramgen_q_bits EVP_PKEY_CTX_set_ec_param_enc @@ -1053,7 +1124,13 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen EVP_PKEY_CTX_set_rsa_pss_saltlen EVP_PKEY_CTX_set_signature_md +EVP_PKEY_asn1_find +EVP_PKEY_asn1_find_str +EVP_PKEY_asn1_get0 +EVP_PKEY_asn1_get0_info +EVP_PKEY_asn1_get_count EVP_PKEY_assign +EVP_PKEY_assign_DH EVP_PKEY_assign_DSA EVP_PKEY_assign_EC_KEY EVP_PKEY_assign_RSA @@ -1069,6 +1146,7 @@ EVP_PKEY_derive EVP_PKEY_derive_init EVP_PKEY_derive_set_peer EVP_PKEY_encapsulate +EVP_PKEY_encapsulate_deterministic EVP_PKEY_encrypt EVP_PKEY_encrypt_init EVP_PKEY_free @@ -1086,13 +1164,16 @@ EVP_PKEY_get_raw_private_key EVP_PKEY_get_raw_public_key EVP_PKEY_id EVP_PKEY_is_opaque +EVP_PKEY_kem_check_key EVP_PKEY_kem_new_raw_key EVP_PKEY_kem_new_raw_public_key EVP_PKEY_kem_new_raw_secret_key EVP_PKEY_keygen +EVP_PKEY_keygen_deterministic EVP_PKEY_keygen_init EVP_PKEY_missing_parameters EVP_PKEY_new +EVP_PKEY_new_mac_key EVP_PKEY_new_raw_private_key EVP_PKEY_new_raw_public_key EVP_PKEY_paramgen @@ -1100,6 +1181,7 @@ EVP_PKEY_paramgen_init EVP_PKEY_print_params EVP_PKEY_print_private EVP_PKEY_print_public +EVP_PKEY_set1_DH EVP_PKEY_set1_DSA EVP_PKEY_set1_EC_KEY EVP_PKEY_set1_RSA @@ -1140,6 +1222,7 @@ EVP_aead_aes_128_gcm_tls13 EVP_aead_aes_192_gcm EVP_aead_aes_256_cbc_sha1_tls EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +EVP_aead_aes_256_cbc_sha384_tls EVP_aead_aes_256_ctr_hmac_sha256 EVP_aead_aes_256_gcm EVP_aead_aes_256_gcm_randnonce @@ -1154,6 +1237,7 @@ EVP_aead_xchacha20_poly1305 EVP_aes_128_cbc EVP_aes_128_cbc_hmac_sha1 EVP_aes_128_cbc_hmac_sha256 +EVP_aes_128_ccm EVP_aes_128_cfb EVP_aes_128_cfb1 EVP_aes_128_cfb128 @@ -1163,6 +1247,7 @@ EVP_aes_128_ecb EVP_aes_128_gcm EVP_aes_128_ofb EVP_aes_192_cbc +EVP_aes_192_ccm EVP_aes_192_cfb EVP_aes_192_cfb1 EVP_aes_192_cfb128 @@ -1174,6 +1259,7 @@ EVP_aes_192_ofb EVP_aes_256_cbc EVP_aes_256_cbc_hmac_sha1 EVP_aes_256_cbc_hmac_sha256 +EVP_aes_256_ccm EVP_aes_256_cfb EVP_aes_256_cfb1 EVP_aes_256_cfb128 @@ -1182,6 +1268,7 @@ EVP_aes_256_ctr EVP_aes_256_ecb EVP_aes_256_gcm EVP_aes_256_ofb +EVP_aes_256_wrap EVP_aes_256_xts EVP_bf_cbc EVP_bf_cfb @@ -1189,6 +1276,7 @@ EVP_bf_ecb EVP_blake2b256 EVP_cast5_cbc EVP_cast5_ecb +EVP_chacha20_poly1305 EVP_cleanup EVP_des_cbc EVP_des_ecb @@ -1200,6 +1288,7 @@ EVP_des_ede_cbc EVP_enc_null EVP_final_with_secret_suffix_sha1 EVP_final_with_secret_suffix_sha256 +EVP_final_with_secret_suffix_sha384 EVP_get_cipherbyname EVP_get_cipherbynid EVP_get_digestbyname @@ -1234,7 +1323,10 @@ EVP_sha3_256 EVP_sha3_384 EVP_sha3_512 EVP_sha512 +EVP_sha512_224 EVP_sha512_256 +EVP_shake128 +EVP_shake256 EXTENDED_KEY_USAGE_free EXTENDED_KEY_USAGE_it EXTENDED_KEY_USAGE_new @@ -1275,8 +1367,12 @@ HMAC_CTX_reset HMAC_Final HMAC_Init HMAC_Init_ex +HMAC_Init_from_precomputed_key HMAC_Update +HMAC_get_precomputed_key +HMAC_set_precomputed_key_export HMAC_size +HMAC_with_precompute HRSS_decap HRSS_encap HRSS_generate_key @@ -1287,6 +1383,7 @@ HRSS_poly3_mul ISSUING_DIST_POINT_free ISSUING_DIST_POINT_it ISSUING_DIST_POINT_new +KBKDF_ctr_hmac MD4 MD4_Final MD4_Init @@ -1295,8 +1392,10 @@ MD4_Update MD5 MD5_Final MD5_Init +MD5_Init_from_state MD5_Transform MD5_Update +MD5_get_state NAME_CONSTRAINTS_check NAME_CONSTRAINTS_free NAME_CONSTRAINTS_it @@ -1316,12 +1415,14 @@ NETSCAPE_SPKI_free NETSCAPE_SPKI_get_pubkey NETSCAPE_SPKI_it NETSCAPE_SPKI_new +NETSCAPE_SPKI_print NETSCAPE_SPKI_set_pubkey NETSCAPE_SPKI_sign NETSCAPE_SPKI_verify NOTICEREF_free NOTICEREF_it NOTICEREF_new +OBJ_NAME_do_all_sorted OBJ_cbs2nid OBJ_cleanup OBJ_cmp @@ -1330,6 +1431,7 @@ OBJ_dup OBJ_find_sigid_algs OBJ_find_sigid_by_algs OBJ_get0_data +OBJ_get_undef OBJ_length OBJ_ln2nid OBJ_nid2cbb @@ -1341,50 +1443,118 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free +OCSP_BASICRESP_get_ext +OCSP_BASICRESP_get_ext_by_NID OCSP_BASICRESP_it OCSP_BASICRESP_new +OCSP_CERTID_dup OCSP_CERTID_free OCSP_CERTID_it OCSP_CERTID_new -OCSP_CERTSTATUS_free -OCSP_CERTSTATUS_it -OCSP_CERTSTATUS_new +OCSP_ONEREQ_free +OCSP_ONEREQ_it +OCSP_ONEREQ_new +OCSP_REQINFO_free +OCSP_REQINFO_it +OCSP_REQINFO_new +OCSP_REQUEST_free +OCSP_REQUEST_get_ext +OCSP_REQUEST_get_ext_by_NID +OCSP_REQUEST_it +OCSP_REQUEST_new +OCSP_REQUEST_print +OCSP_REQ_CTX_add1_header +OCSP_REQ_CTX_free +OCSP_REQ_CTX_get0_mem_bio +OCSP_REQ_CTX_http +OCSP_REQ_CTX_nbio +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 -OCSP_RESPID_free -OCSP_RESPID_it -OCSP_RESPID_new 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 +OCSP_SINGLERESP_add_ext OCSP_SINGLERESP_free +OCSP_SINGLERESP_get0_id +OCSP_SINGLERESP_get_ext +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 +OCSP_id_issuer_cmp +OCSP_onereq_get0_id +OCSP_parse_url +OCSP_request_add0_id +OCSP_request_add1_cert +OCSP_request_add1_nonce +OCSP_request_is_signed +OCSP_request_onereq_count +OCSP_request_onereq_get0 +OCSP_request_set1_name +OCSP_request_sign +OCSP_request_verify +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 +OCSP_sendreq_bio +OCSP_sendreq_nbio +OCSP_sendreq_new +OCSP_set_max_response_length +OCSP_single_get0_status OPENSSL_add_all_algorithms_conf OPENSSL_asprintf +OPENSSL_calloc OPENSSL_cleanse OPENSSL_cleanup OPENSSL_clear_free OPENSSL_config OPENSSL_free +OPENSSL_fromxdigit OPENSSL_gmtime OPENSSL_gmtime_adj OPENSSL_gmtime_diff OPENSSL_hash32 +OPENSSL_hexstr2buf +OPENSSL_init OPENSSL_init_crypto +OPENSSL_isalnum +OPENSSL_isalpha +OPENSSL_isdigit +OPENSSL_isspace +OPENSSL_isxdigit OPENSSL_lh_delete OPENSSL_lh_doall_arg OPENSSL_lh_free @@ -1402,6 +1572,29 @@ OPENSSL_posix_to_tm OPENSSL_realloc OPENSSL_secure_clear_free OPENSSL_secure_malloc +OPENSSL_secure_zalloc +OPENSSL_sk_deep_copy +OPENSSL_sk_delete +OPENSSL_sk_delete_if +OPENSSL_sk_delete_ptr +OPENSSL_sk_dup +OPENSSL_sk_find +OPENSSL_sk_free +OPENSSL_sk_insert +OPENSSL_sk_is_sorted +OPENSSL_sk_new +OPENSSL_sk_new_null +OPENSSL_sk_num +OPENSSL_sk_pop +OPENSSL_sk_pop_free_ex +OPENSSL_sk_push +OPENSSL_sk_set +OPENSSL_sk_set_cmp_func +OPENSSL_sk_shift +OPENSSL_sk_sort +OPENSSL_sk_unshift +OPENSSL_sk_value +OPENSSL_sk_zero OPENSSL_strcasecmp OPENSSL_strdup OPENSSL_strhash @@ -1415,9 +1608,8 @@ OPENSSL_tm_to_posix OPENSSL_tolower OPENSSL_vasprintf OPENSSL_vasprintf_internal -OTHERNAME_cmp +OPENSSL_zalloc OTHERNAME_free -OTHERNAME_it OTHERNAME_new OpenSSL_add_all_algorithms OpenSSL_add_all_ciphers @@ -1432,10 +1624,8 @@ PEM_X509_INFO_read PEM_X509_INFO_read_bio PEM_bytes_read_bio PEM_def_callback -PEM_dek_info PEM_do_header PEM_get_EVP_CIPHER_INFO -PEM_proc_type PEM_read PEM_read_DHparams PEM_read_DSAPrivateKey @@ -1460,12 +1650,14 @@ PEM_read_bio_DHparams PEM_read_bio_DSAPrivateKey PEM_read_bio_DSA_PUBKEY PEM_read_bio_DSAparams +PEM_read_bio_ECPKParameters PEM_read_bio_ECPrivateKey PEM_read_bio_EC_PUBKEY PEM_read_bio_PKCS7 PEM_read_bio_PKCS8 PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_PUBKEY +PEM_read_bio_Parameters PEM_read_bio_PrivateKey PEM_read_bio_RSAPrivateKey PEM_read_bio_RSAPublicKey @@ -1501,6 +1693,7 @@ PEM_write_bio_DHparams PEM_write_bio_DSAPrivateKey PEM_write_bio_DSA_PUBKEY PEM_write_bio_DSAparams +PEM_write_bio_ECPKParameters PEM_write_bio_ECPrivateKey PEM_write_bio_EC_PUBKEY PEM_write_bio_PKCS7 @@ -1509,7 +1702,9 @@ PEM_write_bio_PKCS8PrivateKey PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_PUBKEY +PEM_write_bio_Parameters PEM_write_bio_PrivateKey +PEM_write_bio_PrivateKey_traditional PEM_write_bio_RSAPrivateKey PEM_write_bio_RSAPublicKey PEM_write_bio_RSA_PUBKEY @@ -1522,19 +1717,65 @@ PKCS12_PBE_add PKCS12_create PKCS12_free PKCS12_get_key_and_certs +PKCS12_new PKCS12_parse PKCS12_verify_mac +PKCS1_MGF1 PKCS5_PBKDF2_HMAC PKCS5_PBKDF2_HMAC_SHA1 +PKCS7_DIGEST_free +PKCS7_DIGEST_it +PKCS7_DIGEST_new +PKCS7_ENCRYPT_free +PKCS7_ENCRYPT_it +PKCS7_ENCRYPT_new +PKCS7_ENC_CONTENT_free +PKCS7_ENC_CONTENT_it +PKCS7_ENC_CONTENT_new +PKCS7_ENVELOPE_free +PKCS7_ENVELOPE_it +PKCS7_ENVELOPE_new +PKCS7_ISSUER_AND_SERIAL_free +PKCS7_ISSUER_AND_SERIAL_it +PKCS7_ISSUER_AND_SERIAL_new +PKCS7_RECIP_INFO_free +PKCS7_RECIP_INFO_get0_alg +PKCS7_RECIP_INFO_it +PKCS7_RECIP_INFO_new +PKCS7_RECIP_INFO_set +PKCS7_SIGNED_free +PKCS7_SIGNED_it +PKCS7_SIGNED_new +PKCS7_SIGNER_INFO_free +PKCS7_SIGNER_INFO_get0_algs +PKCS7_SIGNER_INFO_it +PKCS7_SIGNER_INFO_new +PKCS7_SIGNER_INFO_set +PKCS7_SIGN_ENVELOPE_free +PKCS7_SIGN_ENVELOPE_it +PKCS7_SIGN_ENVELOPE_new +PKCS7_add_certificate +PKCS7_add_crl +PKCS7_add_recipient_info +PKCS7_add_signer PKCS7_bundle_CRLs PKCS7_bundle_certificates PKCS7_bundle_raw_certificates +PKCS7_content_new +PKCS7_dup PKCS7_free PKCS7_get_CRLs PKCS7_get_PEM_CRLs PKCS7_get_PEM_certificates PKCS7_get_certificates PKCS7_get_raw_certificates +PKCS7_get_signed_attribute +PKCS7_get_signer_info +PKCS7_it +PKCS7_new +PKCS7_set_cipher +PKCS7_set_content +PKCS7_set_type PKCS7_sign PKCS7_type_is_data PKCS7_type_is_digest @@ -1562,30 +1803,28 @@ POLICY_MAPPINGS_it POLICY_MAPPING_free POLICY_MAPPING_it POLICY_MAPPING_new -PROXY_CERT_INFO_EXTENSION_free -PROXY_CERT_INFO_EXTENSION_it -PROXY_CERT_INFO_EXTENSION_new -PROXY_POLICY_free -PROXY_POLICY_it -PROXY_POLICY_new RAND_OpenSSL RAND_SSLeay RAND_add RAND_bytes RAND_cleanup RAND_egd +RAND_egd_bytes RAND_enable_fork_unsafe_buffering RAND_file_name RAND_get_rand_method RAND_get_system_entropy_for_custom_prng +RAND_keep_random_devices_open RAND_load_entropy RAND_load_file RAND_module_entropy_depleted RAND_poll +RAND_priv_bytes RAND_pseudo_bytes RAND_seed RAND_set_rand_method RAND_status +RAND_write_file RC4 RC4_set_key RIPEMD160 @@ -1604,6 +1843,7 @@ RSA_PSS_PARAMS_it RSA_PSS_PARAMS_new RSA_add_pkcs1_prefix RSA_bits +RSA_blinding_off_temp_for_accp_compatibility RSA_blinding_on RSA_check_fips RSA_check_key @@ -1626,20 +1866,41 @@ RSA_get0_n RSA_get0_p RSA_get0_pss_params RSA_get0_q +RSA_get_default_method RSA_get_ex_data RSA_get_ex_new_index +RSA_get_method RSA_is_opaque RSA_marshal_private_key RSA_marshal_public_key +RSA_meth_free +RSA_meth_new +RSA_meth_set0_app_data +RSA_meth_set_finish +RSA_meth_set_init +RSA_meth_set_priv_dec +RSA_meth_set_priv_enc +RSA_meth_set_pub_dec +RSA_meth_set_pub_enc +RSA_meth_set_sign RSA_new RSA_new_method +RSA_new_method_no_e +RSA_new_private_key +RSA_new_private_key_large_e +RSA_new_private_key_no_crt +RSA_new_private_key_no_e +RSA_new_public_key +RSA_new_public_key_large_e RSA_padding_add_PKCS1_OAEP RSA_padding_add_PKCS1_OAEP_mgf1 RSA_padding_add_PKCS1_PSS RSA_padding_add_PKCS1_PSS_mgf1 RSA_parse_private_key RSA_parse_public_key +RSA_pkey_ctx_ctrl RSA_print +RSA_print_fp RSA_private_decrypt RSA_private_encrypt RSA_private_key_from_bytes @@ -1652,6 +1913,8 @@ RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_set_ex_data +RSA_set_flags +RSA_set_method RSA_sign RSA_sign_pss_mgf1 RSA_sign_raw @@ -1666,22 +1929,30 @@ RSA_verify_raw SHA1 SHA1_Final SHA1_Init +SHA1_Init_from_state SHA1_Transform SHA1_Update +SHA1_get_state SHA224 SHA224_Final SHA224_Init +SHA224_Init_from_state SHA224_Update +SHA224_get_state SHA256 SHA256_Final SHA256_Init +SHA256_Init_from_state SHA256_Transform SHA256_TransformBlocks SHA256_Update +SHA256_get_state SHA384 SHA384_Final SHA384_Init +SHA384_Init_from_state SHA384_Update +SHA384_get_state SHA3_224 SHA3_256 SHA3_384 @@ -1693,22 +1964,36 @@ SHA3_Reset SHA3_Squeeze SHA3_Update SHA512 +SHA512_224 +SHA512_224_Final +SHA512_224_Init +SHA512_224_Init_from_state +SHA512_224_Update +SHA512_224_get_state SHA512_256 SHA512_256_Final SHA512_256_Init +SHA512_256_Init_from_state SHA512_256_Update +SHA512_256_get_state SHA512_Final SHA512_Init +SHA512_Init_from_state SHA512_Transform SHA512_Update +SHA512_get_state SHAKE128 SHAKE256 +SHAKE_Final +SHAKE_Init SIPHASH_24 SPAKE2_CTX_free SPAKE2_CTX_new SPAKE2_generate_msg SPAKE2_process_msg SSHKDF +SSKDF_digest +SSKDF_hmac SSLeay SSLeay_version TRUST_TOKEN_CLIENT_add_key @@ -1726,7 +2011,6 @@ TRUST_TOKEN_ISSUER_issue TRUST_TOKEN_ISSUER_new TRUST_TOKEN_ISSUER_redeem TRUST_TOKEN_ISSUER_redeem_over_message -TRUST_TOKEN_ISSUER_redeem_raw TRUST_TOKEN_ISSUER_set_metadata_key TRUST_TOKEN_ISSUER_set_srr_key TRUST_TOKEN_PRETOKEN_free @@ -1738,6 +2022,8 @@ TRUST_TOKEN_experiment_v2_voprf TRUST_TOKEN_free TRUST_TOKEN_generate_key TRUST_TOKEN_new +TRUST_TOKEN_pst_v1_pmb +TRUST_TOKEN_pst_v1_voprf USERNOTICE_free USERNOTICE_it USERNOTICE_new @@ -1748,10 +2034,9 @@ X509V3_EXT_CRL_add_nconf X509V3_EXT_REQ_add_nconf X509V3_EXT_add X509V3_EXT_add_alias -X509V3_EXT_add_list X509V3_EXT_add_nconf X509V3_EXT_add_nconf_sk -X509V3_EXT_cleanup +X509V3_EXT_conf X509V3_EXT_conf_nid X509V3_EXT_d2i X509V3_EXT_free @@ -1762,7 +2047,6 @@ X509V3_EXT_nconf X509V3_EXT_nconf_nid X509V3_EXT_print X509V3_EXT_print_fp -X509V3_EXT_val_prn X509V3_add1_i2d X509V3_add_standard_extensions X509V3_conf_free @@ -1807,7 +2091,6 @@ X509_CRL_add1_ext_i2d X509_CRL_add_ext X509_CRL_cmp X509_CRL_delete_ext -X509_CRL_diff X509_CRL_digest X509_CRL_dup X509_CRL_free @@ -1829,6 +2112,7 @@ X509_CRL_get_lastUpdate X509_CRL_get_nextUpdate X509_CRL_get_signature_nid X509_CRL_get_version +X509_CRL_http_nbio X509_CRL_it X509_CRL_match X509_CRL_new @@ -1859,15 +2143,12 @@ X509_EXTENSION_set_critical X509_EXTENSION_set_data X509_EXTENSION_set_object X509_INFO_free -X509_INFO_new -X509_LOOKUP_by_subject +X509_LOOKUP_add_dir X509_LOOKUP_ctrl X509_LOOKUP_file X509_LOOKUP_free X509_LOOKUP_hash_dir -X509_LOOKUP_init -X509_LOOKUP_new -X509_LOOKUP_shutdown +X509_LOOKUP_load_file X509_NAME_ENTRY_create_by_NID X509_NAME_ENTRY_create_by_OBJ X509_NAME_ENTRY_create_by_txt @@ -1905,25 +2186,22 @@ X509_NAME_print X509_NAME_print_ex X509_NAME_print_ex_fp X509_NAME_set -X509_OBJECT_free_contents +X509_OBJECT_free X509_OBJECT_get0_X509 +X509_OBJECT_get0_X509_CRL X509_OBJECT_get_type -X509_OBJECT_idx_by_subject -X509_OBJECT_retrieve_by_subject -X509_OBJECT_retrieve_match -X509_OBJECT_up_ref_count -X509_PKEY_free -X509_PKEY_new +X509_OBJECT_new +X509_OBJECT_set1_X509 +X509_OBJECT_set1_X509_CRL X509_PUBKEY_free X509_PUBKEY_get +X509_PUBKEY_get0 X509_PUBKEY_get0_param X509_PUBKEY_get0_public_key X509_PUBKEY_it X509_PUBKEY_new X509_PUBKEY_set X509_PUBKEY_set0_param -X509_PURPOSE_add -X509_PURPOSE_cleanup X509_PURPOSE_get0 X509_PURPOSE_get0_name X509_PURPOSE_get0_sname @@ -1948,6 +2226,7 @@ X509_REQ_digest X509_REQ_dup X509_REQ_extension_nid X509_REQ_free +X509_REQ_get0_pubkey X509_REQ_get0_signature X509_REQ_get1_email X509_REQ_get_attr @@ -2005,8 +2284,11 @@ X509_STORE_CTX_get0_param X509_STORE_CTX_get0_parent_ctx X509_STORE_CTX_get0_store X509_STORE_CTX_get0_untrusted +X509_STORE_CTX_get1_certs X509_STORE_CTX_get1_chain +X509_STORE_CTX_get1_crls X509_STORE_CTX_get1_issuer +X509_STORE_CTX_get_by_subject X509_STORE_CTX_get_chain X509_STORE_CTX_get_current_cert X509_STORE_CTX_get_error @@ -2015,7 +2297,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 @@ -2032,49 +2313,29 @@ X509_STORE_CTX_set_time_posix X509_STORE_CTX_set_trust X509_STORE_CTX_set_verify_cb X509_STORE_CTX_trusted_stack -X509_STORE_CTX_zero X509_STORE_add_cert X509_STORE_add_crl X509_STORE_add_lookup X509_STORE_free X509_STORE_get0_objects X509_STORE_get0_param -X509_STORE_get1_certs -X509_STORE_get1_crls -X509_STORE_get_by_subject -X509_STORE_get_cert_crl -X509_STORE_get_check_crl -X509_STORE_get_check_issued -X509_STORE_get_check_revocation -X509_STORE_get_cleanup -X509_STORE_get_get_crl -X509_STORE_get_get_issuer -X509_STORE_get_lookup_certs -X509_STORE_get_lookup_crls -X509_STORE_get_verify -X509_STORE_get_verify_cb +X509_STORE_get_ex_data +X509_STORE_get_ex_new_index X509_STORE_load_locations +X509_STORE_lock X509_STORE_new X509_STORE_set1_param -X509_STORE_set_cert_crl X509_STORE_set_check_crl -X509_STORE_set_check_issued -X509_STORE_set_check_revocation -X509_STORE_set_cleanup X509_STORE_set_default_paths X509_STORE_set_depth +X509_STORE_set_ex_data X509_STORE_set_flags X509_STORE_set_get_crl -X509_STORE_set_get_issuer -X509_STORE_set_lookup_certs -X509_STORE_set_lookup_crls X509_STORE_set_purpose X509_STORE_set_trust -X509_STORE_set_verify X509_STORE_set_verify_cb +X509_STORE_unlock X509_STORE_up_ref -X509_TRUST_add -X509_TRUST_cleanup X509_TRUST_get0 X509_TRUST_get0_name X509_TRUST_get_by_id @@ -2086,25 +2347,18 @@ X509_VAL_free X509_VAL_it X509_VAL_new X509_VERIFY_PARAM_add0_policy -X509_VERIFY_PARAM_add0_table X509_VERIFY_PARAM_add1_host X509_VERIFY_PARAM_clear_flags X509_VERIFY_PARAM_free -X509_VERIFY_PARAM_get0 -X509_VERIFY_PARAM_get0_name -X509_VERIFY_PARAM_get0_peername -X509_VERIFY_PARAM_get_count X509_VERIFY_PARAM_get_depth X509_VERIFY_PARAM_get_flags X509_VERIFY_PARAM_inherit -X509_VERIFY_PARAM_lookup X509_VERIFY_PARAM_new X509_VERIFY_PARAM_set1 X509_VERIFY_PARAM_set1_email X509_VERIFY_PARAM_set1_host X509_VERIFY_PARAM_set1_ip X509_VERIFY_PARAM_set1_ip_asc -X509_VERIFY_PARAM_set1_name X509_VERIFY_PARAM_set1_policies X509_VERIFY_PARAM_set_depth X509_VERIFY_PARAM_set_flags @@ -2113,7 +2367,6 @@ X509_VERIFY_PARAM_set_purpose X509_VERIFY_PARAM_set_time X509_VERIFY_PARAM_set_time_posix X509_VERIFY_PARAM_set_trust -X509_VERIFY_PARAM_table_cleanup X509_add1_ext_i2d X509_add1_reject_object X509_add1_trust_object @@ -2121,7 +2374,6 @@ X509_add_ext X509_alias_get0 X509_alias_set1 X509_chain_up_ref -X509_check_akid X509_check_ca X509_check_email X509_check_host @@ -2148,6 +2400,7 @@ X509_get0_authority_serial X509_get0_extensions X509_get0_notAfter X509_get0_notBefore +X509_get0_pubkey X509_get0_pubkey_bitstr X509_get0_serialNumber X509_get0_signature @@ -2180,6 +2433,7 @@ X509_get_notBefore X509_get_pathlen X509_get_pubkey X509_get_serialNumber +X509_get_signature_info X509_get_signature_nid X509_get_subject_name X509_get_version @@ -2230,15 +2484,6 @@ X509_up_ref X509_verify X509_verify_cert X509_verify_cert_error_string -X509at_add1_attr -X509at_add1_attr_by_NID -X509at_add1_attr_by_OBJ -X509at_add1_attr_by_txt -X509at_delete_attr -X509at_get_attr -X509at_get_attr_by_NID -X509at_get_attr_by_OBJ -X509at_get_attr_count X509v3_add_ext X509v3_delete_ext X509v3_get_ext @@ -2246,16 +2491,21 @@ X509v3_get_ext_by_NID X509v3_get_ext_by_OBJ X509v3_get_ext_by_critical X509v3_get_ext_count -a2i_GENERAL_NAME a2i_IPADDRESS a2i_IPADDRESS_NC aes_hw_xts_cipher +armv8_disable_dit +armv8_enable_dit +armv8_get_dit +armv8_restore_dit +armv8_set_dit asn1_generalizedtime_to_tm asn1_get_string_table_for_testing asn1_utctime_to_tm awslc_api_version_num awslc_version_string bn_abs_sub_consttime +bn_assert_fits_in_bytes bn_div_consttime bn_is_relatively_prime bn_lcm_consttime @@ -2322,6 +2572,7 @@ d2i_DSA_PUBKEY_fp d2i_DSA_SIG d2i_DSAparams d2i_ECDSA_SIG +d2i_ECPKParameters_bio d2i_ECParameters d2i_ECPrivateKey d2i_ECPrivateKey_bio @@ -2329,7 +2580,6 @@ d2i_ECPrivateKey_fp d2i_EC_PUBKEY d2i_EC_PUBKEY_bio d2i_EC_PUBKEY_fp -d2i_EDIPARTYNAME d2i_EXTENDED_KEY_USAGE d2i_GENERAL_NAME d2i_GENERAL_NAMES @@ -2339,18 +2589,30 @@ d2i_NETSCAPE_SPKI d2i_NOTICEREF d2i_OCSP_BASICRESP d2i_OCSP_CERTID -d2i_OCSP_CERTSTATUS +d2i_OCSP_ONEREQ +d2i_OCSP_REQINFO +d2i_OCSP_REQUEST +d2i_OCSP_REQUEST_bio d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA -d2i_OCSP_RESPID d2i_OCSP_RESPONSE +d2i_OCSP_RESPONSE_bio d2i_OCSP_REVOKEDINFO +d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP -d2i_OTHERNAME d2i_PKCS12 d2i_PKCS12_bio d2i_PKCS12_fp d2i_PKCS7 +d2i_PKCS7_DIGEST +d2i_PKCS7_ENCRYPT +d2i_PKCS7_ENC_CONTENT +d2i_PKCS7_ENVELOPE +d2i_PKCS7_ISSUER_AND_SERIAL +d2i_PKCS7_RECIP_INFO +d2i_PKCS7_SIGNED +d2i_PKCS7_SIGNER_INFO +d2i_PKCS7_SIGN_ENVELOPE d2i_PKCS7_bio d2i_PKCS8PrivateKey_bio d2i_PKCS8PrivateKey_fp @@ -2361,8 +2623,6 @@ d2i_PKCS8_bio d2i_PKCS8_fp d2i_POLICYINFO d2i_POLICYQUALINFO -d2i_PROXY_CERT_INFO_EXTENSION -d2i_PROXY_POLICY d2i_PUBKEY d2i_PUBKEY_bio d2i_PUBKEY_fp @@ -2406,11 +2666,15 @@ d2i_X509_VAL d2i_X509_bio d2i_X509_fp ec_bignum_to_scalar +ec_hash_to_curve_p256_xmd_sha256_sswu +ec_hash_to_curve_p384_xmd_sha384_sswu ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +ec_hash_to_scalar_p384_xmd_sha384 ec_hash_to_scalar_p384_xmd_sha512_draft07 +ec_jacobian_to_affine ec_point_mul_scalar_public +ec_scalar_from_bytes ec_scalar_to_bytes -i2a_ACCESS_DESCRIPTION i2a_ASN1_ENUMERATED i2a_ASN1_INTEGER i2a_ASN1_OBJECT @@ -2461,6 +2725,7 @@ i2d_DSA_PUBKEY_fp i2d_DSA_SIG i2d_DSAparams i2d_ECDSA_SIG +i2d_ECPKParameters_bio i2d_ECParameters i2d_ECPrivateKey i2d_ECPrivateKey_bio @@ -2468,7 +2733,6 @@ i2d_ECPrivateKey_fp i2d_EC_PUBKEY i2d_EC_PUBKEY_bio i2d_EC_PUBKEY_fp -i2d_EDIPARTYNAME i2d_EXTENDED_KEY_USAGE i2d_GENERAL_NAME i2d_GENERAL_NAMES @@ -2478,18 +2742,30 @@ i2d_NETSCAPE_SPKI i2d_NOTICEREF i2d_OCSP_BASICRESP i2d_OCSP_CERTID -i2d_OCSP_CERTSTATUS +i2d_OCSP_ONEREQ +i2d_OCSP_REQINFO +i2d_OCSP_REQUEST +i2d_OCSP_REQUEST_bio i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA -i2d_OCSP_RESPID i2d_OCSP_RESPONSE +i2d_OCSP_RESPONSE_bio i2d_OCSP_REVOKEDINFO +i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP -i2d_OTHERNAME i2d_PKCS12 i2d_PKCS12_bio i2d_PKCS12_fp i2d_PKCS7 +i2d_PKCS7_DIGEST +i2d_PKCS7_ENCRYPT +i2d_PKCS7_ENC_CONTENT +i2d_PKCS7_ENVELOPE +i2d_PKCS7_ISSUER_AND_SERIAL +i2d_PKCS7_RECIP_INFO +i2d_PKCS7_SIGNED +i2d_PKCS7_SIGNER_INFO +i2d_PKCS7_SIGN_ENVELOPE i2d_PKCS7_bio i2d_PKCS8PrivateKeyInfo_bio i2d_PKCS8PrivateKeyInfo_fp @@ -2504,8 +2780,6 @@ i2d_PKCS8_bio i2d_PKCS8_fp i2d_POLICYINFO i2d_POLICYQUALINFO -i2d_PROXY_CERT_INFO_EXTENSION -i2d_PROXY_POLICY i2d_PUBKEY i2d_PUBKEY_bio i2d_PUBKEY_fp @@ -2560,47 +2834,16 @@ i2s_ASN1_OCTET_STRING i2t_ASN1_OBJECT i2v_GENERAL_NAME i2v_GENERAL_NAMES -jent_entropy_collector_alloc -jent_entropy_collector_free -jent_entropy_init -jent_entropy_init_ex -jent_entropy_switch_notime_impl -jent_read_entropy -jent_read_entropy_safe -jent_set_fips_failure_callback -jent_version o2i_ECPublicKey pmbtoken_exp1_get_h_for_testing pmbtoken_exp2_get_h_for_testing +pmbtoken_pst1_get_h_for_testing pq_custom_randombytes_init_for_testing pq_custom_randombytes_use_deterministic_for_testing s2i_ASN1_INTEGER s2i_ASN1_OCTET_STRING -sk_deep_copy -sk_delete -sk_delete_if -sk_delete_ptr -sk_dup -sk_find -sk_free -sk_insert -sk_is_sorted -sk_new -sk_new_null -sk_num -sk_pop sk_pop_free -sk_pop_free_ex -sk_push -sk_set -sk_set_cmp_func -sk_shift -sk_sort -sk_value -sk_zero -v2i_GENERAL_NAME -v2i_GENERAL_NAMES -v2i_GENERAL_NAME_ex +voprf_pst1_sign_with_proof_scalar_for_testing x509v3_bytes_to_hex x509v3_cache_extensions x509v3_looks_like_dns_name diff --git a/aws-lc-fips-sys/symbols/aarch64-unknown-linux-gnu.txt b/aws-lc-fips-sys/symbols/aarch64-unknown-linux-gnu.txt index e22b6dc16be..5c4c4ad24c2 100644 --- a/aws-lc-fips-sys/symbols/aarch64-unknown-linux-gnu.txt +++ b/aws-lc-fips-sys/symbols/aarch64-unknown-linux-gnu.txt @@ -129,9 +129,11 @@ ASN1_TIME_print ASN1_TIME_set ASN1_TIME_set_posix ASN1_TIME_set_string +ASN1_TIME_set_string_X509 ASN1_TIME_to_generalizedtime ASN1_TIME_to_posix ASN1_TIME_to_time_t +ASN1_TIME_to_tm ASN1_TYPE_cmp ASN1_TYPE_free ASN1_TYPE_get @@ -157,8 +159,10 @@ ASN1_VISIBLESTRING_free ASN1_VISIBLESTRING_it ASN1_VISIBLESTRING_new ASN1_digest +ASN1_dup ASN1_generate_v3 ASN1_get_object +ASN1_i2d_bio ASN1_item_d2i ASN1_item_d2i_bio ASN1_item_d2i_fp @@ -254,6 +258,7 @@ BIO_meth_set_gets BIO_meth_set_puts BIO_meth_set_read BIO_meth_set_write +BIO_method_name BIO_method_type BIO_new BIO_new_bio_pair @@ -274,6 +279,7 @@ BIO_push BIO_puts BIO_read BIO_read_asn1 +BIO_read_ex BIO_read_filename BIO_reset BIO_rw_filename @@ -281,6 +287,7 @@ BIO_s_connect BIO_s_fd BIO_s_file BIO_s_mem +BIO_s_secmem BIO_s_socket BIO_seek BIO_set_callback_arg @@ -318,6 +325,7 @@ BIO_vsnprintf BIO_wpending BIO_write BIO_write_all +BIO_write_ex BIO_write_filename BLAKE2B256 BLAKE2B256_Final @@ -332,12 +340,14 @@ BN_CTX_end BN_CTX_free BN_CTX_get BN_CTX_new +BN_CTX_secure_new BN_CTX_start BN_GENCB_call BN_GENCB_free BN_GENCB_get_arg BN_GENCB_new BN_GENCB_set +BN_GENCB_set_old BN_MONT_CTX_copy BN_MONT_CTX_free BN_MONT_CTX_new @@ -376,6 +386,7 @@ BN_free BN_from_montgomery BN_gcd BN_generate_prime_ex +BN_get_flags BN_get_rfc3526_prime_1536 BN_get_rfc3526_prime_2048 BN_get_rfc3526_prime_3072 @@ -406,6 +417,7 @@ BN_mod_exp BN_mod_exp2_mont BN_mod_exp_mont BN_mod_exp_mont_consttime +BN_mod_exp_mont_consttime_x2 BN_mod_exp_mont_word BN_mod_inverse BN_mod_inverse_blinded @@ -461,7 +473,6 @@ BN_usub BN_value_one BN_zero BORINGSSL_FIPS_abort -BORINGSSL_integrity_test BORINGSSL_self_test BUF_MEM_append BUF_MEM_free @@ -553,6 +564,7 @@ CBS_get_u24_length_prefixed CBS_get_u32 CBS_get_u32le CBS_get_u64 +CBS_get_u64_decimal CBS_get_u64le CBS_get_u8 CBS_get_u8_length_prefixed @@ -561,6 +573,7 @@ CBS_init CBS_is_unsigned_asn1_integer CBS_is_valid_asn1_bitstring CBS_is_valid_asn1_integer +CBS_is_valid_asn1_oid CBS_len CBS_mem_equal CBS_parse_generalized_time @@ -574,14 +587,18 @@ CERTIFICATEPOLICIES_it CERTIFICATEPOLICIES_new CMAC_CTX_copy CMAC_CTX_free +CMAC_CTX_get0_cipher_ctx CMAC_CTX_new CMAC_Final CMAC_Init CMAC_Reset CMAC_Update CONF_VALUE_new +CONF_get1_default_config_file +CONF_modules_finish CONF_modules_free CONF_modules_load_file +CONF_modules_unload CONF_parse_list CRL_DIST_POINTS_free CRL_DIST_POINTS_it @@ -653,6 +670,7 @@ CRYPTO_ghash_init CRYPTO_has_asm CRYPTO_hchacha20 CRYPTO_init_sysrand +CRYPTO_is_ARMv8_DIT_capable_for_testing CRYPTO_is_confidential_build CRYPTO_library_init CRYPTO_malloc @@ -692,19 +710,29 @@ CTR_DRBG_generate CTR_DRBG_init CTR_DRBG_new CTR_DRBG_reseed -ChaCha20_ctr32 +ChaCha20_ctr32_neon +ChaCha20_ctr32_nohw DES_decrypt3 DES_ecb3_encrypt +DES_ecb3_encrypt_ex DES_ecb_encrypt +DES_ecb_encrypt_ex DES_ede2_cbc_encrypt DES_ede3_cbc_encrypt +DES_ede3_cbc_encrypt_ex DES_encrypt3 +DES_is_weak_key +DES_key_sched DES_ncbc_encrypt +DES_ncbc_encrypt_ex DES_set_key +DES_set_key_ex +DES_set_key_unchecked DES_set_odd_parity DH_bits DH_check DH_check_pub_key +DH_clear_flags DH_compute_key DH_compute_key_hashed DH_compute_key_padded @@ -721,8 +749,12 @@ DH_get0_pub_key DH_get0_q DH_get_2048_256 DH_get_rfc7919_2048 +DH_get_rfc7919_3072 +DH_get_rfc7919_4096 +DH_get_rfc7919_8192 DH_marshal_parameters DH_new +DH_new_by_nid DH_num_bits DH_parse_parameters DH_set0_key @@ -775,6 +807,8 @@ DSA_new DSA_parse_parameters DSA_parse_private_key DSA_parse_public_key +DSA_print +DSA_print_fp DSA_set0_key DSA_set0_pqg DSA_set_ex_data @@ -804,6 +838,7 @@ ECDSA_sign ECDSA_sign_with_nonce_and_leak_private_key_for_testing ECDSA_size ECDSA_verify +ECPKParameters_print EC_GFp_mont_method EC_GFp_nistp224_method EC_GFp_nistp256_method @@ -815,12 +850,14 @@ EC_GROUP_dup EC_GROUP_free EC_GROUP_get0_generator EC_GROUP_get0_order +EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_cofactor EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name EC_GROUP_get_degree EC_GROUP_get_order +EC_GROUP_get_seed_len EC_GROUP_method_of EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp @@ -828,6 +865,13 @@ EC_GROUP_order_bits EC_GROUP_set_asn1_flag EC_GROUP_set_generator EC_GROUP_set_point_conversion_form +EC_GROUP_set_seed +EC_KEY_METHOD_free +EC_KEY_METHOD_new +EC_KEY_METHOD_set_flags +EC_KEY_METHOD_set_init_awslc +EC_KEY_METHOD_set_sign_awslc +EC_KEY_OpenSSL EC_KEY_check_fips EC_KEY_check_key EC_KEY_derive_from_secret @@ -839,9 +883,11 @@ EC_KEY_get0_group EC_KEY_get0_private_key EC_KEY_get0_public_key EC_KEY_get_conv_form +EC_KEY_get_default_method EC_KEY_get_enc_flags EC_KEY_get_ex_data EC_KEY_get_ex_new_index +EC_KEY_get_method EC_KEY_is_opaque EC_KEY_key2buf EC_KEY_keygen_verify_service_indicator @@ -858,12 +904,14 @@ EC_KEY_set_conv_form EC_KEY_set_enc_flags EC_KEY_set_ex_data EC_KEY_set_group +EC_KEY_set_method EC_KEY_set_private_key EC_KEY_set_public_key EC_KEY_set_public_key_affine_coordinates EC_KEY_up_ref EC_METHOD_get_field_type EC_POINT_add +EC_POINT_bn2point EC_POINT_clear_free EC_POINT_cmp EC_POINT_copy @@ -878,6 +926,7 @@ EC_POINT_is_on_curve EC_POINT_mul EC_POINT_new EC_POINT_oct2point +EC_POINT_point2bn EC_POINT_point2cbb EC_POINT_point2oct EC_POINT_set_affine_coordinates @@ -887,21 +936,32 @@ EC_POINT_set_to_infinity EC_curve_nid2nist EC_curve_nist2nid EC_get_builtin_curves +EC_group_p224 +EC_group_p256 +EC_group_p384 +EC_group_p521 +EC_group_secp256k1 +EC_hash_to_curve_p256_xmd_sha256_sswu +EC_hash_to_curve_p384_xmd_sha384_sswu +ED25519_check_public_key ED25519_keypair ED25519_keypair_from_seed ED25519_sign +ED25519_sign_no_self_test ED25519_verify +ED25519_verify_no_self_test EDIPARTYNAME_free EDIPARTYNAME_it EDIPARTYNAME_new +ENGINE_cleanup ENGINE_free -ENGINE_get_ECDSA_method -ENGINE_get_RSA_method +ENGINE_get_EC +ENGINE_get_RSA ENGINE_load_builtin_engines ENGINE_new ENGINE_register_all_complete -ENGINE_set_ECDSA_method -ENGINE_set_RSA_method +ENGINE_set_EC +ENGINE_set_RSA ERR_SAVE_STATE_free ERR_add_error_data ERR_add_error_dataf @@ -917,6 +977,7 @@ ERR_get_error_line_data ERR_get_next_error_library ERR_lib_error_string ERR_load_BIO_strings +ERR_load_CRYPTO_strings ERR_load_ERR_strings ERR_load_RAND_strings ERR_load_crypto_strings @@ -986,6 +1047,7 @@ EVP_CIPHER_flags EVP_CIPHER_iv_length EVP_CIPHER_key_length EVP_CIPHER_mode +EVP_CIPHER_name EVP_CIPHER_nid EVP_Cipher EVP_CipherFinal @@ -1046,6 +1108,9 @@ EVP_HPKE_CTX_max_overhead EVP_HPKE_CTX_new EVP_HPKE_CTX_open EVP_HPKE_CTX_seal +EVP_HPKE_CTX_setup_auth_recipient +EVP_HPKE_CTX_setup_auth_sender +EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing EVP_HPKE_CTX_setup_recipient EVP_HPKE_CTX_setup_sender EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -1062,6 +1127,7 @@ EVP_HPKE_KEY_free EVP_HPKE_KEY_generate EVP_HPKE_KEY_init EVP_HPKE_KEY_kem +EVP_HPKE_KEY_move EVP_HPKE_KEY_new EVP_HPKE_KEY_private_key EVP_HPKE_KEY_public_key @@ -1084,10 +1150,15 @@ EVP_MD_CTX_set_pkey_ctx EVP_MD_CTX_size EVP_MD_CTX_type EVP_MD_block_size +EVP_MD_do_all EVP_MD_do_all_sorted EVP_MD_flags +EVP_MD_get0_name +EVP_MD_get_pkey_type EVP_MD_meth_get_flags +EVP_MD_name EVP_MD_nid +EVP_MD_pkey_type EVP_MD_size EVP_MD_type EVP_MD_unstable_sha3_enable @@ -1097,10 +1168,13 @@ EVP_PKCS82PKEY EVP_PKEY2PKCS8 EVP_PKEY_CTX_add1_hkdf_info EVP_PKEY_CTX_ctrl +EVP_PKEY_CTX_ctrl_str EVP_PKEY_CTX_dup EVP_PKEY_CTX_free EVP_PKEY_CTX_get0_pkey EVP_PKEY_CTX_get0_rsa_oaep_label +EVP_PKEY_CTX_get_app_data +EVP_PKEY_CTX_get_keygen_info EVP_PKEY_CTX_get_rsa_mgf1_md EVP_PKEY_CTX_get_rsa_oaep_md EVP_PKEY_CTX_get_rsa_padding @@ -1108,11 +1182,15 @@ EVP_PKEY_CTX_get_rsa_pss_saltlen EVP_PKEY_CTX_get_signature_md EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_kem_set_params +EVP_PKEY_CTX_md EVP_PKEY_CTX_new EVP_PKEY_CTX_new_id EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set1_hkdf_key EVP_PKEY_CTX_set1_hkdf_salt +EVP_PKEY_CTX_set_app_data +EVP_PKEY_CTX_set_cb +EVP_PKEY_CTX_set_dh_pad EVP_PKEY_CTX_set_dsa_paramgen_bits EVP_PKEY_CTX_set_dsa_paramgen_q_bits EVP_PKEY_CTX_set_ec_param_enc @@ -1128,7 +1206,13 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen EVP_PKEY_CTX_set_rsa_pss_saltlen EVP_PKEY_CTX_set_signature_md +EVP_PKEY_asn1_find +EVP_PKEY_asn1_find_str +EVP_PKEY_asn1_get0 +EVP_PKEY_asn1_get0_info +EVP_PKEY_asn1_get_count EVP_PKEY_assign +EVP_PKEY_assign_DH EVP_PKEY_assign_DSA EVP_PKEY_assign_EC_KEY EVP_PKEY_assign_RSA @@ -1138,13 +1222,17 @@ EVP_PKEY_cmp EVP_PKEY_cmp_parameters EVP_PKEY_copy_parameters EVP_PKEY_decapsulate +EVP_PKEY_decapsulate_verify_service_indicator EVP_PKEY_decrypt EVP_PKEY_decrypt_init EVP_PKEY_derive EVP_PKEY_derive_init EVP_PKEY_derive_set_peer EVP_PKEY_ec_pkey_meth +EVP_PKEY_ed25519_pkey_meth EVP_PKEY_encapsulate +EVP_PKEY_encapsulate_deterministic +EVP_PKEY_encapsulate_verify_service_indicator EVP_PKEY_encrypt EVP_PKEY_encrypt_init EVP_PKEY_free @@ -1161,16 +1249,21 @@ EVP_PKEY_get1_tls_encodedpoint EVP_PKEY_get_raw_private_key EVP_PKEY_get_raw_public_key EVP_PKEY_hkdf_pkey_meth +EVP_PKEY_hmac_pkey_meth EVP_PKEY_id EVP_PKEY_is_opaque +EVP_PKEY_kem_check_key EVP_PKEY_kem_new_raw_key EVP_PKEY_kem_new_raw_public_key EVP_PKEY_kem_new_raw_secret_key +EVP_PKEY_kem_pkey_meth EVP_PKEY_keygen +EVP_PKEY_keygen_deterministic EVP_PKEY_keygen_init EVP_PKEY_keygen_verify_service_indicator EVP_PKEY_missing_parameters EVP_PKEY_new +EVP_PKEY_new_mac_key EVP_PKEY_new_raw_private_key EVP_PKEY_new_raw_public_key EVP_PKEY_paramgen @@ -1180,6 +1273,7 @@ EVP_PKEY_print_private EVP_PKEY_print_public EVP_PKEY_rsa_pkey_meth EVP_PKEY_rsa_pss_pkey_meth +EVP_PKEY_set1_DH EVP_PKEY_set1_DSA EVP_PKEY_set1_EC_KEY EVP_PKEY_set1_RSA @@ -1221,6 +1315,7 @@ EVP_aead_aes_128_gcm_tls13 EVP_aead_aes_192_gcm EVP_aead_aes_256_cbc_sha1_tls EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +EVP_aead_aes_256_cbc_sha384_tls EVP_aead_aes_256_ctr_hmac_sha256 EVP_aead_aes_256_gcm EVP_aead_aes_256_gcm_randnonce @@ -1235,6 +1330,7 @@ EVP_aead_xchacha20_poly1305 EVP_aes_128_cbc EVP_aes_128_cbc_hmac_sha1 EVP_aes_128_cbc_hmac_sha256 +EVP_aes_128_ccm EVP_aes_128_cfb EVP_aes_128_cfb1 EVP_aes_128_cfb128 @@ -1244,6 +1340,7 @@ EVP_aes_128_ecb EVP_aes_128_gcm EVP_aes_128_ofb EVP_aes_192_cbc +EVP_aes_192_ccm EVP_aes_192_cfb EVP_aes_192_cfb1 EVP_aes_192_cfb128 @@ -1255,6 +1352,7 @@ EVP_aes_192_ofb EVP_aes_256_cbc EVP_aes_256_cbc_hmac_sha1 EVP_aes_256_cbc_hmac_sha256 +EVP_aes_256_ccm EVP_aes_256_cfb EVP_aes_256_cfb1 EVP_aes_256_cfb128 @@ -1263,6 +1361,7 @@ EVP_aes_256_ctr EVP_aes_256_ecb EVP_aes_256_gcm EVP_aes_256_ofb +EVP_aes_256_wrap EVP_aes_256_xts EVP_bf_cbc EVP_bf_cfb @@ -1270,6 +1369,7 @@ EVP_bf_ecb EVP_blake2b256 EVP_cast5_cbc EVP_cast5_ecb +EVP_chacha20_poly1305 EVP_cleanup EVP_des_cbc EVP_des_ecb @@ -1281,6 +1381,7 @@ EVP_des_ede_cbc EVP_enc_null EVP_final_with_secret_suffix_sha1 EVP_final_with_secret_suffix_sha256 +EVP_final_with_secret_suffix_sha384 EVP_get_cipherbyname EVP_get_cipherbynid EVP_get_digestbyname @@ -1316,10 +1417,12 @@ EVP_sha3_256 EVP_sha3_384 EVP_sha3_512 EVP_sha512 +EVP_sha512_224 EVP_sha512_256 +EVP_shake128 +EVP_shake256 EVP_tls_cbc_copy_mac EVP_tls_cbc_digest_record -EVP_tls_cbc_digest_record_sha256 EVP_tls_cbc_record_digest_supported EVP_tls_cbc_remove_padding EXTENDED_KEY_USAGE_free @@ -1367,9 +1470,14 @@ HMAC_CTX_reset HMAC_Final HMAC_Init HMAC_Init_ex +HMAC_Init_from_precomputed_key +HMAC_KEY_new HMAC_Update +HMAC_get_precomputed_key +HMAC_set_precomputed_key_export HMAC_size HMAC_verify_service_indicator +HMAC_with_precompute HRSS_decap HRSS_encap HRSS_generate_key @@ -1380,6 +1488,8 @@ HRSS_poly3_mul ISSUING_DIST_POINT_free ISSUING_DIST_POINT_it ISSUING_DIST_POINT_new +KBKDF_ctr_hmac +KBKDF_ctr_hmac_verify_service_indicator KEM_KEY_free KEM_KEY_get0_kem KEM_KEY_init @@ -1396,10 +1506,10 @@ MD4_Update MD5 MD5_Final MD5_Init +MD5_Init_from_state MD5_Transform MD5_Update -METHOD_ref -METHOD_unref +MD5_get_state MGF1 NAME_CONSTRAINTS_check NAME_CONSTRAINTS_free @@ -1420,12 +1530,14 @@ NETSCAPE_SPKI_free NETSCAPE_SPKI_get_pubkey NETSCAPE_SPKI_it NETSCAPE_SPKI_new +NETSCAPE_SPKI_print NETSCAPE_SPKI_set_pubkey NETSCAPE_SPKI_sign NETSCAPE_SPKI_verify NOTICEREF_free NOTICEREF_it NOTICEREF_new +OBJ_NAME_do_all_sorted OBJ_cbs2nid OBJ_cleanup OBJ_cmp @@ -1434,6 +1546,7 @@ OBJ_dup OBJ_find_sigid_algs OBJ_find_sigid_by_algs OBJ_get0_data +OBJ_get_undef OBJ_length OBJ_ln2nid OBJ_nid2cbb @@ -1445,48 +1558,106 @@ 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 OCSP_BASICRESP_it OCSP_BASICRESP_new +OCSP_CERTID_dup OCSP_CERTID_free OCSP_CERTID_it OCSP_CERTID_new -OCSP_CERTSTATUS_free OCSP_CERTSTATUS_it -OCSP_CERTSTATUS_new +OCSP_ONEREQ_free +OCSP_ONEREQ_it +OCSP_ONEREQ_new +OCSP_REQINFO_free +OCSP_REQINFO_it +OCSP_REQINFO_new +OCSP_REQUEST_free +OCSP_REQUEST_get_ext +OCSP_REQUEST_get_ext_by_NID +OCSP_REQUEST_it +OCSP_REQUEST_new +OCSP_REQUEST_print +OCSP_REQ_CTX_add1_header +OCSP_REQ_CTX_free +OCSP_REQ_CTX_get0_mem_bio +OCSP_REQ_CTX_http +OCSP_REQ_CTX_i2d +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 -OCSP_RESPID_free OCSP_RESPID_it -OCSP_RESPID_new 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 +OCSP_SINGLERESP_add_ext OCSP_SINGLERESP_free +OCSP_SINGLERESP_get0_id +OCSP_SINGLERESP_get_ext +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 OCSP_id_issuer_cmp +OCSP_onereq_get0_id +OCSP_parse_url +OCSP_request_add0_id +OCSP_request_add1_cert +OCSP_request_add1_nonce +OCSP_request_is_signed +OCSP_request_onereq_count +OCSP_request_onereq_get0 +OCSP_request_set1_name +OCSP_request_sign +OCSP_request_verify +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 +OCSP_sendreq_bio +OCSP_sendreq_nbio +OCSP_sendreq_new +OCSP_set_max_response_length OCSP_single_get0_status OPENSSL_add_all_algorithms_conf OPENSSL_armcap_P OPENSSL_asprintf -OPENSSL_built_in_curves +OPENSSL_calloc OPENSSL_cleanse OPENSSL_cleanup OPENSSL_clear_free @@ -1494,11 +1665,19 @@ OPENSSL_config OPENSSL_cpucap_initialized OPENSSL_cpuid_setup OPENSSL_free +OPENSSL_fromxdigit OPENSSL_gmtime OPENSSL_gmtime_adj OPENSSL_gmtime_diff OPENSSL_hash32 +OPENSSL_hexstr2buf +OPENSSL_init OPENSSL_init_crypto +OPENSSL_isalnum +OPENSSL_isalpha +OPENSSL_isdigit +OPENSSL_isspace +OPENSSL_isxdigit OPENSSL_lh_delete OPENSSL_lh_doall_arg OPENSSL_lh_free @@ -1516,6 +1695,29 @@ OPENSSL_posix_to_tm OPENSSL_realloc OPENSSL_secure_clear_free OPENSSL_secure_malloc +OPENSSL_secure_zalloc +OPENSSL_sk_deep_copy +OPENSSL_sk_delete +OPENSSL_sk_delete_if +OPENSSL_sk_delete_ptr +OPENSSL_sk_dup +OPENSSL_sk_find +OPENSSL_sk_free +OPENSSL_sk_insert +OPENSSL_sk_is_sorted +OPENSSL_sk_new +OPENSSL_sk_new_null +OPENSSL_sk_num +OPENSSL_sk_pop +OPENSSL_sk_pop_free_ex +OPENSSL_sk_push +OPENSSL_sk_set +OPENSSL_sk_set_cmp_func +OPENSSL_sk_shift +OPENSSL_sk_sort +OPENSSL_sk_unshift +OPENSSL_sk_value +OPENSSL_sk_zero OPENSSL_strcasecmp OPENSSL_strdup OPENSSL_strhash @@ -1529,7 +1731,7 @@ OPENSSL_tm_to_posix OPENSSL_tolower OPENSSL_vasprintf OPENSSL_vasprintf_internal -OTHERNAME_cmp +OPENSSL_zalloc OTHERNAME_free OTHERNAME_it OTHERNAME_new @@ -1547,10 +1749,8 @@ PEM_X509_INFO_read PEM_X509_INFO_read_bio PEM_bytes_read_bio PEM_def_callback -PEM_dek_info PEM_do_header PEM_get_EVP_CIPHER_INFO -PEM_proc_type PEM_read PEM_read_DHparams PEM_read_DSAPrivateKey @@ -1575,12 +1775,14 @@ PEM_read_bio_DHparams PEM_read_bio_DSAPrivateKey PEM_read_bio_DSA_PUBKEY PEM_read_bio_DSAparams +PEM_read_bio_ECPKParameters PEM_read_bio_ECPrivateKey PEM_read_bio_EC_PUBKEY PEM_read_bio_PKCS7 PEM_read_bio_PKCS8 PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_PUBKEY +PEM_read_bio_Parameters PEM_read_bio_PrivateKey PEM_read_bio_RSAPrivateKey PEM_read_bio_RSAPublicKey @@ -1616,6 +1818,7 @@ PEM_write_bio_DHparams PEM_write_bio_DSAPrivateKey PEM_write_bio_DSA_PUBKEY PEM_write_bio_DSAparams +PEM_write_bio_ECPKParameters PEM_write_bio_ECPrivateKey PEM_write_bio_EC_PUBKEY PEM_write_bio_PKCS7 @@ -1624,7 +1827,9 @@ PEM_write_bio_PKCS8PrivateKey PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_PUBKEY +PEM_write_bio_Parameters PEM_write_bio_PrivateKey +PEM_write_bio_PrivateKey_traditional PEM_write_bio_RSAPrivateKey PEM_write_bio_RSAPublicKey PEM_write_bio_RSA_PUBKEY @@ -1637,21 +1842,67 @@ PKCS12_PBE_add PKCS12_create PKCS12_free PKCS12_get_key_and_certs +PKCS12_new PKCS12_parse PKCS12_verify_mac +PKCS1_MGF1 PKCS5_PBKDF2_HMAC PKCS5_PBKDF2_HMAC_SHA1 PKCS5_pbe2_decrypt_init PKCS5_pbe2_encrypt_init +PKCS7_DIGEST_free +PKCS7_DIGEST_it +PKCS7_DIGEST_new +PKCS7_ENCRYPT_free +PKCS7_ENCRYPT_it +PKCS7_ENCRYPT_new +PKCS7_ENC_CONTENT_free +PKCS7_ENC_CONTENT_it +PKCS7_ENC_CONTENT_new +PKCS7_ENVELOPE_free +PKCS7_ENVELOPE_it +PKCS7_ENVELOPE_new +PKCS7_ISSUER_AND_SERIAL_free +PKCS7_ISSUER_AND_SERIAL_it +PKCS7_ISSUER_AND_SERIAL_new +PKCS7_RECIP_INFO_free +PKCS7_RECIP_INFO_get0_alg +PKCS7_RECIP_INFO_it +PKCS7_RECIP_INFO_new +PKCS7_RECIP_INFO_set +PKCS7_SIGNED_free +PKCS7_SIGNED_it +PKCS7_SIGNED_new +PKCS7_SIGNER_INFO_free +PKCS7_SIGNER_INFO_get0_algs +PKCS7_SIGNER_INFO_it +PKCS7_SIGNER_INFO_new +PKCS7_SIGNER_INFO_set +PKCS7_SIGN_ENVELOPE_free +PKCS7_SIGN_ENVELOPE_it +PKCS7_SIGN_ENVELOPE_new +PKCS7_add_certificate +PKCS7_add_crl +PKCS7_add_recipient_info +PKCS7_add_signer PKCS7_bundle_CRLs PKCS7_bundle_certificates PKCS7_bundle_raw_certificates +PKCS7_content_new +PKCS7_dup PKCS7_free PKCS7_get_CRLs PKCS7_get_PEM_CRLs PKCS7_get_PEM_certificates PKCS7_get_certificates PKCS7_get_raw_certificates +PKCS7_get_signed_attribute +PKCS7_get_signer_info +PKCS7_it +PKCS7_new +PKCS7_set_cipher +PKCS7_set_content +PKCS7_set_type PKCS7_sign PKCS7_type_is_data PKCS7_type_is_digest @@ -1679,12 +1930,6 @@ POLICY_MAPPINGS_it POLICY_MAPPING_free POLICY_MAPPING_it POLICY_MAPPING_new -PROXY_CERT_INFO_EXTENSION_free -PROXY_CERT_INFO_EXTENSION_it -PROXY_CERT_INFO_EXTENSION_new -PROXY_POLICY_free -PROXY_POLICY_it -PROXY_POLICY_new RAND_OpenSSL RAND_SSLeay RAND_add @@ -1692,18 +1937,22 @@ RAND_bytes RAND_bytes_with_additional_data RAND_cleanup RAND_egd +RAND_egd_bytes RAND_enable_fork_unsafe_buffering RAND_file_name RAND_get_rand_method RAND_get_system_entropy_for_custom_prng +RAND_keep_random_devices_open RAND_load_entropy RAND_load_file RAND_module_entropy_depleted RAND_poll +RAND_priv_bytes RAND_pseudo_bytes RAND_seed RAND_set_rand_method RAND_status +RAND_write_file RC4 RC4_set_key RIPEMD160 @@ -1728,11 +1977,11 @@ RSA_PSS_PARAMS_it RSA_PSS_PARAMS_new RSA_add_pkcs1_prefix RSA_bits +RSA_blinding_off_temp_for_accp_compatibility RSA_blinding_on RSA_check_fips RSA_check_key RSA_decrypt -RSA_default_method RSA_encrypt RSA_flags RSA_free @@ -1751,31 +2000,49 @@ RSA_get0_n RSA_get0_p RSA_get0_pss_params RSA_get0_q +RSA_get_default_method RSA_get_ex_data RSA_get_ex_new_index +RSA_get_method RSA_is_opaque RSA_marshal_private_key RSA_marshal_public_key +RSA_meth_free +RSA_meth_new +RSA_meth_set0_app_data +RSA_meth_set_finish +RSA_meth_set_init +RSA_meth_set_priv_dec +RSA_meth_set_priv_enc +RSA_meth_set_pub_dec +RSA_meth_set_pub_enc +RSA_meth_set_sign RSA_new RSA_new_method +RSA_new_method_no_e +RSA_new_private_key +RSA_new_private_key_large_e +RSA_new_private_key_no_crt +RSA_new_private_key_no_e +RSA_new_public_key +RSA_new_public_key_large_e RSA_padding_add_PKCS1_OAEP RSA_padding_add_PKCS1_OAEP_mgf1 RSA_padding_add_PKCS1_PSS RSA_padding_add_PKCS1_PSS_mgf1 RSA_padding_add_PKCS1_type_1 -RSA_padding_add_PKCS1_type_2 RSA_padding_add_none RSA_padding_check_PKCS1_OAEP_mgf1 RSA_padding_check_PKCS1_type_1 -RSA_padding_check_PKCS1_type_2 RSA_parse_private_key RSA_parse_public_key +RSA_pkey_ctx_ctrl RSA_print +RSA_print_fp RSA_private_decrypt RSA_private_encrypt RSA_private_key_from_bytes RSA_private_key_to_bytes -RSA_private_transform RSA_public_decrypt RSA_public_encrypt RSA_public_key_from_bytes @@ -1784,13 +2051,14 @@ RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_set_ex_data +RSA_set_flags +RSA_set_method RSA_sign RSA_sign_pss_mgf1 RSA_sign_raw RSA_size RSA_test_flags RSA_up_ref -RSA_validate_key RSA_verify RSA_verify_PKCS1_PSS RSA_verify_PKCS1_PSS_mgf1 @@ -1799,22 +2067,30 @@ RSA_verify_raw SHA1 SHA1_Final SHA1_Init +SHA1_Init_from_state SHA1_Transform SHA1_Update +SHA1_get_state SHA224 SHA224_Final SHA224_Init +SHA224_Init_from_state SHA224_Update +SHA224_get_state SHA256 SHA256_Final SHA256_Init +SHA256_Init_from_state SHA256_Transform SHA256_TransformBlocks SHA256_Update +SHA256_get_state SHA384 SHA384_Final SHA384_Init +SHA384_Init_from_state SHA384_Update +SHA384_get_state SHA3_224 SHA3_256 SHA3_384 @@ -1830,16 +2106,28 @@ SHA3_Squeeze_cext SHA3_Squeeze_hw SHA3_Update SHA512 +SHA512_224 +SHA512_224_Final +SHA512_224_Init +SHA512_224_Init_from_state +SHA512_224_Update +SHA512_224_get_state SHA512_256 SHA512_256_Final SHA512_256_Init +SHA512_256_Init_from_state SHA512_256_Update +SHA512_256_get_state SHA512_Final SHA512_Init +SHA512_Init_from_state SHA512_Transform SHA512_Update +SHA512_get_state SHAKE128 SHAKE256 +SHAKE_Final +SHAKE_Init SIPHASH_24 SPAKE2_CTX_free SPAKE2_CTX_new @@ -1847,6 +2135,10 @@ SPAKE2_generate_msg SPAKE2_process_msg SSHKDF SSHKDF_verify_service_indicator +SSKDF_digest +SSKDF_digest_verify_service_indicator +SSKDF_hmac +SSKDF_hmac_verify_service_indicator SSLeay SSLeay_version TLSKDF_verify_service_indicator @@ -1865,7 +2157,6 @@ TRUST_TOKEN_ISSUER_issue TRUST_TOKEN_ISSUER_new TRUST_TOKEN_ISSUER_redeem TRUST_TOKEN_ISSUER_redeem_over_message -TRUST_TOKEN_ISSUER_redeem_raw TRUST_TOKEN_ISSUER_set_metadata_key TRUST_TOKEN_ISSUER_set_srr_key TRUST_TOKEN_PRETOKEN_free @@ -1877,6 +2168,8 @@ TRUST_TOKEN_experiment_v2_voprf TRUST_TOKEN_free TRUST_TOKEN_generate_key TRUST_TOKEN_new +TRUST_TOKEN_pst_v1_pmb +TRUST_TOKEN_pst_v1_voprf USERNOTICE_free USERNOTICE_it USERNOTICE_new @@ -1889,10 +2182,9 @@ X509V3_EXT_CRL_add_nconf X509V3_EXT_REQ_add_nconf X509V3_EXT_add X509V3_EXT_add_alias -X509V3_EXT_add_list X509V3_EXT_add_nconf X509V3_EXT_add_nconf_sk -X509V3_EXT_cleanup +X509V3_EXT_conf X509V3_EXT_conf_nid X509V3_EXT_d2i X509V3_EXT_free @@ -1903,13 +2195,13 @@ X509V3_EXT_nconf X509V3_EXT_nconf_nid X509V3_EXT_print X509V3_EXT_print_fp -X509V3_EXT_val_prn X509V3_NAME_from_section X509V3_add1_i2d X509V3_add_standard_extensions X509V3_add_value X509V3_add_value_bool X509V3_add_value_int +X509V3_bool_from_string X509V3_conf_free X509V3_extensions_print X509V3_get_d2i @@ -1956,7 +2248,6 @@ X509_CRL_add1_ext_i2d X509_CRL_add_ext X509_CRL_cmp X509_CRL_delete_ext -X509_CRL_diff X509_CRL_digest X509_CRL_dup X509_CRL_free @@ -1978,6 +2269,7 @@ X509_CRL_get_lastUpdate X509_CRL_get_nextUpdate X509_CRL_get_signature_nid X509_CRL_get_version +X509_CRL_http_nbio X509_CRL_it X509_CRL_match X509_CRL_new @@ -2008,15 +2300,12 @@ X509_EXTENSION_set_critical X509_EXTENSION_set_data X509_EXTENSION_set_object X509_INFO_free -X509_INFO_new -X509_LOOKUP_by_subject +X509_LOOKUP_add_dir X509_LOOKUP_ctrl X509_LOOKUP_file X509_LOOKUP_free X509_LOOKUP_hash_dir -X509_LOOKUP_init -X509_LOOKUP_new -X509_LOOKUP_shutdown +X509_LOOKUP_load_file X509_NAME_ENTRIES_it X509_NAME_ENTRY_create_by_NID X509_NAME_ENTRY_create_by_OBJ @@ -2056,25 +2345,23 @@ X509_NAME_print X509_NAME_print_ex X509_NAME_print_ex_fp X509_NAME_set +X509_OBJECT_free X509_OBJECT_free_contents X509_OBJECT_get0_X509 +X509_OBJECT_get0_X509_CRL X509_OBJECT_get_type -X509_OBJECT_idx_by_subject -X509_OBJECT_retrieve_by_subject -X509_OBJECT_retrieve_match -X509_OBJECT_up_ref_count -X509_PKEY_free -X509_PKEY_new +X509_OBJECT_new +X509_OBJECT_set1_X509 +X509_OBJECT_set1_X509_CRL X509_PUBKEY_free X509_PUBKEY_get +X509_PUBKEY_get0 X509_PUBKEY_get0_param X509_PUBKEY_get0_public_key X509_PUBKEY_it X509_PUBKEY_new X509_PUBKEY_set X509_PUBKEY_set0_param -X509_PURPOSE_add -X509_PURPOSE_cleanup X509_PURPOSE_get0 X509_PURPOSE_get0_name X509_PURPOSE_get0_sname @@ -2099,6 +2386,7 @@ X509_REQ_digest X509_REQ_dup X509_REQ_extension_nid X509_REQ_free +X509_REQ_get0_pubkey X509_REQ_get0_signature X509_REQ_get1_email X509_REQ_get_attr @@ -2156,8 +2444,11 @@ X509_STORE_CTX_get0_param X509_STORE_CTX_get0_parent_ctx X509_STORE_CTX_get0_store X509_STORE_CTX_get0_untrusted +X509_STORE_CTX_get1_certs X509_STORE_CTX_get1_chain +X509_STORE_CTX_get1_crls X509_STORE_CTX_get1_issuer +X509_STORE_CTX_get_by_subject X509_STORE_CTX_get_chain X509_STORE_CTX_get_current_cert X509_STORE_CTX_get_error @@ -2166,7 +2457,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 @@ -2183,49 +2473,29 @@ X509_STORE_CTX_set_time_posix X509_STORE_CTX_set_trust X509_STORE_CTX_set_verify_cb X509_STORE_CTX_trusted_stack -X509_STORE_CTX_zero X509_STORE_add_cert X509_STORE_add_crl X509_STORE_add_lookup X509_STORE_free X509_STORE_get0_objects X509_STORE_get0_param -X509_STORE_get1_certs -X509_STORE_get1_crls -X509_STORE_get_by_subject -X509_STORE_get_cert_crl -X509_STORE_get_check_crl -X509_STORE_get_check_issued -X509_STORE_get_check_revocation -X509_STORE_get_cleanup -X509_STORE_get_get_crl -X509_STORE_get_get_issuer -X509_STORE_get_lookup_certs -X509_STORE_get_lookup_crls -X509_STORE_get_verify -X509_STORE_get_verify_cb +X509_STORE_get_ex_data +X509_STORE_get_ex_new_index X509_STORE_load_locations +X509_STORE_lock X509_STORE_new X509_STORE_set1_param -X509_STORE_set_cert_crl X509_STORE_set_check_crl -X509_STORE_set_check_issued -X509_STORE_set_check_revocation -X509_STORE_set_cleanup X509_STORE_set_default_paths X509_STORE_set_depth +X509_STORE_set_ex_data X509_STORE_set_flags X509_STORE_set_get_crl -X509_STORE_set_get_issuer -X509_STORE_set_lookup_certs -X509_STORE_set_lookup_crls X509_STORE_set_purpose X509_STORE_set_trust -X509_STORE_set_verify X509_STORE_set_verify_cb +X509_STORE_unlock X509_STORE_up_ref -X509_TRUST_add -X509_TRUST_cleanup X509_TRUST_get0 X509_TRUST_get0_name X509_TRUST_get_by_id @@ -2237,14 +2507,9 @@ X509_VAL_free X509_VAL_it X509_VAL_new X509_VERIFY_PARAM_add0_policy -X509_VERIFY_PARAM_add0_table X509_VERIFY_PARAM_add1_host X509_VERIFY_PARAM_clear_flags X509_VERIFY_PARAM_free -X509_VERIFY_PARAM_get0 -X509_VERIFY_PARAM_get0_name -X509_VERIFY_PARAM_get0_peername -X509_VERIFY_PARAM_get_count X509_VERIFY_PARAM_get_depth X509_VERIFY_PARAM_get_flags X509_VERIFY_PARAM_inherit @@ -2255,7 +2520,6 @@ X509_VERIFY_PARAM_set1_email X509_VERIFY_PARAM_set1_host X509_VERIFY_PARAM_set1_ip X509_VERIFY_PARAM_set1_ip_asc -X509_VERIFY_PARAM_set1_name X509_VERIFY_PARAM_set1_policies X509_VERIFY_PARAM_set_depth X509_VERIFY_PARAM_set_flags @@ -2264,7 +2528,6 @@ X509_VERIFY_PARAM_set_purpose X509_VERIFY_PARAM_set_time X509_VERIFY_PARAM_set_time_posix X509_VERIFY_PARAM_set_trust -X509_VERIFY_PARAM_table_cleanup X509_add1_ext_i2d X509_add1_reject_object X509_add1_trust_object @@ -2299,6 +2562,7 @@ X509_get0_authority_serial X509_get0_extensions X509_get0_notAfter X509_get0_notBefore +X509_get0_pubkey X509_get0_pubkey_bitstr X509_get0_serialNumber X509_get0_signature @@ -2331,6 +2595,7 @@ X509_get_notBefore X509_get_pathlen X509_get_pubkey X509_get_serialNumber +X509_get_signature_info X509_get_signature_nid X509_get_subject_name X509_get_version @@ -2382,15 +2647,6 @@ X509_up_ref X509_verify X509_verify_cert X509_verify_cert_error_string -X509at_add1_attr -X509at_add1_attr_by_NID -X509at_add1_attr_by_OBJ -X509at_add1_attr_by_txt -X509at_delete_attr -X509at_get_attr -X509at_get_attr_by_NID -X509at_get_attr_by_OBJ -X509at_get_attr_count X509v3_add_ext X509v3_delete_ext X509v3_get_ext @@ -2398,7 +2654,6 @@ X509v3_get_ext_by_NID X509v3_get_ext_by_OBJ X509v3_get_ext_by_critical X509v3_get_ext_count -a2i_GENERAL_NAME a2i_IPADDRESS a2i_IPADDRESS_NC abi_test_clobber_d0 @@ -2495,6 +2750,11 @@ aesv8_gcm_8x_dec_256 aesv8_gcm_8x_enc_128 aesv8_gcm_8x_enc_192 aesv8_gcm_8x_enc_256 +armv8_disable_dit +armv8_enable_dit +armv8_get_dit +armv8_restore_dit +armv8_set_dit asn1_bit_string_length asn1_do_adb asn1_enc_free @@ -2502,6 +2762,8 @@ asn1_enc_init asn1_enc_restore asn1_enc_save asn1_encoding_clear +asn1_evp_pkey_methods +asn1_evp_pkey_methods_size asn1_generalizedtime_to_tm asn1_get_choice_selector asn1_get_field_ptr @@ -2511,18 +2773,23 @@ asn1_item_combine_free asn1_refcount_dec_and_test_zero asn1_refcount_set_one asn1_set_choice_selector +asn1_type_cleanup +asn1_type_set0_string asn1_type_value_as_pointer asn1_utctime_to_tm awslc_api_version_num awslc_version_string beeu_mod_inverse_vartime bio_clear_socket_error -bio_fd_should_retry +bio_errno_should_retry bio_ip_and_port_to_socket_and_addr bio_sock_error bio_socket_nbio +bio_socket_should_retry bn_abs_sub_consttime bn_add_words +bn_assert_fits_in_bytes +bn_big_endian_to_words bn_copy_words bn_div_consttime bn_expand @@ -2535,12 +2802,12 @@ bn_jacobi bn_lcm_consttime bn_less_than_montgomery_R bn_less_than_words +bn_little_endian_to_words bn_miller_rabin_init bn_miller_rabin_iteration bn_minimal_width bn_mod_add_consttime bn_mod_add_words -bn_mod_exp_base_2_consttime bn_mod_exp_mont_small bn_mod_inverse0_prime_mont_small bn_mod_inverse_consttime @@ -2552,6 +2819,9 @@ bn_mod_mul_montgomery_small bn_mod_sub_consttime bn_mod_sub_words bn_mod_u16_consttime +bn_mont_ctx_cleanup +bn_mont_ctx_init +bn_mont_ctx_set_RR_consttime bn_mont_n0 bn_mul_add_words bn_mul_comba4 @@ -2584,8 +2854,12 @@ bn_to_montgomery_small bn_uadd_consttime bn_usub_consttime bn_wexpand +bn_words_to_big_endian +bn_words_to_little_endian boringssl_ensure_ecc_self_test +boringssl_ensure_eddsa_self_test boringssl_ensure_ffdh_self_test +boringssl_ensure_ml_kem_self_test boringssl_ensure_rsa_self_test boringssl_self_test_hmac_sha256 boringssl_self_test_sha256 @@ -2649,6 +2923,8 @@ d2i_DSA_PUBKEY_fp d2i_DSA_SIG d2i_DSAparams d2i_ECDSA_SIG +d2i_ECPKParameters +d2i_ECPKParameters_bio d2i_ECParameters d2i_ECPrivateKey d2i_ECPrivateKey_bio @@ -2656,7 +2932,6 @@ d2i_ECPrivateKey_fp d2i_EC_PUBKEY d2i_EC_PUBKEY_bio d2i_EC_PUBKEY_fp -d2i_EDIPARTYNAME d2i_EXTENDED_KEY_USAGE d2i_GENERAL_NAME d2i_GENERAL_NAMES @@ -2666,18 +2941,30 @@ d2i_NETSCAPE_SPKI d2i_NOTICEREF d2i_OCSP_BASICRESP d2i_OCSP_CERTID -d2i_OCSP_CERTSTATUS +d2i_OCSP_ONEREQ +d2i_OCSP_REQINFO +d2i_OCSP_REQUEST +d2i_OCSP_REQUEST_bio d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA -d2i_OCSP_RESPID d2i_OCSP_RESPONSE +d2i_OCSP_RESPONSE_bio d2i_OCSP_REVOKEDINFO +d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP -d2i_OTHERNAME d2i_PKCS12 d2i_PKCS12_bio d2i_PKCS12_fp d2i_PKCS7 +d2i_PKCS7_DIGEST +d2i_PKCS7_ENCRYPT +d2i_PKCS7_ENC_CONTENT +d2i_PKCS7_ENVELOPE +d2i_PKCS7_ISSUER_AND_SERIAL +d2i_PKCS7_RECIP_INFO +d2i_PKCS7_SIGNED +d2i_PKCS7_SIGNER_INFO +d2i_PKCS7_SIGN_ENVELOPE d2i_PKCS7_bio d2i_PKCS8PrivateKey_bio d2i_PKCS8PrivateKey_fp @@ -2688,8 +2975,6 @@ d2i_PKCS8_bio d2i_PKCS8_fp d2i_POLICYINFO d2i_POLICYQUALINFO -d2i_PROXY_CERT_INFO_EXTENSION -d2i_PROXY_POLICY d2i_PUBKEY d2i_PUBKEY_bio d2i_PUBKEY_fp @@ -2732,18 +3017,20 @@ d2i_X509_SIG d2i_X509_VAL d2i_X509_bio d2i_X509_fp +dh_asn1_meth +dh_check_params_fast dh_compute_key_padded_no_self_test +dh_pkey_meth dsa_asn1_meth -dsa_check_parameters +dsa_check_key ec_GFp_mont_add ec_GFp_mont_dbl +ec_GFp_mont_felem_exp ec_GFp_mont_felem_from_bytes ec_GFp_mont_felem_mul +ec_GFp_mont_felem_reduce ec_GFp_mont_felem_sqr ec_GFp_mont_felem_to_bytes -ec_GFp_mont_group_finish -ec_GFp_mont_group_init -ec_GFp_mont_group_set_curve ec_GFp_mont_init_precomp ec_GFp_mont_mul ec_GFp_mont_mul_base @@ -2754,9 +3041,7 @@ ec_GFp_nistp_recode_scalar_bits ec_GFp_simple_cmp_x_coordinate ec_GFp_simple_felem_from_bytes ec_GFp_simple_felem_to_bytes -ec_GFp_simple_group_finish ec_GFp_simple_group_get_curve -ec_GFp_simple_group_init ec_GFp_simple_group_set_curve ec_GFp_simple_invert ec_GFp_simple_is_at_infinity @@ -2778,18 +3063,24 @@ ec_felem_equal ec_felem_from_bytes ec_felem_neg ec_felem_non_zero_mask +ec_felem_one ec_felem_select ec_felem_sub ec_felem_to_bignum ec_felem_to_bytes ec_get_x_coordinate_as_bytes ec_get_x_coordinate_as_scalar -ec_group_new +ec_hash_to_curve_p256_xmd_sha256_sswu +ec_hash_to_curve_p384_xmd_sha384_sswu ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +ec_hash_to_scalar_p384_xmd_sha384 ec_hash_to_scalar_p384_xmd_sha512_draft07 ec_init_precomp ec_jacobian_to_affine ec_jacobian_to_affine_batch +ec_nistp_point_add +ec_nistp_point_double +ec_nistp_scalar_mul ec_point_byte_len ec_point_from_uncompressed ec_point_mul_no_self_test @@ -2840,7 +3131,16 @@ ecp_nistz256_select_w7 ecp_nistz256_sqr_mont ecp_nistz256_sub ed25519_asn1_meth -ed25519_pkey_meth +ed25519_check_public_key_nohw +ed25519_check_public_key_s2n_bignum +ed25519_public_key_from_hashed_seed_nohw +ed25519_public_key_from_hashed_seed_s2n_bignum +ed25519_sha512 +ed25519_sign_nohw +ed25519_sign_s2n_bignum +ed25519_verify_nohw +ed25519_verify_s2n_bignum +evp_pkey_set_method gcm_ghash_neon gcm_ghash_nohw gcm_ghash_v8 @@ -2850,7 +3150,11 @@ gcm_gmult_v8 gcm_init_neon gcm_init_nohw gcm_init_v8 -i2a_ACCESS_DESCRIPTION +get_legacy_kem_kyber1024_r3 +get_legacy_kem_kyber512_r3 +get_legacy_kem_kyber768_r3 +handle_cpu_env +hmac_asn1_meth i2a_ASN1_ENUMERATED i2a_ASN1_INTEGER i2a_ASN1_OBJECT @@ -2901,6 +3205,8 @@ i2d_DSA_PUBKEY_fp i2d_DSA_SIG i2d_DSAparams i2d_ECDSA_SIG +i2d_ECPKParameters +i2d_ECPKParameters_bio i2d_ECParameters i2d_ECPrivateKey i2d_ECPrivateKey_bio @@ -2908,7 +3214,6 @@ i2d_ECPrivateKey_fp i2d_EC_PUBKEY i2d_EC_PUBKEY_bio i2d_EC_PUBKEY_fp -i2d_EDIPARTYNAME i2d_EXTENDED_KEY_USAGE i2d_GENERAL_NAME i2d_GENERAL_NAMES @@ -2918,18 +3223,30 @@ i2d_NETSCAPE_SPKI i2d_NOTICEREF i2d_OCSP_BASICRESP i2d_OCSP_CERTID -i2d_OCSP_CERTSTATUS +i2d_OCSP_ONEREQ +i2d_OCSP_REQINFO +i2d_OCSP_REQUEST +i2d_OCSP_REQUEST_bio i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA -i2d_OCSP_RESPID i2d_OCSP_RESPONSE +i2d_OCSP_RESPONSE_bio i2d_OCSP_REVOKEDINFO +i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP -i2d_OTHERNAME i2d_PKCS12 i2d_PKCS12_bio i2d_PKCS12_fp i2d_PKCS7 +i2d_PKCS7_DIGEST +i2d_PKCS7_ENCRYPT +i2d_PKCS7_ENC_CONTENT +i2d_PKCS7_ENVELOPE +i2d_PKCS7_ISSUER_AND_SERIAL +i2d_PKCS7_RECIP_INFO +i2d_PKCS7_SIGNED +i2d_PKCS7_SIGNER_INFO +i2d_PKCS7_SIGN_ENVELOPE i2d_PKCS7_bio i2d_PKCS8PrivateKeyInfo_bio i2d_PKCS8PrivateKeyInfo_fp @@ -2944,8 +3261,6 @@ i2d_PKCS8_bio i2d_PKCS8_fp i2d_POLICYINFO i2d_POLICYQUALINFO -i2d_PROXY_CERT_INFO_EXTENSION -i2d_PROXY_POLICY i2d_PUBKEY i2d_PUBKEY_bio i2d_PUBKEY_fp @@ -3001,52 +3316,87 @@ i2t_ASN1_OBJECT i2v_GENERAL_NAME i2v_GENERAL_NAMES is_fips_build -jent_apt_init -jent_entropy_collector_alloc -jent_entropy_collector_free -jent_entropy_init -jent_entropy_init_ex -jent_entropy_switch_notime_impl -jent_gcd_analyze -jent_gcd_fini -jent_gcd_get -jent_gcd_init -jent_gcd_selftest -jent_health_cb_block_switch -jent_health_failure -jent_lag_init -jent_measure_jitter -jent_random_data -jent_read_entropy -jent_read_entropy_safe -jent_read_random_block -jent_set_fips_failure_callback -jent_set_fips_failure_callback_internal -jent_stuck -jent_time_entropy_init -jent_version +is_public_component_of_rsa_key_good kBoringSSLRSASqrtTwo kBoringSSLRSASqrtTwoLen kOpenSSLReasonStringData kOpenSSLReasonValues kOpenSSLReasonValuesLen kem_asn1_meth -kem_kyber1024r3_method -kem_kyber512r3_method -kem_kyber768r3_method -kem_pkey_meth -kyber1024r3_decapsulate -kyber1024r3_encapsulate -kyber1024r3_keypair -kyber512r3_decapsulate -kyber512r3_encapsulate -kyber512r3_keypair -kyber768r3_decapsulate -kyber768r3_encapsulate -kyber768r3_keypair md4_block_data_order md5_block_asm_data_order +ml_kem_1024_decapsulate +ml_kem_1024_encapsulate +ml_kem_1024_encapsulate_deterministic +ml_kem_1024_keypair +ml_kem_1024_keypair_deterministic +ml_kem_1024_params_init +ml_kem_512_decapsulate +ml_kem_512_decapsulate_no_self_test +ml_kem_512_encapsulate +ml_kem_512_encapsulate_deterministic +ml_kem_512_encapsulate_deterministic_no_self_test +ml_kem_512_keypair +ml_kem_512_keypair_deterministic +ml_kem_512_keypair_deterministic_no_self_test +ml_kem_512_params_init +ml_kem_768_decapsulate +ml_kem_768_encapsulate +ml_kem_768_encapsulate_deterministic +ml_kem_768_keypair +ml_kem_768_keypair_deterministic +ml_kem_768_params_init +ml_kem_barrett_reduce_ref +ml_kem_basemul_ref +ml_kem_cmov_ref +ml_kem_dec_ref +ml_kem_enc_derand_ref +ml_kem_enc_ref +ml_kem_gen_matrix_ref +ml_kem_indcpa_dec_ref +ml_kem_indcpa_enc_ref +ml_kem_indcpa_keypair_derand_ref +ml_kem_invntt_ref +ml_kem_keypair_derand_ref +ml_kem_keypair_ref +ml_kem_kyber_shake128_absorb_ref +ml_kem_kyber_shake128_squeeze_ref +ml_kem_kyber_shake256_prf_ref +ml_kem_kyber_shake256_rkprf_ref +ml_kem_montgomery_reduce_ref +ml_kem_ntt_ref +ml_kem_poly_add_ref +ml_kem_poly_basemul_montgomery_ref +ml_kem_poly_cbd_eta1_ref +ml_kem_poly_cbd_eta2_ref +ml_kem_poly_compress_ref +ml_kem_poly_decompress_ref +ml_kem_poly_frombytes_ref +ml_kem_poly_frommsg_ref +ml_kem_poly_getnoise_eta1_ref +ml_kem_poly_getnoise_eta2_ref +ml_kem_poly_invntt_tomont_ref +ml_kem_poly_ntt_ref +ml_kem_poly_reduce_ref +ml_kem_poly_sub_ref +ml_kem_poly_tobytes_ref +ml_kem_poly_tomont_ref +ml_kem_poly_tomsg_ref +ml_kem_polyvec_add_ref +ml_kem_polyvec_basemul_acc_montgomery_ref +ml_kem_polyvec_compress_ref +ml_kem_polyvec_decompress_ref +ml_kem_polyvec_frombytes_ref +ml_kem_polyvec_invntt_tomont_ref +ml_kem_polyvec_ntt_ref +ml_kem_polyvec_reduce_ref +ml_kem_polyvec_tobytes_ref +ml_kem_verify_ref +ml_kem_zetas_ref o2i_ECPublicKey +p256_methods +p384_methods +p521_methods pkcs12_iterations_acceptable pkcs12_key_gen pkcs12_pbe_encrypt_init @@ -3071,6 +3421,15 @@ pmbtoken_exp2_issuer_key_from_bytes pmbtoken_exp2_read pmbtoken_exp2_sign pmbtoken_exp2_unblind +pmbtoken_pst1_blind +pmbtoken_pst1_client_key_from_bytes +pmbtoken_pst1_derive_key_from_secret +pmbtoken_pst1_generate_key +pmbtoken_pst1_get_h_for_testing +pmbtoken_pst1_issuer_key_from_bytes +pmbtoken_pst1_read +pmbtoken_pst1_sign +pmbtoken_pst1_unblind pq_custom_randombytes pq_custom_randombytes_init_for_testing pq_custom_randombytes_use_deterministic_for_testing @@ -3079,12 +3438,14 @@ pqcrystals_kyber1024_ref_basemul pqcrystals_kyber1024_ref_cmov pqcrystals_kyber1024_ref_dec pqcrystals_kyber1024_ref_enc +pqcrystals_kyber1024_ref_enc_derand pqcrystals_kyber1024_ref_gen_matrix pqcrystals_kyber1024_ref_indcpa_dec pqcrystals_kyber1024_ref_indcpa_enc -pqcrystals_kyber1024_ref_indcpa_keypair +pqcrystals_kyber1024_ref_indcpa_keypair_derand pqcrystals_kyber1024_ref_invntt pqcrystals_kyber1024_ref_keypair +pqcrystals_kyber1024_ref_keypair_derand pqcrystals_kyber1024_ref_kyber_shake128_absorb pqcrystals_kyber1024_ref_kyber_shake256_prf pqcrystals_kyber1024_ref_montgomery_reduce @@ -3122,12 +3483,14 @@ pqcrystals_kyber512_ref_basemul pqcrystals_kyber512_ref_cmov pqcrystals_kyber512_ref_dec pqcrystals_kyber512_ref_enc +pqcrystals_kyber512_ref_enc_derand pqcrystals_kyber512_ref_gen_matrix pqcrystals_kyber512_ref_indcpa_dec pqcrystals_kyber512_ref_indcpa_enc -pqcrystals_kyber512_ref_indcpa_keypair +pqcrystals_kyber512_ref_indcpa_keypair_derand pqcrystals_kyber512_ref_invntt pqcrystals_kyber512_ref_keypair +pqcrystals_kyber512_ref_keypair_derand pqcrystals_kyber512_ref_kyber_shake128_absorb pqcrystals_kyber512_ref_kyber_shake256_prf pqcrystals_kyber512_ref_montgomery_reduce @@ -3165,12 +3528,14 @@ pqcrystals_kyber768_ref_basemul pqcrystals_kyber768_ref_cmov pqcrystals_kyber768_ref_dec pqcrystals_kyber768_ref_enc +pqcrystals_kyber768_ref_enc_derand pqcrystals_kyber768_ref_gen_matrix pqcrystals_kyber768_ref_indcpa_dec pqcrystals_kyber768_ref_indcpa_enc -pqcrystals_kyber768_ref_indcpa_keypair +pqcrystals_kyber768_ref_indcpa_keypair_derand pqcrystals_kyber768_ref_invntt pqcrystals_kyber768_ref_keypair +pqcrystals_kyber768_ref_keypair_derand pqcrystals_kyber768_ref_kyber_shake128_absorb pqcrystals_kyber768_ref_kyber_shake256_prf pqcrystals_kyber768_ref_montgomery_reduce @@ -3221,55 +3586,35 @@ pqcrystals_kyber_fips202_ref_shake256_squeeze pqcrystals_kyber_fips202_ref_shake256_squeezeblocks rand_fork_unsafe_buffering_enabled rsa_asn1_meth -rsa_check_public_key -rsa_default_decrypt rsa_default_private_transform rsa_default_sign_raw rsa_default_size rsa_digestsign_no_self_test rsa_digestverify_no_self_test +rsa_invalidate_key +rsa_private_transform +rsa_private_transform_no_self_test rsa_pss_asn1_meth rsa_sign_no_self_test rsa_verify_no_self_test rsa_verify_raw_no_self_test s2i_ASN1_INTEGER s2i_ASN1_OCTET_STRING -sha1_block_data_order +sha1_block_data_order_hw +sha1_block_data_order_nohw sha1_func sha224_func -sha256_block_data_order +sha256_block_data_order_hw +sha256_block_data_order_nohw sha256_func sha384_func -sha3_256_init -sha3_alloc -sha3_dealloc -sha3_final -sha3_tester -sha3_update -sha512_block_data_order +sha512_block_data_order_hw +sha512_block_data_order_nohw sha512_func -sk_deep_copy -sk_delete -sk_delete_if -sk_delete_ptr -sk_dup -sk_find -sk_free -sk_insert -sk_is_sorted -sk_new -sk_new_null -sk_num -sk_pop sk_pop_free -sk_pop_free_ex -sk_push -sk_set -sk_set_cmp_func -sk_shift -sk_sort -sk_value -sk_zero +sskdf_variant_digest +sskdf_variant_hmac +used_for_hmac v2i_GENERAL_NAME v2i_GENERAL_NAMES v2i_GENERAL_NAME_ex @@ -3293,7 +3638,7 @@ v3_ns_ia5_list v3_nscert v3_ocsp_accresp v3_ocsp_nocheck -v3_pci +v3_ocsp_nonce v3_policy_constraints v3_policy_mappings v3_sinfo @@ -3306,6 +3651,15 @@ voprf_exp2_issuer_key_from_bytes voprf_exp2_read voprf_exp2_sign voprf_exp2_unblind +voprf_pst1_blind +voprf_pst1_client_key_from_bytes +voprf_pst1_derive_key_from_secret +voprf_pst1_generate_key +voprf_pst1_issuer_key_from_bytes +voprf_pst1_read +voprf_pst1_sign +voprf_pst1_sign_with_proof_scalar_for_testing +voprf_pst1_unblind vpaes_cbc_encrypt vpaes_ctr32_encrypt_blocks vpaes_decrypt @@ -3324,11 +3678,17 @@ x25519_ge_scalarmult_small_precomp x25519_ge_sub x25519_ge_tobytes x25519_pkey_meth +x25519_public_from_private_nohw +x25519_public_from_private_s2n_bignum x25519_sc_reduce +x25519_scalar_mult_generic_nohw +x25519_scalar_mult_generic_s2n_bignum x509V3_add_value_asn1_string x509_check_cert_time +x509_check_issued_with_callback x509_digest_sign_algorithm x509_digest_verify_init +x509_init_signature_info x509_print_rsa_pss_params x509_rsa_ctx_to_pss x509_rsa_pss_to_ctx @@ -3336,6 +3696,7 @@ x509v3_a2i_ipadd x509v3_bytes_to_hex x509v3_cache_extensions x509v3_conf_name_matches +x509v3_ext_free_with_method x509v3_hex_to_bytes x509v3_looks_like_dns_name x86_64_assembly_implementation_FOR_TESTING diff --git a/aws-lc-fips-sys/symbols/aarch64-unknown-linux-musl.txt b/aws-lc-fips-sys/symbols/aarch64-unknown-linux-musl.txt index e22b6dc16be..5c4c4ad24c2 100644 --- a/aws-lc-fips-sys/symbols/aarch64-unknown-linux-musl.txt +++ b/aws-lc-fips-sys/symbols/aarch64-unknown-linux-musl.txt @@ -129,9 +129,11 @@ ASN1_TIME_print ASN1_TIME_set ASN1_TIME_set_posix ASN1_TIME_set_string +ASN1_TIME_set_string_X509 ASN1_TIME_to_generalizedtime ASN1_TIME_to_posix ASN1_TIME_to_time_t +ASN1_TIME_to_tm ASN1_TYPE_cmp ASN1_TYPE_free ASN1_TYPE_get @@ -157,8 +159,10 @@ ASN1_VISIBLESTRING_free ASN1_VISIBLESTRING_it ASN1_VISIBLESTRING_new ASN1_digest +ASN1_dup ASN1_generate_v3 ASN1_get_object +ASN1_i2d_bio ASN1_item_d2i ASN1_item_d2i_bio ASN1_item_d2i_fp @@ -254,6 +258,7 @@ BIO_meth_set_gets BIO_meth_set_puts BIO_meth_set_read BIO_meth_set_write +BIO_method_name BIO_method_type BIO_new BIO_new_bio_pair @@ -274,6 +279,7 @@ BIO_push BIO_puts BIO_read BIO_read_asn1 +BIO_read_ex BIO_read_filename BIO_reset BIO_rw_filename @@ -281,6 +287,7 @@ BIO_s_connect BIO_s_fd BIO_s_file BIO_s_mem +BIO_s_secmem BIO_s_socket BIO_seek BIO_set_callback_arg @@ -318,6 +325,7 @@ BIO_vsnprintf BIO_wpending BIO_write BIO_write_all +BIO_write_ex BIO_write_filename BLAKE2B256 BLAKE2B256_Final @@ -332,12 +340,14 @@ BN_CTX_end BN_CTX_free BN_CTX_get BN_CTX_new +BN_CTX_secure_new BN_CTX_start BN_GENCB_call BN_GENCB_free BN_GENCB_get_arg BN_GENCB_new BN_GENCB_set +BN_GENCB_set_old BN_MONT_CTX_copy BN_MONT_CTX_free BN_MONT_CTX_new @@ -376,6 +386,7 @@ BN_free BN_from_montgomery BN_gcd BN_generate_prime_ex +BN_get_flags BN_get_rfc3526_prime_1536 BN_get_rfc3526_prime_2048 BN_get_rfc3526_prime_3072 @@ -406,6 +417,7 @@ BN_mod_exp BN_mod_exp2_mont BN_mod_exp_mont BN_mod_exp_mont_consttime +BN_mod_exp_mont_consttime_x2 BN_mod_exp_mont_word BN_mod_inverse BN_mod_inverse_blinded @@ -461,7 +473,6 @@ BN_usub BN_value_one BN_zero BORINGSSL_FIPS_abort -BORINGSSL_integrity_test BORINGSSL_self_test BUF_MEM_append BUF_MEM_free @@ -553,6 +564,7 @@ CBS_get_u24_length_prefixed CBS_get_u32 CBS_get_u32le CBS_get_u64 +CBS_get_u64_decimal CBS_get_u64le CBS_get_u8 CBS_get_u8_length_prefixed @@ -561,6 +573,7 @@ CBS_init CBS_is_unsigned_asn1_integer CBS_is_valid_asn1_bitstring CBS_is_valid_asn1_integer +CBS_is_valid_asn1_oid CBS_len CBS_mem_equal CBS_parse_generalized_time @@ -574,14 +587,18 @@ CERTIFICATEPOLICIES_it CERTIFICATEPOLICIES_new CMAC_CTX_copy CMAC_CTX_free +CMAC_CTX_get0_cipher_ctx CMAC_CTX_new CMAC_Final CMAC_Init CMAC_Reset CMAC_Update CONF_VALUE_new +CONF_get1_default_config_file +CONF_modules_finish CONF_modules_free CONF_modules_load_file +CONF_modules_unload CONF_parse_list CRL_DIST_POINTS_free CRL_DIST_POINTS_it @@ -653,6 +670,7 @@ CRYPTO_ghash_init CRYPTO_has_asm CRYPTO_hchacha20 CRYPTO_init_sysrand +CRYPTO_is_ARMv8_DIT_capable_for_testing CRYPTO_is_confidential_build CRYPTO_library_init CRYPTO_malloc @@ -692,19 +710,29 @@ CTR_DRBG_generate CTR_DRBG_init CTR_DRBG_new CTR_DRBG_reseed -ChaCha20_ctr32 +ChaCha20_ctr32_neon +ChaCha20_ctr32_nohw DES_decrypt3 DES_ecb3_encrypt +DES_ecb3_encrypt_ex DES_ecb_encrypt +DES_ecb_encrypt_ex DES_ede2_cbc_encrypt DES_ede3_cbc_encrypt +DES_ede3_cbc_encrypt_ex DES_encrypt3 +DES_is_weak_key +DES_key_sched DES_ncbc_encrypt +DES_ncbc_encrypt_ex DES_set_key +DES_set_key_ex +DES_set_key_unchecked DES_set_odd_parity DH_bits DH_check DH_check_pub_key +DH_clear_flags DH_compute_key DH_compute_key_hashed DH_compute_key_padded @@ -721,8 +749,12 @@ DH_get0_pub_key DH_get0_q DH_get_2048_256 DH_get_rfc7919_2048 +DH_get_rfc7919_3072 +DH_get_rfc7919_4096 +DH_get_rfc7919_8192 DH_marshal_parameters DH_new +DH_new_by_nid DH_num_bits DH_parse_parameters DH_set0_key @@ -775,6 +807,8 @@ DSA_new DSA_parse_parameters DSA_parse_private_key DSA_parse_public_key +DSA_print +DSA_print_fp DSA_set0_key DSA_set0_pqg DSA_set_ex_data @@ -804,6 +838,7 @@ ECDSA_sign ECDSA_sign_with_nonce_and_leak_private_key_for_testing ECDSA_size ECDSA_verify +ECPKParameters_print EC_GFp_mont_method EC_GFp_nistp224_method EC_GFp_nistp256_method @@ -815,12 +850,14 @@ EC_GROUP_dup EC_GROUP_free EC_GROUP_get0_generator EC_GROUP_get0_order +EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_cofactor EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name EC_GROUP_get_degree EC_GROUP_get_order +EC_GROUP_get_seed_len EC_GROUP_method_of EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp @@ -828,6 +865,13 @@ EC_GROUP_order_bits EC_GROUP_set_asn1_flag EC_GROUP_set_generator EC_GROUP_set_point_conversion_form +EC_GROUP_set_seed +EC_KEY_METHOD_free +EC_KEY_METHOD_new +EC_KEY_METHOD_set_flags +EC_KEY_METHOD_set_init_awslc +EC_KEY_METHOD_set_sign_awslc +EC_KEY_OpenSSL EC_KEY_check_fips EC_KEY_check_key EC_KEY_derive_from_secret @@ -839,9 +883,11 @@ EC_KEY_get0_group EC_KEY_get0_private_key EC_KEY_get0_public_key EC_KEY_get_conv_form +EC_KEY_get_default_method EC_KEY_get_enc_flags EC_KEY_get_ex_data EC_KEY_get_ex_new_index +EC_KEY_get_method EC_KEY_is_opaque EC_KEY_key2buf EC_KEY_keygen_verify_service_indicator @@ -858,12 +904,14 @@ EC_KEY_set_conv_form EC_KEY_set_enc_flags EC_KEY_set_ex_data EC_KEY_set_group +EC_KEY_set_method EC_KEY_set_private_key EC_KEY_set_public_key EC_KEY_set_public_key_affine_coordinates EC_KEY_up_ref EC_METHOD_get_field_type EC_POINT_add +EC_POINT_bn2point EC_POINT_clear_free EC_POINT_cmp EC_POINT_copy @@ -878,6 +926,7 @@ EC_POINT_is_on_curve EC_POINT_mul EC_POINT_new EC_POINT_oct2point +EC_POINT_point2bn EC_POINT_point2cbb EC_POINT_point2oct EC_POINT_set_affine_coordinates @@ -887,21 +936,32 @@ EC_POINT_set_to_infinity EC_curve_nid2nist EC_curve_nist2nid EC_get_builtin_curves +EC_group_p224 +EC_group_p256 +EC_group_p384 +EC_group_p521 +EC_group_secp256k1 +EC_hash_to_curve_p256_xmd_sha256_sswu +EC_hash_to_curve_p384_xmd_sha384_sswu +ED25519_check_public_key ED25519_keypair ED25519_keypair_from_seed ED25519_sign +ED25519_sign_no_self_test ED25519_verify +ED25519_verify_no_self_test EDIPARTYNAME_free EDIPARTYNAME_it EDIPARTYNAME_new +ENGINE_cleanup ENGINE_free -ENGINE_get_ECDSA_method -ENGINE_get_RSA_method +ENGINE_get_EC +ENGINE_get_RSA ENGINE_load_builtin_engines ENGINE_new ENGINE_register_all_complete -ENGINE_set_ECDSA_method -ENGINE_set_RSA_method +ENGINE_set_EC +ENGINE_set_RSA ERR_SAVE_STATE_free ERR_add_error_data ERR_add_error_dataf @@ -917,6 +977,7 @@ ERR_get_error_line_data ERR_get_next_error_library ERR_lib_error_string ERR_load_BIO_strings +ERR_load_CRYPTO_strings ERR_load_ERR_strings ERR_load_RAND_strings ERR_load_crypto_strings @@ -986,6 +1047,7 @@ EVP_CIPHER_flags EVP_CIPHER_iv_length EVP_CIPHER_key_length EVP_CIPHER_mode +EVP_CIPHER_name EVP_CIPHER_nid EVP_Cipher EVP_CipherFinal @@ -1046,6 +1108,9 @@ EVP_HPKE_CTX_max_overhead EVP_HPKE_CTX_new EVP_HPKE_CTX_open EVP_HPKE_CTX_seal +EVP_HPKE_CTX_setup_auth_recipient +EVP_HPKE_CTX_setup_auth_sender +EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing EVP_HPKE_CTX_setup_recipient EVP_HPKE_CTX_setup_sender EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -1062,6 +1127,7 @@ EVP_HPKE_KEY_free EVP_HPKE_KEY_generate EVP_HPKE_KEY_init EVP_HPKE_KEY_kem +EVP_HPKE_KEY_move EVP_HPKE_KEY_new EVP_HPKE_KEY_private_key EVP_HPKE_KEY_public_key @@ -1084,10 +1150,15 @@ EVP_MD_CTX_set_pkey_ctx EVP_MD_CTX_size EVP_MD_CTX_type EVP_MD_block_size +EVP_MD_do_all EVP_MD_do_all_sorted EVP_MD_flags +EVP_MD_get0_name +EVP_MD_get_pkey_type EVP_MD_meth_get_flags +EVP_MD_name EVP_MD_nid +EVP_MD_pkey_type EVP_MD_size EVP_MD_type EVP_MD_unstable_sha3_enable @@ -1097,10 +1168,13 @@ EVP_PKCS82PKEY EVP_PKEY2PKCS8 EVP_PKEY_CTX_add1_hkdf_info EVP_PKEY_CTX_ctrl +EVP_PKEY_CTX_ctrl_str EVP_PKEY_CTX_dup EVP_PKEY_CTX_free EVP_PKEY_CTX_get0_pkey EVP_PKEY_CTX_get0_rsa_oaep_label +EVP_PKEY_CTX_get_app_data +EVP_PKEY_CTX_get_keygen_info EVP_PKEY_CTX_get_rsa_mgf1_md EVP_PKEY_CTX_get_rsa_oaep_md EVP_PKEY_CTX_get_rsa_padding @@ -1108,11 +1182,15 @@ EVP_PKEY_CTX_get_rsa_pss_saltlen EVP_PKEY_CTX_get_signature_md EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_kem_set_params +EVP_PKEY_CTX_md EVP_PKEY_CTX_new EVP_PKEY_CTX_new_id EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set1_hkdf_key EVP_PKEY_CTX_set1_hkdf_salt +EVP_PKEY_CTX_set_app_data +EVP_PKEY_CTX_set_cb +EVP_PKEY_CTX_set_dh_pad EVP_PKEY_CTX_set_dsa_paramgen_bits EVP_PKEY_CTX_set_dsa_paramgen_q_bits EVP_PKEY_CTX_set_ec_param_enc @@ -1128,7 +1206,13 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen EVP_PKEY_CTX_set_rsa_pss_saltlen EVP_PKEY_CTX_set_signature_md +EVP_PKEY_asn1_find +EVP_PKEY_asn1_find_str +EVP_PKEY_asn1_get0 +EVP_PKEY_asn1_get0_info +EVP_PKEY_asn1_get_count EVP_PKEY_assign +EVP_PKEY_assign_DH EVP_PKEY_assign_DSA EVP_PKEY_assign_EC_KEY EVP_PKEY_assign_RSA @@ -1138,13 +1222,17 @@ EVP_PKEY_cmp EVP_PKEY_cmp_parameters EVP_PKEY_copy_parameters EVP_PKEY_decapsulate +EVP_PKEY_decapsulate_verify_service_indicator EVP_PKEY_decrypt EVP_PKEY_decrypt_init EVP_PKEY_derive EVP_PKEY_derive_init EVP_PKEY_derive_set_peer EVP_PKEY_ec_pkey_meth +EVP_PKEY_ed25519_pkey_meth EVP_PKEY_encapsulate +EVP_PKEY_encapsulate_deterministic +EVP_PKEY_encapsulate_verify_service_indicator EVP_PKEY_encrypt EVP_PKEY_encrypt_init EVP_PKEY_free @@ -1161,16 +1249,21 @@ EVP_PKEY_get1_tls_encodedpoint EVP_PKEY_get_raw_private_key EVP_PKEY_get_raw_public_key EVP_PKEY_hkdf_pkey_meth +EVP_PKEY_hmac_pkey_meth EVP_PKEY_id EVP_PKEY_is_opaque +EVP_PKEY_kem_check_key EVP_PKEY_kem_new_raw_key EVP_PKEY_kem_new_raw_public_key EVP_PKEY_kem_new_raw_secret_key +EVP_PKEY_kem_pkey_meth EVP_PKEY_keygen +EVP_PKEY_keygen_deterministic EVP_PKEY_keygen_init EVP_PKEY_keygen_verify_service_indicator EVP_PKEY_missing_parameters EVP_PKEY_new +EVP_PKEY_new_mac_key EVP_PKEY_new_raw_private_key EVP_PKEY_new_raw_public_key EVP_PKEY_paramgen @@ -1180,6 +1273,7 @@ EVP_PKEY_print_private EVP_PKEY_print_public EVP_PKEY_rsa_pkey_meth EVP_PKEY_rsa_pss_pkey_meth +EVP_PKEY_set1_DH EVP_PKEY_set1_DSA EVP_PKEY_set1_EC_KEY EVP_PKEY_set1_RSA @@ -1221,6 +1315,7 @@ EVP_aead_aes_128_gcm_tls13 EVP_aead_aes_192_gcm EVP_aead_aes_256_cbc_sha1_tls EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +EVP_aead_aes_256_cbc_sha384_tls EVP_aead_aes_256_ctr_hmac_sha256 EVP_aead_aes_256_gcm EVP_aead_aes_256_gcm_randnonce @@ -1235,6 +1330,7 @@ EVP_aead_xchacha20_poly1305 EVP_aes_128_cbc EVP_aes_128_cbc_hmac_sha1 EVP_aes_128_cbc_hmac_sha256 +EVP_aes_128_ccm EVP_aes_128_cfb EVP_aes_128_cfb1 EVP_aes_128_cfb128 @@ -1244,6 +1340,7 @@ EVP_aes_128_ecb EVP_aes_128_gcm EVP_aes_128_ofb EVP_aes_192_cbc +EVP_aes_192_ccm EVP_aes_192_cfb EVP_aes_192_cfb1 EVP_aes_192_cfb128 @@ -1255,6 +1352,7 @@ EVP_aes_192_ofb EVP_aes_256_cbc EVP_aes_256_cbc_hmac_sha1 EVP_aes_256_cbc_hmac_sha256 +EVP_aes_256_ccm EVP_aes_256_cfb EVP_aes_256_cfb1 EVP_aes_256_cfb128 @@ -1263,6 +1361,7 @@ EVP_aes_256_ctr EVP_aes_256_ecb EVP_aes_256_gcm EVP_aes_256_ofb +EVP_aes_256_wrap EVP_aes_256_xts EVP_bf_cbc EVP_bf_cfb @@ -1270,6 +1369,7 @@ EVP_bf_ecb EVP_blake2b256 EVP_cast5_cbc EVP_cast5_ecb +EVP_chacha20_poly1305 EVP_cleanup EVP_des_cbc EVP_des_ecb @@ -1281,6 +1381,7 @@ EVP_des_ede_cbc EVP_enc_null EVP_final_with_secret_suffix_sha1 EVP_final_with_secret_suffix_sha256 +EVP_final_with_secret_suffix_sha384 EVP_get_cipherbyname EVP_get_cipherbynid EVP_get_digestbyname @@ -1316,10 +1417,12 @@ EVP_sha3_256 EVP_sha3_384 EVP_sha3_512 EVP_sha512 +EVP_sha512_224 EVP_sha512_256 +EVP_shake128 +EVP_shake256 EVP_tls_cbc_copy_mac EVP_tls_cbc_digest_record -EVP_tls_cbc_digest_record_sha256 EVP_tls_cbc_record_digest_supported EVP_tls_cbc_remove_padding EXTENDED_KEY_USAGE_free @@ -1367,9 +1470,14 @@ HMAC_CTX_reset HMAC_Final HMAC_Init HMAC_Init_ex +HMAC_Init_from_precomputed_key +HMAC_KEY_new HMAC_Update +HMAC_get_precomputed_key +HMAC_set_precomputed_key_export HMAC_size HMAC_verify_service_indicator +HMAC_with_precompute HRSS_decap HRSS_encap HRSS_generate_key @@ -1380,6 +1488,8 @@ HRSS_poly3_mul ISSUING_DIST_POINT_free ISSUING_DIST_POINT_it ISSUING_DIST_POINT_new +KBKDF_ctr_hmac +KBKDF_ctr_hmac_verify_service_indicator KEM_KEY_free KEM_KEY_get0_kem KEM_KEY_init @@ -1396,10 +1506,10 @@ MD4_Update MD5 MD5_Final MD5_Init +MD5_Init_from_state MD5_Transform MD5_Update -METHOD_ref -METHOD_unref +MD5_get_state MGF1 NAME_CONSTRAINTS_check NAME_CONSTRAINTS_free @@ -1420,12 +1530,14 @@ NETSCAPE_SPKI_free NETSCAPE_SPKI_get_pubkey NETSCAPE_SPKI_it NETSCAPE_SPKI_new +NETSCAPE_SPKI_print NETSCAPE_SPKI_set_pubkey NETSCAPE_SPKI_sign NETSCAPE_SPKI_verify NOTICEREF_free NOTICEREF_it NOTICEREF_new +OBJ_NAME_do_all_sorted OBJ_cbs2nid OBJ_cleanup OBJ_cmp @@ -1434,6 +1546,7 @@ OBJ_dup OBJ_find_sigid_algs OBJ_find_sigid_by_algs OBJ_get0_data +OBJ_get_undef OBJ_length OBJ_ln2nid OBJ_nid2cbb @@ -1445,48 +1558,106 @@ 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 OCSP_BASICRESP_it OCSP_BASICRESP_new +OCSP_CERTID_dup OCSP_CERTID_free OCSP_CERTID_it OCSP_CERTID_new -OCSP_CERTSTATUS_free OCSP_CERTSTATUS_it -OCSP_CERTSTATUS_new +OCSP_ONEREQ_free +OCSP_ONEREQ_it +OCSP_ONEREQ_new +OCSP_REQINFO_free +OCSP_REQINFO_it +OCSP_REQINFO_new +OCSP_REQUEST_free +OCSP_REQUEST_get_ext +OCSP_REQUEST_get_ext_by_NID +OCSP_REQUEST_it +OCSP_REQUEST_new +OCSP_REQUEST_print +OCSP_REQ_CTX_add1_header +OCSP_REQ_CTX_free +OCSP_REQ_CTX_get0_mem_bio +OCSP_REQ_CTX_http +OCSP_REQ_CTX_i2d +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 -OCSP_RESPID_free OCSP_RESPID_it -OCSP_RESPID_new 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 +OCSP_SINGLERESP_add_ext OCSP_SINGLERESP_free +OCSP_SINGLERESP_get0_id +OCSP_SINGLERESP_get_ext +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 OCSP_id_issuer_cmp +OCSP_onereq_get0_id +OCSP_parse_url +OCSP_request_add0_id +OCSP_request_add1_cert +OCSP_request_add1_nonce +OCSP_request_is_signed +OCSP_request_onereq_count +OCSP_request_onereq_get0 +OCSP_request_set1_name +OCSP_request_sign +OCSP_request_verify +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 +OCSP_sendreq_bio +OCSP_sendreq_nbio +OCSP_sendreq_new +OCSP_set_max_response_length OCSP_single_get0_status OPENSSL_add_all_algorithms_conf OPENSSL_armcap_P OPENSSL_asprintf -OPENSSL_built_in_curves +OPENSSL_calloc OPENSSL_cleanse OPENSSL_cleanup OPENSSL_clear_free @@ -1494,11 +1665,19 @@ OPENSSL_config OPENSSL_cpucap_initialized OPENSSL_cpuid_setup OPENSSL_free +OPENSSL_fromxdigit OPENSSL_gmtime OPENSSL_gmtime_adj OPENSSL_gmtime_diff OPENSSL_hash32 +OPENSSL_hexstr2buf +OPENSSL_init OPENSSL_init_crypto +OPENSSL_isalnum +OPENSSL_isalpha +OPENSSL_isdigit +OPENSSL_isspace +OPENSSL_isxdigit OPENSSL_lh_delete OPENSSL_lh_doall_arg OPENSSL_lh_free @@ -1516,6 +1695,29 @@ OPENSSL_posix_to_tm OPENSSL_realloc OPENSSL_secure_clear_free OPENSSL_secure_malloc +OPENSSL_secure_zalloc +OPENSSL_sk_deep_copy +OPENSSL_sk_delete +OPENSSL_sk_delete_if +OPENSSL_sk_delete_ptr +OPENSSL_sk_dup +OPENSSL_sk_find +OPENSSL_sk_free +OPENSSL_sk_insert +OPENSSL_sk_is_sorted +OPENSSL_sk_new +OPENSSL_sk_new_null +OPENSSL_sk_num +OPENSSL_sk_pop +OPENSSL_sk_pop_free_ex +OPENSSL_sk_push +OPENSSL_sk_set +OPENSSL_sk_set_cmp_func +OPENSSL_sk_shift +OPENSSL_sk_sort +OPENSSL_sk_unshift +OPENSSL_sk_value +OPENSSL_sk_zero OPENSSL_strcasecmp OPENSSL_strdup OPENSSL_strhash @@ -1529,7 +1731,7 @@ OPENSSL_tm_to_posix OPENSSL_tolower OPENSSL_vasprintf OPENSSL_vasprintf_internal -OTHERNAME_cmp +OPENSSL_zalloc OTHERNAME_free OTHERNAME_it OTHERNAME_new @@ -1547,10 +1749,8 @@ PEM_X509_INFO_read PEM_X509_INFO_read_bio PEM_bytes_read_bio PEM_def_callback -PEM_dek_info PEM_do_header PEM_get_EVP_CIPHER_INFO -PEM_proc_type PEM_read PEM_read_DHparams PEM_read_DSAPrivateKey @@ -1575,12 +1775,14 @@ PEM_read_bio_DHparams PEM_read_bio_DSAPrivateKey PEM_read_bio_DSA_PUBKEY PEM_read_bio_DSAparams +PEM_read_bio_ECPKParameters PEM_read_bio_ECPrivateKey PEM_read_bio_EC_PUBKEY PEM_read_bio_PKCS7 PEM_read_bio_PKCS8 PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_PUBKEY +PEM_read_bio_Parameters PEM_read_bio_PrivateKey PEM_read_bio_RSAPrivateKey PEM_read_bio_RSAPublicKey @@ -1616,6 +1818,7 @@ PEM_write_bio_DHparams PEM_write_bio_DSAPrivateKey PEM_write_bio_DSA_PUBKEY PEM_write_bio_DSAparams +PEM_write_bio_ECPKParameters PEM_write_bio_ECPrivateKey PEM_write_bio_EC_PUBKEY PEM_write_bio_PKCS7 @@ -1624,7 +1827,9 @@ PEM_write_bio_PKCS8PrivateKey PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_PUBKEY +PEM_write_bio_Parameters PEM_write_bio_PrivateKey +PEM_write_bio_PrivateKey_traditional PEM_write_bio_RSAPrivateKey PEM_write_bio_RSAPublicKey PEM_write_bio_RSA_PUBKEY @@ -1637,21 +1842,67 @@ PKCS12_PBE_add PKCS12_create PKCS12_free PKCS12_get_key_and_certs +PKCS12_new PKCS12_parse PKCS12_verify_mac +PKCS1_MGF1 PKCS5_PBKDF2_HMAC PKCS5_PBKDF2_HMAC_SHA1 PKCS5_pbe2_decrypt_init PKCS5_pbe2_encrypt_init +PKCS7_DIGEST_free +PKCS7_DIGEST_it +PKCS7_DIGEST_new +PKCS7_ENCRYPT_free +PKCS7_ENCRYPT_it +PKCS7_ENCRYPT_new +PKCS7_ENC_CONTENT_free +PKCS7_ENC_CONTENT_it +PKCS7_ENC_CONTENT_new +PKCS7_ENVELOPE_free +PKCS7_ENVELOPE_it +PKCS7_ENVELOPE_new +PKCS7_ISSUER_AND_SERIAL_free +PKCS7_ISSUER_AND_SERIAL_it +PKCS7_ISSUER_AND_SERIAL_new +PKCS7_RECIP_INFO_free +PKCS7_RECIP_INFO_get0_alg +PKCS7_RECIP_INFO_it +PKCS7_RECIP_INFO_new +PKCS7_RECIP_INFO_set +PKCS7_SIGNED_free +PKCS7_SIGNED_it +PKCS7_SIGNED_new +PKCS7_SIGNER_INFO_free +PKCS7_SIGNER_INFO_get0_algs +PKCS7_SIGNER_INFO_it +PKCS7_SIGNER_INFO_new +PKCS7_SIGNER_INFO_set +PKCS7_SIGN_ENVELOPE_free +PKCS7_SIGN_ENVELOPE_it +PKCS7_SIGN_ENVELOPE_new +PKCS7_add_certificate +PKCS7_add_crl +PKCS7_add_recipient_info +PKCS7_add_signer PKCS7_bundle_CRLs PKCS7_bundle_certificates PKCS7_bundle_raw_certificates +PKCS7_content_new +PKCS7_dup PKCS7_free PKCS7_get_CRLs PKCS7_get_PEM_CRLs PKCS7_get_PEM_certificates PKCS7_get_certificates PKCS7_get_raw_certificates +PKCS7_get_signed_attribute +PKCS7_get_signer_info +PKCS7_it +PKCS7_new +PKCS7_set_cipher +PKCS7_set_content +PKCS7_set_type PKCS7_sign PKCS7_type_is_data PKCS7_type_is_digest @@ -1679,12 +1930,6 @@ POLICY_MAPPINGS_it POLICY_MAPPING_free POLICY_MAPPING_it POLICY_MAPPING_new -PROXY_CERT_INFO_EXTENSION_free -PROXY_CERT_INFO_EXTENSION_it -PROXY_CERT_INFO_EXTENSION_new -PROXY_POLICY_free -PROXY_POLICY_it -PROXY_POLICY_new RAND_OpenSSL RAND_SSLeay RAND_add @@ -1692,18 +1937,22 @@ RAND_bytes RAND_bytes_with_additional_data RAND_cleanup RAND_egd +RAND_egd_bytes RAND_enable_fork_unsafe_buffering RAND_file_name RAND_get_rand_method RAND_get_system_entropy_for_custom_prng +RAND_keep_random_devices_open RAND_load_entropy RAND_load_file RAND_module_entropy_depleted RAND_poll +RAND_priv_bytes RAND_pseudo_bytes RAND_seed RAND_set_rand_method RAND_status +RAND_write_file RC4 RC4_set_key RIPEMD160 @@ -1728,11 +1977,11 @@ RSA_PSS_PARAMS_it RSA_PSS_PARAMS_new RSA_add_pkcs1_prefix RSA_bits +RSA_blinding_off_temp_for_accp_compatibility RSA_blinding_on RSA_check_fips RSA_check_key RSA_decrypt -RSA_default_method RSA_encrypt RSA_flags RSA_free @@ -1751,31 +2000,49 @@ RSA_get0_n RSA_get0_p RSA_get0_pss_params RSA_get0_q +RSA_get_default_method RSA_get_ex_data RSA_get_ex_new_index +RSA_get_method RSA_is_opaque RSA_marshal_private_key RSA_marshal_public_key +RSA_meth_free +RSA_meth_new +RSA_meth_set0_app_data +RSA_meth_set_finish +RSA_meth_set_init +RSA_meth_set_priv_dec +RSA_meth_set_priv_enc +RSA_meth_set_pub_dec +RSA_meth_set_pub_enc +RSA_meth_set_sign RSA_new RSA_new_method +RSA_new_method_no_e +RSA_new_private_key +RSA_new_private_key_large_e +RSA_new_private_key_no_crt +RSA_new_private_key_no_e +RSA_new_public_key +RSA_new_public_key_large_e RSA_padding_add_PKCS1_OAEP RSA_padding_add_PKCS1_OAEP_mgf1 RSA_padding_add_PKCS1_PSS RSA_padding_add_PKCS1_PSS_mgf1 RSA_padding_add_PKCS1_type_1 -RSA_padding_add_PKCS1_type_2 RSA_padding_add_none RSA_padding_check_PKCS1_OAEP_mgf1 RSA_padding_check_PKCS1_type_1 -RSA_padding_check_PKCS1_type_2 RSA_parse_private_key RSA_parse_public_key +RSA_pkey_ctx_ctrl RSA_print +RSA_print_fp RSA_private_decrypt RSA_private_encrypt RSA_private_key_from_bytes RSA_private_key_to_bytes -RSA_private_transform RSA_public_decrypt RSA_public_encrypt RSA_public_key_from_bytes @@ -1784,13 +2051,14 @@ RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_set_ex_data +RSA_set_flags +RSA_set_method RSA_sign RSA_sign_pss_mgf1 RSA_sign_raw RSA_size RSA_test_flags RSA_up_ref -RSA_validate_key RSA_verify RSA_verify_PKCS1_PSS RSA_verify_PKCS1_PSS_mgf1 @@ -1799,22 +2067,30 @@ RSA_verify_raw SHA1 SHA1_Final SHA1_Init +SHA1_Init_from_state SHA1_Transform SHA1_Update +SHA1_get_state SHA224 SHA224_Final SHA224_Init +SHA224_Init_from_state SHA224_Update +SHA224_get_state SHA256 SHA256_Final SHA256_Init +SHA256_Init_from_state SHA256_Transform SHA256_TransformBlocks SHA256_Update +SHA256_get_state SHA384 SHA384_Final SHA384_Init +SHA384_Init_from_state SHA384_Update +SHA384_get_state SHA3_224 SHA3_256 SHA3_384 @@ -1830,16 +2106,28 @@ SHA3_Squeeze_cext SHA3_Squeeze_hw SHA3_Update SHA512 +SHA512_224 +SHA512_224_Final +SHA512_224_Init +SHA512_224_Init_from_state +SHA512_224_Update +SHA512_224_get_state SHA512_256 SHA512_256_Final SHA512_256_Init +SHA512_256_Init_from_state SHA512_256_Update +SHA512_256_get_state SHA512_Final SHA512_Init +SHA512_Init_from_state SHA512_Transform SHA512_Update +SHA512_get_state SHAKE128 SHAKE256 +SHAKE_Final +SHAKE_Init SIPHASH_24 SPAKE2_CTX_free SPAKE2_CTX_new @@ -1847,6 +2135,10 @@ SPAKE2_generate_msg SPAKE2_process_msg SSHKDF SSHKDF_verify_service_indicator +SSKDF_digest +SSKDF_digest_verify_service_indicator +SSKDF_hmac +SSKDF_hmac_verify_service_indicator SSLeay SSLeay_version TLSKDF_verify_service_indicator @@ -1865,7 +2157,6 @@ TRUST_TOKEN_ISSUER_issue TRUST_TOKEN_ISSUER_new TRUST_TOKEN_ISSUER_redeem TRUST_TOKEN_ISSUER_redeem_over_message -TRUST_TOKEN_ISSUER_redeem_raw TRUST_TOKEN_ISSUER_set_metadata_key TRUST_TOKEN_ISSUER_set_srr_key TRUST_TOKEN_PRETOKEN_free @@ -1877,6 +2168,8 @@ TRUST_TOKEN_experiment_v2_voprf TRUST_TOKEN_free TRUST_TOKEN_generate_key TRUST_TOKEN_new +TRUST_TOKEN_pst_v1_pmb +TRUST_TOKEN_pst_v1_voprf USERNOTICE_free USERNOTICE_it USERNOTICE_new @@ -1889,10 +2182,9 @@ X509V3_EXT_CRL_add_nconf X509V3_EXT_REQ_add_nconf X509V3_EXT_add X509V3_EXT_add_alias -X509V3_EXT_add_list X509V3_EXT_add_nconf X509V3_EXT_add_nconf_sk -X509V3_EXT_cleanup +X509V3_EXT_conf X509V3_EXT_conf_nid X509V3_EXT_d2i X509V3_EXT_free @@ -1903,13 +2195,13 @@ X509V3_EXT_nconf X509V3_EXT_nconf_nid X509V3_EXT_print X509V3_EXT_print_fp -X509V3_EXT_val_prn X509V3_NAME_from_section X509V3_add1_i2d X509V3_add_standard_extensions X509V3_add_value X509V3_add_value_bool X509V3_add_value_int +X509V3_bool_from_string X509V3_conf_free X509V3_extensions_print X509V3_get_d2i @@ -1956,7 +2248,6 @@ X509_CRL_add1_ext_i2d X509_CRL_add_ext X509_CRL_cmp X509_CRL_delete_ext -X509_CRL_diff X509_CRL_digest X509_CRL_dup X509_CRL_free @@ -1978,6 +2269,7 @@ X509_CRL_get_lastUpdate X509_CRL_get_nextUpdate X509_CRL_get_signature_nid X509_CRL_get_version +X509_CRL_http_nbio X509_CRL_it X509_CRL_match X509_CRL_new @@ -2008,15 +2300,12 @@ X509_EXTENSION_set_critical X509_EXTENSION_set_data X509_EXTENSION_set_object X509_INFO_free -X509_INFO_new -X509_LOOKUP_by_subject +X509_LOOKUP_add_dir X509_LOOKUP_ctrl X509_LOOKUP_file X509_LOOKUP_free X509_LOOKUP_hash_dir -X509_LOOKUP_init -X509_LOOKUP_new -X509_LOOKUP_shutdown +X509_LOOKUP_load_file X509_NAME_ENTRIES_it X509_NAME_ENTRY_create_by_NID X509_NAME_ENTRY_create_by_OBJ @@ -2056,25 +2345,23 @@ X509_NAME_print X509_NAME_print_ex X509_NAME_print_ex_fp X509_NAME_set +X509_OBJECT_free X509_OBJECT_free_contents X509_OBJECT_get0_X509 +X509_OBJECT_get0_X509_CRL X509_OBJECT_get_type -X509_OBJECT_idx_by_subject -X509_OBJECT_retrieve_by_subject -X509_OBJECT_retrieve_match -X509_OBJECT_up_ref_count -X509_PKEY_free -X509_PKEY_new +X509_OBJECT_new +X509_OBJECT_set1_X509 +X509_OBJECT_set1_X509_CRL X509_PUBKEY_free X509_PUBKEY_get +X509_PUBKEY_get0 X509_PUBKEY_get0_param X509_PUBKEY_get0_public_key X509_PUBKEY_it X509_PUBKEY_new X509_PUBKEY_set X509_PUBKEY_set0_param -X509_PURPOSE_add -X509_PURPOSE_cleanup X509_PURPOSE_get0 X509_PURPOSE_get0_name X509_PURPOSE_get0_sname @@ -2099,6 +2386,7 @@ X509_REQ_digest X509_REQ_dup X509_REQ_extension_nid X509_REQ_free +X509_REQ_get0_pubkey X509_REQ_get0_signature X509_REQ_get1_email X509_REQ_get_attr @@ -2156,8 +2444,11 @@ X509_STORE_CTX_get0_param X509_STORE_CTX_get0_parent_ctx X509_STORE_CTX_get0_store X509_STORE_CTX_get0_untrusted +X509_STORE_CTX_get1_certs X509_STORE_CTX_get1_chain +X509_STORE_CTX_get1_crls X509_STORE_CTX_get1_issuer +X509_STORE_CTX_get_by_subject X509_STORE_CTX_get_chain X509_STORE_CTX_get_current_cert X509_STORE_CTX_get_error @@ -2166,7 +2457,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 @@ -2183,49 +2473,29 @@ X509_STORE_CTX_set_time_posix X509_STORE_CTX_set_trust X509_STORE_CTX_set_verify_cb X509_STORE_CTX_trusted_stack -X509_STORE_CTX_zero X509_STORE_add_cert X509_STORE_add_crl X509_STORE_add_lookup X509_STORE_free X509_STORE_get0_objects X509_STORE_get0_param -X509_STORE_get1_certs -X509_STORE_get1_crls -X509_STORE_get_by_subject -X509_STORE_get_cert_crl -X509_STORE_get_check_crl -X509_STORE_get_check_issued -X509_STORE_get_check_revocation -X509_STORE_get_cleanup -X509_STORE_get_get_crl -X509_STORE_get_get_issuer -X509_STORE_get_lookup_certs -X509_STORE_get_lookup_crls -X509_STORE_get_verify -X509_STORE_get_verify_cb +X509_STORE_get_ex_data +X509_STORE_get_ex_new_index X509_STORE_load_locations +X509_STORE_lock X509_STORE_new X509_STORE_set1_param -X509_STORE_set_cert_crl X509_STORE_set_check_crl -X509_STORE_set_check_issued -X509_STORE_set_check_revocation -X509_STORE_set_cleanup X509_STORE_set_default_paths X509_STORE_set_depth +X509_STORE_set_ex_data X509_STORE_set_flags X509_STORE_set_get_crl -X509_STORE_set_get_issuer -X509_STORE_set_lookup_certs -X509_STORE_set_lookup_crls X509_STORE_set_purpose X509_STORE_set_trust -X509_STORE_set_verify X509_STORE_set_verify_cb +X509_STORE_unlock X509_STORE_up_ref -X509_TRUST_add -X509_TRUST_cleanup X509_TRUST_get0 X509_TRUST_get0_name X509_TRUST_get_by_id @@ -2237,14 +2507,9 @@ X509_VAL_free X509_VAL_it X509_VAL_new X509_VERIFY_PARAM_add0_policy -X509_VERIFY_PARAM_add0_table X509_VERIFY_PARAM_add1_host X509_VERIFY_PARAM_clear_flags X509_VERIFY_PARAM_free -X509_VERIFY_PARAM_get0 -X509_VERIFY_PARAM_get0_name -X509_VERIFY_PARAM_get0_peername -X509_VERIFY_PARAM_get_count X509_VERIFY_PARAM_get_depth X509_VERIFY_PARAM_get_flags X509_VERIFY_PARAM_inherit @@ -2255,7 +2520,6 @@ X509_VERIFY_PARAM_set1_email X509_VERIFY_PARAM_set1_host X509_VERIFY_PARAM_set1_ip X509_VERIFY_PARAM_set1_ip_asc -X509_VERIFY_PARAM_set1_name X509_VERIFY_PARAM_set1_policies X509_VERIFY_PARAM_set_depth X509_VERIFY_PARAM_set_flags @@ -2264,7 +2528,6 @@ X509_VERIFY_PARAM_set_purpose X509_VERIFY_PARAM_set_time X509_VERIFY_PARAM_set_time_posix X509_VERIFY_PARAM_set_trust -X509_VERIFY_PARAM_table_cleanup X509_add1_ext_i2d X509_add1_reject_object X509_add1_trust_object @@ -2299,6 +2562,7 @@ X509_get0_authority_serial X509_get0_extensions X509_get0_notAfter X509_get0_notBefore +X509_get0_pubkey X509_get0_pubkey_bitstr X509_get0_serialNumber X509_get0_signature @@ -2331,6 +2595,7 @@ X509_get_notBefore X509_get_pathlen X509_get_pubkey X509_get_serialNumber +X509_get_signature_info X509_get_signature_nid X509_get_subject_name X509_get_version @@ -2382,15 +2647,6 @@ X509_up_ref X509_verify X509_verify_cert X509_verify_cert_error_string -X509at_add1_attr -X509at_add1_attr_by_NID -X509at_add1_attr_by_OBJ -X509at_add1_attr_by_txt -X509at_delete_attr -X509at_get_attr -X509at_get_attr_by_NID -X509at_get_attr_by_OBJ -X509at_get_attr_count X509v3_add_ext X509v3_delete_ext X509v3_get_ext @@ -2398,7 +2654,6 @@ X509v3_get_ext_by_NID X509v3_get_ext_by_OBJ X509v3_get_ext_by_critical X509v3_get_ext_count -a2i_GENERAL_NAME a2i_IPADDRESS a2i_IPADDRESS_NC abi_test_clobber_d0 @@ -2495,6 +2750,11 @@ aesv8_gcm_8x_dec_256 aesv8_gcm_8x_enc_128 aesv8_gcm_8x_enc_192 aesv8_gcm_8x_enc_256 +armv8_disable_dit +armv8_enable_dit +armv8_get_dit +armv8_restore_dit +armv8_set_dit asn1_bit_string_length asn1_do_adb asn1_enc_free @@ -2502,6 +2762,8 @@ asn1_enc_init asn1_enc_restore asn1_enc_save asn1_encoding_clear +asn1_evp_pkey_methods +asn1_evp_pkey_methods_size asn1_generalizedtime_to_tm asn1_get_choice_selector asn1_get_field_ptr @@ -2511,18 +2773,23 @@ asn1_item_combine_free asn1_refcount_dec_and_test_zero asn1_refcount_set_one asn1_set_choice_selector +asn1_type_cleanup +asn1_type_set0_string asn1_type_value_as_pointer asn1_utctime_to_tm awslc_api_version_num awslc_version_string beeu_mod_inverse_vartime bio_clear_socket_error -bio_fd_should_retry +bio_errno_should_retry bio_ip_and_port_to_socket_and_addr bio_sock_error bio_socket_nbio +bio_socket_should_retry bn_abs_sub_consttime bn_add_words +bn_assert_fits_in_bytes +bn_big_endian_to_words bn_copy_words bn_div_consttime bn_expand @@ -2535,12 +2802,12 @@ bn_jacobi bn_lcm_consttime bn_less_than_montgomery_R bn_less_than_words +bn_little_endian_to_words bn_miller_rabin_init bn_miller_rabin_iteration bn_minimal_width bn_mod_add_consttime bn_mod_add_words -bn_mod_exp_base_2_consttime bn_mod_exp_mont_small bn_mod_inverse0_prime_mont_small bn_mod_inverse_consttime @@ -2552,6 +2819,9 @@ bn_mod_mul_montgomery_small bn_mod_sub_consttime bn_mod_sub_words bn_mod_u16_consttime +bn_mont_ctx_cleanup +bn_mont_ctx_init +bn_mont_ctx_set_RR_consttime bn_mont_n0 bn_mul_add_words bn_mul_comba4 @@ -2584,8 +2854,12 @@ bn_to_montgomery_small bn_uadd_consttime bn_usub_consttime bn_wexpand +bn_words_to_big_endian +bn_words_to_little_endian boringssl_ensure_ecc_self_test +boringssl_ensure_eddsa_self_test boringssl_ensure_ffdh_self_test +boringssl_ensure_ml_kem_self_test boringssl_ensure_rsa_self_test boringssl_self_test_hmac_sha256 boringssl_self_test_sha256 @@ -2649,6 +2923,8 @@ d2i_DSA_PUBKEY_fp d2i_DSA_SIG d2i_DSAparams d2i_ECDSA_SIG +d2i_ECPKParameters +d2i_ECPKParameters_bio d2i_ECParameters d2i_ECPrivateKey d2i_ECPrivateKey_bio @@ -2656,7 +2932,6 @@ d2i_ECPrivateKey_fp d2i_EC_PUBKEY d2i_EC_PUBKEY_bio d2i_EC_PUBKEY_fp -d2i_EDIPARTYNAME d2i_EXTENDED_KEY_USAGE d2i_GENERAL_NAME d2i_GENERAL_NAMES @@ -2666,18 +2941,30 @@ d2i_NETSCAPE_SPKI d2i_NOTICEREF d2i_OCSP_BASICRESP d2i_OCSP_CERTID -d2i_OCSP_CERTSTATUS +d2i_OCSP_ONEREQ +d2i_OCSP_REQINFO +d2i_OCSP_REQUEST +d2i_OCSP_REQUEST_bio d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA -d2i_OCSP_RESPID d2i_OCSP_RESPONSE +d2i_OCSP_RESPONSE_bio d2i_OCSP_REVOKEDINFO +d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP -d2i_OTHERNAME d2i_PKCS12 d2i_PKCS12_bio d2i_PKCS12_fp d2i_PKCS7 +d2i_PKCS7_DIGEST +d2i_PKCS7_ENCRYPT +d2i_PKCS7_ENC_CONTENT +d2i_PKCS7_ENVELOPE +d2i_PKCS7_ISSUER_AND_SERIAL +d2i_PKCS7_RECIP_INFO +d2i_PKCS7_SIGNED +d2i_PKCS7_SIGNER_INFO +d2i_PKCS7_SIGN_ENVELOPE d2i_PKCS7_bio d2i_PKCS8PrivateKey_bio d2i_PKCS8PrivateKey_fp @@ -2688,8 +2975,6 @@ d2i_PKCS8_bio d2i_PKCS8_fp d2i_POLICYINFO d2i_POLICYQUALINFO -d2i_PROXY_CERT_INFO_EXTENSION -d2i_PROXY_POLICY d2i_PUBKEY d2i_PUBKEY_bio d2i_PUBKEY_fp @@ -2732,18 +3017,20 @@ d2i_X509_SIG d2i_X509_VAL d2i_X509_bio d2i_X509_fp +dh_asn1_meth +dh_check_params_fast dh_compute_key_padded_no_self_test +dh_pkey_meth dsa_asn1_meth -dsa_check_parameters +dsa_check_key ec_GFp_mont_add ec_GFp_mont_dbl +ec_GFp_mont_felem_exp ec_GFp_mont_felem_from_bytes ec_GFp_mont_felem_mul +ec_GFp_mont_felem_reduce ec_GFp_mont_felem_sqr ec_GFp_mont_felem_to_bytes -ec_GFp_mont_group_finish -ec_GFp_mont_group_init -ec_GFp_mont_group_set_curve ec_GFp_mont_init_precomp ec_GFp_mont_mul ec_GFp_mont_mul_base @@ -2754,9 +3041,7 @@ ec_GFp_nistp_recode_scalar_bits ec_GFp_simple_cmp_x_coordinate ec_GFp_simple_felem_from_bytes ec_GFp_simple_felem_to_bytes -ec_GFp_simple_group_finish ec_GFp_simple_group_get_curve -ec_GFp_simple_group_init ec_GFp_simple_group_set_curve ec_GFp_simple_invert ec_GFp_simple_is_at_infinity @@ -2778,18 +3063,24 @@ ec_felem_equal ec_felem_from_bytes ec_felem_neg ec_felem_non_zero_mask +ec_felem_one ec_felem_select ec_felem_sub ec_felem_to_bignum ec_felem_to_bytes ec_get_x_coordinate_as_bytes ec_get_x_coordinate_as_scalar -ec_group_new +ec_hash_to_curve_p256_xmd_sha256_sswu +ec_hash_to_curve_p384_xmd_sha384_sswu ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +ec_hash_to_scalar_p384_xmd_sha384 ec_hash_to_scalar_p384_xmd_sha512_draft07 ec_init_precomp ec_jacobian_to_affine ec_jacobian_to_affine_batch +ec_nistp_point_add +ec_nistp_point_double +ec_nistp_scalar_mul ec_point_byte_len ec_point_from_uncompressed ec_point_mul_no_self_test @@ -2840,7 +3131,16 @@ ecp_nistz256_select_w7 ecp_nistz256_sqr_mont ecp_nistz256_sub ed25519_asn1_meth -ed25519_pkey_meth +ed25519_check_public_key_nohw +ed25519_check_public_key_s2n_bignum +ed25519_public_key_from_hashed_seed_nohw +ed25519_public_key_from_hashed_seed_s2n_bignum +ed25519_sha512 +ed25519_sign_nohw +ed25519_sign_s2n_bignum +ed25519_verify_nohw +ed25519_verify_s2n_bignum +evp_pkey_set_method gcm_ghash_neon gcm_ghash_nohw gcm_ghash_v8 @@ -2850,7 +3150,11 @@ gcm_gmult_v8 gcm_init_neon gcm_init_nohw gcm_init_v8 -i2a_ACCESS_DESCRIPTION +get_legacy_kem_kyber1024_r3 +get_legacy_kem_kyber512_r3 +get_legacy_kem_kyber768_r3 +handle_cpu_env +hmac_asn1_meth i2a_ASN1_ENUMERATED i2a_ASN1_INTEGER i2a_ASN1_OBJECT @@ -2901,6 +3205,8 @@ i2d_DSA_PUBKEY_fp i2d_DSA_SIG i2d_DSAparams i2d_ECDSA_SIG +i2d_ECPKParameters +i2d_ECPKParameters_bio i2d_ECParameters i2d_ECPrivateKey i2d_ECPrivateKey_bio @@ -2908,7 +3214,6 @@ i2d_ECPrivateKey_fp i2d_EC_PUBKEY i2d_EC_PUBKEY_bio i2d_EC_PUBKEY_fp -i2d_EDIPARTYNAME i2d_EXTENDED_KEY_USAGE i2d_GENERAL_NAME i2d_GENERAL_NAMES @@ -2918,18 +3223,30 @@ i2d_NETSCAPE_SPKI i2d_NOTICEREF i2d_OCSP_BASICRESP i2d_OCSP_CERTID -i2d_OCSP_CERTSTATUS +i2d_OCSP_ONEREQ +i2d_OCSP_REQINFO +i2d_OCSP_REQUEST +i2d_OCSP_REQUEST_bio i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA -i2d_OCSP_RESPID i2d_OCSP_RESPONSE +i2d_OCSP_RESPONSE_bio i2d_OCSP_REVOKEDINFO +i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP -i2d_OTHERNAME i2d_PKCS12 i2d_PKCS12_bio i2d_PKCS12_fp i2d_PKCS7 +i2d_PKCS7_DIGEST +i2d_PKCS7_ENCRYPT +i2d_PKCS7_ENC_CONTENT +i2d_PKCS7_ENVELOPE +i2d_PKCS7_ISSUER_AND_SERIAL +i2d_PKCS7_RECIP_INFO +i2d_PKCS7_SIGNED +i2d_PKCS7_SIGNER_INFO +i2d_PKCS7_SIGN_ENVELOPE i2d_PKCS7_bio i2d_PKCS8PrivateKeyInfo_bio i2d_PKCS8PrivateKeyInfo_fp @@ -2944,8 +3261,6 @@ i2d_PKCS8_bio i2d_PKCS8_fp i2d_POLICYINFO i2d_POLICYQUALINFO -i2d_PROXY_CERT_INFO_EXTENSION -i2d_PROXY_POLICY i2d_PUBKEY i2d_PUBKEY_bio i2d_PUBKEY_fp @@ -3001,52 +3316,87 @@ i2t_ASN1_OBJECT i2v_GENERAL_NAME i2v_GENERAL_NAMES is_fips_build -jent_apt_init -jent_entropy_collector_alloc -jent_entropy_collector_free -jent_entropy_init -jent_entropy_init_ex -jent_entropy_switch_notime_impl -jent_gcd_analyze -jent_gcd_fini -jent_gcd_get -jent_gcd_init -jent_gcd_selftest -jent_health_cb_block_switch -jent_health_failure -jent_lag_init -jent_measure_jitter -jent_random_data -jent_read_entropy -jent_read_entropy_safe -jent_read_random_block -jent_set_fips_failure_callback -jent_set_fips_failure_callback_internal -jent_stuck -jent_time_entropy_init -jent_version +is_public_component_of_rsa_key_good kBoringSSLRSASqrtTwo kBoringSSLRSASqrtTwoLen kOpenSSLReasonStringData kOpenSSLReasonValues kOpenSSLReasonValuesLen kem_asn1_meth -kem_kyber1024r3_method -kem_kyber512r3_method -kem_kyber768r3_method -kem_pkey_meth -kyber1024r3_decapsulate -kyber1024r3_encapsulate -kyber1024r3_keypair -kyber512r3_decapsulate -kyber512r3_encapsulate -kyber512r3_keypair -kyber768r3_decapsulate -kyber768r3_encapsulate -kyber768r3_keypair md4_block_data_order md5_block_asm_data_order +ml_kem_1024_decapsulate +ml_kem_1024_encapsulate +ml_kem_1024_encapsulate_deterministic +ml_kem_1024_keypair +ml_kem_1024_keypair_deterministic +ml_kem_1024_params_init +ml_kem_512_decapsulate +ml_kem_512_decapsulate_no_self_test +ml_kem_512_encapsulate +ml_kem_512_encapsulate_deterministic +ml_kem_512_encapsulate_deterministic_no_self_test +ml_kem_512_keypair +ml_kem_512_keypair_deterministic +ml_kem_512_keypair_deterministic_no_self_test +ml_kem_512_params_init +ml_kem_768_decapsulate +ml_kem_768_encapsulate +ml_kem_768_encapsulate_deterministic +ml_kem_768_keypair +ml_kem_768_keypair_deterministic +ml_kem_768_params_init +ml_kem_barrett_reduce_ref +ml_kem_basemul_ref +ml_kem_cmov_ref +ml_kem_dec_ref +ml_kem_enc_derand_ref +ml_kem_enc_ref +ml_kem_gen_matrix_ref +ml_kem_indcpa_dec_ref +ml_kem_indcpa_enc_ref +ml_kem_indcpa_keypair_derand_ref +ml_kem_invntt_ref +ml_kem_keypair_derand_ref +ml_kem_keypair_ref +ml_kem_kyber_shake128_absorb_ref +ml_kem_kyber_shake128_squeeze_ref +ml_kem_kyber_shake256_prf_ref +ml_kem_kyber_shake256_rkprf_ref +ml_kem_montgomery_reduce_ref +ml_kem_ntt_ref +ml_kem_poly_add_ref +ml_kem_poly_basemul_montgomery_ref +ml_kem_poly_cbd_eta1_ref +ml_kem_poly_cbd_eta2_ref +ml_kem_poly_compress_ref +ml_kem_poly_decompress_ref +ml_kem_poly_frombytes_ref +ml_kem_poly_frommsg_ref +ml_kem_poly_getnoise_eta1_ref +ml_kem_poly_getnoise_eta2_ref +ml_kem_poly_invntt_tomont_ref +ml_kem_poly_ntt_ref +ml_kem_poly_reduce_ref +ml_kem_poly_sub_ref +ml_kem_poly_tobytes_ref +ml_kem_poly_tomont_ref +ml_kem_poly_tomsg_ref +ml_kem_polyvec_add_ref +ml_kem_polyvec_basemul_acc_montgomery_ref +ml_kem_polyvec_compress_ref +ml_kem_polyvec_decompress_ref +ml_kem_polyvec_frombytes_ref +ml_kem_polyvec_invntt_tomont_ref +ml_kem_polyvec_ntt_ref +ml_kem_polyvec_reduce_ref +ml_kem_polyvec_tobytes_ref +ml_kem_verify_ref +ml_kem_zetas_ref o2i_ECPublicKey +p256_methods +p384_methods +p521_methods pkcs12_iterations_acceptable pkcs12_key_gen pkcs12_pbe_encrypt_init @@ -3071,6 +3421,15 @@ pmbtoken_exp2_issuer_key_from_bytes pmbtoken_exp2_read pmbtoken_exp2_sign pmbtoken_exp2_unblind +pmbtoken_pst1_blind +pmbtoken_pst1_client_key_from_bytes +pmbtoken_pst1_derive_key_from_secret +pmbtoken_pst1_generate_key +pmbtoken_pst1_get_h_for_testing +pmbtoken_pst1_issuer_key_from_bytes +pmbtoken_pst1_read +pmbtoken_pst1_sign +pmbtoken_pst1_unblind pq_custom_randombytes pq_custom_randombytes_init_for_testing pq_custom_randombytes_use_deterministic_for_testing @@ -3079,12 +3438,14 @@ pqcrystals_kyber1024_ref_basemul pqcrystals_kyber1024_ref_cmov pqcrystals_kyber1024_ref_dec pqcrystals_kyber1024_ref_enc +pqcrystals_kyber1024_ref_enc_derand pqcrystals_kyber1024_ref_gen_matrix pqcrystals_kyber1024_ref_indcpa_dec pqcrystals_kyber1024_ref_indcpa_enc -pqcrystals_kyber1024_ref_indcpa_keypair +pqcrystals_kyber1024_ref_indcpa_keypair_derand pqcrystals_kyber1024_ref_invntt pqcrystals_kyber1024_ref_keypair +pqcrystals_kyber1024_ref_keypair_derand pqcrystals_kyber1024_ref_kyber_shake128_absorb pqcrystals_kyber1024_ref_kyber_shake256_prf pqcrystals_kyber1024_ref_montgomery_reduce @@ -3122,12 +3483,14 @@ pqcrystals_kyber512_ref_basemul pqcrystals_kyber512_ref_cmov pqcrystals_kyber512_ref_dec pqcrystals_kyber512_ref_enc +pqcrystals_kyber512_ref_enc_derand pqcrystals_kyber512_ref_gen_matrix pqcrystals_kyber512_ref_indcpa_dec pqcrystals_kyber512_ref_indcpa_enc -pqcrystals_kyber512_ref_indcpa_keypair +pqcrystals_kyber512_ref_indcpa_keypair_derand pqcrystals_kyber512_ref_invntt pqcrystals_kyber512_ref_keypair +pqcrystals_kyber512_ref_keypair_derand pqcrystals_kyber512_ref_kyber_shake128_absorb pqcrystals_kyber512_ref_kyber_shake256_prf pqcrystals_kyber512_ref_montgomery_reduce @@ -3165,12 +3528,14 @@ pqcrystals_kyber768_ref_basemul pqcrystals_kyber768_ref_cmov pqcrystals_kyber768_ref_dec pqcrystals_kyber768_ref_enc +pqcrystals_kyber768_ref_enc_derand pqcrystals_kyber768_ref_gen_matrix pqcrystals_kyber768_ref_indcpa_dec pqcrystals_kyber768_ref_indcpa_enc -pqcrystals_kyber768_ref_indcpa_keypair +pqcrystals_kyber768_ref_indcpa_keypair_derand pqcrystals_kyber768_ref_invntt pqcrystals_kyber768_ref_keypair +pqcrystals_kyber768_ref_keypair_derand pqcrystals_kyber768_ref_kyber_shake128_absorb pqcrystals_kyber768_ref_kyber_shake256_prf pqcrystals_kyber768_ref_montgomery_reduce @@ -3221,55 +3586,35 @@ pqcrystals_kyber_fips202_ref_shake256_squeeze pqcrystals_kyber_fips202_ref_shake256_squeezeblocks rand_fork_unsafe_buffering_enabled rsa_asn1_meth -rsa_check_public_key -rsa_default_decrypt rsa_default_private_transform rsa_default_sign_raw rsa_default_size rsa_digestsign_no_self_test rsa_digestverify_no_self_test +rsa_invalidate_key +rsa_private_transform +rsa_private_transform_no_self_test rsa_pss_asn1_meth rsa_sign_no_self_test rsa_verify_no_self_test rsa_verify_raw_no_self_test s2i_ASN1_INTEGER s2i_ASN1_OCTET_STRING -sha1_block_data_order +sha1_block_data_order_hw +sha1_block_data_order_nohw sha1_func sha224_func -sha256_block_data_order +sha256_block_data_order_hw +sha256_block_data_order_nohw sha256_func sha384_func -sha3_256_init -sha3_alloc -sha3_dealloc -sha3_final -sha3_tester -sha3_update -sha512_block_data_order +sha512_block_data_order_hw +sha512_block_data_order_nohw sha512_func -sk_deep_copy -sk_delete -sk_delete_if -sk_delete_ptr -sk_dup -sk_find -sk_free -sk_insert -sk_is_sorted -sk_new -sk_new_null -sk_num -sk_pop sk_pop_free -sk_pop_free_ex -sk_push -sk_set -sk_set_cmp_func -sk_shift -sk_sort -sk_value -sk_zero +sskdf_variant_digest +sskdf_variant_hmac +used_for_hmac v2i_GENERAL_NAME v2i_GENERAL_NAMES v2i_GENERAL_NAME_ex @@ -3293,7 +3638,7 @@ v3_ns_ia5_list v3_nscert v3_ocsp_accresp v3_ocsp_nocheck -v3_pci +v3_ocsp_nonce v3_policy_constraints v3_policy_mappings v3_sinfo @@ -3306,6 +3651,15 @@ voprf_exp2_issuer_key_from_bytes voprf_exp2_read voprf_exp2_sign voprf_exp2_unblind +voprf_pst1_blind +voprf_pst1_client_key_from_bytes +voprf_pst1_derive_key_from_secret +voprf_pst1_generate_key +voprf_pst1_issuer_key_from_bytes +voprf_pst1_read +voprf_pst1_sign +voprf_pst1_sign_with_proof_scalar_for_testing +voprf_pst1_unblind vpaes_cbc_encrypt vpaes_ctr32_encrypt_blocks vpaes_decrypt @@ -3324,11 +3678,17 @@ x25519_ge_scalarmult_small_precomp x25519_ge_sub x25519_ge_tobytes x25519_pkey_meth +x25519_public_from_private_nohw +x25519_public_from_private_s2n_bignum x25519_sc_reduce +x25519_scalar_mult_generic_nohw +x25519_scalar_mult_generic_s2n_bignum x509V3_add_value_asn1_string x509_check_cert_time +x509_check_issued_with_callback x509_digest_sign_algorithm x509_digest_verify_init +x509_init_signature_info x509_print_rsa_pss_params x509_rsa_ctx_to_pss x509_rsa_pss_to_ctx @@ -3336,6 +3696,7 @@ x509v3_a2i_ipadd x509v3_bytes_to_hex x509v3_cache_extensions x509v3_conf_name_matches +x509v3_ext_free_with_method x509v3_hex_to_bytes x509v3_looks_like_dns_name x86_64_assembly_implementation_FOR_TESTING diff --git a/aws-lc-fips-sys/symbols/x86_64-apple-darwin.txt b/aws-lc-fips-sys/symbols/x86_64-apple-darwin.txt index 7d94e101818..4517c91f2b5 100644 --- a/aws-lc-fips-sys/symbols/x86_64-apple-darwin.txt +++ b/aws-lc-fips-sys/symbols/x86_64-apple-darwin.txt @@ -121,9 +121,11 @@ ASN1_TIME_print ASN1_TIME_set ASN1_TIME_set_posix ASN1_TIME_set_string +ASN1_TIME_set_string_X509 ASN1_TIME_to_generalizedtime ASN1_TIME_to_posix ASN1_TIME_to_time_t +ASN1_TIME_to_tm ASN1_TYPE_cmp ASN1_TYPE_free ASN1_TYPE_get @@ -149,7 +151,9 @@ ASN1_VISIBLESTRING_free ASN1_VISIBLESTRING_it ASN1_VISIBLESTRING_new ASN1_digest +ASN1_dup ASN1_get_object +ASN1_i2d_bio ASN1_item_d2i ASN1_item_d2i_bio ASN1_item_d2i_fp @@ -237,6 +241,7 @@ BIO_meth_set_gets BIO_meth_set_puts BIO_meth_set_read BIO_meth_set_write +BIO_method_name BIO_method_type BIO_new BIO_new_bio_pair @@ -257,6 +262,7 @@ BIO_push BIO_puts BIO_read BIO_read_asn1 +BIO_read_ex BIO_read_filename BIO_reset BIO_rw_filename @@ -264,6 +270,7 @@ BIO_s_connect BIO_s_fd BIO_s_file BIO_s_mem +BIO_s_secmem BIO_s_socket BIO_seek BIO_set_callback_arg @@ -301,6 +308,7 @@ BIO_vsnprintf BIO_wpending BIO_write BIO_write_all +BIO_write_ex BIO_write_filename BLAKE2B256 BLAKE2B256_Final @@ -310,12 +318,14 @@ BN_CTX_end BN_CTX_free BN_CTX_get BN_CTX_new +BN_CTX_secure_new BN_CTX_start BN_GENCB_call BN_GENCB_free BN_GENCB_get_arg BN_GENCB_new BN_GENCB_set +BN_GENCB_set_old BN_MONT_CTX_copy BN_MONT_CTX_free BN_MONT_CTX_new @@ -353,6 +363,7 @@ BN_free BN_from_montgomery BN_gcd BN_generate_prime_ex +BN_get_flags BN_get_rfc3526_prime_1536 BN_get_rfc3526_prime_2048 BN_get_rfc3526_prime_3072 @@ -383,8 +394,10 @@ BN_mod_exp BN_mod_exp2_mont BN_mod_exp_mont BN_mod_exp_mont_consttime +BN_mod_exp_mont_consttime_x2 BN_mod_exp_mont_word BN_mod_inverse +BN_mod_inverse_blinded BN_mod_lshift BN_mod_lshift1 BN_mod_lshift1_quick @@ -512,6 +525,7 @@ CBS_get_u24_length_prefixed CBS_get_u32 CBS_get_u32le CBS_get_u64 +CBS_get_u64_decimal CBS_get_u64le CBS_get_u8 CBS_get_u8_length_prefixed @@ -520,6 +534,7 @@ CBS_init CBS_is_unsigned_asn1_integer CBS_is_valid_asn1_bitstring CBS_is_valid_asn1_integer +CBS_is_valid_asn1_oid CBS_len CBS_mem_equal CBS_parse_generalized_time @@ -533,13 +548,17 @@ CERTIFICATEPOLICIES_it CERTIFICATEPOLICIES_new CMAC_CTX_copy CMAC_CTX_free +CMAC_CTX_get0_cipher_ctx CMAC_CTX_new CMAC_Final CMAC_Init CMAC_Reset CMAC_Update +CONF_get1_default_config_file +CONF_modules_finish CONF_modules_free CONF_modules_load_file +CONF_modules_unload CONF_parse_list CRL_DIST_POINTS_free CRL_DIST_POINTS_it @@ -636,12 +655,16 @@ DES_ecb_encrypt DES_ede2_cbc_encrypt DES_ede3_cbc_encrypt DES_encrypt3 +DES_is_weak_key +DES_key_sched DES_ncbc_encrypt DES_set_key +DES_set_key_unchecked DES_set_odd_parity DH_bits DH_check DH_check_pub_key +DH_clear_flags DH_compute_key DH_compute_key_hashed DH_compute_key_padded @@ -658,8 +681,12 @@ DH_get0_pub_key DH_get0_q DH_get_2048_256 DH_get_rfc7919_2048 +DH_get_rfc7919_3072 +DH_get_rfc7919_4096 +DH_get_rfc7919_8192 DH_marshal_parameters DH_new +DH_new_by_nid DH_num_bits DH_parse_parameters DH_set0_key @@ -712,6 +739,8 @@ DSA_new DSA_parse_parameters DSA_parse_private_key DSA_parse_public_key +DSA_print +DSA_print_fp DSA_set0_key DSA_set0_pqg DSA_set_ex_data @@ -739,17 +768,20 @@ ECDSA_sign ECDSA_sign_with_nonce_and_leak_private_key_for_testing ECDSA_size ECDSA_verify +ECPKParameters_print EC_GROUP_cmp EC_GROUP_dup EC_GROUP_free EC_GROUP_get0_generator EC_GROUP_get0_order +EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_cofactor EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name EC_GROUP_get_degree EC_GROUP_get_order +EC_GROUP_get_seed_len EC_GROUP_method_of EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp @@ -757,6 +789,13 @@ EC_GROUP_order_bits EC_GROUP_set_asn1_flag EC_GROUP_set_generator EC_GROUP_set_point_conversion_form +EC_GROUP_set_seed +EC_KEY_METHOD_free +EC_KEY_METHOD_new +EC_KEY_METHOD_set_flags +EC_KEY_METHOD_set_init_awslc +EC_KEY_METHOD_set_sign_awslc +EC_KEY_OpenSSL EC_KEY_check_fips EC_KEY_check_key EC_KEY_derive_from_secret @@ -768,9 +807,11 @@ EC_KEY_get0_group EC_KEY_get0_private_key EC_KEY_get0_public_key EC_KEY_get_conv_form +EC_KEY_get_default_method EC_KEY_get_enc_flags EC_KEY_get_ex_data EC_KEY_get_ex_new_index +EC_KEY_get_method EC_KEY_is_opaque EC_KEY_key2buf EC_KEY_marshal_curve_name @@ -786,12 +827,14 @@ EC_KEY_set_conv_form EC_KEY_set_enc_flags EC_KEY_set_ex_data EC_KEY_set_group +EC_KEY_set_method EC_KEY_set_private_key EC_KEY_set_public_key EC_KEY_set_public_key_affine_coordinates EC_KEY_up_ref EC_METHOD_get_field_type EC_POINT_add +EC_POINT_bn2point EC_POINT_clear_free EC_POINT_cmp EC_POINT_copy @@ -806,6 +849,7 @@ EC_POINT_is_on_curve EC_POINT_mul EC_POINT_new EC_POINT_oct2point +EC_POINT_point2bn EC_POINT_point2cbb EC_POINT_point2oct EC_POINT_set_affine_coordinates @@ -815,21 +859,29 @@ EC_POINT_set_to_infinity EC_curve_nid2nist EC_curve_nist2nid EC_get_builtin_curves +EC_group_p224 +EC_group_p256 +EC_group_p384 +EC_group_p521 +EC_group_secp256k1 +EC_hash_to_curve_p256_xmd_sha256_sswu +EC_hash_to_curve_p384_xmd_sha384_sswu +ED25519_check_public_key ED25519_keypair ED25519_keypair_from_seed ED25519_sign ED25519_verify EDIPARTYNAME_free -EDIPARTYNAME_it EDIPARTYNAME_new +ENGINE_cleanup ENGINE_free -ENGINE_get_ECDSA_method -ENGINE_get_RSA_method +ENGINE_get_EC +ENGINE_get_RSA ENGINE_load_builtin_engines ENGINE_new ENGINE_register_all_complete -ENGINE_set_ECDSA_method -ENGINE_set_RSA_method +ENGINE_set_EC +ENGINE_set_RSA ERR_SAVE_STATE_free ERR_add_error_data ERR_add_error_dataf @@ -845,6 +897,7 @@ ERR_get_error_line_data ERR_get_next_error_library ERR_lib_error_string ERR_load_BIO_strings +ERR_load_CRYPTO_strings ERR_load_ERR_strings ERR_load_RAND_strings ERR_load_crypto_strings @@ -914,6 +967,7 @@ EVP_CIPHER_flags EVP_CIPHER_iv_length EVP_CIPHER_key_length EVP_CIPHER_mode +EVP_CIPHER_name EVP_CIPHER_nid EVP_Cipher EVP_CipherFinal @@ -971,6 +1025,9 @@ EVP_HPKE_CTX_max_overhead EVP_HPKE_CTX_new EVP_HPKE_CTX_open EVP_HPKE_CTX_seal +EVP_HPKE_CTX_setup_auth_recipient +EVP_HPKE_CTX_setup_auth_sender +EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing EVP_HPKE_CTX_setup_recipient EVP_HPKE_CTX_setup_sender EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -987,6 +1044,7 @@ EVP_HPKE_KEY_free EVP_HPKE_KEY_generate EVP_HPKE_KEY_init EVP_HPKE_KEY_kem +EVP_HPKE_KEY_move EVP_HPKE_KEY_new EVP_HPKE_KEY_private_key EVP_HPKE_KEY_public_key @@ -1009,10 +1067,15 @@ EVP_MD_CTX_set_pkey_ctx EVP_MD_CTX_size EVP_MD_CTX_type EVP_MD_block_size +EVP_MD_do_all EVP_MD_do_all_sorted EVP_MD_flags +EVP_MD_get0_name +EVP_MD_get_pkey_type EVP_MD_meth_get_flags +EVP_MD_name EVP_MD_nid +EVP_MD_pkey_type EVP_MD_size EVP_MD_type EVP_MD_unstable_sha3_enable @@ -1022,10 +1085,13 @@ EVP_PKCS82PKEY EVP_PKEY2PKCS8 EVP_PKEY_CTX_add1_hkdf_info EVP_PKEY_CTX_ctrl +EVP_PKEY_CTX_ctrl_str EVP_PKEY_CTX_dup EVP_PKEY_CTX_free EVP_PKEY_CTX_get0_pkey EVP_PKEY_CTX_get0_rsa_oaep_label +EVP_PKEY_CTX_get_app_data +EVP_PKEY_CTX_get_keygen_info EVP_PKEY_CTX_get_rsa_mgf1_md EVP_PKEY_CTX_get_rsa_oaep_md EVP_PKEY_CTX_get_rsa_padding @@ -1033,11 +1099,15 @@ EVP_PKEY_CTX_get_rsa_pss_saltlen EVP_PKEY_CTX_get_signature_md EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_kem_set_params +EVP_PKEY_CTX_md EVP_PKEY_CTX_new EVP_PKEY_CTX_new_id EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set1_hkdf_key EVP_PKEY_CTX_set1_hkdf_salt +EVP_PKEY_CTX_set_app_data +EVP_PKEY_CTX_set_cb +EVP_PKEY_CTX_set_dh_pad EVP_PKEY_CTX_set_dsa_paramgen_bits EVP_PKEY_CTX_set_dsa_paramgen_q_bits EVP_PKEY_CTX_set_ec_param_enc @@ -1053,7 +1123,13 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen EVP_PKEY_CTX_set_rsa_pss_saltlen EVP_PKEY_CTX_set_signature_md +EVP_PKEY_asn1_find +EVP_PKEY_asn1_find_str +EVP_PKEY_asn1_get0 +EVP_PKEY_asn1_get0_info +EVP_PKEY_asn1_get_count EVP_PKEY_assign +EVP_PKEY_assign_DH EVP_PKEY_assign_DSA EVP_PKEY_assign_EC_KEY EVP_PKEY_assign_RSA @@ -1069,6 +1145,7 @@ EVP_PKEY_derive EVP_PKEY_derive_init EVP_PKEY_derive_set_peer EVP_PKEY_encapsulate +EVP_PKEY_encapsulate_deterministic EVP_PKEY_encrypt EVP_PKEY_encrypt_init EVP_PKEY_free @@ -1086,13 +1163,16 @@ EVP_PKEY_get_raw_private_key EVP_PKEY_get_raw_public_key EVP_PKEY_id EVP_PKEY_is_opaque +EVP_PKEY_kem_check_key EVP_PKEY_kem_new_raw_key EVP_PKEY_kem_new_raw_public_key EVP_PKEY_kem_new_raw_secret_key EVP_PKEY_keygen +EVP_PKEY_keygen_deterministic EVP_PKEY_keygen_init EVP_PKEY_missing_parameters EVP_PKEY_new +EVP_PKEY_new_mac_key EVP_PKEY_new_raw_private_key EVP_PKEY_new_raw_public_key EVP_PKEY_paramgen @@ -1100,6 +1180,7 @@ EVP_PKEY_paramgen_init EVP_PKEY_print_params EVP_PKEY_print_private EVP_PKEY_print_public +EVP_PKEY_set1_DH EVP_PKEY_set1_DSA EVP_PKEY_set1_EC_KEY EVP_PKEY_set1_RSA @@ -1140,6 +1221,7 @@ EVP_aead_aes_128_gcm_tls13 EVP_aead_aes_192_gcm EVP_aead_aes_256_cbc_sha1_tls EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +EVP_aead_aes_256_cbc_sha384_tls EVP_aead_aes_256_ctr_hmac_sha256 EVP_aead_aes_256_gcm EVP_aead_aes_256_gcm_randnonce @@ -1154,6 +1236,7 @@ EVP_aead_xchacha20_poly1305 EVP_aes_128_cbc EVP_aes_128_cbc_hmac_sha1 EVP_aes_128_cbc_hmac_sha256 +EVP_aes_128_ccm EVP_aes_128_cfb EVP_aes_128_cfb1 EVP_aes_128_cfb128 @@ -1163,6 +1246,7 @@ EVP_aes_128_ecb EVP_aes_128_gcm EVP_aes_128_ofb EVP_aes_192_cbc +EVP_aes_192_ccm EVP_aes_192_cfb EVP_aes_192_cfb1 EVP_aes_192_cfb128 @@ -1174,6 +1258,7 @@ EVP_aes_192_ofb EVP_aes_256_cbc EVP_aes_256_cbc_hmac_sha1 EVP_aes_256_cbc_hmac_sha256 +EVP_aes_256_ccm EVP_aes_256_cfb EVP_aes_256_cfb1 EVP_aes_256_cfb128 @@ -1182,6 +1267,7 @@ EVP_aes_256_ctr EVP_aes_256_ecb EVP_aes_256_gcm EVP_aes_256_ofb +EVP_aes_256_wrap EVP_aes_256_xts EVP_bf_cbc EVP_bf_cfb @@ -1189,6 +1275,7 @@ EVP_bf_ecb EVP_blake2b256 EVP_cast5_cbc EVP_cast5_ecb +EVP_chacha20_poly1305 EVP_cleanup EVP_des_cbc EVP_des_ecb @@ -1200,6 +1287,7 @@ EVP_des_ede_cbc EVP_enc_null EVP_final_with_secret_suffix_sha1 EVP_final_with_secret_suffix_sha256 +EVP_final_with_secret_suffix_sha384 EVP_get_cipherbyname EVP_get_cipherbynid EVP_get_digestbyname @@ -1234,7 +1322,10 @@ EVP_sha3_256 EVP_sha3_384 EVP_sha3_512 EVP_sha512 +EVP_sha512_224 EVP_sha512_256 +EVP_shake128 +EVP_shake256 EXTENDED_KEY_USAGE_free EXTENDED_KEY_USAGE_it EXTENDED_KEY_USAGE_new @@ -1275,8 +1366,12 @@ HMAC_CTX_reset HMAC_Final HMAC_Init HMAC_Init_ex +HMAC_Init_from_precomputed_key HMAC_Update +HMAC_get_precomputed_key +HMAC_set_precomputed_key_export HMAC_size +HMAC_with_precompute HRSS_decap HRSS_encap HRSS_generate_key @@ -1287,6 +1382,7 @@ HRSS_poly3_mul ISSUING_DIST_POINT_free ISSUING_DIST_POINT_it ISSUING_DIST_POINT_new +KBKDF_ctr_hmac MD4 MD4_Final MD4_Init @@ -1295,8 +1391,10 @@ MD4_Update MD5 MD5_Final MD5_Init +MD5_Init_from_state MD5_Transform MD5_Update +MD5_get_state NAME_CONSTRAINTS_check NAME_CONSTRAINTS_free NAME_CONSTRAINTS_it @@ -1316,12 +1414,14 @@ NETSCAPE_SPKI_free NETSCAPE_SPKI_get_pubkey NETSCAPE_SPKI_it NETSCAPE_SPKI_new +NETSCAPE_SPKI_print NETSCAPE_SPKI_set_pubkey NETSCAPE_SPKI_sign NETSCAPE_SPKI_verify NOTICEREF_free NOTICEREF_it NOTICEREF_new +OBJ_NAME_do_all_sorted OBJ_cbs2nid OBJ_cleanup OBJ_cmp @@ -1330,6 +1430,7 @@ OBJ_dup OBJ_find_sigid_algs OBJ_find_sigid_by_algs OBJ_get0_data +OBJ_get_undef OBJ_length OBJ_ln2nid OBJ_nid2cbb @@ -1341,50 +1442,118 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free +OCSP_BASICRESP_get_ext +OCSP_BASICRESP_get_ext_by_NID OCSP_BASICRESP_it OCSP_BASICRESP_new +OCSP_CERTID_dup OCSP_CERTID_free OCSP_CERTID_it OCSP_CERTID_new -OCSP_CERTSTATUS_free -OCSP_CERTSTATUS_it -OCSP_CERTSTATUS_new +OCSP_ONEREQ_free +OCSP_ONEREQ_it +OCSP_ONEREQ_new +OCSP_REQINFO_free +OCSP_REQINFO_it +OCSP_REQINFO_new +OCSP_REQUEST_free +OCSP_REQUEST_get_ext +OCSP_REQUEST_get_ext_by_NID +OCSP_REQUEST_it +OCSP_REQUEST_new +OCSP_REQUEST_print +OCSP_REQ_CTX_add1_header +OCSP_REQ_CTX_free +OCSP_REQ_CTX_get0_mem_bio +OCSP_REQ_CTX_http +OCSP_REQ_CTX_nbio +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 -OCSP_RESPID_free -OCSP_RESPID_it -OCSP_RESPID_new 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 +OCSP_SINGLERESP_add_ext OCSP_SINGLERESP_free +OCSP_SINGLERESP_get0_id +OCSP_SINGLERESP_get_ext +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 +OCSP_id_issuer_cmp +OCSP_onereq_get0_id +OCSP_parse_url +OCSP_request_add0_id +OCSP_request_add1_cert +OCSP_request_add1_nonce +OCSP_request_is_signed +OCSP_request_onereq_count +OCSP_request_onereq_get0 +OCSP_request_set1_name +OCSP_request_sign +OCSP_request_verify +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 +OCSP_sendreq_bio +OCSP_sendreq_nbio +OCSP_sendreq_new +OCSP_set_max_response_length +OCSP_single_get0_status OPENSSL_add_all_algorithms_conf OPENSSL_asprintf +OPENSSL_calloc OPENSSL_cleanse OPENSSL_cleanup OPENSSL_clear_free OPENSSL_config OPENSSL_free +OPENSSL_fromxdigit OPENSSL_gmtime OPENSSL_gmtime_adj OPENSSL_gmtime_diff OPENSSL_hash32 +OPENSSL_hexstr2buf +OPENSSL_init OPENSSL_init_crypto +OPENSSL_isalnum +OPENSSL_isalpha +OPENSSL_isdigit +OPENSSL_isspace +OPENSSL_isxdigit OPENSSL_lh_delete OPENSSL_lh_doall_arg OPENSSL_lh_free @@ -1402,6 +1571,29 @@ OPENSSL_posix_to_tm OPENSSL_realloc OPENSSL_secure_clear_free OPENSSL_secure_malloc +OPENSSL_secure_zalloc +OPENSSL_sk_deep_copy +OPENSSL_sk_delete +OPENSSL_sk_delete_if +OPENSSL_sk_delete_ptr +OPENSSL_sk_dup +OPENSSL_sk_find +OPENSSL_sk_free +OPENSSL_sk_insert +OPENSSL_sk_is_sorted +OPENSSL_sk_new +OPENSSL_sk_new_null +OPENSSL_sk_num +OPENSSL_sk_pop +OPENSSL_sk_pop_free_ex +OPENSSL_sk_push +OPENSSL_sk_set +OPENSSL_sk_set_cmp_func +OPENSSL_sk_shift +OPENSSL_sk_sort +OPENSSL_sk_unshift +OPENSSL_sk_value +OPENSSL_sk_zero OPENSSL_strcasecmp OPENSSL_strdup OPENSSL_strhash @@ -1415,9 +1607,8 @@ OPENSSL_tm_to_posix OPENSSL_tolower OPENSSL_vasprintf OPENSSL_vasprintf_internal -OTHERNAME_cmp +OPENSSL_zalloc OTHERNAME_free -OTHERNAME_it OTHERNAME_new OpenSSL_add_all_algorithms OpenSSL_add_all_ciphers @@ -1432,10 +1623,8 @@ PEM_X509_INFO_read PEM_X509_INFO_read_bio PEM_bytes_read_bio PEM_def_callback -PEM_dek_info PEM_do_header PEM_get_EVP_CIPHER_INFO -PEM_proc_type PEM_read PEM_read_DHparams PEM_read_DSAPrivateKey @@ -1460,12 +1649,14 @@ PEM_read_bio_DHparams PEM_read_bio_DSAPrivateKey PEM_read_bio_DSA_PUBKEY PEM_read_bio_DSAparams +PEM_read_bio_ECPKParameters PEM_read_bio_ECPrivateKey PEM_read_bio_EC_PUBKEY PEM_read_bio_PKCS7 PEM_read_bio_PKCS8 PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_PUBKEY +PEM_read_bio_Parameters PEM_read_bio_PrivateKey PEM_read_bio_RSAPrivateKey PEM_read_bio_RSAPublicKey @@ -1501,6 +1692,7 @@ PEM_write_bio_DHparams PEM_write_bio_DSAPrivateKey PEM_write_bio_DSA_PUBKEY PEM_write_bio_DSAparams +PEM_write_bio_ECPKParameters PEM_write_bio_ECPrivateKey PEM_write_bio_EC_PUBKEY PEM_write_bio_PKCS7 @@ -1509,7 +1701,9 @@ PEM_write_bio_PKCS8PrivateKey PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_PUBKEY +PEM_write_bio_Parameters PEM_write_bio_PrivateKey +PEM_write_bio_PrivateKey_traditional PEM_write_bio_RSAPrivateKey PEM_write_bio_RSAPublicKey PEM_write_bio_RSA_PUBKEY @@ -1522,19 +1716,65 @@ PKCS12_PBE_add PKCS12_create PKCS12_free PKCS12_get_key_and_certs +PKCS12_new PKCS12_parse PKCS12_verify_mac +PKCS1_MGF1 PKCS5_PBKDF2_HMAC PKCS5_PBKDF2_HMAC_SHA1 +PKCS7_DIGEST_free +PKCS7_DIGEST_it +PKCS7_DIGEST_new +PKCS7_ENCRYPT_free +PKCS7_ENCRYPT_it +PKCS7_ENCRYPT_new +PKCS7_ENC_CONTENT_free +PKCS7_ENC_CONTENT_it +PKCS7_ENC_CONTENT_new +PKCS7_ENVELOPE_free +PKCS7_ENVELOPE_it +PKCS7_ENVELOPE_new +PKCS7_ISSUER_AND_SERIAL_free +PKCS7_ISSUER_AND_SERIAL_it +PKCS7_ISSUER_AND_SERIAL_new +PKCS7_RECIP_INFO_free +PKCS7_RECIP_INFO_get0_alg +PKCS7_RECIP_INFO_it +PKCS7_RECIP_INFO_new +PKCS7_RECIP_INFO_set +PKCS7_SIGNED_free +PKCS7_SIGNED_it +PKCS7_SIGNED_new +PKCS7_SIGNER_INFO_free +PKCS7_SIGNER_INFO_get0_algs +PKCS7_SIGNER_INFO_it +PKCS7_SIGNER_INFO_new +PKCS7_SIGNER_INFO_set +PKCS7_SIGN_ENVELOPE_free +PKCS7_SIGN_ENVELOPE_it +PKCS7_SIGN_ENVELOPE_new +PKCS7_add_certificate +PKCS7_add_crl +PKCS7_add_recipient_info +PKCS7_add_signer PKCS7_bundle_CRLs PKCS7_bundle_certificates PKCS7_bundle_raw_certificates +PKCS7_content_new +PKCS7_dup PKCS7_free PKCS7_get_CRLs PKCS7_get_PEM_CRLs PKCS7_get_PEM_certificates PKCS7_get_certificates PKCS7_get_raw_certificates +PKCS7_get_signed_attribute +PKCS7_get_signer_info +PKCS7_it +PKCS7_new +PKCS7_set_cipher +PKCS7_set_content +PKCS7_set_type PKCS7_sign PKCS7_type_is_data PKCS7_type_is_digest @@ -1562,30 +1802,28 @@ POLICY_MAPPINGS_it POLICY_MAPPING_free POLICY_MAPPING_it POLICY_MAPPING_new -PROXY_CERT_INFO_EXTENSION_free -PROXY_CERT_INFO_EXTENSION_it -PROXY_CERT_INFO_EXTENSION_new -PROXY_POLICY_free -PROXY_POLICY_it -PROXY_POLICY_new RAND_OpenSSL RAND_SSLeay RAND_add RAND_bytes RAND_cleanup RAND_egd +RAND_egd_bytes RAND_enable_fork_unsafe_buffering RAND_file_name RAND_get_rand_method RAND_get_system_entropy_for_custom_prng +RAND_keep_random_devices_open RAND_load_entropy RAND_load_file RAND_module_entropy_depleted RAND_poll +RAND_priv_bytes RAND_pseudo_bytes RAND_seed RAND_set_rand_method RAND_status +RAND_write_file RC4 RC4_set_key RIPEMD160 @@ -1604,6 +1842,7 @@ RSA_PSS_PARAMS_it RSA_PSS_PARAMS_new RSA_add_pkcs1_prefix RSA_bits +RSA_blinding_off_temp_for_accp_compatibility RSA_blinding_on RSA_check_fips RSA_check_key @@ -1626,20 +1865,41 @@ RSA_get0_n RSA_get0_p RSA_get0_pss_params RSA_get0_q +RSA_get_default_method RSA_get_ex_data RSA_get_ex_new_index +RSA_get_method RSA_is_opaque RSA_marshal_private_key RSA_marshal_public_key +RSA_meth_free +RSA_meth_new +RSA_meth_set0_app_data +RSA_meth_set_finish +RSA_meth_set_init +RSA_meth_set_priv_dec +RSA_meth_set_priv_enc +RSA_meth_set_pub_dec +RSA_meth_set_pub_enc +RSA_meth_set_sign RSA_new RSA_new_method +RSA_new_method_no_e +RSA_new_private_key +RSA_new_private_key_large_e +RSA_new_private_key_no_crt +RSA_new_private_key_no_e +RSA_new_public_key +RSA_new_public_key_large_e RSA_padding_add_PKCS1_OAEP RSA_padding_add_PKCS1_OAEP_mgf1 RSA_padding_add_PKCS1_PSS RSA_padding_add_PKCS1_PSS_mgf1 RSA_parse_private_key RSA_parse_public_key +RSA_pkey_ctx_ctrl RSA_print +RSA_print_fp RSA_private_decrypt RSA_private_encrypt RSA_private_key_from_bytes @@ -1652,6 +1912,8 @@ RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_set_ex_data +RSA_set_flags +RSA_set_method RSA_sign RSA_sign_pss_mgf1 RSA_sign_raw @@ -1666,22 +1928,30 @@ RSA_verify_raw SHA1 SHA1_Final SHA1_Init +SHA1_Init_from_state SHA1_Transform SHA1_Update +SHA1_get_state SHA224 SHA224_Final SHA224_Init +SHA224_Init_from_state SHA224_Update +SHA224_get_state SHA256 SHA256_Final SHA256_Init +SHA256_Init_from_state SHA256_Transform SHA256_TransformBlocks SHA256_Update +SHA256_get_state SHA384 SHA384_Final SHA384_Init +SHA384_Init_from_state SHA384_Update +SHA384_get_state SHA3_224 SHA3_256 SHA3_384 @@ -1693,22 +1963,36 @@ SHA3_Reset SHA3_Squeeze SHA3_Update SHA512 +SHA512_224 +SHA512_224_Final +SHA512_224_Init +SHA512_224_Init_from_state +SHA512_224_Update +SHA512_224_get_state SHA512_256 SHA512_256_Final SHA512_256_Init +SHA512_256_Init_from_state SHA512_256_Update +SHA512_256_get_state SHA512_Final SHA512_Init +SHA512_Init_from_state SHA512_Transform SHA512_Update +SHA512_get_state SHAKE128 SHAKE256 +SHAKE_Final +SHAKE_Init SIPHASH_24 SPAKE2_CTX_free SPAKE2_CTX_new SPAKE2_generate_msg SPAKE2_process_msg SSHKDF +SSKDF_digest +SSKDF_hmac SSLeay SSLeay_version TRUST_TOKEN_CLIENT_add_key @@ -1726,7 +2010,6 @@ TRUST_TOKEN_ISSUER_issue TRUST_TOKEN_ISSUER_new TRUST_TOKEN_ISSUER_redeem TRUST_TOKEN_ISSUER_redeem_over_message -TRUST_TOKEN_ISSUER_redeem_raw TRUST_TOKEN_ISSUER_set_metadata_key TRUST_TOKEN_ISSUER_set_srr_key TRUST_TOKEN_PRETOKEN_free @@ -1738,6 +2021,8 @@ TRUST_TOKEN_experiment_v2_voprf TRUST_TOKEN_free TRUST_TOKEN_generate_key TRUST_TOKEN_new +TRUST_TOKEN_pst_v1_pmb +TRUST_TOKEN_pst_v1_voprf USERNOTICE_free USERNOTICE_it USERNOTICE_new @@ -1748,10 +2033,9 @@ X509V3_EXT_CRL_add_nconf X509V3_EXT_REQ_add_nconf X509V3_EXT_add X509V3_EXT_add_alias -X509V3_EXT_add_list X509V3_EXT_add_nconf X509V3_EXT_add_nconf_sk -X509V3_EXT_cleanup +X509V3_EXT_conf X509V3_EXT_conf_nid X509V3_EXT_d2i X509V3_EXT_free @@ -1762,7 +2046,6 @@ X509V3_EXT_nconf X509V3_EXT_nconf_nid X509V3_EXT_print X509V3_EXT_print_fp -X509V3_EXT_val_prn X509V3_add1_i2d X509V3_add_standard_extensions X509V3_conf_free @@ -1807,7 +2090,6 @@ X509_CRL_add1_ext_i2d X509_CRL_add_ext X509_CRL_cmp X509_CRL_delete_ext -X509_CRL_diff X509_CRL_digest X509_CRL_dup X509_CRL_free @@ -1829,6 +2111,7 @@ X509_CRL_get_lastUpdate X509_CRL_get_nextUpdate X509_CRL_get_signature_nid X509_CRL_get_version +X509_CRL_http_nbio X509_CRL_it X509_CRL_match X509_CRL_new @@ -1859,15 +2142,12 @@ X509_EXTENSION_set_critical X509_EXTENSION_set_data X509_EXTENSION_set_object X509_INFO_free -X509_INFO_new -X509_LOOKUP_by_subject +X509_LOOKUP_add_dir X509_LOOKUP_ctrl X509_LOOKUP_file X509_LOOKUP_free X509_LOOKUP_hash_dir -X509_LOOKUP_init -X509_LOOKUP_new -X509_LOOKUP_shutdown +X509_LOOKUP_load_file X509_NAME_ENTRY_create_by_NID X509_NAME_ENTRY_create_by_OBJ X509_NAME_ENTRY_create_by_txt @@ -1905,25 +2185,22 @@ X509_NAME_print X509_NAME_print_ex X509_NAME_print_ex_fp X509_NAME_set -X509_OBJECT_free_contents +X509_OBJECT_free X509_OBJECT_get0_X509 +X509_OBJECT_get0_X509_CRL X509_OBJECT_get_type -X509_OBJECT_idx_by_subject -X509_OBJECT_retrieve_by_subject -X509_OBJECT_retrieve_match -X509_OBJECT_up_ref_count -X509_PKEY_free -X509_PKEY_new +X509_OBJECT_new +X509_OBJECT_set1_X509 +X509_OBJECT_set1_X509_CRL X509_PUBKEY_free X509_PUBKEY_get +X509_PUBKEY_get0 X509_PUBKEY_get0_param X509_PUBKEY_get0_public_key X509_PUBKEY_it X509_PUBKEY_new X509_PUBKEY_set X509_PUBKEY_set0_param -X509_PURPOSE_add -X509_PURPOSE_cleanup X509_PURPOSE_get0 X509_PURPOSE_get0_name X509_PURPOSE_get0_sname @@ -1948,6 +2225,7 @@ X509_REQ_digest X509_REQ_dup X509_REQ_extension_nid X509_REQ_free +X509_REQ_get0_pubkey X509_REQ_get0_signature X509_REQ_get1_email X509_REQ_get_attr @@ -2005,8 +2283,11 @@ X509_STORE_CTX_get0_param X509_STORE_CTX_get0_parent_ctx X509_STORE_CTX_get0_store X509_STORE_CTX_get0_untrusted +X509_STORE_CTX_get1_certs X509_STORE_CTX_get1_chain +X509_STORE_CTX_get1_crls X509_STORE_CTX_get1_issuer +X509_STORE_CTX_get_by_subject X509_STORE_CTX_get_chain X509_STORE_CTX_get_current_cert X509_STORE_CTX_get_error @@ -2015,7 +2296,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 @@ -2032,49 +2312,29 @@ X509_STORE_CTX_set_time_posix X509_STORE_CTX_set_trust X509_STORE_CTX_set_verify_cb X509_STORE_CTX_trusted_stack -X509_STORE_CTX_zero X509_STORE_add_cert X509_STORE_add_crl X509_STORE_add_lookup X509_STORE_free X509_STORE_get0_objects X509_STORE_get0_param -X509_STORE_get1_certs -X509_STORE_get1_crls -X509_STORE_get_by_subject -X509_STORE_get_cert_crl -X509_STORE_get_check_crl -X509_STORE_get_check_issued -X509_STORE_get_check_revocation -X509_STORE_get_cleanup -X509_STORE_get_get_crl -X509_STORE_get_get_issuer -X509_STORE_get_lookup_certs -X509_STORE_get_lookup_crls -X509_STORE_get_verify -X509_STORE_get_verify_cb +X509_STORE_get_ex_data +X509_STORE_get_ex_new_index X509_STORE_load_locations +X509_STORE_lock X509_STORE_new X509_STORE_set1_param -X509_STORE_set_cert_crl X509_STORE_set_check_crl -X509_STORE_set_check_issued -X509_STORE_set_check_revocation -X509_STORE_set_cleanup X509_STORE_set_default_paths X509_STORE_set_depth +X509_STORE_set_ex_data X509_STORE_set_flags X509_STORE_set_get_crl -X509_STORE_set_get_issuer -X509_STORE_set_lookup_certs -X509_STORE_set_lookup_crls X509_STORE_set_purpose X509_STORE_set_trust -X509_STORE_set_verify X509_STORE_set_verify_cb +X509_STORE_unlock X509_STORE_up_ref -X509_TRUST_add -X509_TRUST_cleanup X509_TRUST_get0 X509_TRUST_get0_name X509_TRUST_get_by_id @@ -2086,25 +2346,18 @@ X509_VAL_free X509_VAL_it X509_VAL_new X509_VERIFY_PARAM_add0_policy -X509_VERIFY_PARAM_add0_table X509_VERIFY_PARAM_add1_host X509_VERIFY_PARAM_clear_flags X509_VERIFY_PARAM_free -X509_VERIFY_PARAM_get0 -X509_VERIFY_PARAM_get0_name -X509_VERIFY_PARAM_get0_peername -X509_VERIFY_PARAM_get_count X509_VERIFY_PARAM_get_depth X509_VERIFY_PARAM_get_flags X509_VERIFY_PARAM_inherit -X509_VERIFY_PARAM_lookup X509_VERIFY_PARAM_new X509_VERIFY_PARAM_set1 X509_VERIFY_PARAM_set1_email X509_VERIFY_PARAM_set1_host X509_VERIFY_PARAM_set1_ip X509_VERIFY_PARAM_set1_ip_asc -X509_VERIFY_PARAM_set1_name X509_VERIFY_PARAM_set1_policies X509_VERIFY_PARAM_set_depth X509_VERIFY_PARAM_set_flags @@ -2113,7 +2366,6 @@ X509_VERIFY_PARAM_set_purpose X509_VERIFY_PARAM_set_time X509_VERIFY_PARAM_set_time_posix X509_VERIFY_PARAM_set_trust -X509_VERIFY_PARAM_table_cleanup X509_add1_ext_i2d X509_add1_reject_object X509_add1_trust_object @@ -2121,7 +2373,6 @@ X509_add_ext X509_alias_get0 X509_alias_set1 X509_chain_up_ref -X509_check_akid X509_check_ca X509_check_email X509_check_host @@ -2148,6 +2399,7 @@ X509_get0_authority_serial X509_get0_extensions X509_get0_notAfter X509_get0_notBefore +X509_get0_pubkey X509_get0_pubkey_bitstr X509_get0_serialNumber X509_get0_signature @@ -2180,6 +2432,7 @@ X509_get_notBefore X509_get_pathlen X509_get_pubkey X509_get_serialNumber +X509_get_signature_info X509_get_signature_nid X509_get_subject_name X509_get_version @@ -2230,15 +2483,6 @@ X509_up_ref X509_verify X509_verify_cert X509_verify_cert_error_string -X509at_add1_attr -X509at_add1_attr_by_NID -X509at_add1_attr_by_OBJ -X509at_add1_attr_by_txt -X509at_delete_attr -X509at_get_attr -X509at_get_attr_by_NID -X509at_get_attr_by_OBJ -X509at_get_attr_count X509v3_add_ext X509v3_delete_ext X509v3_get_ext @@ -2246,7 +2490,6 @@ X509v3_get_ext_by_NID X509v3_get_ext_by_OBJ X509v3_get_ext_by_critical X509v3_get_ext_count -a2i_GENERAL_NAME a2i_IPADDRESS a2i_IPADDRESS_NC aes_hw_xts_cipher @@ -2256,6 +2499,7 @@ asn1_utctime_to_tm awslc_api_version_num awslc_version_string bn_abs_sub_consttime +bn_assert_fits_in_bytes bn_div_consttime bn_is_relatively_prime bn_lcm_consttime @@ -2322,6 +2566,7 @@ d2i_DSA_PUBKEY_fp d2i_DSA_SIG d2i_DSAparams d2i_ECDSA_SIG +d2i_ECPKParameters_bio d2i_ECParameters d2i_ECPrivateKey d2i_ECPrivateKey_bio @@ -2329,7 +2574,6 @@ d2i_ECPrivateKey_fp d2i_EC_PUBKEY d2i_EC_PUBKEY_bio d2i_EC_PUBKEY_fp -d2i_EDIPARTYNAME d2i_EXTENDED_KEY_USAGE d2i_GENERAL_NAME d2i_GENERAL_NAMES @@ -2339,18 +2583,30 @@ d2i_NETSCAPE_SPKI d2i_NOTICEREF d2i_OCSP_BASICRESP d2i_OCSP_CERTID -d2i_OCSP_CERTSTATUS +d2i_OCSP_ONEREQ +d2i_OCSP_REQINFO +d2i_OCSP_REQUEST +d2i_OCSP_REQUEST_bio d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA -d2i_OCSP_RESPID d2i_OCSP_RESPONSE +d2i_OCSP_RESPONSE_bio d2i_OCSP_REVOKEDINFO +d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP -d2i_OTHERNAME d2i_PKCS12 d2i_PKCS12_bio d2i_PKCS12_fp d2i_PKCS7 +d2i_PKCS7_DIGEST +d2i_PKCS7_ENCRYPT +d2i_PKCS7_ENC_CONTENT +d2i_PKCS7_ENVELOPE +d2i_PKCS7_ISSUER_AND_SERIAL +d2i_PKCS7_RECIP_INFO +d2i_PKCS7_SIGNED +d2i_PKCS7_SIGNER_INFO +d2i_PKCS7_SIGN_ENVELOPE d2i_PKCS7_bio d2i_PKCS8PrivateKey_bio d2i_PKCS8PrivateKey_fp @@ -2361,8 +2617,6 @@ d2i_PKCS8_bio d2i_PKCS8_fp d2i_POLICYINFO d2i_POLICYQUALINFO -d2i_PROXY_CERT_INFO_EXTENSION -d2i_PROXY_POLICY d2i_PUBKEY d2i_PUBKEY_bio d2i_PUBKEY_fp @@ -2406,11 +2660,15 @@ d2i_X509_VAL d2i_X509_bio d2i_X509_fp ec_bignum_to_scalar +ec_hash_to_curve_p256_xmd_sha256_sswu +ec_hash_to_curve_p384_xmd_sha384_sswu ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +ec_hash_to_scalar_p384_xmd_sha384 ec_hash_to_scalar_p384_xmd_sha512_draft07 +ec_jacobian_to_affine ec_point_mul_scalar_public +ec_scalar_from_bytes ec_scalar_to_bytes -i2a_ACCESS_DESCRIPTION i2a_ASN1_ENUMERATED i2a_ASN1_INTEGER i2a_ASN1_OBJECT @@ -2461,6 +2719,7 @@ i2d_DSA_PUBKEY_fp i2d_DSA_SIG i2d_DSAparams i2d_ECDSA_SIG +i2d_ECPKParameters_bio i2d_ECParameters i2d_ECPrivateKey i2d_ECPrivateKey_bio @@ -2468,7 +2727,6 @@ i2d_ECPrivateKey_fp i2d_EC_PUBKEY i2d_EC_PUBKEY_bio i2d_EC_PUBKEY_fp -i2d_EDIPARTYNAME i2d_EXTENDED_KEY_USAGE i2d_GENERAL_NAME i2d_GENERAL_NAMES @@ -2478,18 +2736,30 @@ i2d_NETSCAPE_SPKI i2d_NOTICEREF i2d_OCSP_BASICRESP i2d_OCSP_CERTID -i2d_OCSP_CERTSTATUS +i2d_OCSP_ONEREQ +i2d_OCSP_REQINFO +i2d_OCSP_REQUEST +i2d_OCSP_REQUEST_bio i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA -i2d_OCSP_RESPID i2d_OCSP_RESPONSE +i2d_OCSP_RESPONSE_bio i2d_OCSP_REVOKEDINFO +i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP -i2d_OTHERNAME i2d_PKCS12 i2d_PKCS12_bio i2d_PKCS12_fp i2d_PKCS7 +i2d_PKCS7_DIGEST +i2d_PKCS7_ENCRYPT +i2d_PKCS7_ENC_CONTENT +i2d_PKCS7_ENVELOPE +i2d_PKCS7_ISSUER_AND_SERIAL +i2d_PKCS7_RECIP_INFO +i2d_PKCS7_SIGNED +i2d_PKCS7_SIGNER_INFO +i2d_PKCS7_SIGN_ENVELOPE i2d_PKCS7_bio i2d_PKCS8PrivateKeyInfo_bio i2d_PKCS8PrivateKeyInfo_fp @@ -2504,8 +2774,6 @@ i2d_PKCS8_bio i2d_PKCS8_fp i2d_POLICYINFO i2d_POLICYQUALINFO -i2d_PROXY_CERT_INFO_EXTENSION -i2d_PROXY_POLICY i2d_PUBKEY i2d_PUBKEY_bio i2d_PUBKEY_fp @@ -2560,47 +2828,16 @@ i2s_ASN1_OCTET_STRING i2t_ASN1_OBJECT i2v_GENERAL_NAME i2v_GENERAL_NAMES -jent_entropy_collector_alloc -jent_entropy_collector_free -jent_entropy_init -jent_entropy_init_ex -jent_entropy_switch_notime_impl -jent_read_entropy -jent_read_entropy_safe -jent_set_fips_failure_callback -jent_version o2i_ECPublicKey pmbtoken_exp1_get_h_for_testing pmbtoken_exp2_get_h_for_testing +pmbtoken_pst1_get_h_for_testing pq_custom_randombytes_init_for_testing pq_custom_randombytes_use_deterministic_for_testing s2i_ASN1_INTEGER s2i_ASN1_OCTET_STRING -sk_deep_copy -sk_delete -sk_delete_if -sk_delete_ptr -sk_dup -sk_find -sk_free -sk_insert -sk_is_sorted -sk_new -sk_new_null -sk_num -sk_pop sk_pop_free -sk_pop_free_ex -sk_push -sk_set -sk_set_cmp_func -sk_shift -sk_sort -sk_value -sk_zero -v2i_GENERAL_NAME -v2i_GENERAL_NAMES -v2i_GENERAL_NAME_ex +voprf_pst1_sign_with_proof_scalar_for_testing x509v3_bytes_to_hex x509v3_cache_extensions x509v3_looks_like_dns_name diff --git a/aws-lc-fips-sys/symbols/x86_64-unknown-linux-gnu.txt b/aws-lc-fips-sys/symbols/x86_64-unknown-linux-gnu.txt index cf757cae9fb..eac63736c42 100644 --- a/aws-lc-fips-sys/symbols/x86_64-unknown-linux-gnu.txt +++ b/aws-lc-fips-sys/symbols/x86_64-unknown-linux-gnu.txt @@ -129,9 +129,11 @@ ASN1_TIME_print ASN1_TIME_set ASN1_TIME_set_posix ASN1_TIME_set_string +ASN1_TIME_set_string_X509 ASN1_TIME_to_generalizedtime ASN1_TIME_to_posix ASN1_TIME_to_time_t +ASN1_TIME_to_tm ASN1_TYPE_cmp ASN1_TYPE_free ASN1_TYPE_get @@ -157,8 +159,10 @@ ASN1_VISIBLESTRING_free ASN1_VISIBLESTRING_it ASN1_VISIBLESTRING_new ASN1_digest +ASN1_dup ASN1_generate_v3 ASN1_get_object +ASN1_i2d_bio ASN1_item_d2i ASN1_item_d2i_bio ASN1_item_d2i_fp @@ -254,6 +258,7 @@ BIO_meth_set_gets BIO_meth_set_puts BIO_meth_set_read BIO_meth_set_write +BIO_method_name BIO_method_type BIO_new BIO_new_bio_pair @@ -274,6 +279,7 @@ BIO_push BIO_puts BIO_read BIO_read_asn1 +BIO_read_ex BIO_read_filename BIO_reset BIO_rw_filename @@ -281,6 +287,7 @@ BIO_s_connect BIO_s_fd BIO_s_file BIO_s_mem +BIO_s_secmem BIO_s_socket BIO_seek BIO_set_callback_arg @@ -318,6 +325,7 @@ BIO_vsnprintf BIO_wpending BIO_write BIO_write_all +BIO_write_ex BIO_write_filename BLAKE2B256 BLAKE2B256_Final @@ -332,12 +340,14 @@ BN_CTX_end BN_CTX_free BN_CTX_get BN_CTX_new +BN_CTX_secure_new BN_CTX_start BN_GENCB_call BN_GENCB_free BN_GENCB_get_arg BN_GENCB_new BN_GENCB_set +BN_GENCB_set_old BN_MONT_CTX_copy BN_MONT_CTX_free BN_MONT_CTX_new @@ -376,6 +386,7 @@ BN_free BN_from_montgomery BN_gcd BN_generate_prime_ex +BN_get_flags BN_get_rfc3526_prime_1536 BN_get_rfc3526_prime_2048 BN_get_rfc3526_prime_3072 @@ -406,6 +417,7 @@ BN_mod_exp BN_mod_exp2_mont BN_mod_exp_mont BN_mod_exp_mont_consttime +BN_mod_exp_mont_consttime_x2 BN_mod_exp_mont_word BN_mod_inverse BN_mod_inverse_blinded @@ -461,7 +473,6 @@ BN_usub BN_value_one BN_zero BORINGSSL_FIPS_abort -BORINGSSL_integrity_test BORINGSSL_self_test BUF_MEM_append BUF_MEM_free @@ -553,6 +564,7 @@ CBS_get_u24_length_prefixed CBS_get_u32 CBS_get_u32le CBS_get_u64 +CBS_get_u64_decimal CBS_get_u64le CBS_get_u8 CBS_get_u8_length_prefixed @@ -561,6 +573,7 @@ CBS_init CBS_is_unsigned_asn1_integer CBS_is_valid_asn1_bitstring CBS_is_valid_asn1_integer +CBS_is_valid_asn1_oid CBS_len CBS_mem_equal CBS_parse_generalized_time @@ -574,14 +587,18 @@ CERTIFICATEPOLICIES_it CERTIFICATEPOLICIES_new CMAC_CTX_copy CMAC_CTX_free +CMAC_CTX_get0_cipher_ctx CMAC_CTX_new CMAC_Final CMAC_Init CMAC_Reset CMAC_Update CONF_VALUE_new +CONF_get1_default_config_file +CONF_modules_finish CONF_modules_free CONF_modules_load_file +CONF_modules_unload CONF_parse_list CRL_DIST_POINTS_free CRL_DIST_POINTS_it @@ -694,19 +711,31 @@ CTR_DRBG_generate CTR_DRBG_init CTR_DRBG_new CTR_DRBG_reseed -ChaCha20_ctr32 +ChaCha20_ctr32_avx2 +ChaCha20_ctr32_nohw +ChaCha20_ctr32_ssse3 +ChaCha20_ctr32_ssse3_4x DES_decrypt3 DES_ecb3_encrypt +DES_ecb3_encrypt_ex DES_ecb_encrypt +DES_ecb_encrypt_ex DES_ede2_cbc_encrypt DES_ede3_cbc_encrypt +DES_ede3_cbc_encrypt_ex DES_encrypt3 +DES_is_weak_key +DES_key_sched DES_ncbc_encrypt +DES_ncbc_encrypt_ex DES_set_key +DES_set_key_ex +DES_set_key_unchecked DES_set_odd_parity DH_bits DH_check DH_check_pub_key +DH_clear_flags DH_compute_key DH_compute_key_hashed DH_compute_key_padded @@ -723,8 +752,12 @@ DH_get0_pub_key DH_get0_q DH_get_2048_256 DH_get_rfc7919_2048 +DH_get_rfc7919_3072 +DH_get_rfc7919_4096 +DH_get_rfc7919_8192 DH_marshal_parameters DH_new +DH_new_by_nid DH_num_bits DH_parse_parameters DH_set0_key @@ -777,6 +810,8 @@ DSA_new DSA_parse_parameters DSA_parse_private_key DSA_parse_public_key +DSA_print +DSA_print_fp DSA_set0_key DSA_set0_pqg DSA_set_ex_data @@ -806,6 +841,7 @@ ECDSA_sign ECDSA_sign_with_nonce_and_leak_private_key_for_testing ECDSA_size ECDSA_verify +ECPKParameters_print EC_GFp_mont_method EC_GFp_nistp224_method EC_GFp_nistp256_method @@ -817,12 +853,14 @@ EC_GROUP_dup EC_GROUP_free EC_GROUP_get0_generator EC_GROUP_get0_order +EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_cofactor EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name EC_GROUP_get_degree EC_GROUP_get_order +EC_GROUP_get_seed_len EC_GROUP_method_of EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp @@ -830,6 +868,13 @@ EC_GROUP_order_bits EC_GROUP_set_asn1_flag EC_GROUP_set_generator EC_GROUP_set_point_conversion_form +EC_GROUP_set_seed +EC_KEY_METHOD_free +EC_KEY_METHOD_new +EC_KEY_METHOD_set_flags +EC_KEY_METHOD_set_init_awslc +EC_KEY_METHOD_set_sign_awslc +EC_KEY_OpenSSL EC_KEY_check_fips EC_KEY_check_key EC_KEY_derive_from_secret @@ -841,9 +886,11 @@ EC_KEY_get0_group EC_KEY_get0_private_key EC_KEY_get0_public_key EC_KEY_get_conv_form +EC_KEY_get_default_method EC_KEY_get_enc_flags EC_KEY_get_ex_data EC_KEY_get_ex_new_index +EC_KEY_get_method EC_KEY_is_opaque EC_KEY_key2buf EC_KEY_keygen_verify_service_indicator @@ -860,12 +907,14 @@ EC_KEY_set_conv_form EC_KEY_set_enc_flags EC_KEY_set_ex_data EC_KEY_set_group +EC_KEY_set_method EC_KEY_set_private_key EC_KEY_set_public_key EC_KEY_set_public_key_affine_coordinates EC_KEY_up_ref EC_METHOD_get_field_type EC_POINT_add +EC_POINT_bn2point EC_POINT_clear_free EC_POINT_cmp EC_POINT_copy @@ -880,6 +929,7 @@ EC_POINT_is_on_curve EC_POINT_mul EC_POINT_new EC_POINT_oct2point +EC_POINT_point2bn EC_POINT_point2cbb EC_POINT_point2oct EC_POINT_set_affine_coordinates @@ -889,21 +939,32 @@ EC_POINT_set_to_infinity EC_curve_nid2nist EC_curve_nist2nid EC_get_builtin_curves +EC_group_p224 +EC_group_p256 +EC_group_p384 +EC_group_p521 +EC_group_secp256k1 +EC_hash_to_curve_p256_xmd_sha256_sswu +EC_hash_to_curve_p384_xmd_sha384_sswu +ED25519_check_public_key ED25519_keypair ED25519_keypair_from_seed ED25519_sign +ED25519_sign_no_self_test ED25519_verify +ED25519_verify_no_self_test EDIPARTYNAME_free EDIPARTYNAME_it EDIPARTYNAME_new +ENGINE_cleanup ENGINE_free -ENGINE_get_ECDSA_method -ENGINE_get_RSA_method +ENGINE_get_EC +ENGINE_get_RSA ENGINE_load_builtin_engines ENGINE_new ENGINE_register_all_complete -ENGINE_set_ECDSA_method -ENGINE_set_RSA_method +ENGINE_set_EC +ENGINE_set_RSA ERR_SAVE_STATE_free ERR_add_error_data ERR_add_error_dataf @@ -919,6 +980,7 @@ ERR_get_error_line_data ERR_get_next_error_library ERR_lib_error_string ERR_load_BIO_strings +ERR_load_CRYPTO_strings ERR_load_ERR_strings ERR_load_RAND_strings ERR_load_crypto_strings @@ -988,6 +1050,7 @@ EVP_CIPHER_flags EVP_CIPHER_iv_length EVP_CIPHER_key_length EVP_CIPHER_mode +EVP_CIPHER_name EVP_CIPHER_nid EVP_Cipher EVP_CipherFinal @@ -1048,6 +1111,9 @@ EVP_HPKE_CTX_max_overhead EVP_HPKE_CTX_new EVP_HPKE_CTX_open EVP_HPKE_CTX_seal +EVP_HPKE_CTX_setup_auth_recipient +EVP_HPKE_CTX_setup_auth_sender +EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing EVP_HPKE_CTX_setup_recipient EVP_HPKE_CTX_setup_sender EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -1064,6 +1130,7 @@ EVP_HPKE_KEY_free EVP_HPKE_KEY_generate EVP_HPKE_KEY_init EVP_HPKE_KEY_kem +EVP_HPKE_KEY_move EVP_HPKE_KEY_new EVP_HPKE_KEY_private_key EVP_HPKE_KEY_public_key @@ -1086,10 +1153,15 @@ EVP_MD_CTX_set_pkey_ctx EVP_MD_CTX_size EVP_MD_CTX_type EVP_MD_block_size +EVP_MD_do_all EVP_MD_do_all_sorted EVP_MD_flags +EVP_MD_get0_name +EVP_MD_get_pkey_type EVP_MD_meth_get_flags +EVP_MD_name EVP_MD_nid +EVP_MD_pkey_type EVP_MD_size EVP_MD_type EVP_MD_unstable_sha3_enable @@ -1099,10 +1171,13 @@ EVP_PKCS82PKEY EVP_PKEY2PKCS8 EVP_PKEY_CTX_add1_hkdf_info EVP_PKEY_CTX_ctrl +EVP_PKEY_CTX_ctrl_str EVP_PKEY_CTX_dup EVP_PKEY_CTX_free EVP_PKEY_CTX_get0_pkey EVP_PKEY_CTX_get0_rsa_oaep_label +EVP_PKEY_CTX_get_app_data +EVP_PKEY_CTX_get_keygen_info EVP_PKEY_CTX_get_rsa_mgf1_md EVP_PKEY_CTX_get_rsa_oaep_md EVP_PKEY_CTX_get_rsa_padding @@ -1110,11 +1185,15 @@ EVP_PKEY_CTX_get_rsa_pss_saltlen EVP_PKEY_CTX_get_signature_md EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_kem_set_params +EVP_PKEY_CTX_md EVP_PKEY_CTX_new EVP_PKEY_CTX_new_id EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set1_hkdf_key EVP_PKEY_CTX_set1_hkdf_salt +EVP_PKEY_CTX_set_app_data +EVP_PKEY_CTX_set_cb +EVP_PKEY_CTX_set_dh_pad EVP_PKEY_CTX_set_dsa_paramgen_bits EVP_PKEY_CTX_set_dsa_paramgen_q_bits EVP_PKEY_CTX_set_ec_param_enc @@ -1130,7 +1209,13 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen EVP_PKEY_CTX_set_rsa_pss_saltlen EVP_PKEY_CTX_set_signature_md +EVP_PKEY_asn1_find +EVP_PKEY_asn1_find_str +EVP_PKEY_asn1_get0 +EVP_PKEY_asn1_get0_info +EVP_PKEY_asn1_get_count EVP_PKEY_assign +EVP_PKEY_assign_DH EVP_PKEY_assign_DSA EVP_PKEY_assign_EC_KEY EVP_PKEY_assign_RSA @@ -1140,13 +1225,17 @@ EVP_PKEY_cmp EVP_PKEY_cmp_parameters EVP_PKEY_copy_parameters EVP_PKEY_decapsulate +EVP_PKEY_decapsulate_verify_service_indicator EVP_PKEY_decrypt EVP_PKEY_decrypt_init EVP_PKEY_derive EVP_PKEY_derive_init EVP_PKEY_derive_set_peer EVP_PKEY_ec_pkey_meth +EVP_PKEY_ed25519_pkey_meth EVP_PKEY_encapsulate +EVP_PKEY_encapsulate_deterministic +EVP_PKEY_encapsulate_verify_service_indicator EVP_PKEY_encrypt EVP_PKEY_encrypt_init EVP_PKEY_free @@ -1163,16 +1252,21 @@ EVP_PKEY_get1_tls_encodedpoint EVP_PKEY_get_raw_private_key EVP_PKEY_get_raw_public_key EVP_PKEY_hkdf_pkey_meth +EVP_PKEY_hmac_pkey_meth EVP_PKEY_id EVP_PKEY_is_opaque +EVP_PKEY_kem_check_key EVP_PKEY_kem_new_raw_key EVP_PKEY_kem_new_raw_public_key EVP_PKEY_kem_new_raw_secret_key +EVP_PKEY_kem_pkey_meth EVP_PKEY_keygen +EVP_PKEY_keygen_deterministic EVP_PKEY_keygen_init EVP_PKEY_keygen_verify_service_indicator EVP_PKEY_missing_parameters EVP_PKEY_new +EVP_PKEY_new_mac_key EVP_PKEY_new_raw_private_key EVP_PKEY_new_raw_public_key EVP_PKEY_paramgen @@ -1182,6 +1276,7 @@ EVP_PKEY_print_private EVP_PKEY_print_public EVP_PKEY_rsa_pkey_meth EVP_PKEY_rsa_pss_pkey_meth +EVP_PKEY_set1_DH EVP_PKEY_set1_DSA EVP_PKEY_set1_EC_KEY EVP_PKEY_set1_RSA @@ -1223,6 +1318,7 @@ EVP_aead_aes_128_gcm_tls13 EVP_aead_aes_192_gcm EVP_aead_aes_256_cbc_sha1_tls EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +EVP_aead_aes_256_cbc_sha384_tls EVP_aead_aes_256_ctr_hmac_sha256 EVP_aead_aes_256_gcm EVP_aead_aes_256_gcm_randnonce @@ -1237,6 +1333,7 @@ EVP_aead_xchacha20_poly1305 EVP_aes_128_cbc EVP_aes_128_cbc_hmac_sha1 EVP_aes_128_cbc_hmac_sha256 +EVP_aes_128_ccm EVP_aes_128_cfb EVP_aes_128_cfb1 EVP_aes_128_cfb128 @@ -1246,6 +1343,7 @@ EVP_aes_128_ecb EVP_aes_128_gcm EVP_aes_128_ofb EVP_aes_192_cbc +EVP_aes_192_ccm EVP_aes_192_cfb EVP_aes_192_cfb1 EVP_aes_192_cfb128 @@ -1257,6 +1355,7 @@ EVP_aes_192_ofb EVP_aes_256_cbc EVP_aes_256_cbc_hmac_sha1 EVP_aes_256_cbc_hmac_sha256 +EVP_aes_256_ccm EVP_aes_256_cfb EVP_aes_256_cfb1 EVP_aes_256_cfb128 @@ -1265,6 +1364,7 @@ EVP_aes_256_ctr EVP_aes_256_ecb EVP_aes_256_gcm EVP_aes_256_ofb +EVP_aes_256_wrap EVP_aes_256_xts EVP_bf_cbc EVP_bf_cfb @@ -1272,6 +1372,7 @@ EVP_bf_ecb EVP_blake2b256 EVP_cast5_cbc EVP_cast5_ecb +EVP_chacha20_poly1305 EVP_cleanup EVP_des_cbc EVP_des_ecb @@ -1283,6 +1384,7 @@ EVP_des_ede_cbc EVP_enc_null EVP_final_with_secret_suffix_sha1 EVP_final_with_secret_suffix_sha256 +EVP_final_with_secret_suffix_sha384 EVP_get_cipherbyname EVP_get_cipherbynid EVP_get_digestbyname @@ -1318,10 +1420,12 @@ EVP_sha3_256 EVP_sha3_384 EVP_sha3_512 EVP_sha512 +EVP_sha512_224 EVP_sha512_256 +EVP_shake128 +EVP_shake256 EVP_tls_cbc_copy_mac EVP_tls_cbc_digest_record -EVP_tls_cbc_digest_record_sha256 EVP_tls_cbc_record_digest_supported EVP_tls_cbc_remove_padding EXTENDED_KEY_USAGE_free @@ -1369,9 +1473,14 @@ HMAC_CTX_reset HMAC_Final HMAC_Init HMAC_Init_ex +HMAC_Init_from_precomputed_key +HMAC_KEY_new HMAC_Update +HMAC_get_precomputed_key +HMAC_set_precomputed_key_export HMAC_size HMAC_verify_service_indicator +HMAC_with_precompute HRSS_decap HRSS_encap HRSS_generate_key @@ -1382,6 +1491,8 @@ HRSS_poly3_mul ISSUING_DIST_POINT_free ISSUING_DIST_POINT_it ISSUING_DIST_POINT_new +KBKDF_ctr_hmac +KBKDF_ctr_hmac_verify_service_indicator KEM_KEY_free KEM_KEY_get0_kem KEM_KEY_init @@ -1398,10 +1509,10 @@ MD4_Update MD5 MD5_Final MD5_Init +MD5_Init_from_state MD5_Transform MD5_Update -METHOD_ref -METHOD_unref +MD5_get_state MGF1 NAME_CONSTRAINTS_check NAME_CONSTRAINTS_free @@ -1422,12 +1533,14 @@ NETSCAPE_SPKI_free NETSCAPE_SPKI_get_pubkey NETSCAPE_SPKI_it NETSCAPE_SPKI_new +NETSCAPE_SPKI_print NETSCAPE_SPKI_set_pubkey NETSCAPE_SPKI_sign NETSCAPE_SPKI_verify NOTICEREF_free NOTICEREF_it NOTICEREF_new +OBJ_NAME_do_all_sorted OBJ_cbs2nid OBJ_cleanup OBJ_cmp @@ -1436,6 +1549,7 @@ OBJ_dup OBJ_find_sigid_algs OBJ_find_sigid_by_algs OBJ_get0_data +OBJ_get_undef OBJ_length OBJ_ln2nid OBJ_nid2cbb @@ -1447,47 +1561,105 @@ 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 OCSP_BASICRESP_it OCSP_BASICRESP_new +OCSP_CERTID_dup OCSP_CERTID_free OCSP_CERTID_it OCSP_CERTID_new -OCSP_CERTSTATUS_free OCSP_CERTSTATUS_it -OCSP_CERTSTATUS_new +OCSP_ONEREQ_free +OCSP_ONEREQ_it +OCSP_ONEREQ_new +OCSP_REQINFO_free +OCSP_REQINFO_it +OCSP_REQINFO_new +OCSP_REQUEST_free +OCSP_REQUEST_get_ext +OCSP_REQUEST_get_ext_by_NID +OCSP_REQUEST_it +OCSP_REQUEST_new +OCSP_REQUEST_print +OCSP_REQ_CTX_add1_header +OCSP_REQ_CTX_free +OCSP_REQ_CTX_get0_mem_bio +OCSP_REQ_CTX_http +OCSP_REQ_CTX_i2d +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 -OCSP_RESPID_free OCSP_RESPID_it -OCSP_RESPID_new 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 +OCSP_SINGLERESP_add_ext OCSP_SINGLERESP_free +OCSP_SINGLERESP_get0_id +OCSP_SINGLERESP_get_ext +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 OCSP_id_issuer_cmp +OCSP_onereq_get0_id +OCSP_parse_url +OCSP_request_add0_id +OCSP_request_add1_cert +OCSP_request_add1_nonce +OCSP_request_is_signed +OCSP_request_onereq_count +OCSP_request_onereq_get0 +OCSP_request_set1_name +OCSP_request_sign +OCSP_request_verify +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 +OCSP_sendreq_bio +OCSP_sendreq_nbio +OCSP_sendreq_new +OCSP_set_max_response_length OCSP_single_get0_status OPENSSL_add_all_algorithms_conf OPENSSL_asprintf -OPENSSL_built_in_curves +OPENSSL_calloc OPENSSL_cleanse OPENSSL_cleanup OPENSSL_clear_free @@ -1495,13 +1667,21 @@ OPENSSL_config OPENSSL_cpucap_initialized OPENSSL_cpuid_setup OPENSSL_free +OPENSSL_fromxdigit OPENSSL_gmtime OPENSSL_gmtime_adj OPENSSL_gmtime_diff OPENSSL_hash32 +OPENSSL_hexstr2buf OPENSSL_ia32cap_P OPENSSL_ia32cap_get +OPENSSL_init OPENSSL_init_crypto +OPENSSL_isalnum +OPENSSL_isalpha +OPENSSL_isdigit +OPENSSL_isspace +OPENSSL_isxdigit OPENSSL_lh_delete OPENSSL_lh_doall_arg OPENSSL_lh_free @@ -1519,6 +1699,29 @@ OPENSSL_posix_to_tm OPENSSL_realloc OPENSSL_secure_clear_free OPENSSL_secure_malloc +OPENSSL_secure_zalloc +OPENSSL_sk_deep_copy +OPENSSL_sk_delete +OPENSSL_sk_delete_if +OPENSSL_sk_delete_ptr +OPENSSL_sk_dup +OPENSSL_sk_find +OPENSSL_sk_free +OPENSSL_sk_insert +OPENSSL_sk_is_sorted +OPENSSL_sk_new +OPENSSL_sk_new_null +OPENSSL_sk_num +OPENSSL_sk_pop +OPENSSL_sk_pop_free_ex +OPENSSL_sk_push +OPENSSL_sk_set +OPENSSL_sk_set_cmp_func +OPENSSL_sk_shift +OPENSSL_sk_sort +OPENSSL_sk_unshift +OPENSSL_sk_value +OPENSSL_sk_zero OPENSSL_strcasecmp OPENSSL_strdup OPENSSL_strhash @@ -1532,7 +1735,7 @@ OPENSSL_tm_to_posix OPENSSL_tolower OPENSSL_vasprintf OPENSSL_vasprintf_internal -OTHERNAME_cmp +OPENSSL_zalloc OTHERNAME_free OTHERNAME_it OTHERNAME_new @@ -1550,10 +1753,8 @@ PEM_X509_INFO_read PEM_X509_INFO_read_bio PEM_bytes_read_bio PEM_def_callback -PEM_dek_info PEM_do_header PEM_get_EVP_CIPHER_INFO -PEM_proc_type PEM_read PEM_read_DHparams PEM_read_DSAPrivateKey @@ -1578,12 +1779,14 @@ PEM_read_bio_DHparams PEM_read_bio_DSAPrivateKey PEM_read_bio_DSA_PUBKEY PEM_read_bio_DSAparams +PEM_read_bio_ECPKParameters PEM_read_bio_ECPrivateKey PEM_read_bio_EC_PUBKEY PEM_read_bio_PKCS7 PEM_read_bio_PKCS8 PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_PUBKEY +PEM_read_bio_Parameters PEM_read_bio_PrivateKey PEM_read_bio_RSAPrivateKey PEM_read_bio_RSAPublicKey @@ -1619,6 +1822,7 @@ PEM_write_bio_DHparams PEM_write_bio_DSAPrivateKey PEM_write_bio_DSA_PUBKEY PEM_write_bio_DSAparams +PEM_write_bio_ECPKParameters PEM_write_bio_ECPrivateKey PEM_write_bio_EC_PUBKEY PEM_write_bio_PKCS7 @@ -1627,7 +1831,9 @@ PEM_write_bio_PKCS8PrivateKey PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_PUBKEY +PEM_write_bio_Parameters PEM_write_bio_PrivateKey +PEM_write_bio_PrivateKey_traditional PEM_write_bio_RSAPrivateKey PEM_write_bio_RSAPublicKey PEM_write_bio_RSA_PUBKEY @@ -1640,21 +1846,67 @@ PKCS12_PBE_add PKCS12_create PKCS12_free PKCS12_get_key_and_certs +PKCS12_new PKCS12_parse PKCS12_verify_mac +PKCS1_MGF1 PKCS5_PBKDF2_HMAC PKCS5_PBKDF2_HMAC_SHA1 PKCS5_pbe2_decrypt_init PKCS5_pbe2_encrypt_init +PKCS7_DIGEST_free +PKCS7_DIGEST_it +PKCS7_DIGEST_new +PKCS7_ENCRYPT_free +PKCS7_ENCRYPT_it +PKCS7_ENCRYPT_new +PKCS7_ENC_CONTENT_free +PKCS7_ENC_CONTENT_it +PKCS7_ENC_CONTENT_new +PKCS7_ENVELOPE_free +PKCS7_ENVELOPE_it +PKCS7_ENVELOPE_new +PKCS7_ISSUER_AND_SERIAL_free +PKCS7_ISSUER_AND_SERIAL_it +PKCS7_ISSUER_AND_SERIAL_new +PKCS7_RECIP_INFO_free +PKCS7_RECIP_INFO_get0_alg +PKCS7_RECIP_INFO_it +PKCS7_RECIP_INFO_new +PKCS7_RECIP_INFO_set +PKCS7_SIGNED_free +PKCS7_SIGNED_it +PKCS7_SIGNED_new +PKCS7_SIGNER_INFO_free +PKCS7_SIGNER_INFO_get0_algs +PKCS7_SIGNER_INFO_it +PKCS7_SIGNER_INFO_new +PKCS7_SIGNER_INFO_set +PKCS7_SIGN_ENVELOPE_free +PKCS7_SIGN_ENVELOPE_it +PKCS7_SIGN_ENVELOPE_new +PKCS7_add_certificate +PKCS7_add_crl +PKCS7_add_recipient_info +PKCS7_add_signer PKCS7_bundle_CRLs PKCS7_bundle_certificates PKCS7_bundle_raw_certificates +PKCS7_content_new +PKCS7_dup PKCS7_free PKCS7_get_CRLs PKCS7_get_PEM_CRLs PKCS7_get_PEM_certificates PKCS7_get_certificates PKCS7_get_raw_certificates +PKCS7_get_signed_attribute +PKCS7_get_signer_info +PKCS7_it +PKCS7_new +PKCS7_set_cipher +PKCS7_set_content +PKCS7_set_type PKCS7_sign PKCS7_type_is_data PKCS7_type_is_digest @@ -1682,12 +1934,6 @@ POLICY_MAPPINGS_it POLICY_MAPPING_free POLICY_MAPPING_it POLICY_MAPPING_new -PROXY_CERT_INFO_EXTENSION_free -PROXY_CERT_INFO_EXTENSION_it -PROXY_CERT_INFO_EXTENSION_new -PROXY_POLICY_free -PROXY_POLICY_it -PROXY_POLICY_new RAND_OpenSSL RAND_SSLeay RAND_add @@ -1695,18 +1941,22 @@ RAND_bytes RAND_bytes_with_additional_data RAND_cleanup RAND_egd +RAND_egd_bytes RAND_enable_fork_unsafe_buffering RAND_file_name RAND_get_rand_method RAND_get_system_entropy_for_custom_prng +RAND_keep_random_devices_open RAND_load_entropy RAND_load_file RAND_module_entropy_depleted RAND_poll +RAND_priv_bytes RAND_pseudo_bytes RAND_seed RAND_set_rand_method RAND_status +RAND_write_file RC4 RC4_set_key RIPEMD160 @@ -1721,6 +1971,7 @@ RSASSA_PSS_PARAMS_get RSASSA_PSS_PARAMS_new RSASSA_PSS_parse_params RSAZ_1024_mod_exp_avx2 +RSAZ_mod_exp_avx512_x2 RSA_ALGOR_IDENTIFIER_free RSA_ALGOR_IDENTIFIER_new RSA_INTEGER_free @@ -1732,11 +1983,11 @@ RSA_PSS_PARAMS_it RSA_PSS_PARAMS_new RSA_add_pkcs1_prefix RSA_bits +RSA_blinding_off_temp_for_accp_compatibility RSA_blinding_on RSA_check_fips RSA_check_key RSA_decrypt -RSA_default_method RSA_encrypt RSA_flags RSA_free @@ -1755,31 +2006,49 @@ RSA_get0_n RSA_get0_p RSA_get0_pss_params RSA_get0_q +RSA_get_default_method RSA_get_ex_data RSA_get_ex_new_index +RSA_get_method RSA_is_opaque RSA_marshal_private_key RSA_marshal_public_key +RSA_meth_free +RSA_meth_new +RSA_meth_set0_app_data +RSA_meth_set_finish +RSA_meth_set_init +RSA_meth_set_priv_dec +RSA_meth_set_priv_enc +RSA_meth_set_pub_dec +RSA_meth_set_pub_enc +RSA_meth_set_sign RSA_new RSA_new_method +RSA_new_method_no_e +RSA_new_private_key +RSA_new_private_key_large_e +RSA_new_private_key_no_crt +RSA_new_private_key_no_e +RSA_new_public_key +RSA_new_public_key_large_e RSA_padding_add_PKCS1_OAEP RSA_padding_add_PKCS1_OAEP_mgf1 RSA_padding_add_PKCS1_PSS RSA_padding_add_PKCS1_PSS_mgf1 RSA_padding_add_PKCS1_type_1 -RSA_padding_add_PKCS1_type_2 RSA_padding_add_none RSA_padding_check_PKCS1_OAEP_mgf1 RSA_padding_check_PKCS1_type_1 -RSA_padding_check_PKCS1_type_2 RSA_parse_private_key RSA_parse_public_key +RSA_pkey_ctx_ctrl RSA_print +RSA_print_fp RSA_private_decrypt RSA_private_encrypt RSA_private_key_from_bytes RSA_private_key_to_bytes -RSA_private_transform RSA_public_decrypt RSA_public_encrypt RSA_public_key_from_bytes @@ -1788,13 +2057,14 @@ RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_set_ex_data +RSA_set_flags +RSA_set_method RSA_sign RSA_sign_pss_mgf1 RSA_sign_raw RSA_size RSA_test_flags RSA_up_ref -RSA_validate_key RSA_verify RSA_verify_PKCS1_PSS RSA_verify_PKCS1_PSS_mgf1 @@ -1803,22 +2073,30 @@ RSA_verify_raw SHA1 SHA1_Final SHA1_Init +SHA1_Init_from_state SHA1_Transform SHA1_Update +SHA1_get_state SHA224 SHA224_Final SHA224_Init +SHA224_Init_from_state SHA224_Update +SHA224_get_state SHA256 SHA256_Final SHA256_Init +SHA256_Init_from_state SHA256_Transform SHA256_TransformBlocks SHA256_Update +SHA256_get_state SHA384 SHA384_Final SHA384_Init +SHA384_Init_from_state SHA384_Update +SHA384_get_state SHA3_224 SHA3_256 SHA3_384 @@ -1830,16 +2108,28 @@ SHA3_Reset SHA3_Squeeze SHA3_Update SHA512 +SHA512_224 +SHA512_224_Final +SHA512_224_Init +SHA512_224_Init_from_state +SHA512_224_Update +SHA512_224_get_state SHA512_256 SHA512_256_Final SHA512_256_Init +SHA512_256_Init_from_state SHA512_256_Update +SHA512_256_get_state SHA512_Final SHA512_Init +SHA512_Init_from_state SHA512_Transform SHA512_Update +SHA512_get_state SHAKE128 SHAKE256 +SHAKE_Final +SHAKE_Init SIPHASH_24 SPAKE2_CTX_free SPAKE2_CTX_new @@ -1847,6 +2137,10 @@ SPAKE2_generate_msg SPAKE2_process_msg SSHKDF SSHKDF_verify_service_indicator +SSKDF_digest +SSKDF_digest_verify_service_indicator +SSKDF_hmac +SSKDF_hmac_verify_service_indicator SSLeay SSLeay_version TLSKDF_verify_service_indicator @@ -1865,7 +2159,6 @@ TRUST_TOKEN_ISSUER_issue TRUST_TOKEN_ISSUER_new TRUST_TOKEN_ISSUER_redeem TRUST_TOKEN_ISSUER_redeem_over_message -TRUST_TOKEN_ISSUER_redeem_raw TRUST_TOKEN_ISSUER_set_metadata_key TRUST_TOKEN_ISSUER_set_srr_key TRUST_TOKEN_PRETOKEN_free @@ -1877,6 +2170,8 @@ TRUST_TOKEN_experiment_v2_voprf TRUST_TOKEN_free TRUST_TOKEN_generate_key TRUST_TOKEN_new +TRUST_TOKEN_pst_v1_pmb +TRUST_TOKEN_pst_v1_voprf USERNOTICE_free USERNOTICE_it USERNOTICE_new @@ -1889,10 +2184,9 @@ X509V3_EXT_CRL_add_nconf X509V3_EXT_REQ_add_nconf X509V3_EXT_add X509V3_EXT_add_alias -X509V3_EXT_add_list X509V3_EXT_add_nconf X509V3_EXT_add_nconf_sk -X509V3_EXT_cleanup +X509V3_EXT_conf X509V3_EXT_conf_nid X509V3_EXT_d2i X509V3_EXT_free @@ -1903,13 +2197,13 @@ X509V3_EXT_nconf X509V3_EXT_nconf_nid X509V3_EXT_print X509V3_EXT_print_fp -X509V3_EXT_val_prn X509V3_NAME_from_section X509V3_add1_i2d X509V3_add_standard_extensions X509V3_add_value X509V3_add_value_bool X509V3_add_value_int +X509V3_bool_from_string X509V3_conf_free X509V3_extensions_print X509V3_get_d2i @@ -1956,7 +2250,6 @@ X509_CRL_add1_ext_i2d X509_CRL_add_ext X509_CRL_cmp X509_CRL_delete_ext -X509_CRL_diff X509_CRL_digest X509_CRL_dup X509_CRL_free @@ -1978,6 +2271,7 @@ X509_CRL_get_lastUpdate X509_CRL_get_nextUpdate X509_CRL_get_signature_nid X509_CRL_get_version +X509_CRL_http_nbio X509_CRL_it X509_CRL_match X509_CRL_new @@ -2008,15 +2302,12 @@ X509_EXTENSION_set_critical X509_EXTENSION_set_data X509_EXTENSION_set_object X509_INFO_free -X509_INFO_new -X509_LOOKUP_by_subject +X509_LOOKUP_add_dir X509_LOOKUP_ctrl X509_LOOKUP_file X509_LOOKUP_free X509_LOOKUP_hash_dir -X509_LOOKUP_init -X509_LOOKUP_new -X509_LOOKUP_shutdown +X509_LOOKUP_load_file X509_NAME_ENTRIES_it X509_NAME_ENTRY_create_by_NID X509_NAME_ENTRY_create_by_OBJ @@ -2056,25 +2347,23 @@ X509_NAME_print X509_NAME_print_ex X509_NAME_print_ex_fp X509_NAME_set +X509_OBJECT_free X509_OBJECT_free_contents X509_OBJECT_get0_X509 +X509_OBJECT_get0_X509_CRL X509_OBJECT_get_type -X509_OBJECT_idx_by_subject -X509_OBJECT_retrieve_by_subject -X509_OBJECT_retrieve_match -X509_OBJECT_up_ref_count -X509_PKEY_free -X509_PKEY_new +X509_OBJECT_new +X509_OBJECT_set1_X509 +X509_OBJECT_set1_X509_CRL X509_PUBKEY_free X509_PUBKEY_get +X509_PUBKEY_get0 X509_PUBKEY_get0_param X509_PUBKEY_get0_public_key X509_PUBKEY_it X509_PUBKEY_new X509_PUBKEY_set X509_PUBKEY_set0_param -X509_PURPOSE_add -X509_PURPOSE_cleanup X509_PURPOSE_get0 X509_PURPOSE_get0_name X509_PURPOSE_get0_sname @@ -2099,6 +2388,7 @@ X509_REQ_digest X509_REQ_dup X509_REQ_extension_nid X509_REQ_free +X509_REQ_get0_pubkey X509_REQ_get0_signature X509_REQ_get1_email X509_REQ_get_attr @@ -2156,8 +2446,11 @@ X509_STORE_CTX_get0_param X509_STORE_CTX_get0_parent_ctx X509_STORE_CTX_get0_store X509_STORE_CTX_get0_untrusted +X509_STORE_CTX_get1_certs X509_STORE_CTX_get1_chain +X509_STORE_CTX_get1_crls X509_STORE_CTX_get1_issuer +X509_STORE_CTX_get_by_subject X509_STORE_CTX_get_chain X509_STORE_CTX_get_current_cert X509_STORE_CTX_get_error @@ -2166,7 +2459,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 @@ -2183,49 +2475,29 @@ X509_STORE_CTX_set_time_posix X509_STORE_CTX_set_trust X509_STORE_CTX_set_verify_cb X509_STORE_CTX_trusted_stack -X509_STORE_CTX_zero X509_STORE_add_cert X509_STORE_add_crl X509_STORE_add_lookup X509_STORE_free X509_STORE_get0_objects X509_STORE_get0_param -X509_STORE_get1_certs -X509_STORE_get1_crls -X509_STORE_get_by_subject -X509_STORE_get_cert_crl -X509_STORE_get_check_crl -X509_STORE_get_check_issued -X509_STORE_get_check_revocation -X509_STORE_get_cleanup -X509_STORE_get_get_crl -X509_STORE_get_get_issuer -X509_STORE_get_lookup_certs -X509_STORE_get_lookup_crls -X509_STORE_get_verify -X509_STORE_get_verify_cb +X509_STORE_get_ex_data +X509_STORE_get_ex_new_index X509_STORE_load_locations +X509_STORE_lock X509_STORE_new X509_STORE_set1_param -X509_STORE_set_cert_crl X509_STORE_set_check_crl -X509_STORE_set_check_issued -X509_STORE_set_check_revocation -X509_STORE_set_cleanup X509_STORE_set_default_paths X509_STORE_set_depth +X509_STORE_set_ex_data X509_STORE_set_flags X509_STORE_set_get_crl -X509_STORE_set_get_issuer -X509_STORE_set_lookup_certs -X509_STORE_set_lookup_crls X509_STORE_set_purpose X509_STORE_set_trust -X509_STORE_set_verify X509_STORE_set_verify_cb +X509_STORE_unlock X509_STORE_up_ref -X509_TRUST_add -X509_TRUST_cleanup X509_TRUST_get0 X509_TRUST_get0_name X509_TRUST_get_by_id @@ -2237,14 +2509,9 @@ X509_VAL_free X509_VAL_it X509_VAL_new X509_VERIFY_PARAM_add0_policy -X509_VERIFY_PARAM_add0_table X509_VERIFY_PARAM_add1_host X509_VERIFY_PARAM_clear_flags X509_VERIFY_PARAM_free -X509_VERIFY_PARAM_get0 -X509_VERIFY_PARAM_get0_name -X509_VERIFY_PARAM_get0_peername -X509_VERIFY_PARAM_get_count X509_VERIFY_PARAM_get_depth X509_VERIFY_PARAM_get_flags X509_VERIFY_PARAM_inherit @@ -2255,7 +2522,6 @@ X509_VERIFY_PARAM_set1_email X509_VERIFY_PARAM_set1_host X509_VERIFY_PARAM_set1_ip X509_VERIFY_PARAM_set1_ip_asc -X509_VERIFY_PARAM_set1_name X509_VERIFY_PARAM_set1_policies X509_VERIFY_PARAM_set_depth X509_VERIFY_PARAM_set_flags @@ -2264,7 +2530,6 @@ X509_VERIFY_PARAM_set_purpose X509_VERIFY_PARAM_set_time X509_VERIFY_PARAM_set_time_posix X509_VERIFY_PARAM_set_trust -X509_VERIFY_PARAM_table_cleanup X509_add1_ext_i2d X509_add1_reject_object X509_add1_trust_object @@ -2299,6 +2564,7 @@ X509_get0_authority_serial X509_get0_extensions X509_get0_notAfter X509_get0_notBefore +X509_get0_pubkey X509_get0_pubkey_bitstr X509_get0_serialNumber X509_get0_signature @@ -2331,6 +2597,7 @@ X509_get_notBefore X509_get_pathlen X509_get_pubkey X509_get_serialNumber +X509_get_signature_info X509_get_signature_nid X509_get_subject_name X509_get_version @@ -2382,15 +2649,6 @@ X509_up_ref X509_verify X509_verify_cert X509_verify_cert_error_string -X509at_add1_attr -X509at_add1_attr_by_NID -X509at_add1_attr_by_OBJ -X509at_add1_attr_by_txt -X509at_delete_attr -X509at_get_attr -X509at_get_attr_by_NID -X509at_get_attr_by_OBJ -X509at_get_attr_count X509v3_add_ext X509v3_delete_ext X509v3_get_ext @@ -2398,7 +2656,6 @@ X509v3_get_ext_by_NID X509v3_get_ext_by_OBJ X509v3_get_ext_by_critical X509v3_get_ext_count -a2i_GENERAL_NAME a2i_IPADDRESS a2i_IPADDRESS_NC abi_test_bad_unwind_temporary @@ -2466,7 +2723,9 @@ aes_hw_set_decrypt_key aes_hw_set_encrypt_key aes_hw_xts_cipher aes_hw_xts_decrypt +aes_hw_xts_decrypt_avx512 aes_hw_xts_encrypt +aes_hw_xts_encrypt_avx512 aes_nohw_cbc_encrypt aes_nohw_ctr32_encrypt_blocks aes_nohw_decrypt @@ -2488,6 +2747,8 @@ asn1_enc_init asn1_enc_restore asn1_enc_save asn1_encoding_clear +asn1_evp_pkey_methods +asn1_evp_pkey_methods_size asn1_generalizedtime_to_tm asn1_get_choice_selector asn1_get_field_ptr @@ -2497,18 +2758,23 @@ asn1_item_combine_free asn1_refcount_dec_and_test_zero asn1_refcount_set_one asn1_set_choice_selector +asn1_type_cleanup +asn1_type_set0_string asn1_type_value_as_pointer asn1_utctime_to_tm awslc_api_version_num awslc_version_string beeu_mod_inverse_vartime bio_clear_socket_error -bio_fd_should_retry +bio_errno_should_retry bio_ip_and_port_to_socket_and_addr bio_sock_error bio_socket_nbio +bio_socket_should_retry bn_abs_sub_consttime bn_add_words +bn_assert_fits_in_bytes +bn_big_endian_to_words bn_copy_words bn_div_consttime bn_expand @@ -2522,12 +2788,12 @@ bn_jacobi bn_lcm_consttime bn_less_than_montgomery_R bn_less_than_words +bn_little_endian_to_words bn_miller_rabin_init bn_miller_rabin_iteration bn_minimal_width bn_mod_add_consttime bn_mod_add_words -bn_mod_exp_base_2_consttime bn_mod_exp_mont_small bn_mod_inverse0_prime_mont_small bn_mod_inverse_consttime @@ -2539,15 +2805,21 @@ bn_mod_mul_montgomery_small bn_mod_sub_consttime bn_mod_sub_words bn_mod_u16_consttime +bn_mont_ctx_cleanup +bn_mont_ctx_init +bn_mont_ctx_set_RR_consttime bn_mont_n0 +bn_mul4x_mont bn_mul_add_words bn_mul_comba4 bn_mul_comba8 bn_mul_consttime bn_mul_mont bn_mul_mont_gather5 +bn_mul_mont_nohw bn_mul_small bn_mul_words +bn_mulx4x_mont bn_odd_number_is_obviously_composite bn_one_to_montgomery bn_power5 @@ -2565,6 +2837,7 @@ bn_set_minimal_width bn_set_static_words bn_set_words bn_sqr8x_internal +bn_sqr8x_mont bn_sqr_comba4 bn_sqr_comba8 bn_sqr_consttime @@ -2576,8 +2849,12 @@ bn_to_montgomery_small bn_uadd_consttime bn_usub_consttime bn_wexpand +bn_words_to_big_endian +bn_words_to_little_endian boringssl_ensure_ecc_self_test +boringssl_ensure_eddsa_self_test boringssl_ensure_ffdh_self_test +boringssl_ensure_ml_kem_self_test boringssl_ensure_rsa_self_test boringssl_self_test_hmac_sha256 boringssl_self_test_sha256 @@ -2643,6 +2920,8 @@ d2i_DSA_PUBKEY_fp d2i_DSA_SIG d2i_DSAparams d2i_ECDSA_SIG +d2i_ECPKParameters +d2i_ECPKParameters_bio d2i_ECParameters d2i_ECPrivateKey d2i_ECPrivateKey_bio @@ -2650,7 +2929,6 @@ d2i_ECPrivateKey_fp d2i_EC_PUBKEY d2i_EC_PUBKEY_bio d2i_EC_PUBKEY_fp -d2i_EDIPARTYNAME d2i_EXTENDED_KEY_USAGE d2i_GENERAL_NAME d2i_GENERAL_NAMES @@ -2660,18 +2938,30 @@ d2i_NETSCAPE_SPKI d2i_NOTICEREF d2i_OCSP_BASICRESP d2i_OCSP_CERTID -d2i_OCSP_CERTSTATUS +d2i_OCSP_ONEREQ +d2i_OCSP_REQINFO +d2i_OCSP_REQUEST +d2i_OCSP_REQUEST_bio d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA -d2i_OCSP_RESPID d2i_OCSP_RESPONSE +d2i_OCSP_RESPONSE_bio d2i_OCSP_REVOKEDINFO +d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP -d2i_OTHERNAME d2i_PKCS12 d2i_PKCS12_bio d2i_PKCS12_fp d2i_PKCS7 +d2i_PKCS7_DIGEST +d2i_PKCS7_ENCRYPT +d2i_PKCS7_ENC_CONTENT +d2i_PKCS7_ENVELOPE +d2i_PKCS7_ISSUER_AND_SERIAL +d2i_PKCS7_RECIP_INFO +d2i_PKCS7_SIGNED +d2i_PKCS7_SIGNER_INFO +d2i_PKCS7_SIGN_ENVELOPE d2i_PKCS7_bio d2i_PKCS8PrivateKey_bio d2i_PKCS8PrivateKey_fp @@ -2682,8 +2972,6 @@ d2i_PKCS8_bio d2i_PKCS8_fp d2i_POLICYINFO d2i_POLICYQUALINFO -d2i_PROXY_CERT_INFO_EXTENSION -d2i_PROXY_POLICY d2i_PUBKEY d2i_PUBKEY_bio d2i_PUBKEY_fp @@ -2726,18 +3014,20 @@ d2i_X509_SIG d2i_X509_VAL d2i_X509_bio d2i_X509_fp +dh_asn1_meth +dh_check_params_fast dh_compute_key_padded_no_self_test +dh_pkey_meth dsa_asn1_meth -dsa_check_parameters +dsa_check_key ec_GFp_mont_add ec_GFp_mont_dbl +ec_GFp_mont_felem_exp ec_GFp_mont_felem_from_bytes ec_GFp_mont_felem_mul +ec_GFp_mont_felem_reduce ec_GFp_mont_felem_sqr ec_GFp_mont_felem_to_bytes -ec_GFp_mont_group_finish -ec_GFp_mont_group_init -ec_GFp_mont_group_set_curve ec_GFp_mont_init_precomp ec_GFp_mont_mul ec_GFp_mont_mul_base @@ -2748,9 +3038,7 @@ ec_GFp_nistp_recode_scalar_bits ec_GFp_simple_cmp_x_coordinate ec_GFp_simple_felem_from_bytes ec_GFp_simple_felem_to_bytes -ec_GFp_simple_group_finish ec_GFp_simple_group_get_curve -ec_GFp_simple_group_init ec_GFp_simple_group_set_curve ec_GFp_simple_invert ec_GFp_simple_is_at_infinity @@ -2772,18 +3060,24 @@ ec_felem_equal ec_felem_from_bytes ec_felem_neg ec_felem_non_zero_mask +ec_felem_one ec_felem_select ec_felem_sub ec_felem_to_bignum ec_felem_to_bytes ec_get_x_coordinate_as_bytes ec_get_x_coordinate_as_scalar -ec_group_new +ec_hash_to_curve_p256_xmd_sha256_sswu +ec_hash_to_curve_p384_xmd_sha384_sswu ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +ec_hash_to_scalar_p384_xmd_sha384 ec_hash_to_scalar_p384_xmd_sha512_draft07 ec_init_precomp ec_jacobian_to_affine ec_jacobian_to_affine_batch +ec_nistp_point_add +ec_nistp_point_double +ec_nistp_scalar_mul ec_point_byte_len ec_point_from_uncompressed ec_point_mul_no_self_test @@ -2831,7 +3125,19 @@ ecp_nistz256_select_w5 ecp_nistz256_select_w7 ecp_nistz256_sqr_mont ed25519_asn1_meth -ed25519_pkey_meth +ed25519_check_public_key_nohw +ed25519_check_public_key_s2n_bignum +ed25519_public_key_from_hashed_seed_nohw +ed25519_public_key_from_hashed_seed_s2n_bignum +ed25519_sha512 +ed25519_sign_nohw +ed25519_sign_s2n_bignum +ed25519_verify_nohw +ed25519_verify_s2n_bignum +evp_pkey_set_method +extract_multiplier_2x20_win5 +extract_multiplier_2x30_win5 +extract_multiplier_2x40_win5 gcm_ghash_avx gcm_ghash_avx512 gcm_ghash_clmul @@ -2848,7 +3154,10 @@ gcm_init_clmul gcm_init_nohw gcm_init_ssse3 gcm_setiv_avx512 -i2a_ACCESS_DESCRIPTION +get_legacy_kem_kyber1024_r3 +get_legacy_kem_kyber512_r3 +get_legacy_kem_kyber768_r3 +hmac_asn1_meth i2a_ASN1_ENUMERATED i2a_ASN1_INTEGER i2a_ASN1_OBJECT @@ -2899,6 +3208,8 @@ i2d_DSA_PUBKEY_fp i2d_DSA_SIG i2d_DSAparams i2d_ECDSA_SIG +i2d_ECPKParameters +i2d_ECPKParameters_bio i2d_ECParameters i2d_ECPrivateKey i2d_ECPrivateKey_bio @@ -2906,7 +3217,6 @@ i2d_ECPrivateKey_fp i2d_EC_PUBKEY i2d_EC_PUBKEY_bio i2d_EC_PUBKEY_fp -i2d_EDIPARTYNAME i2d_EXTENDED_KEY_USAGE i2d_GENERAL_NAME i2d_GENERAL_NAMES @@ -2916,18 +3226,30 @@ i2d_NETSCAPE_SPKI i2d_NOTICEREF i2d_OCSP_BASICRESP i2d_OCSP_CERTID -i2d_OCSP_CERTSTATUS +i2d_OCSP_ONEREQ +i2d_OCSP_REQINFO +i2d_OCSP_REQUEST +i2d_OCSP_REQUEST_bio i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA -i2d_OCSP_RESPID i2d_OCSP_RESPONSE +i2d_OCSP_RESPONSE_bio i2d_OCSP_REVOKEDINFO +i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP -i2d_OTHERNAME i2d_PKCS12 i2d_PKCS12_bio i2d_PKCS12_fp i2d_PKCS7 +i2d_PKCS7_DIGEST +i2d_PKCS7_ENCRYPT +i2d_PKCS7_ENC_CONTENT +i2d_PKCS7_ENVELOPE +i2d_PKCS7_ISSUER_AND_SERIAL +i2d_PKCS7_RECIP_INFO +i2d_PKCS7_SIGNED +i2d_PKCS7_SIGNER_INFO +i2d_PKCS7_SIGN_ENVELOPE i2d_PKCS7_bio i2d_PKCS8PrivateKeyInfo_bio i2d_PKCS8PrivateKeyInfo_fp @@ -2942,8 +3264,6 @@ i2d_PKCS8_bio i2d_PKCS8_fp i2d_POLICYINFO i2d_POLICYQUALINFO -i2d_PROXY_CERT_INFO_EXTENSION -i2d_PROXY_POLICY i2d_PUBKEY i2d_PUBKEY_bio i2d_PUBKEY_fp @@ -2999,52 +3319,87 @@ i2t_ASN1_OBJECT i2v_GENERAL_NAME i2v_GENERAL_NAMES is_fips_build -jent_apt_init -jent_entropy_collector_alloc -jent_entropy_collector_free -jent_entropy_init -jent_entropy_init_ex -jent_entropy_switch_notime_impl -jent_gcd_analyze -jent_gcd_fini -jent_gcd_get -jent_gcd_init -jent_gcd_selftest -jent_health_cb_block_switch -jent_health_failure -jent_lag_init -jent_measure_jitter -jent_random_data -jent_read_entropy -jent_read_entropy_safe -jent_read_random_block -jent_set_fips_failure_callback -jent_set_fips_failure_callback_internal -jent_stuck -jent_time_entropy_init -jent_version +is_public_component_of_rsa_key_good kBoringSSLRSASqrtTwo kBoringSSLRSASqrtTwoLen kOpenSSLReasonStringData kOpenSSLReasonValues kOpenSSLReasonValuesLen kem_asn1_meth -kem_kyber1024r3_method -kem_kyber512r3_method -kem_kyber768r3_method -kem_pkey_meth -kyber1024r3_decapsulate -kyber1024r3_encapsulate -kyber1024r3_keypair -kyber512r3_decapsulate -kyber512r3_encapsulate -kyber512r3_keypair -kyber768r3_decapsulate -kyber768r3_encapsulate -kyber768r3_keypair md4_block_data_order md5_block_asm_data_order +ml_kem_1024_decapsulate +ml_kem_1024_encapsulate +ml_kem_1024_encapsulate_deterministic +ml_kem_1024_keypair +ml_kem_1024_keypair_deterministic +ml_kem_1024_params_init +ml_kem_512_decapsulate +ml_kem_512_decapsulate_no_self_test +ml_kem_512_encapsulate +ml_kem_512_encapsulate_deterministic +ml_kem_512_encapsulate_deterministic_no_self_test +ml_kem_512_keypair +ml_kem_512_keypair_deterministic +ml_kem_512_keypair_deterministic_no_self_test +ml_kem_512_params_init +ml_kem_768_decapsulate +ml_kem_768_encapsulate +ml_kem_768_encapsulate_deterministic +ml_kem_768_keypair +ml_kem_768_keypair_deterministic +ml_kem_768_params_init +ml_kem_barrett_reduce_ref +ml_kem_basemul_ref +ml_kem_cmov_ref +ml_kem_dec_ref +ml_kem_enc_derand_ref +ml_kem_enc_ref +ml_kem_gen_matrix_ref +ml_kem_indcpa_dec_ref +ml_kem_indcpa_enc_ref +ml_kem_indcpa_keypair_derand_ref +ml_kem_invntt_ref +ml_kem_keypair_derand_ref +ml_kem_keypair_ref +ml_kem_kyber_shake128_absorb_ref +ml_kem_kyber_shake128_squeeze_ref +ml_kem_kyber_shake256_prf_ref +ml_kem_kyber_shake256_rkprf_ref +ml_kem_montgomery_reduce_ref +ml_kem_ntt_ref +ml_kem_poly_add_ref +ml_kem_poly_basemul_montgomery_ref +ml_kem_poly_cbd_eta1_ref +ml_kem_poly_cbd_eta2_ref +ml_kem_poly_compress_ref +ml_kem_poly_decompress_ref +ml_kem_poly_frombytes_ref +ml_kem_poly_frommsg_ref +ml_kem_poly_getnoise_eta1_ref +ml_kem_poly_getnoise_eta2_ref +ml_kem_poly_invntt_tomont_ref +ml_kem_poly_ntt_ref +ml_kem_poly_reduce_ref +ml_kem_poly_sub_ref +ml_kem_poly_tobytes_ref +ml_kem_poly_tomont_ref +ml_kem_poly_tomsg_ref +ml_kem_polyvec_add_ref +ml_kem_polyvec_basemul_acc_montgomery_ref +ml_kem_polyvec_compress_ref +ml_kem_polyvec_decompress_ref +ml_kem_polyvec_frombytes_ref +ml_kem_polyvec_invntt_tomont_ref +ml_kem_polyvec_ntt_ref +ml_kem_polyvec_reduce_ref +ml_kem_polyvec_tobytes_ref +ml_kem_verify_ref +ml_kem_zetas_ref o2i_ECPublicKey +p256_methods +p384_methods +p521_methods pkcs12_iterations_acceptable pkcs12_key_gen pkcs12_pbe_encrypt_init @@ -3069,6 +3424,15 @@ pmbtoken_exp2_issuer_key_from_bytes pmbtoken_exp2_read pmbtoken_exp2_sign pmbtoken_exp2_unblind +pmbtoken_pst1_blind +pmbtoken_pst1_client_key_from_bytes +pmbtoken_pst1_derive_key_from_secret +pmbtoken_pst1_generate_key +pmbtoken_pst1_get_h_for_testing +pmbtoken_pst1_issuer_key_from_bytes +pmbtoken_pst1_read +pmbtoken_pst1_sign +pmbtoken_pst1_unblind poly_Rq_mul pq_custom_randombytes pq_custom_randombytes_init_for_testing @@ -3078,12 +3442,14 @@ pqcrystals_kyber1024_ref_basemul pqcrystals_kyber1024_ref_cmov pqcrystals_kyber1024_ref_dec pqcrystals_kyber1024_ref_enc +pqcrystals_kyber1024_ref_enc_derand pqcrystals_kyber1024_ref_gen_matrix pqcrystals_kyber1024_ref_indcpa_dec pqcrystals_kyber1024_ref_indcpa_enc -pqcrystals_kyber1024_ref_indcpa_keypair +pqcrystals_kyber1024_ref_indcpa_keypair_derand pqcrystals_kyber1024_ref_invntt pqcrystals_kyber1024_ref_keypair +pqcrystals_kyber1024_ref_keypair_derand pqcrystals_kyber1024_ref_kyber_shake128_absorb pqcrystals_kyber1024_ref_kyber_shake256_prf pqcrystals_kyber1024_ref_montgomery_reduce @@ -3121,12 +3487,14 @@ pqcrystals_kyber512_ref_basemul pqcrystals_kyber512_ref_cmov pqcrystals_kyber512_ref_dec pqcrystals_kyber512_ref_enc +pqcrystals_kyber512_ref_enc_derand pqcrystals_kyber512_ref_gen_matrix pqcrystals_kyber512_ref_indcpa_dec pqcrystals_kyber512_ref_indcpa_enc -pqcrystals_kyber512_ref_indcpa_keypair +pqcrystals_kyber512_ref_indcpa_keypair_derand pqcrystals_kyber512_ref_invntt pqcrystals_kyber512_ref_keypair +pqcrystals_kyber512_ref_keypair_derand pqcrystals_kyber512_ref_kyber_shake128_absorb pqcrystals_kyber512_ref_kyber_shake256_prf pqcrystals_kyber512_ref_montgomery_reduce @@ -3164,12 +3532,14 @@ pqcrystals_kyber768_ref_basemul pqcrystals_kyber768_ref_cmov pqcrystals_kyber768_ref_dec pqcrystals_kyber768_ref_enc +pqcrystals_kyber768_ref_enc_derand pqcrystals_kyber768_ref_gen_matrix pqcrystals_kyber768_ref_indcpa_dec pqcrystals_kyber768_ref_indcpa_enc -pqcrystals_kyber768_ref_indcpa_keypair +pqcrystals_kyber768_ref_indcpa_keypair_derand pqcrystals_kyber768_ref_invntt pqcrystals_kyber768_ref_keypair +pqcrystals_kyber768_ref_keypair_derand pqcrystals_kyber768_ref_kyber_shake128_absorb pqcrystals_kyber768_ref_kyber_shake256_prf pqcrystals_kyber768_ref_montgomery_reduce @@ -3220,13 +3590,14 @@ pqcrystals_kyber_fips202_ref_shake256_squeeze pqcrystals_kyber_fips202_ref_shake256_squeezeblocks rand_fork_unsafe_buffering_enabled rsa_asn1_meth -rsa_check_public_key -rsa_default_decrypt rsa_default_private_transform rsa_default_sign_raw rsa_default_size rsa_digestsign_no_self_test rsa_digestverify_no_self_test +rsa_invalidate_key +rsa_private_transform +rsa_private_transform_no_self_test rsa_pss_asn1_meth rsa_sign_no_self_test rsa_verify_no_self_test @@ -3237,44 +3608,34 @@ rsaz_1024_norm2red_avx2 rsaz_1024_red2norm_avx2 rsaz_1024_scatter5_avx2 rsaz_1024_sqr_avx2 +rsaz_amm52x20_x1_ifma256 +rsaz_amm52x20_x2_ifma256 +rsaz_amm52x30_x1_ifma256 +rsaz_amm52x30_x2_ifma256 +rsaz_amm52x40_x1_ifma256 +rsaz_amm52x40_x2_ifma256 s2i_ASN1_INTEGER s2i_ASN1_OCTET_STRING -sha1_block_data_order +sha1_block_data_order_avx +sha1_block_data_order_avx2 +sha1_block_data_order_hw +sha1_block_data_order_nohw +sha1_block_data_order_ssse3 sha1_func sha224_func -sha256_block_data_order +sha256_block_data_order_avx +sha256_block_data_order_hw +sha256_block_data_order_nohw +sha256_block_data_order_ssse3 sha256_func sha384_func -sha3_256_init -sha3_alloc -sha3_dealloc -sha3_final -sha3_tester -sha3_update -sha512_block_data_order +sha512_block_data_order_avx +sha512_block_data_order_nohw sha512_func -sk_deep_copy -sk_delete -sk_delete_if -sk_delete_ptr -sk_dup -sk_find -sk_free -sk_insert -sk_is_sorted -sk_new -sk_new_null -sk_num -sk_pop sk_pop_free -sk_pop_free_ex -sk_push -sk_set -sk_set_cmp_func -sk_shift -sk_sort -sk_value -sk_zero +sskdf_variant_digest +sskdf_variant_hmac +used_for_hmac v2i_GENERAL_NAME v2i_GENERAL_NAMES v2i_GENERAL_NAME_ex @@ -3298,7 +3659,7 @@ v3_ns_ia5_list v3_nscert v3_ocsp_accresp v3_ocsp_nocheck -v3_pci +v3_ocsp_nonce v3_policy_constraints v3_policy_mappings v3_sinfo @@ -3311,6 +3672,15 @@ voprf_exp2_issuer_key_from_bytes voprf_exp2_read voprf_exp2_sign voprf_exp2_unblind +voprf_pst1_blind +voprf_pst1_client_key_from_bytes +voprf_pst1_derive_key_from_secret +voprf_pst1_generate_key +voprf_pst1_issuer_key_from_bytes +voprf_pst1_read +voprf_pst1_sign +voprf_pst1_sign_with_proof_scalar_for_testing +voprf_pst1_unblind vpaes_cbc_encrypt vpaes_ctr32_encrypt_blocks vpaes_decrypt @@ -3329,11 +3699,17 @@ x25519_ge_scalarmult_small_precomp x25519_ge_sub x25519_ge_tobytes x25519_pkey_meth +x25519_public_from_private_nohw +x25519_public_from_private_s2n_bignum x25519_sc_reduce +x25519_scalar_mult_generic_nohw +x25519_scalar_mult_generic_s2n_bignum x509V3_add_value_asn1_string x509_check_cert_time +x509_check_issued_with_callback x509_digest_sign_algorithm x509_digest_verify_init +x509_init_signature_info x509_print_rsa_pss_params x509_rsa_ctx_to_pss x509_rsa_pss_to_ctx @@ -3341,6 +3717,7 @@ x509v3_a2i_ipadd x509v3_bytes_to_hex x509v3_cache_extensions x509v3_conf_name_matches +x509v3_ext_free_with_method x509v3_hex_to_bytes x509v3_looks_like_dns_name x86_64_assembly_implementation_FOR_TESTING diff --git a/aws-lc-fips-sys/symbols/x86_64-unknown-linux-musl.txt b/aws-lc-fips-sys/symbols/x86_64-unknown-linux-musl.txt index cf757cae9fb..eac63736c42 100644 --- a/aws-lc-fips-sys/symbols/x86_64-unknown-linux-musl.txt +++ b/aws-lc-fips-sys/symbols/x86_64-unknown-linux-musl.txt @@ -129,9 +129,11 @@ ASN1_TIME_print ASN1_TIME_set ASN1_TIME_set_posix ASN1_TIME_set_string +ASN1_TIME_set_string_X509 ASN1_TIME_to_generalizedtime ASN1_TIME_to_posix ASN1_TIME_to_time_t +ASN1_TIME_to_tm ASN1_TYPE_cmp ASN1_TYPE_free ASN1_TYPE_get @@ -157,8 +159,10 @@ ASN1_VISIBLESTRING_free ASN1_VISIBLESTRING_it ASN1_VISIBLESTRING_new ASN1_digest +ASN1_dup ASN1_generate_v3 ASN1_get_object +ASN1_i2d_bio ASN1_item_d2i ASN1_item_d2i_bio ASN1_item_d2i_fp @@ -254,6 +258,7 @@ BIO_meth_set_gets BIO_meth_set_puts BIO_meth_set_read BIO_meth_set_write +BIO_method_name BIO_method_type BIO_new BIO_new_bio_pair @@ -274,6 +279,7 @@ BIO_push BIO_puts BIO_read BIO_read_asn1 +BIO_read_ex BIO_read_filename BIO_reset BIO_rw_filename @@ -281,6 +287,7 @@ BIO_s_connect BIO_s_fd BIO_s_file BIO_s_mem +BIO_s_secmem BIO_s_socket BIO_seek BIO_set_callback_arg @@ -318,6 +325,7 @@ BIO_vsnprintf BIO_wpending BIO_write BIO_write_all +BIO_write_ex BIO_write_filename BLAKE2B256 BLAKE2B256_Final @@ -332,12 +340,14 @@ BN_CTX_end BN_CTX_free BN_CTX_get BN_CTX_new +BN_CTX_secure_new BN_CTX_start BN_GENCB_call BN_GENCB_free BN_GENCB_get_arg BN_GENCB_new BN_GENCB_set +BN_GENCB_set_old BN_MONT_CTX_copy BN_MONT_CTX_free BN_MONT_CTX_new @@ -376,6 +386,7 @@ BN_free BN_from_montgomery BN_gcd BN_generate_prime_ex +BN_get_flags BN_get_rfc3526_prime_1536 BN_get_rfc3526_prime_2048 BN_get_rfc3526_prime_3072 @@ -406,6 +417,7 @@ BN_mod_exp BN_mod_exp2_mont BN_mod_exp_mont BN_mod_exp_mont_consttime +BN_mod_exp_mont_consttime_x2 BN_mod_exp_mont_word BN_mod_inverse BN_mod_inverse_blinded @@ -461,7 +473,6 @@ BN_usub BN_value_one BN_zero BORINGSSL_FIPS_abort -BORINGSSL_integrity_test BORINGSSL_self_test BUF_MEM_append BUF_MEM_free @@ -553,6 +564,7 @@ CBS_get_u24_length_prefixed CBS_get_u32 CBS_get_u32le CBS_get_u64 +CBS_get_u64_decimal CBS_get_u64le CBS_get_u8 CBS_get_u8_length_prefixed @@ -561,6 +573,7 @@ CBS_init CBS_is_unsigned_asn1_integer CBS_is_valid_asn1_bitstring CBS_is_valid_asn1_integer +CBS_is_valid_asn1_oid CBS_len CBS_mem_equal CBS_parse_generalized_time @@ -574,14 +587,18 @@ CERTIFICATEPOLICIES_it CERTIFICATEPOLICIES_new CMAC_CTX_copy CMAC_CTX_free +CMAC_CTX_get0_cipher_ctx CMAC_CTX_new CMAC_Final CMAC_Init CMAC_Reset CMAC_Update CONF_VALUE_new +CONF_get1_default_config_file +CONF_modules_finish CONF_modules_free CONF_modules_load_file +CONF_modules_unload CONF_parse_list CRL_DIST_POINTS_free CRL_DIST_POINTS_it @@ -694,19 +711,31 @@ CTR_DRBG_generate CTR_DRBG_init CTR_DRBG_new CTR_DRBG_reseed -ChaCha20_ctr32 +ChaCha20_ctr32_avx2 +ChaCha20_ctr32_nohw +ChaCha20_ctr32_ssse3 +ChaCha20_ctr32_ssse3_4x DES_decrypt3 DES_ecb3_encrypt +DES_ecb3_encrypt_ex DES_ecb_encrypt +DES_ecb_encrypt_ex DES_ede2_cbc_encrypt DES_ede3_cbc_encrypt +DES_ede3_cbc_encrypt_ex DES_encrypt3 +DES_is_weak_key +DES_key_sched DES_ncbc_encrypt +DES_ncbc_encrypt_ex DES_set_key +DES_set_key_ex +DES_set_key_unchecked DES_set_odd_parity DH_bits DH_check DH_check_pub_key +DH_clear_flags DH_compute_key DH_compute_key_hashed DH_compute_key_padded @@ -723,8 +752,12 @@ DH_get0_pub_key DH_get0_q DH_get_2048_256 DH_get_rfc7919_2048 +DH_get_rfc7919_3072 +DH_get_rfc7919_4096 +DH_get_rfc7919_8192 DH_marshal_parameters DH_new +DH_new_by_nid DH_num_bits DH_parse_parameters DH_set0_key @@ -777,6 +810,8 @@ DSA_new DSA_parse_parameters DSA_parse_private_key DSA_parse_public_key +DSA_print +DSA_print_fp DSA_set0_key DSA_set0_pqg DSA_set_ex_data @@ -806,6 +841,7 @@ ECDSA_sign ECDSA_sign_with_nonce_and_leak_private_key_for_testing ECDSA_size ECDSA_verify +ECPKParameters_print EC_GFp_mont_method EC_GFp_nistp224_method EC_GFp_nistp256_method @@ -817,12 +853,14 @@ EC_GROUP_dup EC_GROUP_free EC_GROUP_get0_generator EC_GROUP_get0_order +EC_GROUP_get0_seed EC_GROUP_get_asn1_flag EC_GROUP_get_cofactor EC_GROUP_get_curve_GFp EC_GROUP_get_curve_name EC_GROUP_get_degree EC_GROUP_get_order +EC_GROUP_get_seed_len EC_GROUP_method_of EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp @@ -830,6 +868,13 @@ EC_GROUP_order_bits EC_GROUP_set_asn1_flag EC_GROUP_set_generator EC_GROUP_set_point_conversion_form +EC_GROUP_set_seed +EC_KEY_METHOD_free +EC_KEY_METHOD_new +EC_KEY_METHOD_set_flags +EC_KEY_METHOD_set_init_awslc +EC_KEY_METHOD_set_sign_awslc +EC_KEY_OpenSSL EC_KEY_check_fips EC_KEY_check_key EC_KEY_derive_from_secret @@ -841,9 +886,11 @@ EC_KEY_get0_group EC_KEY_get0_private_key EC_KEY_get0_public_key EC_KEY_get_conv_form +EC_KEY_get_default_method EC_KEY_get_enc_flags EC_KEY_get_ex_data EC_KEY_get_ex_new_index +EC_KEY_get_method EC_KEY_is_opaque EC_KEY_key2buf EC_KEY_keygen_verify_service_indicator @@ -860,12 +907,14 @@ EC_KEY_set_conv_form EC_KEY_set_enc_flags EC_KEY_set_ex_data EC_KEY_set_group +EC_KEY_set_method EC_KEY_set_private_key EC_KEY_set_public_key EC_KEY_set_public_key_affine_coordinates EC_KEY_up_ref EC_METHOD_get_field_type EC_POINT_add +EC_POINT_bn2point EC_POINT_clear_free EC_POINT_cmp EC_POINT_copy @@ -880,6 +929,7 @@ EC_POINT_is_on_curve EC_POINT_mul EC_POINT_new EC_POINT_oct2point +EC_POINT_point2bn EC_POINT_point2cbb EC_POINT_point2oct EC_POINT_set_affine_coordinates @@ -889,21 +939,32 @@ EC_POINT_set_to_infinity EC_curve_nid2nist EC_curve_nist2nid EC_get_builtin_curves +EC_group_p224 +EC_group_p256 +EC_group_p384 +EC_group_p521 +EC_group_secp256k1 +EC_hash_to_curve_p256_xmd_sha256_sswu +EC_hash_to_curve_p384_xmd_sha384_sswu +ED25519_check_public_key ED25519_keypair ED25519_keypair_from_seed ED25519_sign +ED25519_sign_no_self_test ED25519_verify +ED25519_verify_no_self_test EDIPARTYNAME_free EDIPARTYNAME_it EDIPARTYNAME_new +ENGINE_cleanup ENGINE_free -ENGINE_get_ECDSA_method -ENGINE_get_RSA_method +ENGINE_get_EC +ENGINE_get_RSA ENGINE_load_builtin_engines ENGINE_new ENGINE_register_all_complete -ENGINE_set_ECDSA_method -ENGINE_set_RSA_method +ENGINE_set_EC +ENGINE_set_RSA ERR_SAVE_STATE_free ERR_add_error_data ERR_add_error_dataf @@ -919,6 +980,7 @@ ERR_get_error_line_data ERR_get_next_error_library ERR_lib_error_string ERR_load_BIO_strings +ERR_load_CRYPTO_strings ERR_load_ERR_strings ERR_load_RAND_strings ERR_load_crypto_strings @@ -988,6 +1050,7 @@ EVP_CIPHER_flags EVP_CIPHER_iv_length EVP_CIPHER_key_length EVP_CIPHER_mode +EVP_CIPHER_name EVP_CIPHER_nid EVP_Cipher EVP_CipherFinal @@ -1048,6 +1111,9 @@ EVP_HPKE_CTX_max_overhead EVP_HPKE_CTX_new EVP_HPKE_CTX_open EVP_HPKE_CTX_seal +EVP_HPKE_CTX_setup_auth_recipient +EVP_HPKE_CTX_setup_auth_sender +EVP_HPKE_CTX_setup_auth_sender_with_seed_for_testing EVP_HPKE_CTX_setup_recipient EVP_HPKE_CTX_setup_sender EVP_HPKE_CTX_setup_sender_with_seed_for_testing @@ -1064,6 +1130,7 @@ EVP_HPKE_KEY_free EVP_HPKE_KEY_generate EVP_HPKE_KEY_init EVP_HPKE_KEY_kem +EVP_HPKE_KEY_move EVP_HPKE_KEY_new EVP_HPKE_KEY_private_key EVP_HPKE_KEY_public_key @@ -1086,10 +1153,15 @@ EVP_MD_CTX_set_pkey_ctx EVP_MD_CTX_size EVP_MD_CTX_type EVP_MD_block_size +EVP_MD_do_all EVP_MD_do_all_sorted EVP_MD_flags +EVP_MD_get0_name +EVP_MD_get_pkey_type EVP_MD_meth_get_flags +EVP_MD_name EVP_MD_nid +EVP_MD_pkey_type EVP_MD_size EVP_MD_type EVP_MD_unstable_sha3_enable @@ -1099,10 +1171,13 @@ EVP_PKCS82PKEY EVP_PKEY2PKCS8 EVP_PKEY_CTX_add1_hkdf_info EVP_PKEY_CTX_ctrl +EVP_PKEY_CTX_ctrl_str EVP_PKEY_CTX_dup EVP_PKEY_CTX_free EVP_PKEY_CTX_get0_pkey EVP_PKEY_CTX_get0_rsa_oaep_label +EVP_PKEY_CTX_get_app_data +EVP_PKEY_CTX_get_keygen_info EVP_PKEY_CTX_get_rsa_mgf1_md EVP_PKEY_CTX_get_rsa_oaep_md EVP_PKEY_CTX_get_rsa_padding @@ -1110,11 +1185,15 @@ EVP_PKEY_CTX_get_rsa_pss_saltlen EVP_PKEY_CTX_get_signature_md EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_kem_set_params +EVP_PKEY_CTX_md EVP_PKEY_CTX_new EVP_PKEY_CTX_new_id EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set1_hkdf_key EVP_PKEY_CTX_set1_hkdf_salt +EVP_PKEY_CTX_set_app_data +EVP_PKEY_CTX_set_cb +EVP_PKEY_CTX_set_dh_pad EVP_PKEY_CTX_set_dsa_paramgen_bits EVP_PKEY_CTX_set_dsa_paramgen_q_bits EVP_PKEY_CTX_set_ec_param_enc @@ -1130,7 +1209,13 @@ EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen EVP_PKEY_CTX_set_rsa_pss_saltlen EVP_PKEY_CTX_set_signature_md +EVP_PKEY_asn1_find +EVP_PKEY_asn1_find_str +EVP_PKEY_asn1_get0 +EVP_PKEY_asn1_get0_info +EVP_PKEY_asn1_get_count EVP_PKEY_assign +EVP_PKEY_assign_DH EVP_PKEY_assign_DSA EVP_PKEY_assign_EC_KEY EVP_PKEY_assign_RSA @@ -1140,13 +1225,17 @@ EVP_PKEY_cmp EVP_PKEY_cmp_parameters EVP_PKEY_copy_parameters EVP_PKEY_decapsulate +EVP_PKEY_decapsulate_verify_service_indicator EVP_PKEY_decrypt EVP_PKEY_decrypt_init EVP_PKEY_derive EVP_PKEY_derive_init EVP_PKEY_derive_set_peer EVP_PKEY_ec_pkey_meth +EVP_PKEY_ed25519_pkey_meth EVP_PKEY_encapsulate +EVP_PKEY_encapsulate_deterministic +EVP_PKEY_encapsulate_verify_service_indicator EVP_PKEY_encrypt EVP_PKEY_encrypt_init EVP_PKEY_free @@ -1163,16 +1252,21 @@ EVP_PKEY_get1_tls_encodedpoint EVP_PKEY_get_raw_private_key EVP_PKEY_get_raw_public_key EVP_PKEY_hkdf_pkey_meth +EVP_PKEY_hmac_pkey_meth EVP_PKEY_id EVP_PKEY_is_opaque +EVP_PKEY_kem_check_key EVP_PKEY_kem_new_raw_key EVP_PKEY_kem_new_raw_public_key EVP_PKEY_kem_new_raw_secret_key +EVP_PKEY_kem_pkey_meth EVP_PKEY_keygen +EVP_PKEY_keygen_deterministic EVP_PKEY_keygen_init EVP_PKEY_keygen_verify_service_indicator EVP_PKEY_missing_parameters EVP_PKEY_new +EVP_PKEY_new_mac_key EVP_PKEY_new_raw_private_key EVP_PKEY_new_raw_public_key EVP_PKEY_paramgen @@ -1182,6 +1276,7 @@ EVP_PKEY_print_private EVP_PKEY_print_public EVP_PKEY_rsa_pkey_meth EVP_PKEY_rsa_pss_pkey_meth +EVP_PKEY_set1_DH EVP_PKEY_set1_DSA EVP_PKEY_set1_EC_KEY EVP_PKEY_set1_RSA @@ -1223,6 +1318,7 @@ EVP_aead_aes_128_gcm_tls13 EVP_aead_aes_192_gcm EVP_aead_aes_256_cbc_sha1_tls EVP_aead_aes_256_cbc_sha1_tls_implicit_iv +EVP_aead_aes_256_cbc_sha384_tls EVP_aead_aes_256_ctr_hmac_sha256 EVP_aead_aes_256_gcm EVP_aead_aes_256_gcm_randnonce @@ -1237,6 +1333,7 @@ EVP_aead_xchacha20_poly1305 EVP_aes_128_cbc EVP_aes_128_cbc_hmac_sha1 EVP_aes_128_cbc_hmac_sha256 +EVP_aes_128_ccm EVP_aes_128_cfb EVP_aes_128_cfb1 EVP_aes_128_cfb128 @@ -1246,6 +1343,7 @@ EVP_aes_128_ecb EVP_aes_128_gcm EVP_aes_128_ofb EVP_aes_192_cbc +EVP_aes_192_ccm EVP_aes_192_cfb EVP_aes_192_cfb1 EVP_aes_192_cfb128 @@ -1257,6 +1355,7 @@ EVP_aes_192_ofb EVP_aes_256_cbc EVP_aes_256_cbc_hmac_sha1 EVP_aes_256_cbc_hmac_sha256 +EVP_aes_256_ccm EVP_aes_256_cfb EVP_aes_256_cfb1 EVP_aes_256_cfb128 @@ -1265,6 +1364,7 @@ EVP_aes_256_ctr EVP_aes_256_ecb EVP_aes_256_gcm EVP_aes_256_ofb +EVP_aes_256_wrap EVP_aes_256_xts EVP_bf_cbc EVP_bf_cfb @@ -1272,6 +1372,7 @@ EVP_bf_ecb EVP_blake2b256 EVP_cast5_cbc EVP_cast5_ecb +EVP_chacha20_poly1305 EVP_cleanup EVP_des_cbc EVP_des_ecb @@ -1283,6 +1384,7 @@ EVP_des_ede_cbc EVP_enc_null EVP_final_with_secret_suffix_sha1 EVP_final_with_secret_suffix_sha256 +EVP_final_with_secret_suffix_sha384 EVP_get_cipherbyname EVP_get_cipherbynid EVP_get_digestbyname @@ -1318,10 +1420,12 @@ EVP_sha3_256 EVP_sha3_384 EVP_sha3_512 EVP_sha512 +EVP_sha512_224 EVP_sha512_256 +EVP_shake128 +EVP_shake256 EVP_tls_cbc_copy_mac EVP_tls_cbc_digest_record -EVP_tls_cbc_digest_record_sha256 EVP_tls_cbc_record_digest_supported EVP_tls_cbc_remove_padding EXTENDED_KEY_USAGE_free @@ -1369,9 +1473,14 @@ HMAC_CTX_reset HMAC_Final HMAC_Init HMAC_Init_ex +HMAC_Init_from_precomputed_key +HMAC_KEY_new HMAC_Update +HMAC_get_precomputed_key +HMAC_set_precomputed_key_export HMAC_size HMAC_verify_service_indicator +HMAC_with_precompute HRSS_decap HRSS_encap HRSS_generate_key @@ -1382,6 +1491,8 @@ HRSS_poly3_mul ISSUING_DIST_POINT_free ISSUING_DIST_POINT_it ISSUING_DIST_POINT_new +KBKDF_ctr_hmac +KBKDF_ctr_hmac_verify_service_indicator KEM_KEY_free KEM_KEY_get0_kem KEM_KEY_init @@ -1398,10 +1509,10 @@ MD4_Update MD5 MD5_Final MD5_Init +MD5_Init_from_state MD5_Transform MD5_Update -METHOD_ref -METHOD_unref +MD5_get_state MGF1 NAME_CONSTRAINTS_check NAME_CONSTRAINTS_free @@ -1422,12 +1533,14 @@ NETSCAPE_SPKI_free NETSCAPE_SPKI_get_pubkey NETSCAPE_SPKI_it NETSCAPE_SPKI_new +NETSCAPE_SPKI_print NETSCAPE_SPKI_set_pubkey NETSCAPE_SPKI_sign NETSCAPE_SPKI_verify NOTICEREF_free NOTICEREF_it NOTICEREF_new +OBJ_NAME_do_all_sorted OBJ_cbs2nid OBJ_cleanup OBJ_cmp @@ -1436,6 +1549,7 @@ OBJ_dup OBJ_find_sigid_algs OBJ_find_sigid_by_algs OBJ_get0_data +OBJ_get_undef OBJ_length OBJ_ln2nid OBJ_nid2cbb @@ -1447,47 +1561,105 @@ 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 OCSP_BASICRESP_it OCSP_BASICRESP_new +OCSP_CERTID_dup OCSP_CERTID_free OCSP_CERTID_it OCSP_CERTID_new -OCSP_CERTSTATUS_free OCSP_CERTSTATUS_it -OCSP_CERTSTATUS_new +OCSP_ONEREQ_free +OCSP_ONEREQ_it +OCSP_ONEREQ_new +OCSP_REQINFO_free +OCSP_REQINFO_it +OCSP_REQINFO_new +OCSP_REQUEST_free +OCSP_REQUEST_get_ext +OCSP_REQUEST_get_ext_by_NID +OCSP_REQUEST_it +OCSP_REQUEST_new +OCSP_REQUEST_print +OCSP_REQ_CTX_add1_header +OCSP_REQ_CTX_free +OCSP_REQ_CTX_get0_mem_bio +OCSP_REQ_CTX_http +OCSP_REQ_CTX_i2d +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 -OCSP_RESPID_free OCSP_RESPID_it -OCSP_RESPID_new 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 +OCSP_SINGLERESP_add_ext OCSP_SINGLERESP_free +OCSP_SINGLERESP_get0_id +OCSP_SINGLERESP_get_ext +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 OCSP_id_issuer_cmp +OCSP_onereq_get0_id +OCSP_parse_url +OCSP_request_add0_id +OCSP_request_add1_cert +OCSP_request_add1_nonce +OCSP_request_is_signed +OCSP_request_onereq_count +OCSP_request_onereq_get0 +OCSP_request_set1_name +OCSP_request_sign +OCSP_request_verify +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 +OCSP_sendreq_bio +OCSP_sendreq_nbio +OCSP_sendreq_new +OCSP_set_max_response_length OCSP_single_get0_status OPENSSL_add_all_algorithms_conf OPENSSL_asprintf -OPENSSL_built_in_curves +OPENSSL_calloc OPENSSL_cleanse OPENSSL_cleanup OPENSSL_clear_free @@ -1495,13 +1667,21 @@ OPENSSL_config OPENSSL_cpucap_initialized OPENSSL_cpuid_setup OPENSSL_free +OPENSSL_fromxdigit OPENSSL_gmtime OPENSSL_gmtime_adj OPENSSL_gmtime_diff OPENSSL_hash32 +OPENSSL_hexstr2buf OPENSSL_ia32cap_P OPENSSL_ia32cap_get +OPENSSL_init OPENSSL_init_crypto +OPENSSL_isalnum +OPENSSL_isalpha +OPENSSL_isdigit +OPENSSL_isspace +OPENSSL_isxdigit OPENSSL_lh_delete OPENSSL_lh_doall_arg OPENSSL_lh_free @@ -1519,6 +1699,29 @@ OPENSSL_posix_to_tm OPENSSL_realloc OPENSSL_secure_clear_free OPENSSL_secure_malloc +OPENSSL_secure_zalloc +OPENSSL_sk_deep_copy +OPENSSL_sk_delete +OPENSSL_sk_delete_if +OPENSSL_sk_delete_ptr +OPENSSL_sk_dup +OPENSSL_sk_find +OPENSSL_sk_free +OPENSSL_sk_insert +OPENSSL_sk_is_sorted +OPENSSL_sk_new +OPENSSL_sk_new_null +OPENSSL_sk_num +OPENSSL_sk_pop +OPENSSL_sk_pop_free_ex +OPENSSL_sk_push +OPENSSL_sk_set +OPENSSL_sk_set_cmp_func +OPENSSL_sk_shift +OPENSSL_sk_sort +OPENSSL_sk_unshift +OPENSSL_sk_value +OPENSSL_sk_zero OPENSSL_strcasecmp OPENSSL_strdup OPENSSL_strhash @@ -1532,7 +1735,7 @@ OPENSSL_tm_to_posix OPENSSL_tolower OPENSSL_vasprintf OPENSSL_vasprintf_internal -OTHERNAME_cmp +OPENSSL_zalloc OTHERNAME_free OTHERNAME_it OTHERNAME_new @@ -1550,10 +1753,8 @@ PEM_X509_INFO_read PEM_X509_INFO_read_bio PEM_bytes_read_bio PEM_def_callback -PEM_dek_info PEM_do_header PEM_get_EVP_CIPHER_INFO -PEM_proc_type PEM_read PEM_read_DHparams PEM_read_DSAPrivateKey @@ -1578,12 +1779,14 @@ PEM_read_bio_DHparams PEM_read_bio_DSAPrivateKey PEM_read_bio_DSA_PUBKEY PEM_read_bio_DSAparams +PEM_read_bio_ECPKParameters PEM_read_bio_ECPrivateKey PEM_read_bio_EC_PUBKEY PEM_read_bio_PKCS7 PEM_read_bio_PKCS8 PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_PUBKEY +PEM_read_bio_Parameters PEM_read_bio_PrivateKey PEM_read_bio_RSAPrivateKey PEM_read_bio_RSAPublicKey @@ -1619,6 +1822,7 @@ PEM_write_bio_DHparams PEM_write_bio_DSAPrivateKey PEM_write_bio_DSA_PUBKEY PEM_write_bio_DSAparams +PEM_write_bio_ECPKParameters PEM_write_bio_ECPrivateKey PEM_write_bio_EC_PUBKEY PEM_write_bio_PKCS7 @@ -1627,7 +1831,9 @@ PEM_write_bio_PKCS8PrivateKey PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_PUBKEY +PEM_write_bio_Parameters PEM_write_bio_PrivateKey +PEM_write_bio_PrivateKey_traditional PEM_write_bio_RSAPrivateKey PEM_write_bio_RSAPublicKey PEM_write_bio_RSA_PUBKEY @@ -1640,21 +1846,67 @@ PKCS12_PBE_add PKCS12_create PKCS12_free PKCS12_get_key_and_certs +PKCS12_new PKCS12_parse PKCS12_verify_mac +PKCS1_MGF1 PKCS5_PBKDF2_HMAC PKCS5_PBKDF2_HMAC_SHA1 PKCS5_pbe2_decrypt_init PKCS5_pbe2_encrypt_init +PKCS7_DIGEST_free +PKCS7_DIGEST_it +PKCS7_DIGEST_new +PKCS7_ENCRYPT_free +PKCS7_ENCRYPT_it +PKCS7_ENCRYPT_new +PKCS7_ENC_CONTENT_free +PKCS7_ENC_CONTENT_it +PKCS7_ENC_CONTENT_new +PKCS7_ENVELOPE_free +PKCS7_ENVELOPE_it +PKCS7_ENVELOPE_new +PKCS7_ISSUER_AND_SERIAL_free +PKCS7_ISSUER_AND_SERIAL_it +PKCS7_ISSUER_AND_SERIAL_new +PKCS7_RECIP_INFO_free +PKCS7_RECIP_INFO_get0_alg +PKCS7_RECIP_INFO_it +PKCS7_RECIP_INFO_new +PKCS7_RECIP_INFO_set +PKCS7_SIGNED_free +PKCS7_SIGNED_it +PKCS7_SIGNED_new +PKCS7_SIGNER_INFO_free +PKCS7_SIGNER_INFO_get0_algs +PKCS7_SIGNER_INFO_it +PKCS7_SIGNER_INFO_new +PKCS7_SIGNER_INFO_set +PKCS7_SIGN_ENVELOPE_free +PKCS7_SIGN_ENVELOPE_it +PKCS7_SIGN_ENVELOPE_new +PKCS7_add_certificate +PKCS7_add_crl +PKCS7_add_recipient_info +PKCS7_add_signer PKCS7_bundle_CRLs PKCS7_bundle_certificates PKCS7_bundle_raw_certificates +PKCS7_content_new +PKCS7_dup PKCS7_free PKCS7_get_CRLs PKCS7_get_PEM_CRLs PKCS7_get_PEM_certificates PKCS7_get_certificates PKCS7_get_raw_certificates +PKCS7_get_signed_attribute +PKCS7_get_signer_info +PKCS7_it +PKCS7_new +PKCS7_set_cipher +PKCS7_set_content +PKCS7_set_type PKCS7_sign PKCS7_type_is_data PKCS7_type_is_digest @@ -1682,12 +1934,6 @@ POLICY_MAPPINGS_it POLICY_MAPPING_free POLICY_MAPPING_it POLICY_MAPPING_new -PROXY_CERT_INFO_EXTENSION_free -PROXY_CERT_INFO_EXTENSION_it -PROXY_CERT_INFO_EXTENSION_new -PROXY_POLICY_free -PROXY_POLICY_it -PROXY_POLICY_new RAND_OpenSSL RAND_SSLeay RAND_add @@ -1695,18 +1941,22 @@ RAND_bytes RAND_bytes_with_additional_data RAND_cleanup RAND_egd +RAND_egd_bytes RAND_enable_fork_unsafe_buffering RAND_file_name RAND_get_rand_method RAND_get_system_entropy_for_custom_prng +RAND_keep_random_devices_open RAND_load_entropy RAND_load_file RAND_module_entropy_depleted RAND_poll +RAND_priv_bytes RAND_pseudo_bytes RAND_seed RAND_set_rand_method RAND_status +RAND_write_file RC4 RC4_set_key RIPEMD160 @@ -1721,6 +1971,7 @@ RSASSA_PSS_PARAMS_get RSASSA_PSS_PARAMS_new RSASSA_PSS_parse_params RSAZ_1024_mod_exp_avx2 +RSAZ_mod_exp_avx512_x2 RSA_ALGOR_IDENTIFIER_free RSA_ALGOR_IDENTIFIER_new RSA_INTEGER_free @@ -1732,11 +1983,11 @@ RSA_PSS_PARAMS_it RSA_PSS_PARAMS_new RSA_add_pkcs1_prefix RSA_bits +RSA_blinding_off_temp_for_accp_compatibility RSA_blinding_on RSA_check_fips RSA_check_key RSA_decrypt -RSA_default_method RSA_encrypt RSA_flags RSA_free @@ -1755,31 +2006,49 @@ RSA_get0_n RSA_get0_p RSA_get0_pss_params RSA_get0_q +RSA_get_default_method RSA_get_ex_data RSA_get_ex_new_index +RSA_get_method RSA_is_opaque RSA_marshal_private_key RSA_marshal_public_key +RSA_meth_free +RSA_meth_new +RSA_meth_set0_app_data +RSA_meth_set_finish +RSA_meth_set_init +RSA_meth_set_priv_dec +RSA_meth_set_priv_enc +RSA_meth_set_pub_dec +RSA_meth_set_pub_enc +RSA_meth_set_sign RSA_new RSA_new_method +RSA_new_method_no_e +RSA_new_private_key +RSA_new_private_key_large_e +RSA_new_private_key_no_crt +RSA_new_private_key_no_e +RSA_new_public_key +RSA_new_public_key_large_e RSA_padding_add_PKCS1_OAEP RSA_padding_add_PKCS1_OAEP_mgf1 RSA_padding_add_PKCS1_PSS RSA_padding_add_PKCS1_PSS_mgf1 RSA_padding_add_PKCS1_type_1 -RSA_padding_add_PKCS1_type_2 RSA_padding_add_none RSA_padding_check_PKCS1_OAEP_mgf1 RSA_padding_check_PKCS1_type_1 -RSA_padding_check_PKCS1_type_2 RSA_parse_private_key RSA_parse_public_key +RSA_pkey_ctx_ctrl RSA_print +RSA_print_fp RSA_private_decrypt RSA_private_encrypt RSA_private_key_from_bytes RSA_private_key_to_bytes -RSA_private_transform RSA_public_decrypt RSA_public_encrypt RSA_public_key_from_bytes @@ -1788,13 +2057,14 @@ RSA_set0_crt_params RSA_set0_factors RSA_set0_key RSA_set_ex_data +RSA_set_flags +RSA_set_method RSA_sign RSA_sign_pss_mgf1 RSA_sign_raw RSA_size RSA_test_flags RSA_up_ref -RSA_validate_key RSA_verify RSA_verify_PKCS1_PSS RSA_verify_PKCS1_PSS_mgf1 @@ -1803,22 +2073,30 @@ RSA_verify_raw SHA1 SHA1_Final SHA1_Init +SHA1_Init_from_state SHA1_Transform SHA1_Update +SHA1_get_state SHA224 SHA224_Final SHA224_Init +SHA224_Init_from_state SHA224_Update +SHA224_get_state SHA256 SHA256_Final SHA256_Init +SHA256_Init_from_state SHA256_Transform SHA256_TransformBlocks SHA256_Update +SHA256_get_state SHA384 SHA384_Final SHA384_Init +SHA384_Init_from_state SHA384_Update +SHA384_get_state SHA3_224 SHA3_256 SHA3_384 @@ -1830,16 +2108,28 @@ SHA3_Reset SHA3_Squeeze SHA3_Update SHA512 +SHA512_224 +SHA512_224_Final +SHA512_224_Init +SHA512_224_Init_from_state +SHA512_224_Update +SHA512_224_get_state SHA512_256 SHA512_256_Final SHA512_256_Init +SHA512_256_Init_from_state SHA512_256_Update +SHA512_256_get_state SHA512_Final SHA512_Init +SHA512_Init_from_state SHA512_Transform SHA512_Update +SHA512_get_state SHAKE128 SHAKE256 +SHAKE_Final +SHAKE_Init SIPHASH_24 SPAKE2_CTX_free SPAKE2_CTX_new @@ -1847,6 +2137,10 @@ SPAKE2_generate_msg SPAKE2_process_msg SSHKDF SSHKDF_verify_service_indicator +SSKDF_digest +SSKDF_digest_verify_service_indicator +SSKDF_hmac +SSKDF_hmac_verify_service_indicator SSLeay SSLeay_version TLSKDF_verify_service_indicator @@ -1865,7 +2159,6 @@ TRUST_TOKEN_ISSUER_issue TRUST_TOKEN_ISSUER_new TRUST_TOKEN_ISSUER_redeem TRUST_TOKEN_ISSUER_redeem_over_message -TRUST_TOKEN_ISSUER_redeem_raw TRUST_TOKEN_ISSUER_set_metadata_key TRUST_TOKEN_ISSUER_set_srr_key TRUST_TOKEN_PRETOKEN_free @@ -1877,6 +2170,8 @@ TRUST_TOKEN_experiment_v2_voprf TRUST_TOKEN_free TRUST_TOKEN_generate_key TRUST_TOKEN_new +TRUST_TOKEN_pst_v1_pmb +TRUST_TOKEN_pst_v1_voprf USERNOTICE_free USERNOTICE_it USERNOTICE_new @@ -1889,10 +2184,9 @@ X509V3_EXT_CRL_add_nconf X509V3_EXT_REQ_add_nconf X509V3_EXT_add X509V3_EXT_add_alias -X509V3_EXT_add_list X509V3_EXT_add_nconf X509V3_EXT_add_nconf_sk -X509V3_EXT_cleanup +X509V3_EXT_conf X509V3_EXT_conf_nid X509V3_EXT_d2i X509V3_EXT_free @@ -1903,13 +2197,13 @@ X509V3_EXT_nconf X509V3_EXT_nconf_nid X509V3_EXT_print X509V3_EXT_print_fp -X509V3_EXT_val_prn X509V3_NAME_from_section X509V3_add1_i2d X509V3_add_standard_extensions X509V3_add_value X509V3_add_value_bool X509V3_add_value_int +X509V3_bool_from_string X509V3_conf_free X509V3_extensions_print X509V3_get_d2i @@ -1956,7 +2250,6 @@ X509_CRL_add1_ext_i2d X509_CRL_add_ext X509_CRL_cmp X509_CRL_delete_ext -X509_CRL_diff X509_CRL_digest X509_CRL_dup X509_CRL_free @@ -1978,6 +2271,7 @@ X509_CRL_get_lastUpdate X509_CRL_get_nextUpdate X509_CRL_get_signature_nid X509_CRL_get_version +X509_CRL_http_nbio X509_CRL_it X509_CRL_match X509_CRL_new @@ -2008,15 +2302,12 @@ X509_EXTENSION_set_critical X509_EXTENSION_set_data X509_EXTENSION_set_object X509_INFO_free -X509_INFO_new -X509_LOOKUP_by_subject +X509_LOOKUP_add_dir X509_LOOKUP_ctrl X509_LOOKUP_file X509_LOOKUP_free X509_LOOKUP_hash_dir -X509_LOOKUP_init -X509_LOOKUP_new -X509_LOOKUP_shutdown +X509_LOOKUP_load_file X509_NAME_ENTRIES_it X509_NAME_ENTRY_create_by_NID X509_NAME_ENTRY_create_by_OBJ @@ -2056,25 +2347,23 @@ X509_NAME_print X509_NAME_print_ex X509_NAME_print_ex_fp X509_NAME_set +X509_OBJECT_free X509_OBJECT_free_contents X509_OBJECT_get0_X509 +X509_OBJECT_get0_X509_CRL X509_OBJECT_get_type -X509_OBJECT_idx_by_subject -X509_OBJECT_retrieve_by_subject -X509_OBJECT_retrieve_match -X509_OBJECT_up_ref_count -X509_PKEY_free -X509_PKEY_new +X509_OBJECT_new +X509_OBJECT_set1_X509 +X509_OBJECT_set1_X509_CRL X509_PUBKEY_free X509_PUBKEY_get +X509_PUBKEY_get0 X509_PUBKEY_get0_param X509_PUBKEY_get0_public_key X509_PUBKEY_it X509_PUBKEY_new X509_PUBKEY_set X509_PUBKEY_set0_param -X509_PURPOSE_add -X509_PURPOSE_cleanup X509_PURPOSE_get0 X509_PURPOSE_get0_name X509_PURPOSE_get0_sname @@ -2099,6 +2388,7 @@ X509_REQ_digest X509_REQ_dup X509_REQ_extension_nid X509_REQ_free +X509_REQ_get0_pubkey X509_REQ_get0_signature X509_REQ_get1_email X509_REQ_get_attr @@ -2156,8 +2446,11 @@ X509_STORE_CTX_get0_param X509_STORE_CTX_get0_parent_ctx X509_STORE_CTX_get0_store X509_STORE_CTX_get0_untrusted +X509_STORE_CTX_get1_certs X509_STORE_CTX_get1_chain +X509_STORE_CTX_get1_crls X509_STORE_CTX_get1_issuer +X509_STORE_CTX_get_by_subject X509_STORE_CTX_get_chain X509_STORE_CTX_get_current_cert X509_STORE_CTX_get_error @@ -2166,7 +2459,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 @@ -2183,49 +2475,29 @@ X509_STORE_CTX_set_time_posix X509_STORE_CTX_set_trust X509_STORE_CTX_set_verify_cb X509_STORE_CTX_trusted_stack -X509_STORE_CTX_zero X509_STORE_add_cert X509_STORE_add_crl X509_STORE_add_lookup X509_STORE_free X509_STORE_get0_objects X509_STORE_get0_param -X509_STORE_get1_certs -X509_STORE_get1_crls -X509_STORE_get_by_subject -X509_STORE_get_cert_crl -X509_STORE_get_check_crl -X509_STORE_get_check_issued -X509_STORE_get_check_revocation -X509_STORE_get_cleanup -X509_STORE_get_get_crl -X509_STORE_get_get_issuer -X509_STORE_get_lookup_certs -X509_STORE_get_lookup_crls -X509_STORE_get_verify -X509_STORE_get_verify_cb +X509_STORE_get_ex_data +X509_STORE_get_ex_new_index X509_STORE_load_locations +X509_STORE_lock X509_STORE_new X509_STORE_set1_param -X509_STORE_set_cert_crl X509_STORE_set_check_crl -X509_STORE_set_check_issued -X509_STORE_set_check_revocation -X509_STORE_set_cleanup X509_STORE_set_default_paths X509_STORE_set_depth +X509_STORE_set_ex_data X509_STORE_set_flags X509_STORE_set_get_crl -X509_STORE_set_get_issuer -X509_STORE_set_lookup_certs -X509_STORE_set_lookup_crls X509_STORE_set_purpose X509_STORE_set_trust -X509_STORE_set_verify X509_STORE_set_verify_cb +X509_STORE_unlock X509_STORE_up_ref -X509_TRUST_add -X509_TRUST_cleanup X509_TRUST_get0 X509_TRUST_get0_name X509_TRUST_get_by_id @@ -2237,14 +2509,9 @@ X509_VAL_free X509_VAL_it X509_VAL_new X509_VERIFY_PARAM_add0_policy -X509_VERIFY_PARAM_add0_table X509_VERIFY_PARAM_add1_host X509_VERIFY_PARAM_clear_flags X509_VERIFY_PARAM_free -X509_VERIFY_PARAM_get0 -X509_VERIFY_PARAM_get0_name -X509_VERIFY_PARAM_get0_peername -X509_VERIFY_PARAM_get_count X509_VERIFY_PARAM_get_depth X509_VERIFY_PARAM_get_flags X509_VERIFY_PARAM_inherit @@ -2255,7 +2522,6 @@ X509_VERIFY_PARAM_set1_email X509_VERIFY_PARAM_set1_host X509_VERIFY_PARAM_set1_ip X509_VERIFY_PARAM_set1_ip_asc -X509_VERIFY_PARAM_set1_name X509_VERIFY_PARAM_set1_policies X509_VERIFY_PARAM_set_depth X509_VERIFY_PARAM_set_flags @@ -2264,7 +2530,6 @@ X509_VERIFY_PARAM_set_purpose X509_VERIFY_PARAM_set_time X509_VERIFY_PARAM_set_time_posix X509_VERIFY_PARAM_set_trust -X509_VERIFY_PARAM_table_cleanup X509_add1_ext_i2d X509_add1_reject_object X509_add1_trust_object @@ -2299,6 +2564,7 @@ X509_get0_authority_serial X509_get0_extensions X509_get0_notAfter X509_get0_notBefore +X509_get0_pubkey X509_get0_pubkey_bitstr X509_get0_serialNumber X509_get0_signature @@ -2331,6 +2597,7 @@ X509_get_notBefore X509_get_pathlen X509_get_pubkey X509_get_serialNumber +X509_get_signature_info X509_get_signature_nid X509_get_subject_name X509_get_version @@ -2382,15 +2649,6 @@ X509_up_ref X509_verify X509_verify_cert X509_verify_cert_error_string -X509at_add1_attr -X509at_add1_attr_by_NID -X509at_add1_attr_by_OBJ -X509at_add1_attr_by_txt -X509at_delete_attr -X509at_get_attr -X509at_get_attr_by_NID -X509at_get_attr_by_OBJ -X509at_get_attr_count X509v3_add_ext X509v3_delete_ext X509v3_get_ext @@ -2398,7 +2656,6 @@ X509v3_get_ext_by_NID X509v3_get_ext_by_OBJ X509v3_get_ext_by_critical X509v3_get_ext_count -a2i_GENERAL_NAME a2i_IPADDRESS a2i_IPADDRESS_NC abi_test_bad_unwind_temporary @@ -2466,7 +2723,9 @@ aes_hw_set_decrypt_key aes_hw_set_encrypt_key aes_hw_xts_cipher aes_hw_xts_decrypt +aes_hw_xts_decrypt_avx512 aes_hw_xts_encrypt +aes_hw_xts_encrypt_avx512 aes_nohw_cbc_encrypt aes_nohw_ctr32_encrypt_blocks aes_nohw_decrypt @@ -2488,6 +2747,8 @@ asn1_enc_init asn1_enc_restore asn1_enc_save asn1_encoding_clear +asn1_evp_pkey_methods +asn1_evp_pkey_methods_size asn1_generalizedtime_to_tm asn1_get_choice_selector asn1_get_field_ptr @@ -2497,18 +2758,23 @@ asn1_item_combine_free asn1_refcount_dec_and_test_zero asn1_refcount_set_one asn1_set_choice_selector +asn1_type_cleanup +asn1_type_set0_string asn1_type_value_as_pointer asn1_utctime_to_tm awslc_api_version_num awslc_version_string beeu_mod_inverse_vartime bio_clear_socket_error -bio_fd_should_retry +bio_errno_should_retry bio_ip_and_port_to_socket_and_addr bio_sock_error bio_socket_nbio +bio_socket_should_retry bn_abs_sub_consttime bn_add_words +bn_assert_fits_in_bytes +bn_big_endian_to_words bn_copy_words bn_div_consttime bn_expand @@ -2522,12 +2788,12 @@ bn_jacobi bn_lcm_consttime bn_less_than_montgomery_R bn_less_than_words +bn_little_endian_to_words bn_miller_rabin_init bn_miller_rabin_iteration bn_minimal_width bn_mod_add_consttime bn_mod_add_words -bn_mod_exp_base_2_consttime bn_mod_exp_mont_small bn_mod_inverse0_prime_mont_small bn_mod_inverse_consttime @@ -2539,15 +2805,21 @@ bn_mod_mul_montgomery_small bn_mod_sub_consttime bn_mod_sub_words bn_mod_u16_consttime +bn_mont_ctx_cleanup +bn_mont_ctx_init +bn_mont_ctx_set_RR_consttime bn_mont_n0 +bn_mul4x_mont bn_mul_add_words bn_mul_comba4 bn_mul_comba8 bn_mul_consttime bn_mul_mont bn_mul_mont_gather5 +bn_mul_mont_nohw bn_mul_small bn_mul_words +bn_mulx4x_mont bn_odd_number_is_obviously_composite bn_one_to_montgomery bn_power5 @@ -2565,6 +2837,7 @@ bn_set_minimal_width bn_set_static_words bn_set_words bn_sqr8x_internal +bn_sqr8x_mont bn_sqr_comba4 bn_sqr_comba8 bn_sqr_consttime @@ -2576,8 +2849,12 @@ bn_to_montgomery_small bn_uadd_consttime bn_usub_consttime bn_wexpand +bn_words_to_big_endian +bn_words_to_little_endian boringssl_ensure_ecc_self_test +boringssl_ensure_eddsa_self_test boringssl_ensure_ffdh_self_test +boringssl_ensure_ml_kem_self_test boringssl_ensure_rsa_self_test boringssl_self_test_hmac_sha256 boringssl_self_test_sha256 @@ -2643,6 +2920,8 @@ d2i_DSA_PUBKEY_fp d2i_DSA_SIG d2i_DSAparams d2i_ECDSA_SIG +d2i_ECPKParameters +d2i_ECPKParameters_bio d2i_ECParameters d2i_ECPrivateKey d2i_ECPrivateKey_bio @@ -2650,7 +2929,6 @@ d2i_ECPrivateKey_fp d2i_EC_PUBKEY d2i_EC_PUBKEY_bio d2i_EC_PUBKEY_fp -d2i_EDIPARTYNAME d2i_EXTENDED_KEY_USAGE d2i_GENERAL_NAME d2i_GENERAL_NAMES @@ -2660,18 +2938,30 @@ d2i_NETSCAPE_SPKI d2i_NOTICEREF d2i_OCSP_BASICRESP d2i_OCSP_CERTID -d2i_OCSP_CERTSTATUS +d2i_OCSP_ONEREQ +d2i_OCSP_REQINFO +d2i_OCSP_REQUEST +d2i_OCSP_REQUEST_bio d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA -d2i_OCSP_RESPID d2i_OCSP_RESPONSE +d2i_OCSP_RESPONSE_bio d2i_OCSP_REVOKEDINFO +d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP -d2i_OTHERNAME d2i_PKCS12 d2i_PKCS12_bio d2i_PKCS12_fp d2i_PKCS7 +d2i_PKCS7_DIGEST +d2i_PKCS7_ENCRYPT +d2i_PKCS7_ENC_CONTENT +d2i_PKCS7_ENVELOPE +d2i_PKCS7_ISSUER_AND_SERIAL +d2i_PKCS7_RECIP_INFO +d2i_PKCS7_SIGNED +d2i_PKCS7_SIGNER_INFO +d2i_PKCS7_SIGN_ENVELOPE d2i_PKCS7_bio d2i_PKCS8PrivateKey_bio d2i_PKCS8PrivateKey_fp @@ -2682,8 +2972,6 @@ d2i_PKCS8_bio d2i_PKCS8_fp d2i_POLICYINFO d2i_POLICYQUALINFO -d2i_PROXY_CERT_INFO_EXTENSION -d2i_PROXY_POLICY d2i_PUBKEY d2i_PUBKEY_bio d2i_PUBKEY_fp @@ -2726,18 +3014,20 @@ d2i_X509_SIG d2i_X509_VAL d2i_X509_bio d2i_X509_fp +dh_asn1_meth +dh_check_params_fast dh_compute_key_padded_no_self_test +dh_pkey_meth dsa_asn1_meth -dsa_check_parameters +dsa_check_key ec_GFp_mont_add ec_GFp_mont_dbl +ec_GFp_mont_felem_exp ec_GFp_mont_felem_from_bytes ec_GFp_mont_felem_mul +ec_GFp_mont_felem_reduce ec_GFp_mont_felem_sqr ec_GFp_mont_felem_to_bytes -ec_GFp_mont_group_finish -ec_GFp_mont_group_init -ec_GFp_mont_group_set_curve ec_GFp_mont_init_precomp ec_GFp_mont_mul ec_GFp_mont_mul_base @@ -2748,9 +3038,7 @@ ec_GFp_nistp_recode_scalar_bits ec_GFp_simple_cmp_x_coordinate ec_GFp_simple_felem_from_bytes ec_GFp_simple_felem_to_bytes -ec_GFp_simple_group_finish ec_GFp_simple_group_get_curve -ec_GFp_simple_group_init ec_GFp_simple_group_set_curve ec_GFp_simple_invert ec_GFp_simple_is_at_infinity @@ -2772,18 +3060,24 @@ ec_felem_equal ec_felem_from_bytes ec_felem_neg ec_felem_non_zero_mask +ec_felem_one ec_felem_select ec_felem_sub ec_felem_to_bignum ec_felem_to_bytes ec_get_x_coordinate_as_bytes ec_get_x_coordinate_as_scalar -ec_group_new +ec_hash_to_curve_p256_xmd_sha256_sswu +ec_hash_to_curve_p384_xmd_sha384_sswu ec_hash_to_curve_p384_xmd_sha512_sswu_draft07 +ec_hash_to_scalar_p384_xmd_sha384 ec_hash_to_scalar_p384_xmd_sha512_draft07 ec_init_precomp ec_jacobian_to_affine ec_jacobian_to_affine_batch +ec_nistp_point_add +ec_nistp_point_double +ec_nistp_scalar_mul ec_point_byte_len ec_point_from_uncompressed ec_point_mul_no_self_test @@ -2831,7 +3125,19 @@ ecp_nistz256_select_w5 ecp_nistz256_select_w7 ecp_nistz256_sqr_mont ed25519_asn1_meth -ed25519_pkey_meth +ed25519_check_public_key_nohw +ed25519_check_public_key_s2n_bignum +ed25519_public_key_from_hashed_seed_nohw +ed25519_public_key_from_hashed_seed_s2n_bignum +ed25519_sha512 +ed25519_sign_nohw +ed25519_sign_s2n_bignum +ed25519_verify_nohw +ed25519_verify_s2n_bignum +evp_pkey_set_method +extract_multiplier_2x20_win5 +extract_multiplier_2x30_win5 +extract_multiplier_2x40_win5 gcm_ghash_avx gcm_ghash_avx512 gcm_ghash_clmul @@ -2848,7 +3154,10 @@ gcm_init_clmul gcm_init_nohw gcm_init_ssse3 gcm_setiv_avx512 -i2a_ACCESS_DESCRIPTION +get_legacy_kem_kyber1024_r3 +get_legacy_kem_kyber512_r3 +get_legacy_kem_kyber768_r3 +hmac_asn1_meth i2a_ASN1_ENUMERATED i2a_ASN1_INTEGER i2a_ASN1_OBJECT @@ -2899,6 +3208,8 @@ i2d_DSA_PUBKEY_fp i2d_DSA_SIG i2d_DSAparams i2d_ECDSA_SIG +i2d_ECPKParameters +i2d_ECPKParameters_bio i2d_ECParameters i2d_ECPrivateKey i2d_ECPrivateKey_bio @@ -2906,7 +3217,6 @@ i2d_ECPrivateKey_fp i2d_EC_PUBKEY i2d_EC_PUBKEY_bio i2d_EC_PUBKEY_fp -i2d_EDIPARTYNAME i2d_EXTENDED_KEY_USAGE i2d_GENERAL_NAME i2d_GENERAL_NAMES @@ -2916,18 +3226,30 @@ i2d_NETSCAPE_SPKI i2d_NOTICEREF i2d_OCSP_BASICRESP i2d_OCSP_CERTID -i2d_OCSP_CERTSTATUS +i2d_OCSP_ONEREQ +i2d_OCSP_REQINFO +i2d_OCSP_REQUEST +i2d_OCSP_REQUEST_bio i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA -i2d_OCSP_RESPID i2d_OCSP_RESPONSE +i2d_OCSP_RESPONSE_bio i2d_OCSP_REVOKEDINFO +i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP -i2d_OTHERNAME i2d_PKCS12 i2d_PKCS12_bio i2d_PKCS12_fp i2d_PKCS7 +i2d_PKCS7_DIGEST +i2d_PKCS7_ENCRYPT +i2d_PKCS7_ENC_CONTENT +i2d_PKCS7_ENVELOPE +i2d_PKCS7_ISSUER_AND_SERIAL +i2d_PKCS7_RECIP_INFO +i2d_PKCS7_SIGNED +i2d_PKCS7_SIGNER_INFO +i2d_PKCS7_SIGN_ENVELOPE i2d_PKCS7_bio i2d_PKCS8PrivateKeyInfo_bio i2d_PKCS8PrivateKeyInfo_fp @@ -2942,8 +3264,6 @@ i2d_PKCS8_bio i2d_PKCS8_fp i2d_POLICYINFO i2d_POLICYQUALINFO -i2d_PROXY_CERT_INFO_EXTENSION -i2d_PROXY_POLICY i2d_PUBKEY i2d_PUBKEY_bio i2d_PUBKEY_fp @@ -2999,52 +3319,87 @@ i2t_ASN1_OBJECT i2v_GENERAL_NAME i2v_GENERAL_NAMES is_fips_build -jent_apt_init -jent_entropy_collector_alloc -jent_entropy_collector_free -jent_entropy_init -jent_entropy_init_ex -jent_entropy_switch_notime_impl -jent_gcd_analyze -jent_gcd_fini -jent_gcd_get -jent_gcd_init -jent_gcd_selftest -jent_health_cb_block_switch -jent_health_failure -jent_lag_init -jent_measure_jitter -jent_random_data -jent_read_entropy -jent_read_entropy_safe -jent_read_random_block -jent_set_fips_failure_callback -jent_set_fips_failure_callback_internal -jent_stuck -jent_time_entropy_init -jent_version +is_public_component_of_rsa_key_good kBoringSSLRSASqrtTwo kBoringSSLRSASqrtTwoLen kOpenSSLReasonStringData kOpenSSLReasonValues kOpenSSLReasonValuesLen kem_asn1_meth -kem_kyber1024r3_method -kem_kyber512r3_method -kem_kyber768r3_method -kem_pkey_meth -kyber1024r3_decapsulate -kyber1024r3_encapsulate -kyber1024r3_keypair -kyber512r3_decapsulate -kyber512r3_encapsulate -kyber512r3_keypair -kyber768r3_decapsulate -kyber768r3_encapsulate -kyber768r3_keypair md4_block_data_order md5_block_asm_data_order +ml_kem_1024_decapsulate +ml_kem_1024_encapsulate +ml_kem_1024_encapsulate_deterministic +ml_kem_1024_keypair +ml_kem_1024_keypair_deterministic +ml_kem_1024_params_init +ml_kem_512_decapsulate +ml_kem_512_decapsulate_no_self_test +ml_kem_512_encapsulate +ml_kem_512_encapsulate_deterministic +ml_kem_512_encapsulate_deterministic_no_self_test +ml_kem_512_keypair +ml_kem_512_keypair_deterministic +ml_kem_512_keypair_deterministic_no_self_test +ml_kem_512_params_init +ml_kem_768_decapsulate +ml_kem_768_encapsulate +ml_kem_768_encapsulate_deterministic +ml_kem_768_keypair +ml_kem_768_keypair_deterministic +ml_kem_768_params_init +ml_kem_barrett_reduce_ref +ml_kem_basemul_ref +ml_kem_cmov_ref +ml_kem_dec_ref +ml_kem_enc_derand_ref +ml_kem_enc_ref +ml_kem_gen_matrix_ref +ml_kem_indcpa_dec_ref +ml_kem_indcpa_enc_ref +ml_kem_indcpa_keypair_derand_ref +ml_kem_invntt_ref +ml_kem_keypair_derand_ref +ml_kem_keypair_ref +ml_kem_kyber_shake128_absorb_ref +ml_kem_kyber_shake128_squeeze_ref +ml_kem_kyber_shake256_prf_ref +ml_kem_kyber_shake256_rkprf_ref +ml_kem_montgomery_reduce_ref +ml_kem_ntt_ref +ml_kem_poly_add_ref +ml_kem_poly_basemul_montgomery_ref +ml_kem_poly_cbd_eta1_ref +ml_kem_poly_cbd_eta2_ref +ml_kem_poly_compress_ref +ml_kem_poly_decompress_ref +ml_kem_poly_frombytes_ref +ml_kem_poly_frommsg_ref +ml_kem_poly_getnoise_eta1_ref +ml_kem_poly_getnoise_eta2_ref +ml_kem_poly_invntt_tomont_ref +ml_kem_poly_ntt_ref +ml_kem_poly_reduce_ref +ml_kem_poly_sub_ref +ml_kem_poly_tobytes_ref +ml_kem_poly_tomont_ref +ml_kem_poly_tomsg_ref +ml_kem_polyvec_add_ref +ml_kem_polyvec_basemul_acc_montgomery_ref +ml_kem_polyvec_compress_ref +ml_kem_polyvec_decompress_ref +ml_kem_polyvec_frombytes_ref +ml_kem_polyvec_invntt_tomont_ref +ml_kem_polyvec_ntt_ref +ml_kem_polyvec_reduce_ref +ml_kem_polyvec_tobytes_ref +ml_kem_verify_ref +ml_kem_zetas_ref o2i_ECPublicKey +p256_methods +p384_methods +p521_methods pkcs12_iterations_acceptable pkcs12_key_gen pkcs12_pbe_encrypt_init @@ -3069,6 +3424,15 @@ pmbtoken_exp2_issuer_key_from_bytes pmbtoken_exp2_read pmbtoken_exp2_sign pmbtoken_exp2_unblind +pmbtoken_pst1_blind +pmbtoken_pst1_client_key_from_bytes +pmbtoken_pst1_derive_key_from_secret +pmbtoken_pst1_generate_key +pmbtoken_pst1_get_h_for_testing +pmbtoken_pst1_issuer_key_from_bytes +pmbtoken_pst1_read +pmbtoken_pst1_sign +pmbtoken_pst1_unblind poly_Rq_mul pq_custom_randombytes pq_custom_randombytes_init_for_testing @@ -3078,12 +3442,14 @@ pqcrystals_kyber1024_ref_basemul pqcrystals_kyber1024_ref_cmov pqcrystals_kyber1024_ref_dec pqcrystals_kyber1024_ref_enc +pqcrystals_kyber1024_ref_enc_derand pqcrystals_kyber1024_ref_gen_matrix pqcrystals_kyber1024_ref_indcpa_dec pqcrystals_kyber1024_ref_indcpa_enc -pqcrystals_kyber1024_ref_indcpa_keypair +pqcrystals_kyber1024_ref_indcpa_keypair_derand pqcrystals_kyber1024_ref_invntt pqcrystals_kyber1024_ref_keypair +pqcrystals_kyber1024_ref_keypair_derand pqcrystals_kyber1024_ref_kyber_shake128_absorb pqcrystals_kyber1024_ref_kyber_shake256_prf pqcrystals_kyber1024_ref_montgomery_reduce @@ -3121,12 +3487,14 @@ pqcrystals_kyber512_ref_basemul pqcrystals_kyber512_ref_cmov pqcrystals_kyber512_ref_dec pqcrystals_kyber512_ref_enc +pqcrystals_kyber512_ref_enc_derand pqcrystals_kyber512_ref_gen_matrix pqcrystals_kyber512_ref_indcpa_dec pqcrystals_kyber512_ref_indcpa_enc -pqcrystals_kyber512_ref_indcpa_keypair +pqcrystals_kyber512_ref_indcpa_keypair_derand pqcrystals_kyber512_ref_invntt pqcrystals_kyber512_ref_keypair +pqcrystals_kyber512_ref_keypair_derand pqcrystals_kyber512_ref_kyber_shake128_absorb pqcrystals_kyber512_ref_kyber_shake256_prf pqcrystals_kyber512_ref_montgomery_reduce @@ -3164,12 +3532,14 @@ pqcrystals_kyber768_ref_basemul pqcrystals_kyber768_ref_cmov pqcrystals_kyber768_ref_dec pqcrystals_kyber768_ref_enc +pqcrystals_kyber768_ref_enc_derand pqcrystals_kyber768_ref_gen_matrix pqcrystals_kyber768_ref_indcpa_dec pqcrystals_kyber768_ref_indcpa_enc -pqcrystals_kyber768_ref_indcpa_keypair +pqcrystals_kyber768_ref_indcpa_keypair_derand pqcrystals_kyber768_ref_invntt pqcrystals_kyber768_ref_keypair +pqcrystals_kyber768_ref_keypair_derand pqcrystals_kyber768_ref_kyber_shake128_absorb pqcrystals_kyber768_ref_kyber_shake256_prf pqcrystals_kyber768_ref_montgomery_reduce @@ -3220,13 +3590,14 @@ pqcrystals_kyber_fips202_ref_shake256_squeeze pqcrystals_kyber_fips202_ref_shake256_squeezeblocks rand_fork_unsafe_buffering_enabled rsa_asn1_meth -rsa_check_public_key -rsa_default_decrypt rsa_default_private_transform rsa_default_sign_raw rsa_default_size rsa_digestsign_no_self_test rsa_digestverify_no_self_test +rsa_invalidate_key +rsa_private_transform +rsa_private_transform_no_self_test rsa_pss_asn1_meth rsa_sign_no_self_test rsa_verify_no_self_test @@ -3237,44 +3608,34 @@ rsaz_1024_norm2red_avx2 rsaz_1024_red2norm_avx2 rsaz_1024_scatter5_avx2 rsaz_1024_sqr_avx2 +rsaz_amm52x20_x1_ifma256 +rsaz_amm52x20_x2_ifma256 +rsaz_amm52x30_x1_ifma256 +rsaz_amm52x30_x2_ifma256 +rsaz_amm52x40_x1_ifma256 +rsaz_amm52x40_x2_ifma256 s2i_ASN1_INTEGER s2i_ASN1_OCTET_STRING -sha1_block_data_order +sha1_block_data_order_avx +sha1_block_data_order_avx2 +sha1_block_data_order_hw +sha1_block_data_order_nohw +sha1_block_data_order_ssse3 sha1_func sha224_func -sha256_block_data_order +sha256_block_data_order_avx +sha256_block_data_order_hw +sha256_block_data_order_nohw +sha256_block_data_order_ssse3 sha256_func sha384_func -sha3_256_init -sha3_alloc -sha3_dealloc -sha3_final -sha3_tester -sha3_update -sha512_block_data_order +sha512_block_data_order_avx +sha512_block_data_order_nohw sha512_func -sk_deep_copy -sk_delete -sk_delete_if -sk_delete_ptr -sk_dup -sk_find -sk_free -sk_insert -sk_is_sorted -sk_new -sk_new_null -sk_num -sk_pop sk_pop_free -sk_pop_free_ex -sk_push -sk_set -sk_set_cmp_func -sk_shift -sk_sort -sk_value -sk_zero +sskdf_variant_digest +sskdf_variant_hmac +used_for_hmac v2i_GENERAL_NAME v2i_GENERAL_NAMES v2i_GENERAL_NAME_ex @@ -3298,7 +3659,7 @@ v3_ns_ia5_list v3_nscert v3_ocsp_accresp v3_ocsp_nocheck -v3_pci +v3_ocsp_nonce v3_policy_constraints v3_policy_mappings v3_sinfo @@ -3311,6 +3672,15 @@ voprf_exp2_issuer_key_from_bytes voprf_exp2_read voprf_exp2_sign voprf_exp2_unblind +voprf_pst1_blind +voprf_pst1_client_key_from_bytes +voprf_pst1_derive_key_from_secret +voprf_pst1_generate_key +voprf_pst1_issuer_key_from_bytes +voprf_pst1_read +voprf_pst1_sign +voprf_pst1_sign_with_proof_scalar_for_testing +voprf_pst1_unblind vpaes_cbc_encrypt vpaes_ctr32_encrypt_blocks vpaes_decrypt @@ -3329,11 +3699,17 @@ x25519_ge_scalarmult_small_precomp x25519_ge_sub x25519_ge_tobytes x25519_pkey_meth +x25519_public_from_private_nohw +x25519_public_from_private_s2n_bignum x25519_sc_reduce +x25519_scalar_mult_generic_nohw +x25519_scalar_mult_generic_s2n_bignum x509V3_add_value_asn1_string x509_check_cert_time +x509_check_issued_with_callback x509_digest_sign_algorithm x509_digest_verify_init +x509_init_signature_info x509_print_rsa_pss_params x509_rsa_ctx_to_pss x509_rsa_pss_to_ctx @@ -3341,6 +3717,7 @@ x509v3_a2i_ipadd x509v3_bytes_to_hex x509v3_cache_extensions x509v3_conf_name_matches +x509v3_ext_free_with_method x509v3_hex_to_bytes x509v3_looks_like_dns_name x86_64_assembly_implementation_FOR_TESTING diff --git a/aws-lc-rs/Cargo.toml b/aws-lc-rs/Cargo.toml index d373cac01ef..601fb6e1437 100644 --- a/aws-lc-rs/Cargo.toml +++ b/aws-lc-rs/Cargo.toml @@ -48,7 +48,7 @@ fips = ["dep:aws-lc-fips-sys"] [dependencies] untrusted = { version = "0.7.1", optional = true } aws-lc-sys = { version = "0.23.0", path = "../aws-lc-sys", optional = true } -aws-lc-fips-sys = { version = "0.12.0", path = "../aws-lc-fips-sys", optional = true } +aws-lc-fips-sys = { version = "0.13.0", path = "../aws-lc-fips-sys", optional = true } zeroize = "1.7" paste = "1.0.11" diff --git a/aws-lc-rs/src/digest/tests/fips.rs b/aws-lc-rs/src/digest/tests/fips.rs index 3d0dddf16a1..f2a83d33d5d 100644 --- a/aws-lc-rs/src/digest/tests/fips.rs +++ b/aws-lc-rs/src/digest/tests/fips.rs @@ -40,6 +40,6 @@ digest_api!(sha256, &SHA256, FipsServiceStatus::Approved); digest_api!(sha384, &SHA384, FipsServiceStatus::Approved); digest_api!(sha512, &SHA512, FipsServiceStatus::Approved); digest_api!(sha512_256, &SHA512_256, FipsServiceStatus::Approved); -digest_api!(sha3_256, &SHA3_256, FipsServiceStatus::NonApproved); -digest_api!(sha3_384, &SHA3_384, FipsServiceStatus::NonApproved); -digest_api!(sha3_512, &SHA3_512, FipsServiceStatus::NonApproved); +digest_api!(sha3_256, &SHA3_256, FipsServiceStatus::Approved); +digest_api!(sha3_384, &SHA3_384, FipsServiceStatus::Approved); +digest_api!(sha3_512, &SHA3_512, FipsServiceStatus::Approved); diff --git a/aws-lc-rs/src/rsa/tests/fips.rs b/aws-lc-rs/src/rsa/tests/fips.rs index 6e96753b5be..f5be772478c 100644 --- a/aws-lc-rs/src/rsa/tests/fips.rs +++ b/aws-lc-rs/src/rsa/tests/fips.rs @@ -81,12 +81,7 @@ generate_key!(rsa2048_signing_generate_key, KeyPair, KeySize::Rsa2048); generate_key!(rsa3072_signing_generate_key, KeyPair, KeySize::Rsa3072); generate_key!(rsa4096_signing_generate_key, KeyPair, KeySize::Rsa4096); -generate_key!( - rsa8192_signing_generate_key, - KeyPair, - KeySize::Rsa8192, - false -); +generate_key!(rsa8192_signing_generate_key, KeyPair, KeySize::Rsa8192); generate_key!( rsa2048_encryption_generate_key, @@ -106,6 +101,5 @@ generate_key!( generate_key!( rsa8192_encryption_generate_key, PrivateDecryptingKey, - KeySize::Rsa8192, - false + KeySize::Rsa8192 ); diff --git a/aws-lc-rs/src/signature/tests/fips.rs b/aws-lc-rs/src/signature/tests/fips.rs index 78524cab7b6..a8ef3e14938 100644 --- a/aws-lc-rs/src/signature/tests/fips.rs +++ b/aws-lc-rs/src/signature/tests/fips.rs @@ -90,14 +90,14 @@ ecdsa_generate_sign_verify!( &ECDSA_P384_SHA3_384_ASN1_SIGNING, ECDSA_P384_SHA3_384_ASN1, FipsServiceStatus::Approved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ); ecdsa_generate_sign_verify!( ecdsa_p384_sha3_384_fixed, &ECDSA_P384_SHA3_384_FIXED_SIGNING, ECDSA_P384_SHA3_384_FIXED, FipsServiceStatus::Approved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ); ecdsa_generate_sign_verify!( ecdsa_p384_sha384_asn1, @@ -118,14 +118,14 @@ ecdsa_generate_sign_verify!( &ECDSA_P521_SHA3_512_ASN1_SIGNING, ECDSA_P521_SHA3_512_ASN1, FipsServiceStatus::Approved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ); ecdsa_generate_sign_verify!( ecdsa_p521_sha3_512_fixed, &ECDSA_P521_SHA3_512_FIXED_SIGNING, ECDSA_P521_SHA3_512_FIXED, FipsServiceStatus::Approved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ); ecdsa_generate_sign_verify!( ecdsa_p521_sha512_asn1, @@ -148,7 +148,7 @@ fn ed25519() { let key_document = assert_fips_status_indicator!( Ed25519KeyPair::generate_pkcs8(&rng), - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ) .unwrap(); @@ -160,7 +160,7 @@ fn ed25519() { let signature = assert_fips_status_indicator!( keypair.sign(TEST_MESSAGE.as_bytes()), - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ); let public_key = keypair.public_key(); @@ -171,7 +171,7 @@ fn ed25519() { TEST_MESSAGE.as_bytes(), signature.as_ref() ), - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved ) .unwrap(); } @@ -308,24 +308,24 @@ rsa_sign_verify!( &TEST_RSA_8192_PRIVATE_PKCS8_DER[..], &RSA_PKCS1_SHA256, RSA_PKCS1_2048_8192_SHA256, - FipsServiceStatus::NonApproved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved, + FipsServiceStatus::Approved ); rsa_sign_verify!( rsa_pkcs1_8192_sha384, &TEST_RSA_8192_PRIVATE_PKCS8_DER[..], &RSA_PKCS1_SHA384, RSA_PKCS1_2048_8192_SHA384, - FipsServiceStatus::NonApproved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved, + FipsServiceStatus::Approved ); rsa_sign_verify!( rsa_pkcs1_8192_sha512, &TEST_RSA_8192_PRIVATE_PKCS8_DER[..], &RSA_PKCS1_SHA512, RSA_PKCS1_2048_8192_SHA512, - FipsServiceStatus::NonApproved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved, + FipsServiceStatus::Approved ); rsa_sign_verify!( rsa_pss_2048_sha256, @@ -380,24 +380,24 @@ rsa_sign_verify!( &TEST_RSA_8192_PRIVATE_PKCS8_DER[..], &RSA_PSS_SHA256, RSA_PSS_2048_8192_SHA256, - FipsServiceStatus::NonApproved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved, + FipsServiceStatus::Approved ); rsa_sign_verify!( rsa_pss_8192_sha384, &TEST_RSA_8192_PRIVATE_PKCS8_DER[..], &RSA_PSS_SHA384, RSA_PSS_2048_8192_SHA384, - FipsServiceStatus::NonApproved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved, + FipsServiceStatus::Approved ); rsa_sign_verify!( rsa_pss_8192_sha512, &TEST_RSA_8192_PRIVATE_PKCS8_DER[..], &RSA_PSS_SHA512, RSA_PSS_2048_8192_SHA512, - FipsServiceStatus::NonApproved, - FipsServiceStatus::NonApproved + FipsServiceStatus::Approved, + FipsServiceStatus::Approved ); macro_rules! rsa_verify { diff --git a/aws-lc-rs/tests/rsa_test.rs b/aws-lc-rs/tests/rsa_test.rs index 5550b826476..e4e2f7c7d18 100644 --- a/aws-lc-rs/tests/rsa_test.rs +++ b/aws-lc-rs/tests/rsa_test.rs @@ -340,7 +340,7 @@ generate_fips_encode_decode!(rsa3072_generate_fips_encode_decode, KeySize::Rsa30 generate_fips_encode_decode!(rsa4096_generate_fips_encode_decode, KeySize::Rsa4096); // RSA8192 tests are not run in dev (debug) builds because it is too slow. #[cfg(not(debug_assertions))] -generate_fips_encode_decode!(rsa8192_generate_fips_encode_decode, KeySize::Rsa8192, false); +generate_fips_encode_decode!(rsa8192_generate_fips_encode_decode, KeySize::Rsa8192); macro_rules! encryption_generate_encode_decode { ($name:ident, $size:expr) => { @@ -420,8 +420,7 @@ encryption_generate_fips_encode_decode!( #[cfg(not(debug_assertions))] encryption_generate_fips_encode_decode!( rsa8192_encryption_generate_fips_encode_decode, - KeySize::Rsa8192, - false + KeySize::Rsa8192 ); #[test] diff --git a/scripts/build/collect_symbols.sh b/scripts/build/collect_symbols.sh index 63de9c33a03..af8dda741f5 100755 --- a/scripts/build/collect_symbols.sh +++ b/scripts/build/collect_symbols.sh @@ -57,7 +57,7 @@ if [[ ! -d "${AWS_LC_DIR}" ]]; then fi function filter_symbols() { - grep -E '^\w*$' | grep -v -E "^bignum_" | grep -v "curve25519_x25519" | grep -v "edwards25519_" | grep -v "p256_montjscalarmul" + grep -E '^\w*$' | grep -v -E "^bignum_" | grep -v "curve25519_x25519" | grep -v "edwards25519_" | grep -v "p256_montj" | grep -v "p384_montj" | grep -v "p521_montj" | grep -v "p521_jdouble" } function filter_nm_symbols() { @@ -112,7 +112,7 @@ elif [[ "${LIBCRYPTO_PATH}" = *.so || "${LIBCRYPTO_PATH}" = *.lib ]]; then nm --extern-only --defined-only --format=just-symbols "${LIBCRYPTO_PATH}" | sort | uniq | filter_nm_symbols | filter_symbols >"${SYMBOLS_FILE}" else pushd "${AWS_LC_DIR}" - go run -mod readonly "${AWS_LC_DIR}"/util/read_symbols.go "${LIBCRYPTO_PATH}" | filter_symbols >"${SYMBOLS_FILE}" + go run -mod readonly "${AWS_LC_DIR}"/util/read_symbols.go "${LIBCRYPTO_PATH}" | sort | uniq | filter_nm_symbols | filter_symbols >"${SYMBOLS_FILE}" popd fi diff --git a/scripts/generate/_collect_symbols_build.sh b/scripts/generate/_collect_symbols_build.sh index fc4e13fab68..1bb47b7f524 100755 --- a/scripts/generate/_collect_symbols_build.sh +++ b/scripts/generate/_collect_symbols_build.sh @@ -20,7 +20,7 @@ function cmake_build_options() { } function filter_symbols() { - grep -v "^_\?bignum_" | grep -v "_\?curve25519_x25519" | grep -v "_\?edwards25519_" | grep -v "_\?p256_montjscalarmul" + grep -v "^_\?bignum_" | grep -v "_\?curve25519_x25519" | grep -v "_\?edwards25519_" | grep -v "_\?p256_montj" | grep -v "_\?p384_montj" | grep -v "_\?p521_montj" | grep -v "_\?p521_jdouble" } REPO_ROOT=$(git rev-parse --show-toplevel) diff --git a/scripts/tools/semver.rs b/scripts/tools/semver.rs index 131af13959c..3a38dfb62bf 100755 --- a/scripts/tools/semver.rs +++ b/scripts/tools/semver.rs @@ -23,6 +23,7 @@ struct Args { enum Release { Main { tags: Vec }, FipsV2 { tags: Vec }, + FipsV3 { tags: Vec }, } // regex from https://semver.org/ @@ -34,6 +35,7 @@ fn main() -> Result<(), Box> { let latest = match args.release { Release::Main { tags } => get_latest_main(tags)?, Release::FipsV2 { tags } => get_latest_fips(tags, 2)?, + Release::FipsV3 { tags } => get_latest_fips(tags, 3)?, }; println!("{latest}");