Skip to content

Commit fb57f9f

Browse files
authored
Merge pull request #2150 from alex/brainpool-on-libressl
Expose brainpool NIDs on libressl
2 parents a14146f + ca3f45d commit fb57f9f

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)