diff options
author | schwarze <> | 2018-12-21 21:54:48 +0000 |
---|---|---|
committer | schwarze <> | 2018-12-21 21:54:48 +0000 |
commit | 1e19cbe605b02a029e98aea5e964c005c6e33cae (patch) | |
tree | 58d008267016baf2b273541d7b18795590e17c3e | |
parent | 3d49342897eea4877b76d8bfeff64559d761b46c (diff) | |
download | openbsd-1e19cbe605b02a029e98aea5e964c005c6e33cae.tar.gz openbsd-1e19cbe605b02a029e98aea5e964c005c6e33cae.tar.bz2 openbsd-1e19cbe605b02a029e98aea5e964c005c6e33cae.zip |
Clarify behaviour of DH_get0_pqg(3) and DH_get0_key(3) with NULL arguments;
from <Matthias dot St dot Pierre at ncp dash e dot com>
via OpenSSL commit 5777254b May 27 09:07:07 2018 +0200.
-rw-r--r-- | src/lib/libcrypto/man/DH_get0_pqg.3 | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/DH_get0_pqg.3 b/src/lib/libcrypto/man/DH_get0_pqg.3 index cff96243b2..5a115b71d0 100644 --- a/src/lib/libcrypto/man/DH_get0_pqg.3 +++ b/src/lib/libcrypto/man/DH_get0_pqg.3 | |||
@@ -1,8 +1,8 @@ | |||
1 | .\" $OpenBSD: DH_get0_pqg.3,v 1.4 2018/03/23 23:18:17 schwarze Exp $ | 1 | .\" $OpenBSD: DH_get0_pqg.3,v 1.5 2018/12/21 21:54:48 schwarze Exp $ |
2 | .\" selective merge up to: OpenSSL 7966101e Sep 18 11:58:24 2017 -0400 | 2 | .\" selective merge up to: OpenSSL 83cf7abf May 29 13:07:08 2018 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Matt Caswell <matt@openssl.org>. | 4 | .\" This file was written by Matt Caswell <matt@openssl.org>. |
5 | .\" Copyright (c) 2016 The OpenSSL Project. All rights reserved. | 5 | .\" Copyright (c) 2016, 2018 The OpenSSL Project. All rights reserved. |
6 | .\" | 6 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 7 | .\" Redistribution and use in source and binary forms, with or without |
8 | .\" modification, are permitted provided that the following conditions | 8 | .\" modification, are permitted provided that the following conditions |
@@ -48,7 +48,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 50 | .\" |
51 | .Dd $Mdocdate: March 23 2018 $ | 51 | .Dd $Mdocdate: December 21 2018 $ |
52 | .Dt DH_GET0_PQG 3 | 52 | .Dt DH_GET0_PQG 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -143,6 +143,14 @@ are set to | |||
143 | .Dv NULL . | 143 | .Dv NULL . |
144 | Otherwise, they are set to pointers to the internal representations | 144 | Otherwise, they are set to pointers to the internal representations |
145 | of the values that should not be freed by the application. | 145 | of the values that should not be freed by the application. |
146 | Any of the out parameters | ||
147 | .Fa p , | ||
148 | .Fa q , | ||
149 | and | ||
150 | .Fa g | ||
151 | can be | ||
152 | .Dv NULL , | ||
153 | in which case no value is returned for that parameter. | ||
146 | .Pp | 154 | .Pp |
147 | The | 155 | The |
148 | .Fa p , | 156 | .Fa p , |
@@ -170,6 +178,13 @@ Either may be | |||
170 | .Dv NULL | 178 | .Dv NULL |
171 | if it has not yet been set. | 179 | if it has not yet been set. |
172 | If the private key has been set, then the public key must be. | 180 | If the private key has been set, then the public key must be. |
181 | Any of the out parameters | ||
182 | .Fa pub_key | ||
183 | and | ||
184 | .Fa priv_key | ||
185 | can be | ||
186 | .Dv NULL , | ||
187 | in which case no value is returned for that parameter. | ||
173 | .Pp | 188 | .Pp |
174 | The public and private key values can be set using | 189 | The public and private key values can be set using |
175 | .Fn DH_set0_key . | 190 | .Fn DH_set0_key . |