Skip to content
Snippets Groups Projects
Commit c624427e authored by Moritz Wanzenböck's avatar Moritz Wanzenböck
Browse files

Fix fallback implementation of DSA utility methods

parent 0390aba7
Branches
Tags
No related merge requests found
...@@ -280,7 +280,7 @@ cfg_if! { ...@@ -280,7 +280,7 @@ cfg_if! {
} }
#[allow(bad_style)] #[allow(bad_style)]
unsafe fn DSA_get0_pqg( unsafe fn DSA_get0_key(
d: *mut ffi::DSA, d: *mut ffi::DSA,
pub_key: *mut *const ffi::BIGNUM, pub_key: *mut *const ffi::BIGNUM,
priv_key: *mut *const ffi::BIGNUM) priv_key: *mut *const ffi::BIGNUM)
...@@ -299,8 +299,8 @@ cfg_if! { ...@@ -299,8 +299,8 @@ cfg_if! {
pub_key: *mut ffi::BIGNUM, pub_key: *mut ffi::BIGNUM,
priv_key: *mut ffi::BIGNUM) -> c_int priv_key: *mut ffi::BIGNUM) -> c_int
{ {
(*d).pub_key = *pub_key; (*d).pub_key = pub_key;
(*d).priv_key = *priv_key; (*d).priv_key = priv_key;
1 1
} }
...@@ -311,9 +311,9 @@ cfg_if! { ...@@ -311,9 +311,9 @@ cfg_if! {
q: *mut ffi::BIGNUM, q: *mut ffi::BIGNUM,
g: *mut ffi::BIGNUM) -> c_int g: *mut ffi::BIGNUM) -> c_int
{ {
(*d).p = *p; (*d).p = p;
(*d).q = *q; (*d).q = q;
(*d).g = *g; (*d).g = g;
1 1
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment