Loading openssl/src/pkey_ctx.rs +2 −2 Original line number Diff line number Diff line Loading @@ -743,7 +743,7 @@ impl<T> PkeyCtxRef<T> { #[cfg(ossl320)] #[corresponds(EVP_PKEY_CTX_set_params)] pub fn set_nonce_type(&mut self, nonce_type: NonceType) -> Result<(), ErrorStack> { let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap(); let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap(); let mut nonce_type = nonce_type.0; unsafe { let param_nonce = Loading @@ -765,7 +765,7 @@ impl<T> PkeyCtxRef<T> { #[cfg(ossl320)] #[corresponds(EVP_PKEY_CTX_get_params)] pub fn nonce_type(&mut self) -> Result<NonceType, ErrorStack> { let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap(); let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap(); let mut nonce_type: c_uint = 0; unsafe { let param_nonce = Loading Loading
openssl/src/pkey_ctx.rs +2 −2 Original line number Diff line number Diff line Loading @@ -743,7 +743,7 @@ impl<T> PkeyCtxRef<T> { #[cfg(ossl320)] #[corresponds(EVP_PKEY_CTX_set_params)] pub fn set_nonce_type(&mut self, nonce_type: NonceType) -> Result<(), ErrorStack> { let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap(); let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap(); let mut nonce_type = nonce_type.0; unsafe { let param_nonce = Loading @@ -765,7 +765,7 @@ impl<T> PkeyCtxRef<T> { #[cfg(ossl320)] #[corresponds(EVP_PKEY_CTX_get_params)] pub fn nonce_type(&mut self) -> Result<NonceType, ErrorStack> { let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap(); let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap(); let mut nonce_type: c_uint = 0; unsafe { let param_nonce = Loading