Skip to content

Commit

Permalink
specify ABI for extern declarations
Browse files Browse the repository at this point in the history
Declarations without explicit ABI are now deprecated in nightly and
cause warnings.
  • Loading branch information
ghedo committed Jan 16, 2025
1 parent 028f8ac commit d718815
Show file tree
Hide file tree
Showing 10 changed files with 242 additions and 210 deletions.
2 changes: 1 addition & 1 deletion quiche/src/crypto/boringssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub(crate) fn hkdf_expand(
Ok(())
}

extern {
extern "C" {
fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD;

fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD;
Expand Down
2 changes: 1 addition & 1 deletion quiche/src/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ pub fn verify_slices_are_equal(a: &[u8], b: &[u8]) -> Result<()> {
Err(Error::CryptoFail)
}

extern {
extern "C" {
fn EVP_sha256() -> *const EVP_MD;

fn EVP_sha384() -> *const EVP_MD;
Expand Down
2 changes: 1 addition & 1 deletion quiche/src/crypto/openssl_quictls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ pub(crate) fn hkdf_expand(
Ok(())
}

extern {
extern "C" {
// EVP
fn EVP_aes_128_gcm() -> *const EVP_AEAD;

Expand Down
Loading

0 comments on commit d718815

Please sign in to comment.