diff options
-rw-r--r-- | src/lib/libcrypto/man/DSA_SIG_new.3 | 57 |
1 files changed, 47 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/DSA_SIG_new.3 b/src/lib/libcrypto/man/DSA_SIG_new.3 index 4b114f4a11..c3bd6391f5 100644 --- a/src/lib/libcrypto/man/DSA_SIG_new.3 +++ b/src/lib/libcrypto/man/DSA_SIG_new.3 | |||
@@ -1,8 +1,10 @@ | |||
1 | .\" $OpenBSD: DSA_SIG_new.3,v 1.4 2016/12/10 22:47:49 schwarze Exp $ | 1 | .\" $OpenBSD: DSA_SIG_new.3,v 1.5 2018/02/24 13:51:50 schwarze Exp $ |
2 | .\" OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400 | 2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>, |
5 | .\" Copyright (c) 2000 The OpenSSL Project. All rights reserved. | 5 | .\" Dr. Stephen Henson <steve@openssl.org>, and |
6 | .\" TJ Saunders <tj@castaglia.org>. | ||
7 | .\" Copyright (c) 2000, 2016 The OpenSSL Project. All rights reserved. | ||
6 | .\" | 8 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 9 | .\" Redistribution and use in source and binary forms, with or without |
8 | .\" modification, are permitted provided that the following conditions | 10 | .\" modification, are permitted provided that the following conditions |
@@ -48,24 +50,38 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 52 | .\" |
51 | .Dd $Mdocdate: December 10 2016 $ | 53 | .Dd $Mdocdate: February 24 2018 $ |
52 | .Dt DSA_SIG_NEW 3 | 54 | .Dt DSA_SIG_NEW 3 |
53 | .Os | 55 | .Os |
54 | .Sh NAME | 56 | .Sh NAME |
55 | .Nm DSA_SIG_new , | 57 | .Nm DSA_SIG_new , |
56 | .Nm DSA_SIG_free | 58 | .Nm DSA_SIG_free , |
57 | .Nd allocate and free DSA signature objects | 59 | .Nm DSA_SIG_get0 , |
60 | .Nm DSA_SIG_set0 | ||
61 | .Nd manipulate DSA signature objects | ||
58 | .Sh SYNOPSIS | 62 | .Sh SYNOPSIS |
59 | .In openssl/dsa.h | 63 | .In openssl/dsa.h |
60 | .Ft DSA_SIG * | 64 | .Ft DSA_SIG * |
61 | .Fn DSA_SIG_new void | 65 | .Fn DSA_SIG_new void |
62 | .Ft void | 66 | .Ft void |
63 | .Fo DSA_SIG_free | 67 | .Fo DSA_SIG_free |
64 | .Fa "DSA_SIG *a" | 68 | .Fa "DSA_SIG *sig" |
69 | .Fc | ||
70 | .Ft void | ||
71 | .Fo DSA_SIG_get0 | ||
72 | .Fa "const DSA_SIG *sig" | ||
73 | .Fa "const BIGNUM **r" | ||
74 | .Fa "const BIGNUM **s" | ||
75 | .Fc | ||
76 | .Ft int | ||
77 | .Fo DSA_SIG_set0 | ||
78 | .Fa "DSA_SIG *sig" | ||
79 | .Fa "BIGNUM *r" | ||
80 | .Fa "BIGNUM *s" | ||
65 | .Fc | 81 | .Fc |
66 | .Sh DESCRIPTION | 82 | .Sh DESCRIPTION |
67 | .Fn DSA_SIG_new | 83 | .Fn DSA_SIG_new |
68 | allocates and initializes a | 84 | allocates an empty |
69 | .Vt DSA_SIG | 85 | .Vt DSA_SIG |
70 | structure. | 86 | structure. |
71 | .Pp | 87 | .Pp |
@@ -75,10 +91,28 @@ frees the | |||
75 | structure and its components. | 91 | structure and its components. |
76 | The values are erased before the memory is returned to the system. | 92 | The values are erased before the memory is returned to the system. |
77 | If | 93 | If |
78 | .Fa a | 94 | .Fa sig |
79 | is a | 95 | is a |
80 | .Dv NULL | 96 | .Dv NULL |
81 | pointer, no action occurs. | 97 | pointer, no action occurs. |
98 | .Pp | ||
99 | .Fn DSA_SIG_get0 | ||
100 | retrieves internal pointers to the | ||
101 | .Fa r | ||
102 | and | ||
103 | .Fa s | ||
104 | values contained in | ||
105 | .Fa sig . | ||
106 | .Pp | ||
107 | The | ||
108 | .Fa r | ||
109 | and | ||
110 | .Fa s | ||
111 | values can be set by calling | ||
112 | .Fn DSA_SIG_set0 . | ||
113 | Calling this function transfers the memory management of the values to | ||
114 | .Fa sig , | ||
115 | and therefore they should not be freed by the caller. | ||
82 | .Sh RETURN VALUES | 116 | .Sh RETURN VALUES |
83 | If the allocation fails, | 117 | If the allocation fails, |
84 | .Fn DSA_SIG_new | 118 | .Fn DSA_SIG_new |
@@ -87,6 +121,9 @@ returns | |||
87 | and sets an error code that can be obtained by | 121 | and sets an error code that can be obtained by |
88 | .Xr ERR_get_error 3 . | 122 | .Xr ERR_get_error 3 . |
89 | Otherwise it returns a pointer to the newly allocated structure. | 123 | Otherwise it returns a pointer to the newly allocated structure. |
124 | .Pp | ||
125 | .Fn DSA_SIG_set0 | ||
126 | returns 1 on success or 0 on failure. | ||
90 | .Sh SEE ALSO | 127 | .Sh SEE ALSO |
91 | .Xr DSA_do_sign 3 , | 128 | .Xr DSA_do_sign 3 , |
92 | .Xr DSA_new 3 , | 129 | .Xr DSA_new 3 , |