diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-06-09 23:09:48 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-06-20 14:58:36 +0200 |
commit | 9267c11bb5d408e43482173794f08a3c8472afba (patch) | |
tree | 172336307a646ab33854a51627192f3307eb6545 /doc | |
parent | b73cfb137e596f3e4396fbc5502ace3ff17cbaed (diff) |
Make DSA_SIG and ECDSA_SIG getters const.
Reorder arguments to follow convention.
Also allow r/s to be NULL in DSA_SIG_get0, similarly to ECDSA_SIG_get0.
This complements GH1193 which adds non-const setters.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/DSA_SIG_new.pod | 6 | ||||
-rw-r--r-- | doc/crypto/ECDSA_SIG_new.pod | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/crypto/DSA_SIG_new.pod b/doc/crypto/DSA_SIG_new.pod index 345c02c56d..f2696801a6 100644 --- a/doc/crypto/DSA_SIG_new.pod +++ b/doc/crypto/DSA_SIG_new.pod @@ -10,7 +10,7 @@ DSA_SIG_new, DSA_SIG_free - allocate and free DSA signature objects DSA_SIG *DSA_SIG_new(void); void DSA_SIG_free(DSA_SIG *a); - void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const DSA_SIG *sig); + void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps); int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s); =head1 DESCRIPTION @@ -20,8 +20,8 @@ DSA_SIG_new() allocates and initializes a B<DSA_SIG> structure. DSA_SIG_free() frees the B<DSA_SIG> structure and its components. The values are erased before the memory is returned to the system. -DSA_SIG_get0() returns internal pointers the B<r> and B<s> values contained -in B<sig>. The values can then be examined or initialised. +DSA_SIG_get0() returns internal pointers to the B<r> and B<s> values contained +in B<sig>. The B<r> and B<s> values can be set by calling DSA_SIG_set0() and passing the new values for B<r> and B<s> as parameters to the function. Calling this diff --git a/doc/crypto/ECDSA_SIG_new.pod b/doc/crypto/ECDSA_SIG_new.pod index d3e181dbc4..e2015f100e 100644 --- a/doc/crypto/ECDSA_SIG_new.pod +++ b/doc/crypto/ECDSA_SIG_new.pod @@ -13,7 +13,7 @@ algorithm (ECDSA) functions ECDSA_SIG *ECDSA_SIG_new(void); void ECDSA_SIG_free(ECDSA_SIG *sig); - void ECDSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const ECDSA_SIG *sig); + void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps); int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s); int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp); ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len); @@ -52,7 +52,7 @@ function also allocates the BIGNUMs) and initializes it. ECDSA_SIG_free() frees the B<ECDSA_SIG> structure B<sig>. ECDSA_SIG_get0() returns internal pointers the B<r> and B<s> values contained -in B<sig>. The values can then be examined or initialised. +in B<sig>. The B<r> and B<s> values can be set by calling ECDSA_SIG_set0() and passing the new values for B<r> and B<s> as parameters to the function. Calling this |