File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ pub const EVP_CTRL_GCM_SET_IVLEN: c_int = 0x9;
38
38
pub const EVP_CTRL_GCM_GET_TAG : c_int = 0x10 ;
39
39
pub const EVP_CTRL_GCM_SET_TAG : c_int = 0x11 ;
40
40
41
- # [ cfg ( ossl300 ) ]
42
- pub const EVP_PKEY_KEY_PARAMETERS : c_int = OSSL_KEYMGMT_SELECT_ALL_PARAMETERS ;
43
- # [ cfg ( ossl300 ) ]
44
- pub const EVP_PKEY_PRIVATE_KEY : c_int = EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PRIVATE_KEY ;
45
- # [ cfg ( ossl300 ) ]
46
- pub const EVP_PKEY_PUBLIC_KEY : c_int = EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PUBLIC_KEY ;
47
- # [ cfg ( ossl300 ) ]
48
- pub const EVP_PKEY_KEYPAIR : c_int = EVP_PKEY_PUBLIC_KEY | OSSL_KEYMGMT_SELECT_PRIVATE_KEY ;
41
+ cfg_if ! {
42
+ if # [ cfg ( ossl300 ) ] {
43
+ pub const EVP_PKEY_KEY_PARAMETERS : c_int = OSSL_KEYMGMT_SELECT_ALL_PARAMETERS ;
44
+ pub const EVP_PKEY_PRIVATE_KEY : c_int = EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PRIVATE_KEY ;
45
+ pub const EVP_PKEY_PUBLIC_KEY : c_int = EVP_PKEY_KEY_PARAMETERS | OSSL_KEYMGMT_SELECT_PUBLIC_KEY ;
46
+ pub const EVP_PKEY_KEYPAIR : c_int = EVP_PKEY_PUBLIC_KEY | OSSL_KEYMGMT_SELECT_PRIVATE_KEY ;
47
+ }
48
+ }
49
49
50
50
pub unsafe fn EVP_get_digestbynid ( type_ : c_int ) -> * const EVP_MD {
51
51
EVP_get_digestbyname ( OBJ_nid2sn ( type_) )
You can’t perform that action at this time.
0 commit comments