diff options
Diffstat (limited to 'src/lib/libcrypto')
| -rw-r--r-- | src/lib/libcrypto/man/d2i_X509_CRL.3 | 161 |
1 files changed, 94 insertions, 67 deletions
diff --git a/src/lib/libcrypto/man/d2i_X509_CRL.3 b/src/lib/libcrypto/man/d2i_X509_CRL.3 index 1c8ca5c6b9..398af4cda4 100644 --- a/src/lib/libcrypto/man/d2i_X509_CRL.3 +++ b/src/lib/libcrypto/man/d2i_X509_CRL.3 | |||
| @@ -1,55 +1,21 @@ | |||
| 1 | .\" $OpenBSD: d2i_X509_CRL.3,v 1.4 2016/12/08 20:22:08 jmc Exp $ | 1 | .\" $OpenBSD: d2i_X509_CRL.3,v 1.5 2016/12/28 14:59:39 schwarze 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 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> |
| 5 | .\" Copyright (c) 2002, 2005, 2009, 2013, 2015 The OpenSSL Project. | ||
| 6 | .\" All rights reserved. | ||
| 7 | .\" | 5 | .\" |
| 8 | .\" Redistribution and use in source and binary forms, with or without | 6 | .\" Permission to use, copy, modify, and distribute this software for any |
| 9 | .\" modification, are permitted provided that the following conditions | 7 | .\" purpose with or without fee is hereby granted, provided that the above |
| 10 | .\" are met: | 8 | .\" copyright notice and this permission notice appear in all copies. |
| 11 | .\" | 9 | .\" |
| 12 | .\" 1. Redistributions of source code must retain the above copyright | 10 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 13 | .\" notice, this list of conditions and the following disclaimer. | 11 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 12 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 13 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 14 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 14 | .\" | 17 | .\" |
| 15 | .\" 2. Redistributions in binary form must reproduce the above copyright | 18 | .Dd $Mdocdate: December 28 2016 $ |
| 16 | .\" notice, this list of conditions and the following disclaimer in | ||
| 17 | .\" the documentation and/or other materials provided with the | ||
| 18 | .\" distribution. | ||
| 19 | .\" | ||
| 20 | .\" 3. All advertising materials mentioning features or use of this | ||
| 21 | .\" software must display the following acknowledgment: | ||
| 22 | .\" "This product includes software developed by the OpenSSL Project | ||
| 23 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
| 24 | .\" | ||
| 25 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
| 26 | .\" endorse or promote products derived from this software without | ||
| 27 | .\" prior written permission. For written permission, please contact | ||
| 28 | .\" openssl-core@openssl.org. | ||
| 29 | .\" | ||
| 30 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
| 31 | .\" nor may "OpenSSL" appear in their names without prior written | ||
| 32 | .\" permission of the OpenSSL Project. | ||
| 33 | .\" | ||
| 34 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
| 35 | .\" acknowledgment: | ||
| 36 | .\" "This product includes software developed by the OpenSSL Project | ||
| 37 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
| 38 | .\" | ||
| 39 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
| 40 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 41 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 42 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
| 43 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 44 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 45 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| 46 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 47 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 48 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 51 | .\" | ||
| 52 | .Dd $Mdocdate: December 8 2016 $ | ||
| 53 | .Dt D2I_X509_CRL 3 | 19 | .Dt D2I_X509_CRL 3 |
| 54 | .Os | 20 | .Os |
| 55 | .Sh NAME | 21 | .Sh NAME |
| @@ -58,47 +24,108 @@ | |||
| 58 | .Nm d2i_X509_CRL_bio , | 24 | .Nm d2i_X509_CRL_bio , |
| 59 | .Nm d2i_X509_CRL_fp , | 25 | .Nm d2i_X509_CRL_fp , |
| 60 | .Nm i2d_X509_CRL_bio , | 26 | .Nm i2d_X509_CRL_bio , |
| 61 | .Nm i2d_X509_CRL_fp | 27 | .Nm i2d_X509_CRL_fp , |
| 62 | .Nd PKCS#10 certificate request functions | 28 | .Nm d2i_X509_CRL_INFO , |
| 29 | .Nm i2d_X509_CRL_INFO , | ||
| 30 | .Nm d2i_X509_REVOKED , | ||
| 31 | .Nm i2d_X509_REVOKED | ||
| 32 | .Nd decode and encode X.509 certificate revocation lists | ||
| 63 | .Sh SYNOPSIS | 33 | .Sh SYNOPSIS |
| 64 | .In openssl/x509.h | 34 | .In openssl/x509.h |
| 65 | .Ft X509_CRL * | 35 | .Ft X509_CRL * |
| 66 | .Fo d2i_X509_CRL | 36 | .Fo d2i_X509_CRL |
| 67 | .Fa "X509_CRL **a" | 37 | .Fa "X509_CRL **val_out" |
| 68 | .Fa "const unsigned char **pp" | 38 | .Fa "const unsigned char **der_in" |
| 69 | .Fa "long length" | 39 | .Fa "long length" |
| 70 | .Fc | 40 | .Fc |
| 71 | .Ft int | 41 | .Ft int |
| 72 | .Fo i2d_X509_CRL | 42 | .Fo i2d_X509_CRL |
| 73 | .Fa "X509_CRL *a" | 43 | .Fa "X509_CRL *val_in" |
| 74 | .Fa "unsigned char **pp" | 44 | .Fa "unsigned char **der_out" |
| 75 | .Fc | 45 | .Fc |
| 76 | .Ft X509_CRL * | 46 | .Ft X509_CRL * |
| 77 | .Fo d2i_X509_CRL_bio | 47 | .Fo d2i_X509_CRL_bio |
| 78 | .Fa "BIO *bp" | 48 | .Fa "BIO *in_bio" |
| 79 | .Fa "X509_CRL **x" | 49 | .Fa "X509_CRL **der_out" |
| 80 | .Fc | 50 | .Fc |
| 81 | .Ft X509_CRL * | 51 | .Ft X509_CRL * |
| 82 | .Fo d2i_X509_CRL_fp | 52 | .Fo d2i_X509_CRL_fp |
| 83 | .Fa "FILE *fp" | 53 | .Fa "FILE *in_fp" |
| 84 | .Fa "X509_CRL **x" | 54 | .Fa "X509_CRL **der_out" |
| 85 | .Fc | 55 | .Fc |
| 86 | .Ft int | 56 | .Ft int |
| 87 | .Fo i2d_X509_CRL_bio | 57 | .Fo i2d_X509_CRL_bio |
| 88 | .Fa "BIO *bp" | 58 | .Fa "BIO *out_bio" |
| 89 | .Fa "X509_CRL *x" | 59 | .Fa "X509_CRL *der_in" |
| 90 | .Fc | 60 | .Fc |
| 91 | .Ft int | 61 | .Ft int |
| 92 | .Fo i2d_X509_CRL_fp | 62 | .Fo i2d_X509_CRL_fp |
| 93 | .Fa "FILE *fp" | 63 | .Fa "FILE *out_fp" |
| 94 | .Fa "X509_CRL *x" | 64 | .Fa "X509_CRL *der_in" |
| 65 | .Fc | ||
| 66 | .Ft X509_CRL_INFO * | ||
| 67 | .Fo d2i_X509_CRL_INFO | ||
| 68 | .Fa "X509_CRL_INFO **val_out" | ||
| 69 | .Fa "const unsigned char **der_in" | ||
| 70 | .Fa "long length" | ||
| 71 | .Fc | ||
| 72 | .Ft int | ||
| 73 | .Fo i2d_X509_CRL_INFO | ||
| 74 | .Fa "X509_CRL_INFO *val_in" | ||
| 75 | .Fa "unsigned char **der_out" | ||
| 76 | .Fc | ||
| 77 | .Ft X509_REVOKED * | ||
| 78 | .Fo d2i_X509_REVOKED | ||
| 79 | .Fa "X509_REVOKED **val_out" | ||
| 80 | .Fa "const unsigned char **der_in" | ||
| 81 | .Fa "long length" | ||
| 82 | .Fc | ||
| 83 | .Ft int | ||
| 84 | .Fo i2d_X509_REVOKED | ||
| 85 | .Fa "X509_REVOKED *val_in" | ||
| 86 | .Fa "unsigned char **der_out" | ||
| 95 | .Fc | 87 | .Fc |
| 96 | .Sh DESCRIPTION | 88 | .Sh DESCRIPTION |
| 97 | These functions decode and encode an X509 CRL (certificate revocation | 89 | These functions decode and encode X.509 certificate revocation lists. |
| 98 | list). | 90 | For details about the semantics, examples, caveats, and bugs, see |
| 99 | They otherwise behave in a way similar to | 91 | .Xr ASN1_item_d2i 3 . |
| 100 | .Xr d2i_X509 3 | 92 | .Pp |
| 93 | .Fn d2i_X509_CRL | ||
| 94 | and | ||
| 95 | .Fn i2d_X509_CRL | ||
| 96 | decode and encode an ASN.1 | ||
| 97 | .Vt CertificateList | ||
| 98 | structure defined in RFC 5280 section 5.1. | ||
| 99 | .Fn d2i_X509_CRL_bio , | ||
| 100 | .Fn d2i_X509_CRL_fp , | ||
| 101 | .Fn i2d_X509_CRL_bio , | ||
| 102 | and | ||
| 103 | .Fn i2d_X509_CRL_fp | ||
| 104 | are similar except that they decode or encode using a | ||
| 105 | .Vt BIO | ||
| 106 | or | ||
| 107 | .Vt FILE | ||
| 108 | pointer. | ||
| 109 | .Pp | ||
| 110 | .Fn d2i_X509_CRL_INFO | ||
| 111 | and | ||
| 112 | .Fn i2d_X509_CRL_INFO | ||
| 113 | decode and encode an ASN.1 | ||
| 114 | .Vt TBSCertList | ||
| 115 | structure defined in RFC 5280 section 5.1. | ||
| 116 | .Pp | ||
| 117 | .Fn d2i_X509_REVOKED | ||
| 101 | and | 118 | and |
| 102 | .Xr i2d_X509 3 . | 119 | .Fn i2d_X509_REVOKED |
| 120 | decode and encode an ASN.1 structure representing one element of | ||
| 121 | the revokedCertificates field of the ASN.1 | ||
| 122 | .Vt TBSCertList | ||
| 123 | structure. | ||
| 103 | .Sh SEE ALSO | 124 | .Sh SEE ALSO |
| 104 | .Xr d2i_X509 3 | 125 | .Xr ASN1_item_d2i 3 , |
| 126 | .Xr X509_CRL_new 3 , | ||
| 127 | .Xr X509_REVOKED_new 3 | ||
| 128 | .Sh STANDARDS | ||
| 129 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
| 130 | Certificate Revocation List (CRL) Profile, | ||
| 131 | section 5: CRL and CRL Extensions Profile | ||
