Skip to content

Commit

Permalink
Fix bindgen include file allowlist (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Jul 18, 2024
1 parent 7824ec2 commit 13e607d
Show file tree
Hide file tree
Showing 22 changed files with 302 additions and 8 deletions.
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn prepare_bindings_builder(manifest_dir: &Path, options: &BindingOptions) -> bi
.derive_debug(true)
.derive_default(true)
.derive_eq(true)
.allowlist_file(r".*(/|\\)openssl(/|\\)[^/\\]+\.h")
.allowlist_file(r".*(/|\\)openssl((/|\\)[^/\\]+)+\.h")
.allowlist_file(r".*(/|\\)rust_wrapper\.h")
.rustified_enum(r"point_conversion_form_t")
.default_macro_constant_type(bindgen::MacroTypeVariation::Signed)
Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:39:13 UTC 2024
// Wed Jul 17 13:42:43 UTC 2024

use crate::cc_builder::Library;

Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:42:58 UTC 2024
// Wed Jul 17 13:47:15 UTC 2024

use crate::cc_builder::Library;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:44:00 UTC 2024
// Wed Jul 17 13:48:44 UTC 2024

use crate::cc_builder::Library;

Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:42:50 UTC 2024
// Wed Jul 17 13:47:36 UTC 2024

use crate::cc_builder::Library;

Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder/x86_64_apple_darwin.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:41:31 UTC 2024
// Wed Jul 17 13:45:33 UTC 2024

use crate::cc_builder::Library;

Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:39:13 UTC 2024
// Wed Jul 17 13:43:23 UTC 2024

use crate::cc_builder::Library;

Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_musl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC
// Mon Jul 15 16:43:43 UTC 2024
// Wed Jul 17 13:49:36 UTC 2024

use crate::cc_builder::Library;

Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/aarch64_apple_darwin_crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27305,6 +27305,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_ERR_GET_LIB_RUST"]
pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int;
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/aarch64_apple_darwin_crypto_ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28326,6 +28326,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/aarch64_unknown_linux_gnu_crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27340,6 +27340,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_ERR_GET_LIB_RUST"]
pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int;
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/aarch64_unknown_linux_gnu_crypto_ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28360,6 +28360,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/aarch64_unknown_linux_musl_crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27030,6 +27030,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_ERR_GET_LIB_RUST"]
pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int;
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/aarch64_unknown_linux_musl_crypto_ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28050,6 +28050,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/i686_unknown_linux_gnu_crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27341,6 +27341,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_ERR_GET_LIB_RUST"]
pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int;
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/i686_unknown_linux_gnu_crypto_ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28361,6 +28361,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/x86_64_apple_darwin_crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27305,6 +27305,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_ERR_GET_LIB_RUST"]
pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int;
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/x86_64_apple_darwin_crypto_ssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28326,6 +28326,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}_aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
Expand Down
21 changes: 21 additions & 0 deletions aws-lc-sys/src/x86_64_unknown_linux_gnu_crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27340,6 +27340,27 @@ extern "C" {
encrypted_bit: u8,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_keygen_deterministic"]
pub fn EVP_PKEY_keygen_deterministic(
ctx: *mut EVP_PKEY_CTX,
out_pkey: *mut *mut EVP_PKEY,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_EVP_PKEY_encapsulate_deterministic"]
pub fn EVP_PKEY_encapsulate_deterministic(
ctx: *mut EVP_PKEY_CTX,
ciphertext: *mut u8,
ciphertext_len: *mut usize,
shared_secret: *mut u8,
shared_secret_len: *mut usize,
seed: *const u8,
seed_len: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}aws_lc_0_20_0_ERR_GET_LIB_RUST"]
pub fn ERR_GET_LIB_RUST(packed_error: u32) -> ::std::os::raw::c_int;
Expand Down
Loading

0 comments on commit 13e607d

Please sign in to comment.