mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 10:40:52 +02:00
Rust wrapper: use consistent rc check in ECC::shared_secret
Fixes F-2676
This commit is contained in:
@@ -1823,7 +1823,7 @@ impl ECC {
|
||||
sys::wc_ecc_shared_secret(&mut self.wc_ecc_key,
|
||||
&mut peer_key.wc_ecc_key, dout.as_mut_ptr(), &mut out_len)
|
||||
};
|
||||
if rc < 0 {
|
||||
if rc != 0 {
|
||||
return Err(rc);
|
||||
}
|
||||
Ok(out_len as usize)
|
||||
|
||||
Reference in New Issue
Block a user