Skip to content

Commit 1ce898e

Browse files
committed
Merge pull request #2497 from rust-openssl/botovq-simplify-cfg
2 parents 8d46245 + 9b67d52 commit 1ce898e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

openssl/src/dh.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl Dh<Params> {
155155

156156
/// Requires OpenSSL 1.0.2 or newer.
157157
#[corresponds(DH_get_1024_160)]
158-
#[cfg(any(ossl102, ossl110))]
158+
#[cfg(ossl102)]
159159
pub fn get_1024_160() -> Result<Dh<Params>, ErrorStack> {
160160
unsafe {
161161
ffi::init();
@@ -165,7 +165,7 @@ impl Dh<Params> {
165165

166166
/// Requires OpenSSL 1.0.2 or newer.
167167
#[corresponds(DH_get_2048_224)]
168-
#[cfg(any(ossl102, ossl110))]
168+
#[cfg(ossl102)]
169169
pub fn get_2048_224() -> Result<Dh<Params>, ErrorStack> {
170170
unsafe {
171171
ffi::init();
@@ -175,7 +175,7 @@ impl Dh<Params> {
175175

176176
/// Requires OpenSSL 1.0.2 or newer.
177177
#[corresponds(DH_get_2048_256)]
178-
#[cfg(any(ossl102, ossl110))]
178+
#[cfg(ossl102)]
179179
pub fn get_2048_256() -> Result<Dh<Params>, ErrorStack> {
180180
unsafe {
181181
ffi::init();

openssl/src/ssl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ bitflags! {
246246
///
247247
/// let options = SslOptions::NO_SSL_MASK & !SslOptions::NO_TLSV1_2;
248248
/// ```
249-
#[cfg(any(ossl102, ossl110))]
249+
#[cfg(ossl102)]
250250
const NO_SSL_MASK = ffi::SSL_OP_NO_SSL_MASK as SslOptionsRepr;
251251

252252
/// Disallow all renegotiation in TLSv1.2 and earlier.

0 commit comments

Comments
 (0)