File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,16 @@ pub const OSSL_PARAM_END: ossl_param_st = ossl_param_st {
173
173
return_size : 0 ,
174
174
} ;
175
175
176
- const OSSL_PARAM_UNMODIFIED : usize = core:: ffi:: c_size_t:: MAX ;
176
+ /*
177
+ * core::ffi:c_size_t is only in nightly, and unstable
178
+ *
179
+ * https://github.com/rust-lang/rust/issues/88345 seems to have stalled,
180
+ * so for now we just assume c_size_t and usize are the same.
181
+ *
182
+ * TODO: revisit if c_size_t goes stable
183
+ */
184
+ // const OSSL_PARAM_UNMODIFIED: usize = core::ffi::c_size_t::MAX;
185
+ const OSSL_PARAM_UNMODIFIED : usize = usize:: MAX ;
177
186
178
187
pub fn ossl_param_locate < ' a > ( params : & ' a mut [ OSSLParam ] , key : & KeyType ) -> Option < & ' a mut OSSLParam > {
179
188
params. iter_mut ( ) . find ( |p| {
You can’t perform that action at this time.
0 commit comments