Skip to content

Commit c9a5be8

Browse files
authored
Merge pull request #2463 from huwcbjones/huw/sys/evp-cmp
sys/evp: add EVP_PKEY_eq and EVP_PKEY_parameters_eq
2 parents 88b0686 + f4a23c2 commit c9a5be8

File tree

1 file changed

+5
-0
lines changed
  • openssl-sys/src/handwritten

1 file changed

+5
-0
lines changed

openssl-sys/src/handwritten/evp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,12 @@ extern "C" {
520520
length: c_long,
521521
) -> *mut EVP_PKEY;
522522

523+
#[cfg(not(osslconf = "OPENSSL_NO_DEPRECATED_3_0"))]
523524
pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> c_int;
525+
#[cfg(ossl300)]
526+
pub fn EVP_PKEY_eq(a: *const EVP_PKEY, b: *const EVP_PKEY) -> c_int;
527+
#[cfg(ossl300)]
528+
pub fn EVP_PKEY_parameters_eq(a: *const EVP_PKEY, b: *const EVP_PKEY) -> c_int;
524529

525530
pub fn EVP_PKEY_copy_parameters(to: *mut EVP_PKEY, from: *const EVP_PKEY) -> c_int;
526531

0 commit comments

Comments
 (0)