summaryrefslogtreecommitdiffstats
path: root/doc/crypto/DSA_SIG_new.pod
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-06-09 23:09:48 +0200
committerEmilia Kasper <emilia@openssl.org>2016-06-20 14:58:36 +0200
commit9267c11bb5d408e43482173794f08a3c8472afba (patch)
tree172336307a646ab33854a51627192f3307eb6545 /doc/crypto/DSA_SIG_new.pod
parentb73cfb137e596f3e4396fbc5502ace3ff17cbaed (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/crypto/DSA_SIG_new.pod')
-rw-r--r--doc/crypto/DSA_SIG_new.pod6
1 files changed, 3 insertions, 3 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