Skip to content

Commit ca3f45d

Browse files
committed
Expose brainpool NIDs on libressl
1 parent a14146f commit ca3f45d

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

openssl-sys/src/obj_mac.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,27 @@ pub const NID_sect409k1: c_int = 731;
9494
pub const NID_sect409r1: c_int = 732;
9595
pub const NID_sect571k1: c_int = 733;
9696
pub const NID_sect571r1: c_int = 734;
97+
9798
#[cfg(ossl110)]
9899
pub const NID_brainpoolP256r1: c_int = 927;
100+
#[cfg(libressl)]
101+
pub const NID_brainpoolP256r1: c_int = 928;
102+
99103
#[cfg(ossl110)]
100104
pub const NID_brainpoolP320r1: c_int = 929;
105+
#[cfg(libressl)]
106+
pub const NID_brainpoolP320r1: c_int = 930;
107+
101108
#[cfg(ossl110)]
102109
pub const NID_brainpoolP384r1: c_int = 931;
110+
#[cfg(libressl)]
111+
pub const NID_brainpoolP384r1: c_int = 932;
112+
103113
#[cfg(ossl110)]
104114
pub const NID_brainpoolP512r1: c_int = 933;
115+
#[cfg(libressl)]
116+
pub const NID_brainpoolP512r1: c_int = 934;
117+
105118
pub const NID_wap_wsg_idm_ecid_wtls1: c_int = 735;
106119
pub const NID_wap_wsg_idm_ecid_wtls3: c_int = 736;
107120
pub const NID_wap_wsg_idm_ecid_wtls4: c_int = 737;

openssl/src/nid.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,13 @@ impl Nid {
215215
pub const SECT409R1: Nid = Nid(ffi::NID_sect409r1);
216216
pub const SECT571K1: Nid = Nid(ffi::NID_sect571k1);
217217
pub const SECT571R1: Nid = Nid(ffi::NID_sect571r1);
218-
#[cfg(ossl110)]
218+
#[cfg(any(ossl110, libressl))]
219219
pub const BRAINPOOL_P256R1: Nid = Nid(ffi::NID_brainpoolP256r1);
220-
#[cfg(ossl110)]
220+
#[cfg(any(ossl110, libressl))]
221221
pub const BRAINPOOL_P320R1: Nid = Nid(ffi::NID_brainpoolP320r1);
222-
#[cfg(ossl110)]
222+
#[cfg(any(ossl110, libressl))]
223223
pub const BRAINPOOL_P384R1: Nid = Nid(ffi::NID_brainpoolP384r1);
224-
#[cfg(ossl110)]
224+
#[cfg(any(ossl110, libressl))]
225225
pub const BRAINPOOL_P512R1: Nid = Nid(ffi::NID_brainpoolP512r1);
226226
pub const WAP_WSG_IDM_ECID_WTLS1: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls1);
227227
pub const WAP_WSG_IDM_ECID_WTLS3: Nid = Nid(ffi::NID_wap_wsg_idm_ecid_wtls3);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy