diff options
| author | jmc <> | 2016-12-08 20:22:08 +0000 |
|---|---|---|
| committer | jmc <> | 2016-12-08 20:22:08 +0000 |
| commit | 5a7410280c966d59168aac31ef6b2fa09a17b8be (patch) | |
| tree | 0411b9b0edcf0076b39d1e851620d85309d7e784 | |
| parent | ae4af104f03d1d60aa0b563b4c396cfe76d4f653 (diff) | |
| download | openbsd-5a7410280c966d59168aac31ef6b2fa09a17b8be.tar.gz openbsd-5a7410280c966d59168aac31ef6b2fa09a17b8be.tar.bz2 openbsd-5a7410280c966d59168aac31ef6b2fa09a17b8be.zip | |
various cleanup;
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 | 11 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_DHparams.3 | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_DSAPublicKey.3 | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_PrivateKey.3 | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_RSAPublicKey.3 | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509.3 | 18 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509_ALGOR.3 | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509_CRL.3 | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509_NAME.3 | 11 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509_REQ.3 | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509_SIG.3 | 9 |
12 files changed, 58 insertions, 61 deletions
diff --git a/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 b/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 index 48ecd89db6..77e6848394 100644 --- a/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 +++ b/src/lib/libcrypto/man/d2i_ASN1_OBJECT.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_ASN1_OBJECT.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_ASN1_OBJECT.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL 05ea606a May 20 20:52:46 2016 -0400 | 2 | .\" OpenSSL 05ea606a May 20 20:52:46 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>. |
| @@ -48,13 +48,13 @@ | |||
| 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: December 5 2016 $ | 51 | .Dd $Mdocdate: December 8 2016 $ |
| 52 | .Dt D2I_ASN1_OBJECT 3 | 52 | .Dt D2I_ASN1_OBJECT 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| 55 | .Nm d2i_ASN1_OBJECT , | 55 | .Nm d2i_ASN1_OBJECT , |
| 56 | .Nm i2d_ASN1_OBJECT | 56 | .Nm i2d_ASN1_OBJECT |
| 57 | .Nd ASN1 OBJECT IDENTIFIER functions | 57 | .Nd ASN.1 OBJECT IDENTIFIER functions |
| 58 | .Sh SYNOPSIS | 58 | .Sh SYNOPSIS |
| 59 | .In openssl/objects.h | 59 | .In openssl/objects.h |
| 60 | .Ft ASN1_OBJECT * | 60 | .Ft ASN1_OBJECT * |
| @@ -69,9 +69,8 @@ | |||
| 69 | .Fa "unsigned char **pp" | 69 | .Fa "unsigned char **pp" |
| 70 | .Fc | 70 | .Fc |
| 71 | .Sh DESCRIPTION | 71 | .Sh DESCRIPTION |
| 72 | These functions decode and encode an ASN1 OBJECT IDENTIFIER. | 72 | These functions decode and encode an ASN.1 OBJECT IDENTIFIER. |
| 73 | .Pp | 73 | They otherwise behave in a similar way to |
| 74 | Otherwise these behave in a similar way to | ||
| 75 | .Xr d2i_X509 3 | 74 | .Xr d2i_X509 3 |
| 76 | and | 75 | and |
| 77 | .Xr i2d_X509 3 . | 76 | .Xr i2d_X509 3 . |
diff --git a/src/lib/libcrypto/man/d2i_DHparams.3 b/src/lib/libcrypto/man/d2i_DHparams.3 index cbf32c8c6e..b1f75fafae 100644 --- a/src/lib/libcrypto/man/d2i_DHparams.3 +++ b/src/lib/libcrypto/man/d2i_DHparams.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_DHparams.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_DHparams.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and |
| @@ -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: December 5 2016 $ | 52 | .Dd $Mdocdate: December 8 2016 $ |
| 53 | .Dt D2I_DHPARAMS 3 | 53 | .Dt D2I_DHPARAMS 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -72,8 +72,7 @@ | |||
| 72 | .Sh DESCRIPTION | 72 | .Sh DESCRIPTION |
| 73 | These functions decode and encode PKCS#3 DH parameters using the | 73 | These functions decode and encode PKCS#3 DH parameters using the |
| 74 | DHparameter structure described in PKCS#3. | 74 | DHparameter structure described in PKCS#3. |
| 75 | .Pp | 75 | They otherwise behave in a way similar to |
| 76 | Otherwise these behave in a way similar to | ||
| 77 | .Xr d2i_X509 3 | 76 | .Xr d2i_X509 3 |
| 78 | and | 77 | and |
| 79 | .Xr i2d_X509 3 . | 78 | .Xr i2d_X509 3 . |
diff --git a/src/lib/libcrypto/man/d2i_DSAPublicKey.3 b/src/lib/libcrypto/man/d2i_DSAPublicKey.3 index 423beb123a..6474e9a46c 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.3 2016/12/05 20:36:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_DSAPublicKey.3,v 1.4 2016/12/08 20:22:08 jmc 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,20 +49,20 @@ | |||
| 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: December 5 2016 $ | 52 | .Dd $Mdocdate: December 8 2016 $ |
| 53 | .Dt D2I_DSAPUBLICKEY 3 | 53 | .Dt D2I_DSAPUBLICKEY 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| 56 | .Nm d2i_DSAPublicKey , | 56 | .Nm d2i_DSAPublicKey , |
| 57 | .Nm i2d_DSAPublicKey , | 57 | .Nm i2d_DSAPublicKey , |
| 58 | .Nm d2i_DSAPrivateKey , | ||
| 59 | .Nm i2d_DSAPrivateKey , | ||
| 60 | .Nm d2i_DSA_PUBKEY , | 58 | .Nm d2i_DSA_PUBKEY , |
| 61 | .Nm i2d_DSA_PUBKEY , | 59 | .Nm i2d_DSA_PUBKEY , |
| 62 | .Nm d2i_DSA_PUBKEY_bio , | 60 | .Nm d2i_DSA_PUBKEY_bio , |
| 63 | .Nm d2i_DSA_PUBKEY_fp , | 61 | .Nm d2i_DSA_PUBKEY_fp , |
| 64 | .Nm i2d_DSA_PUBKEY_bio , | 62 | .Nm i2d_DSA_PUBKEY_bio , |
| 65 | .Nm i2d_DSA_PUBKEY_fp , | 63 | .Nm i2d_DSA_PUBKEY_fp , |
| 64 | .Nm d2i_DSAPrivateKey , | ||
| 65 | .Nm i2d_DSAPrivateKey , | ||
| 66 | .Nm d2i_DSAparams , | 66 | .Nm d2i_DSAparams , |
| 67 | .Nm i2d_DSAparams , | 67 | .Nm i2d_DSAparams , |
| 68 | .Nm d2i_DSA_SIG , | 68 | .Nm d2i_DSA_SIG , |
| @@ -183,14 +183,14 @@ and | |||
| 183 | .Fn i2d_DSAparams | 183 | .Fn i2d_DSAparams |
| 184 | decode and encode the DSA parameters using a | 184 | decode and encode the DSA parameters using a |
| 185 | .Sy Dss-Parms | 185 | .Sy Dss-Parms |
| 186 | structure as defined in RFC2459. | 186 | structure as defined in RFC 2459. |
| 187 | .Pp | 187 | .Pp |
| 188 | .Fn d2i_DSA_SIG | 188 | .Fn d2i_DSA_SIG |
| 189 | and | 189 | and |
| 190 | .Fn i2d_DSA_SIG | 190 | .Fn i2d_DSA_SIG |
| 191 | decode and encode a DSA signature using a | 191 | decode and encode a DSA signature using a |
| 192 | .Sy Dss-Sig-Value | 192 | .Sy Dss-Sig-Value |
| 193 | structure as defined in RFC2459. | 193 | structure as defined in RFC 2459. |
| 194 | .Pp | 194 | .Pp |
| 195 | The usage of all of these functions is similar to | 195 | The usage of all of these functions is similar to |
| 196 | .Xr d2i_X509 3 | 196 | .Xr d2i_X509 3 |
| @@ -213,7 +213,7 @@ functions when encoding public keys because they use a standard format. | |||
| 213 | .Pp | 213 | .Pp |
| 214 | The | 214 | The |
| 215 | .Fn *_DSAPublicKey | 215 | .Fn *_DSAPublicKey |
| 216 | functions use an non-standard format. | 216 | functions use a non-standard format. |
| 217 | The actual data encoded depends on the value of | 217 | The actual data encoded depends on the value of |
| 218 | .Fa a->write_params . | 218 | .Fa a->write_params . |
| 219 | If | 219 | If |
diff --git a/src/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 b/src/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 index eb9cf563d8..76295cdde1 100644 --- a/src/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 +++ b/src/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_PKCS8PrivateKey_bio.3,v 1.4 2016/12/06 14:45:08 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_PKCS8PrivateKey_bio.3,v 1.5 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | 2 | .\" OpenSSL 99d63d46 Oct 26 13:56:48 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>. |
| @@ -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: December 6 2016 $ | 51 | .Dd $Mdocdate: December 8 2016 $ |
| 52 | .Dt D2I_PKCS8PRIVATEKEY_BIO 3 | 52 | .Dt D2I_PKCS8PRIVATEKEY_BIO 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -137,9 +137,11 @@ Currently all the functions use | |||
| 137 | .Vt BIO | 137 | .Vt BIO |
| 138 | or | 138 | or |
| 139 | .Vt FILE | 139 | .Vt FILE |
| 140 | pointers, there are no functions which work directly on memory: | 140 | pointers. |
| 141 | this can be readily worked around by converting the buffers to | 141 | There are no functions which work directly on memory, |
| 142 | memory BIOs, see | 142 | though this can be readily worked around |
| 143 | by converting the buffers to memory BIOs; | ||
| 144 | see | ||
| 143 | .Xr BIO_s_mem 3 | 145 | .Xr BIO_s_mem 3 |
| 144 | for details. | 146 | for details. |
| 145 | .Sh SEE ALSO | 147 | .Sh SEE ALSO |
diff --git a/src/lib/libcrypto/man/d2i_PrivateKey.3 b/src/lib/libcrypto/man/d2i_PrivateKey.3 index 73ffa25886..10eb5ebeeb 100644 --- a/src/lib/libcrypto/man/d2i_PrivateKey.3 +++ b/src/lib/libcrypto/man/d2i_PrivateKey.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_PrivateKey.3,v 1.2 2016/12/06 14:54:55 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_PrivateKey.3,v 1.3 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
| 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>. |
| @@ -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: December 6 2016 $ | 51 | .Dd $Mdocdate: December 8 2016 $ |
| 52 | .Dt D2I_PRIVATEKEY 3 | 52 | .Dt D2I_PRIVATEKEY 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -120,7 +120,7 @@ functions; see | |||
| 120 | All these functions use DER format and unencrypted keys. | 120 | All these functions use DER format and unencrypted keys. |
| 121 | Applications wishing to encrypt or decrypt private keys should use other | 121 | Applications wishing to encrypt or decrypt private keys should use other |
| 122 | functions such as | 122 | functions such as |
| 123 | .Xr d2i_PKC8PrivateKey 3 | 123 | .Xr d2i_PKCS8PrivateKey_bio 3 |
| 124 | instead. | 124 | instead. |
| 125 | .Pp | 125 | .Pp |
| 126 | If | 126 | If |
| @@ -151,4 +151,4 @@ an error occurs. | |||
| 151 | The error code can be obtained by calling | 151 | The error code can be obtained by calling |
| 152 | .Xr ERR_get_error 3 . | 152 | .Xr ERR_get_error 3 . |
| 153 | .Sh SEE ALSO | 153 | .Sh SEE ALSO |
| 154 | .Xr d2i_PKCS8PrivateKey 3 | 154 | .Xr d2i_PKCS8PrivateKey_bio 3 |
diff --git a/src/lib/libcrypto/man/d2i_RSAPublicKey.3 b/src/lib/libcrypto/man/d2i_RSAPublicKey.3 index 0ce5f31aa5..73147e10e6 100644 --- a/src/lib/libcrypto/man/d2i_RSAPublicKey.3 +++ b/src/lib/libcrypto/man/d2i_RSAPublicKey.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_RSAPublicKey.3,v 1.3 2016/12/05 20:36:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_RSAPublicKey.3,v 1.4 2016/12/08 20:22:08 jmc 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 Ulf Moeller <ulf@openssl.org> and | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org> and |
| @@ -50,20 +50,20 @@ | |||
| 50 | .\" 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 |
| 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 52 | .\" | 52 | .\" |
| 53 | .Dd $Mdocdate: December 5 2016 $ | 53 | .Dd $Mdocdate: December 8 2016 $ |
| 54 | .Dt D2I_RSAPUBLICKEY 3 | 54 | .Dt D2I_RSAPUBLICKEY 3 |
| 55 | .Os | 55 | .Os |
| 56 | .Sh NAME | 56 | .Sh NAME |
| 57 | .Nm d2i_RSAPublicKey , | 57 | .Nm d2i_RSAPublicKey , |
| 58 | .Nm i2d_RSAPublicKey , | 58 | .Nm i2d_RSAPublicKey , |
| 59 | .Nm d2i_RSAPrivateKey , | ||
| 60 | .Nm i2d_RSAPrivateKey , | ||
| 61 | .Nm d2i_RSA_PUBKEY , | 59 | .Nm d2i_RSA_PUBKEY , |
| 62 | .Nm i2d_RSA_PUBKEY , | 60 | .Nm i2d_RSA_PUBKEY , |
| 63 | .Nm d2i_RSA_PUBKEY_bio , | 61 | .Nm d2i_RSA_PUBKEY_bio , |
| 64 | .Nm d2i_RSA_PUBKEY_fp , | 62 | .Nm d2i_RSA_PUBKEY_fp , |
| 65 | .Nm i2d_RSA_PUBKEY_bio , | 63 | .Nm i2d_RSA_PUBKEY_bio , |
| 66 | .Nm i2d_RSA_PUBKEY_fp , | 64 | .Nm i2d_RSA_PUBKEY_fp , |
| 65 | .Nm d2i_RSAPrivateKey , | ||
| 66 | .Nm i2d_RSAPrivateKey , | ||
| 67 | .Nm i2d_Netscape_RSA , | 67 | .Nm i2d_Netscape_RSA , |
| 68 | .Nm d2i_Netscape_RSA | 68 | .Nm d2i_Netscape_RSA |
| 69 | .Nd RSA public and private key encoding functions | 69 | .Nd RSA public and private key encoding functions |
diff --git a/src/lib/libcrypto/man/d2i_X509.3 b/src/lib/libcrypto/man/d2i_X509.3 index 916fdb8005..7ca3abf2d9 100644 --- a/src/lib/libcrypto/man/d2i_X509.3 +++ b/src/lib/libcrypto/man/d2i_X509.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509.3,v 1.3 2016/12/05 20:39:08 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL 94480b57 Sep 12 23:34:41 2009 +0000 | 2 | .\" OpenSSL 94480b57 Sep 12 23:34:41 2009 +0000 |
| 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,12 +49,14 @@ | |||
| 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: December 5 2016 $ | 52 | .Dd $Mdocdate: December 8 2016 $ |
| 53 | .Dt D2I_X509 3 | 53 | .Dt D2I_X509 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| 56 | .Nm d2i_X509 , | 56 | .Nm d2i_X509 , |
| 57 | .Nm d2i_X509_AUX , | ||
| 57 | .Nm i2d_X509 , | 58 | .Nm i2d_X509 , |
| 59 | .Nm i2d_X509_AUX , | ||
| 58 | .Nm d2i_X509_bio , | 60 | .Nm d2i_X509_bio , |
| 59 | .Nm d2i_X509_fp , | 61 | .Nm d2i_X509_fp , |
| 60 | .Nm i2d_X509_bio , | 62 | .Nm i2d_X509_bio , |
| @@ -136,7 +138,7 @@ contains a valid | |||
| 136 | .Vt X509 | 138 | .Vt X509 |
| 137 | structure and an attempt is made to reuse it. | 139 | structure and an attempt is made to reuse it. |
| 138 | This "reuse" capability is present for historical compatibility, | 140 | This "reuse" capability is present for historical compatibility, |
| 139 | but its use is strongly discouraged, see the | 141 | but its use is strongly discouraged; see the |
| 140 | .Sx BUGS | 142 | .Sx BUGS |
| 141 | and | 143 | and |
| 142 | .Sx RETURN VALUES | 144 | .Sx RETURN VALUES |
| @@ -223,7 +225,7 @@ The letters | |||
| 223 | .Sy i | 225 | .Sy i |
| 224 | and | 226 | and |
| 225 | .Sy d | 227 | .Sy d |
| 226 | in for example | 228 | in, for example, |
| 227 | .Fn i2d_X509 | 229 | .Fn i2d_X509 |
| 228 | stand for "internal" (that is an internal C structure) and "DER", | 230 | stand for "internal" (that is an internal C structure) and "DER", |
| 229 | so that | 231 | so that |
| @@ -264,8 +266,8 @@ See the | |||
| 264 | section for some common errors. | 266 | section for some common errors. |
| 265 | .Pp | 267 | .Pp |
| 266 | The reason for the auto increment behaviour is to reflect a typical | 268 | The reason for the auto increment behaviour is to reflect a typical |
| 267 | usage of ASN1 functions: after one structure is encoded or decoded, | 269 | usage of ASN.1 functions: after one structure is encoded or decoded, |
| 268 | another will processed after it. | 270 | another will be processed after it. |
| 269 | .Sh RETURN VALUES | 271 | .Sh RETURN VALUES |
| 270 | .Fn d2i_X509 , | 272 | .Fn d2i_X509 , |
| 271 | .Fn d2i_X509_bio , | 273 | .Fn d2i_X509_bio , |
| @@ -308,7 +310,7 @@ p = buf; | |||
| 308 | i2d_X509(x, &p); | 310 | i2d_X509(x, &p); |
| 309 | .Ed | 311 | .Ed |
| 310 | .Pp | 312 | .Pp |
| 311 | If you are using OpenSSL 0.9.7 or later then this can be simplified to: | 313 | Using OpenSSL 0.9.7 or later this can be simplified to: |
| 312 | .Bd -literal -offset indent | 314 | .Bd -literal -offset indent |
| 313 | int len; | 315 | int len; |
| 314 | unsigned char *buf; | 316 | unsigned char *buf; |
| @@ -386,7 +388,7 @@ may well crash. | |||
| 386 | The auto allocation feature (setting | 388 | The auto allocation feature (setting |
| 387 | .Fa buf | 389 | .Fa buf |
| 388 | to | 390 | to |
| 389 | .Dv NULL | 391 | .Dv NULL ) |
| 390 | only works on OpenSSL 0.9.7 and later. | 392 | only works on OpenSSL 0.9.7 and later. |
| 391 | Attempts to use it on earlier versions will typically cause a | 393 | Attempts to use it on earlier versions will typically cause a |
| 392 | segmentation violation. | 394 | segmentation violation. |
diff --git a/src/lib/libcrypto/man/d2i_X509_ALGOR.3 b/src/lib/libcrypto/man/d2i_X509_ALGOR.3 index e4eab2e883..4e2b02400b 100644 --- a/src/lib/libcrypto/man/d2i_X509_ALGOR.3 +++ b/src/lib/libcrypto/man/d2i_X509_ALGOR.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509_ALGOR.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509_ALGOR.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 | 2 | .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 |
| 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>. |
| @@ -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: December 5 2016 $ | 51 | .Dd $Mdocdate: December 8 2016 $ |
| 52 | .Dt D2I_X509_ALGOR 3 | 52 | .Dt D2I_X509_ALGOR 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -74,8 +74,7 @@ These functions decode and encode an | |||
| 74 | structure which is equivalent to the | 74 | structure which is equivalent to the |
| 75 | .Sy AlgorithmIdentifier | 75 | .Sy AlgorithmIdentifier |
| 76 | structure. | 76 | structure. |
| 77 | .Pp | 77 | They otherwise behave in a way similar to |
| 78 | Otherwise these behave in a way similar to | ||
| 79 | .Xr d2i_X509 3 | 78 | .Xr d2i_X509 3 |
| 80 | and | 79 | and |
| 81 | .Xr i2d_X509 3 . | 80 | .Xr i2d_X509 3 . |
diff --git a/src/lib/libcrypto/man/d2i_X509_CRL.3 b/src/lib/libcrypto/man/d2i_X509_CRL.3 index dd1abf4586..1c8ca5c6b9 100644 --- a/src/lib/libcrypto/man/d2i_X509_CRL.3 +++ b/src/lib/libcrypto/man/d2i_X509_CRL.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509_CRL.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509_CRL.3,v 1.4 2016/12/08 20:22:08 jmc 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: December 5 2016 $ | 52 | .Dd $Mdocdate: December 8 2016 $ |
| 53 | .Dt D2I_X509_CRL 3 | 53 | .Dt D2I_X509_CRL 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -96,8 +96,7 @@ | |||
| 96 | .Sh DESCRIPTION | 96 | .Sh DESCRIPTION |
| 97 | These functions decode and encode an X509 CRL (certificate revocation | 97 | These functions decode and encode an X509 CRL (certificate revocation |
| 98 | list). | 98 | list). |
| 99 | .Pp | 99 | They otherwise behave in a way similar to |
| 100 | Otherwise the functions behave in a way similar to | ||
| 101 | .Xr d2i_X509 3 | 100 | .Xr d2i_X509 3 |
| 102 | and | 101 | and |
| 103 | .Xr i2d_X509 3 . | 102 | .Xr i2d_X509 3 . |
diff --git a/src/lib/libcrypto/man/d2i_X509_NAME.3 b/src/lib/libcrypto/man/d2i_X509_NAME.3 index 701c4e31fa..2817a7f3ce 100644 --- a/src/lib/libcrypto/man/d2i_X509_NAME.3 +++ b/src/lib/libcrypto/man/d2i_X509_NAME.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509_NAME.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509_NAME.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL d900a015 Oct 8 14:40:42 2015 +0200 | 2 | .\" OpenSSL d900a015 Oct 8 14:40:42 2015 +0200 |
| 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>. |
| @@ -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: December 5 2016 $ | 51 | .Dd $Mdocdate: December 8 2016 $ |
| 52 | .Dt D2I_X509_NAME 3 | 52 | .Dt D2I_X509_NAME 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -71,12 +71,11 @@ | |||
| 71 | .Sh DESCRIPTION | 71 | .Sh DESCRIPTION |
| 72 | These functions decode and encode an | 72 | These functions decode and encode an |
| 73 | .Vt X509_NAME | 73 | .Vt X509_NAME |
| 74 | structure which is the same as the | 74 | structure, which is the same as the |
| 75 | .Sy Name | 75 | .Sy Name |
| 76 | type defined in RFC2459 (and elsewhere) and used for example in | 76 | type defined in RFC 2459 (and elsewhere) and used, for example, in |
| 77 | certificate subject and issuer names. | 77 | certificate subject and issuer names. |
| 78 | .Pp | 78 | They otherwise behave in a way similar to |
| 79 | Otherwise the functions behave in a way similar to | ||
| 80 | .Xr d2i_X509 3 | 79 | .Xr d2i_X509 3 |
| 81 | and | 80 | and |
| 82 | .Xr i2d_X509 3 . | 81 | .Xr i2d_X509 3 . |
diff --git a/src/lib/libcrypto/man/d2i_X509_REQ.3 b/src/lib/libcrypto/man/d2i_X509_REQ.3 index 26a8fada2c..6c4a61985e 100644 --- a/src/lib/libcrypto/man/d2i_X509_REQ.3 +++ b/src/lib/libcrypto/man/d2i_X509_REQ.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509_REQ.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509_REQ.3,v 1.4 2016/12/08 20:22:08 jmc 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: December 5 2016 $ | 52 | .Dd $Mdocdate: December 8 2016 $ |
| 53 | .Dt D2I_X509_REQ 3 | 53 | .Dt D2I_X509_REQ 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -95,8 +95,7 @@ | |||
| 95 | .Fc | 95 | .Fc |
| 96 | .Sh DESCRIPTION | 96 | .Sh DESCRIPTION |
| 97 | These functions decode and encode a PKCS#10 certificate request. | 97 | These functions decode and encode a PKCS#10 certificate request. |
| 98 | .Pp | 98 | They otherwise behave in a way similar to |
| 99 | Otherwise these behave in a way similar to | ||
| 100 | .Xr d2i_X509 3 | 99 | .Xr d2i_X509 3 |
| 101 | and | 100 | and |
| 102 | .Xr i2d_X509 3 . | 101 | .Xr i2d_X509 3 . |
diff --git a/src/lib/libcrypto/man/d2i_X509_SIG.3 b/src/lib/libcrypto/man/d2i_X509_SIG.3 index 8c107a8e88..8466ccfe7f 100644 --- a/src/lib/libcrypto/man/d2i_X509_SIG.3 +++ b/src/lib/libcrypto/man/d2i_X509_SIG.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509_SIG.3,v 1.3 2016/12/05 20:32:19 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_X509_SIG.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ |
| 2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 | 2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -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>. |
| @@ -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: December 5 2016 $ | 51 | .Dd $Mdocdate: December 8 2016 $ |
| 52 | .Dt D2I_X509_SIG 3 | 52 | .Dt D2I_X509_SIG 3 |
| 53 | .Os | 53 | .Os |
| 54 | .Sh NAME | 54 | .Sh NAME |
| @@ -71,11 +71,10 @@ | |||
| 71 | .Sh DESCRIPTION | 71 | .Sh DESCRIPTION |
| 72 | These functions decode and encode an | 72 | These functions decode and encode an |
| 73 | .Vt X509_SIG | 73 | .Vt X509_SIG |
| 74 | structure which is equivalent to the | 74 | structure, which is equivalent to the |
| 75 | .Sy DigestInfo | 75 | .Sy DigestInfo |
| 76 | structure defined in PKCS#1 and PKCS#7. | 76 | structure defined in PKCS#1 and PKCS#7. |
| 77 | .Pp | 77 | They otherwise behave in a way similar to |
| 78 | Otherwise these behave in a way similar to | ||
| 79 | .Xr d2i_X509 3 | 78 | .Xr d2i_X509 3 |
| 80 | and | 79 | and |
| 81 | .Xr i2d_X509 3 . | 80 | .Xr i2d_X509 3 . |
