Skip to content

Commit 2f4cf0c

Browse files
committed
fixup! sys/dh: add EVP_PKEY_CTX set dh prime_len & generator
For boring
1 parent e522dc4 commit 2f4cf0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openssl-sys/src/dh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::ptr;
44
use super::super::*;
55

66
cfg_if! {
7-
if #[cfg(not(ossl300))] {
7+
if #[cfg(any(not(ossl300), boringssl))] {
88
pub unsafe fn EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx: *mut EVP_PKEY_CTX, len: c_int) -> c_int {
99
EVP_PKEY_CTX_ctrl(
1010
ctx,

openssl-sys/src/handwritten/dh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::super::*;
22

3-
#[cfg(ossl300)]
3+
#[cfg(all(ossl300, not(boringssl)))]
44
extern "C" {
55
pub fn EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx: *mut EVP_PKEY_CTX, len: c_int) -> c_int;
66
pub fn EVP_PKEY_CTX_set_dh_paramgen_generator(ctx: *mut EVP_PKEY_CTX, gen: c_int) -> c_int;

0 commit comments

Comments
 (0)