diff options
| author | tb <> | 2018-08-26 17:03:32 +0000 |
|---|---|---|
| committer | tb <> | 2018-08-26 17:03:32 +0000 |
| commit | 06651680c6449a781eb650e5b1749bc54bd9f53f (patch) | |
| tree | 21f49da12291aad99c0a09283843cf0fb58bd0c6 | |
| parent | 5459de401a6c3b7d4888771544b5c1bc5abb07e0 (diff) | |
| download | openbsd-06651680c6449a781eb650e5b1749bc54bd9f53f.tar.gz openbsd-06651680c6449a781eb650e5b1749bc54bd9f53f.tar.bz2 openbsd-06651680c6449a781eb650e5b1749bc54bd9f53f.zip | |
Some of the functions in this manual need <openssl/dsa.h>, others
need <openssl/x509.h>. The functions {d2i,i2d}_DSA_params_{bio,fp}(3)
were missing from the manual, so document them. The return values
of the i2d_* functions are left undocumented, as these still need to
be audited.
ok schwarze (lots of input and help as usual)
| -rw-r--r-- | src/lib/libcrypto/man/d2i_DSAPublicKey.3 | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/d2i_DSAPublicKey.3 b/src/lib/libcrypto/man/d2i_DSAPublicKey.3 index 4b82e6ccd2..37ef22e1b9 100644 --- a/src/lib/libcrypto/man/d2i_DSAPublicKey.3 +++ b/src/lib/libcrypto/man/d2i_DSAPublicKey.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_DSAPublicKey.3,v 1.13 2018/03/27 17:35:50 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_DSAPublicKey.3,v 1.14 2018/08/26 17:03:32 tb Exp $ |
| 2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 | 2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| @@ -49,7 +49,7 @@ | |||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 51 | .\" | 51 | .\" |
| 52 | .Dd $Mdocdate: March 27 2018 $ | 52 | .Dd $Mdocdate: August 26 2018 $ |
| 53 | .Dt D2I_DSAPUBLICKEY 3 | 53 | .Dt D2I_DSAPUBLICKEY 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -69,6 +69,10 @@ | |||
| 69 | .Nm i2d_DSAPrivateKey_fp , | 69 | .Nm i2d_DSAPrivateKey_fp , |
| 70 | .Nm d2i_DSAparams , | 70 | .Nm d2i_DSAparams , |
| 71 | .Nm i2d_DSAparams , | 71 | .Nm i2d_DSAparams , |
| 72 | .Nm d2i_DSAparams_bio , | ||
| 73 | .Nm i2d_DSAparams_bio , | ||
| 74 | .Nm d2i_DSAparams_fp , | ||
| 75 | .Nm i2d_DSAparams_fp , | ||
| 72 | .Nm DSAparams_dup , | 76 | .Nm DSAparams_dup , |
| 73 | .Nm d2i_DSA_SIG , | 77 | .Nm d2i_DSA_SIG , |
| 74 | .Nm i2d_DSA_SIG | 78 | .Nm i2d_DSA_SIG |
| @@ -86,6 +90,7 @@ | |||
| 86 | .Fa "const DSA *val_in" | 90 | .Fa "const DSA *val_in" |
| 87 | .Fa "unsigned char **der_out" | 91 | .Fa "unsigned char **der_out" |
| 88 | .Fc | 92 | .Fc |
| 93 | .In openssl/x509.h | ||
| 89 | .Ft DSA * | 94 | .Ft DSA * |
| 90 | .Fo d2i_DSA_PUBKEY | 95 | .Fo d2i_DSA_PUBKEY |
| 91 | .Fa "DSA **val_out" | 96 | .Fa "DSA **val_out" |
| @@ -117,6 +122,7 @@ | |||
| 117 | .Fa "FILE *out_fp" | 122 | .Fa "FILE *out_fp" |
| 118 | .Fa "DSA *val_in" | 123 | .Fa "DSA *val_in" |
| 119 | .Fc | 124 | .Fc |
| 125 | .In openssl/dsa.h | ||
| 120 | .Ft DSA * | 126 | .Ft DSA * |
| 121 | .Fo d2i_DSAPrivateKey | 127 | .Fo d2i_DSAPrivateKey |
| 122 | .Fa "DSA **val_out" | 128 | .Fa "DSA **val_out" |
| @@ -128,6 +134,7 @@ | |||
| 128 | .Fa "const DSA *val_in" | 134 | .Fa "const DSA *val_in" |
| 129 | .Fa "unsigned char **der_out" | 135 | .Fa "unsigned char **der_out" |
| 130 | .Fc | 136 | .Fc |
| 137 | .In openssl/x509.h | ||
| 131 | .Ft DSA * | 138 | .Ft DSA * |
| 132 | .Fo d2i_DSAPrivateKey_bio | 139 | .Fo d2i_DSAPrivateKey_bio |
| 133 | .Fa "BIO *in_bio" | 140 | .Fa "BIO *in_bio" |
| @@ -148,6 +155,7 @@ | |||
| 148 | .Fa "FILE *out_fp" | 155 | .Fa "FILE *out_fp" |
| 149 | .Fa "DSA *val_in" | 156 | .Fa "DSA *val_in" |
| 150 | .Fc | 157 | .Fc |
| 158 | .In openssl/dsa.h | ||
| 151 | .Ft DSA * | 159 | .Ft DSA * |
| 152 | .Fo d2i_DSAparams | 160 | .Fo d2i_DSAparams |
| 153 | .Fa "DSA **val_out" | 161 | .Fa "DSA **val_out" |
| @@ -160,6 +168,26 @@ | |||
| 160 | .Fa "unsigned char **der_out" | 168 | .Fa "unsigned char **der_out" |
| 161 | .Fc | 169 | .Fc |
| 162 | .Ft DSA * | 170 | .Ft DSA * |
| 171 | .Fo d2i_DSAparams_bio | ||
| 172 | .Fa "BIO *in_bio" | ||
| 173 | .Fa "DSA **val_out" | ||
| 174 | .Fc | ||
| 175 | .Ft int | ||
| 176 | .Fo i2d_DSAparams_bio | ||
| 177 | .Fa "BIO *out_bio" | ||
| 178 | .Fa "DSA *val_in" | ||
| 179 | .Fc | ||
| 180 | .Ft DSA * | ||
| 181 | .Fo d2i_DSAparams_fp | ||
| 182 | .Fa "FILE *in_fp" | ||
| 183 | .Fa "DSA **val_out" | ||
| 184 | .Fc | ||
| 185 | .Ft int | ||
| 186 | .Fo i2d_DSAparams_fp | ||
| 187 | .Fa FILE *out_fp | ||
| 188 | .Fa "DSA *val_in" | ||
| 189 | .Fc | ||
| 190 | .Ft DSA * | ||
| 163 | .Fo DSAparams_dup | 191 | .Fo DSAparams_dup |
| 164 | .Fa "DSA *val_in" | 192 | .Fa "DSA *val_in" |
| 165 | .Fc | 193 | .Fc |
| @@ -246,7 +274,6 @@ For private key security when writing private keys to files, | |||
| 246 | consider using | 274 | consider using |
| 247 | .Xr PEM_write_DSAPrivateKey 3 | 275 | .Xr PEM_write_DSAPrivateKey 3 |
| 248 | instead. | 276 | instead. |
| 249 | The | ||
| 250 | .Fn d2i_DSAPrivateKey_bio , | 277 | .Fn d2i_DSAPrivateKey_bio , |
| 251 | .Fn d2i_DSAPrivateKey_fp , | 278 | .Fn d2i_DSAPrivateKey_fp , |
| 252 | .Fn i2d_DSAPrivateKey_bio , | 279 | .Fn i2d_DSAPrivateKey_bio , |
| @@ -267,6 +294,15 @@ structure defined in RFC 3279 section 2.3.2 | |||
| 267 | and used for the parameters field of the ASN.1 | 294 | and used for the parameters field of the ASN.1 |
| 268 | .Vt AlgorithmIdentifier | 295 | .Vt AlgorithmIdentifier |
| 269 | structure defined in RFC 5280 section 4.1.1.2. | 296 | structure defined in RFC 5280 section 4.1.1.2. |
| 297 | .Fn d2i_DSAparams_bio , | ||
| 298 | .Fn i2d_DSAparams_bio , | ||
| 299 | .Fn d2i_DSAparams_fp , | ||
| 300 | .Fn i2d_DSAparams_fp | ||
| 301 | are similar except that they decode or encode using a | ||
| 302 | .Vt BIO | ||
| 303 | or | ||
| 304 | .Vt FILE | ||
| 305 | pointer. | ||
| 270 | .Pp | 306 | .Pp |
| 271 | .Fn DSAparams_dup | 307 | .Fn DSAparams_dup |
| 272 | allocates and initializes an empty | 308 | allocates and initializes an empty |
| @@ -299,6 +335,8 @@ structure described in RFC 5280 sections 4.1.1.3 and 5.1.1.3. | |||
| 299 | .Fn d2i_DSAPrivateKey_bio , | 335 | .Fn d2i_DSAPrivateKey_bio , |
| 300 | .Fn d2i_DSAPrivateKey_fp , | 336 | .Fn d2i_DSAPrivateKey_fp , |
| 301 | .Fn d2i_DSAparams , | 337 | .Fn d2i_DSAparams , |
| 338 | .Fn d2i_DSAparams_bio , | ||
| 339 | .Fn d2i_DSAparams_fp , | ||
| 302 | and | 340 | and |
| 303 | .Fn DSAparams_dup | 341 | .Fn DSAparams_dup |
| 304 | return a valid | 342 | return a valid |
| @@ -347,6 +385,10 @@ first appeared in SSLeay 0.6.0. | |||
| 347 | .Fn i2d_DSAPrivateKey_fp , | 385 | .Fn i2d_DSAPrivateKey_fp , |
| 348 | .Fn d2i_DSAparams , | 386 | .Fn d2i_DSAparams , |
| 349 | .Fn i2d_DSAparams , | 387 | .Fn i2d_DSAparams , |
| 388 | .Fn d2i_DSAparams_bio , | ||
| 389 | .Fn i2d_DSAparams_bio , | ||
| 390 | .Fn d2i_DSAparams_fp , | ||
| 391 | .Fn i2d_DSAparams_fp , | ||
| 350 | and | 392 | and |
| 351 | .Fn DSAparams_dup | 393 | .Fn DSAparams_dup |
| 352 | first appeared in SSLeay 0.8.0. | 394 | first appeared in SSLeay 0.8.0. |
