summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2018-02-24 13:51:50 +0000
committerschwarze <>2018-02-24 13:51:50 +0000
commit40e2b68744e48ed36d6ba8bfcb14dfc7ce9f7db8 (patch)
treedee1efdd04e3816be49488629f3600507dfc16ae /src/lib
parenta3ae4dd6c715a4b80d1e2c417c957ba3be9ef054 (diff)
downloadopenbsd-40e2b68744e48ed36d6ba8bfcb14dfc7ce9f7db8.tar.gz
openbsd-40e2b68744e48ed36d6ba8bfcb14dfc7ce9f7db8.tar.bz2
openbsd-40e2b68744e48ed36d6ba8bfcb14dfc7ce9f7db8.zip
In dsa.h rev. 1.28 2018/02/20 17:48:35, tb@ provided
DSA_SIG_get0(3) and DSA_SIG_set0(3). Merge the documentation from OpenSSL, tweaked by me.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/DSA_SIG_new.357
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
68allocates and initializes a 84allocates an empty
69.Vt DSA_SIG 85.Vt DSA_SIG
70structure. 86structure.
71.Pp 87.Pp
@@ -75,10 +91,28 @@ frees the
75structure and its components. 91structure and its components.
76The values are erased before the memory is returned to the system. 92The values are erased before the memory is returned to the system.
77If 93If
78.Fa a 94.Fa sig
79is a 95is a
80.Dv NULL 96.Dv NULL
81pointer, no action occurs. 97pointer, no action occurs.
98.Pp
99.Fn DSA_SIG_get0
100retrieves internal pointers to the
101.Fa r
102and
103.Fa s
104values contained in
105.Fa sig .
106.Pp
107The
108.Fa r
109and
110.Fa s
111values can be set by calling
112.Fn DSA_SIG_set0 .
113Calling this function transfers the memory management of the values to
114.Fa sig ,
115and therefore they should not be freed by the caller.
82.Sh RETURN VALUES 116.Sh RETURN VALUES
83If the allocation fails, 117If the allocation fails,
84.Fn DSA_SIG_new 118.Fn DSA_SIG_new
@@ -87,6 +121,9 @@ returns
87and sets an error code that can be obtained by 121and sets an error code that can be obtained by
88.Xr ERR_get_error 3 . 122.Xr ERR_get_error 3 .
89Otherwise it returns a pointer to the newly allocated structure. 123Otherwise it returns a pointer to the newly allocated structure.
124.Pp
125.Fn DSA_SIG_set0
126returns 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 ,