summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-08-26 17:03:33 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-08-26 17:03:33 +0000
commit73a1a8dd5d94ff1fde936c7fa66989024d6bd77e (patch)
tree7642be2f51bc82521ae3d48e022387895e0870c2 /lib/libcrypto
parent3aaeb8b41bba43aec4462050989c8d805389849a (diff)
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)
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/man/d2i_DSAPublicKey.348
1 files changed, 45 insertions, 3 deletions
diff --git a/lib/libcrypto/man/d2i_DSAPublicKey.3 b/lib/libcrypto/man/d2i_DSAPublicKey.3
index 4b82e6ccd21..37ef22e1b91 100644
--- a/lib/libcrypto/man/d2i_DSAPublicKey.3
+++ b/lib/libcrypto/man/d2i_DSAPublicKey.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: d2i_DSAPublicKey.3,v 1.13 2018/03/27 17:35:50 schwarze Exp $
+.\" $OpenBSD: d2i_DSAPublicKey.3,v 1.14 2018/08/26 17:03:32 tb Exp $
.\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400
.\"
.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
@@ -49,7 +49,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 27 2018 $
+.Dd $Mdocdate: August 26 2018 $
.Dt D2I_DSAPUBLICKEY 3
.Os
.Sh NAME
@@ -69,6 +69,10 @@
.Nm i2d_DSAPrivateKey_fp ,
.Nm d2i_DSAparams ,
.Nm i2d_DSAparams ,
+.Nm d2i_DSAparams_bio ,
+.Nm i2d_DSAparams_bio ,
+.Nm d2i_DSAparams_fp ,
+.Nm i2d_DSAparams_fp ,
.Nm DSAparams_dup ,
.Nm d2i_DSA_SIG ,
.Nm i2d_DSA_SIG
@@ -86,6 +90,7 @@
.Fa "const DSA *val_in"
.Fa "unsigned char **der_out"
.Fc
+.In openssl/x509.h
.Ft DSA *
.Fo d2i_DSA_PUBKEY
.Fa "DSA **val_out"
@@ -117,6 +122,7 @@
.Fa "FILE *out_fp"
.Fa "DSA *val_in"
.Fc
+.In openssl/dsa.h
.Ft DSA *
.Fo d2i_DSAPrivateKey
.Fa "DSA **val_out"
@@ -128,6 +134,7 @@
.Fa "const DSA *val_in"
.Fa "unsigned char **der_out"
.Fc
+.In openssl/x509.h
.Ft DSA *
.Fo d2i_DSAPrivateKey_bio
.Fa "BIO *in_bio"
@@ -148,6 +155,7 @@
.Fa "FILE *out_fp"
.Fa "DSA *val_in"
.Fc
+.In openssl/dsa.h
.Ft DSA *
.Fo d2i_DSAparams
.Fa "DSA **val_out"
@@ -160,6 +168,26 @@
.Fa "unsigned char **der_out"
.Fc
.Ft DSA *
+.Fo d2i_DSAparams_bio
+.Fa "BIO *in_bio"
+.Fa "DSA **val_out"
+.Fc
+.Ft int
+.Fo i2d_DSAparams_bio
+.Fa "BIO *out_bio"
+.Fa "DSA *val_in"
+.Fc
+.Ft DSA *
+.Fo d2i_DSAparams_fp
+.Fa "FILE *in_fp"
+.Fa "DSA **val_out"
+.Fc
+.Ft int
+.Fo i2d_DSAparams_fp
+.Fa FILE *out_fp
+.Fa "DSA *val_in"
+.Fc
+.Ft DSA *
.Fo DSAparams_dup
.Fa "DSA *val_in"
.Fc
@@ -246,7 +274,6 @@ For private key security when writing private keys to files,
consider using
.Xr PEM_write_DSAPrivateKey 3
instead.
-The
.Fn d2i_DSAPrivateKey_bio ,
.Fn d2i_DSAPrivateKey_fp ,
.Fn i2d_DSAPrivateKey_bio ,
@@ -267,6 +294,15 @@ structure defined in RFC 3279 section 2.3.2
and used for the parameters field of the ASN.1
.Vt AlgorithmIdentifier
structure defined in RFC 5280 section 4.1.1.2.
+.Fn d2i_DSAparams_bio ,
+.Fn i2d_DSAparams_bio ,
+.Fn d2i_DSAparams_fp ,
+.Fn i2d_DSAparams_fp
+are similar except that they decode or encode using a
+.Vt BIO
+or
+.Vt FILE
+pointer.
.Pp
.Fn DSAparams_dup
allocates and initializes an empty
@@ -299,6 +335,8 @@ structure described in RFC 5280 sections 4.1.1.3 and 5.1.1.3.
.Fn d2i_DSAPrivateKey_bio ,
.Fn d2i_DSAPrivateKey_fp ,
.Fn d2i_DSAparams ,
+.Fn d2i_DSAparams_bio ,
+.Fn d2i_DSAparams_fp ,
and
.Fn DSAparams_dup
return a valid
@@ -347,6 +385,10 @@ first appeared in SSLeay 0.6.0.
.Fn i2d_DSAPrivateKey_fp ,
.Fn d2i_DSAparams ,
.Fn i2d_DSAparams ,
+.Fn d2i_DSAparams_bio ,
+.Fn i2d_DSAparams_bio ,
+.Fn d2i_DSAparams_fp ,
+.Fn i2d_DSAparams_fp ,
and
.Fn DSAparams_dup
first appeared in SSLeay 0.8.0.