diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_CRL_new.3 | 90 |
2 files changed, 92 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 186ca5229e..e35d6239af 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.80 2016/12/16 09:17:59 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.81 2016/12/16 09:56:33 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -179,6 +179,7 @@ MAN= \ | |||
| 179 | X509_ALGOR_dup.3 \ | 179 | X509_ALGOR_dup.3 \ |
| 180 | X509_CINF_new.3 \ | 180 | X509_CINF_new.3 \ |
| 181 | X509_CRL_get0_by_serial.3 \ | 181 | X509_CRL_get0_by_serial.3 \ |
| 182 | X509_CRL_new.3 \ | ||
| 182 | X509_EXTENSION_set_object.3 \ | 183 | X509_EXTENSION_set_object.3 \ |
| 183 | X509_LOOKUP_hash_dir.3 \ | 184 | X509_LOOKUP_hash_dir.3 \ |
| 184 | X509_NAME_ENTRY_get_object.3 \ | 185 | X509_NAME_ENTRY_get_object.3 \ |
diff --git a/src/lib/libcrypto/man/X509_CRL_new.3 b/src/lib/libcrypto/man/X509_CRL_new.3 new file mode 100644 index 0000000000..0fe735a2c3 --- /dev/null +++ b/src/lib/libcrypto/man/X509_CRL_new.3 | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | .\" $OpenBSD: X509_CRL_new.3,v 1.1 2016/12/16 09:56:33 schwarze Exp $ | ||
| 2 | .\" | ||
| 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | ||
| 4 | .\" | ||
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 7 | .\" copyright notice and this permission notice appear in all copies. | ||
| 8 | .\" | ||
| 9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | .\" | ||
| 17 | .Dd $Mdocdate: December 16 2016 $ | ||
| 18 | .Dt X509_CRL_NEW 3 | ||
| 19 | .Os | ||
| 20 | .Sh NAME | ||
| 21 | .Nm X509_CRL_new , | ||
| 22 | .Nm X509_CRL_free , | ||
| 23 | .Nm X509_CRL_INFO_new , | ||
| 24 | .Nm X509_CRL_INFO_free | ||
| 25 | .Nd X.509 certificate revocation lists | ||
| 26 | .Sh SYNOPSIS | ||
| 27 | .In openssl/x509.h | ||
| 28 | .Ft X509_CRL * | ||
| 29 | .Fn X509_CRL_new void | ||
| 30 | .Ft void | ||
| 31 | .Fn X509_CRL_free "X509_CRL *crl" | ||
| 32 | .Ft X509_CRL_INFO * | ||
| 33 | .Fn X509_CRL_INFO_new void | ||
| 34 | .Ft void | ||
| 35 | .Fn X509_CRL_INFO_free "X509_CRL_INFO *crl_info" | ||
| 36 | .Sh DESCRIPTION | ||
| 37 | .Fn X509_CRL_new | ||
| 38 | allocates and initializes an empty | ||
| 39 | .Vt X509_CRL | ||
| 40 | object, representing an ASN.1 CertificateList structure | ||
| 41 | defined in RFC 5280 section 5.1. | ||
| 42 | It can hold a pointer to an | ||
| 43 | .Vt X509_CRL_INFO | ||
| 44 | object discussed below together with a cryptographic signature | ||
| 45 | and information about the signature algorithm used. | ||
| 46 | .Fn X509_CRL_free | ||
| 47 | frees | ||
| 48 | .Fa crl . | ||
| 49 | .Pp | ||
| 50 | .Fn X509_CRL_INFO_new | ||
| 51 | allocates and initializes an empty | ||
| 52 | .Vt X509_CRL_INFO | ||
| 53 | object, representing an ASN.1 TBSCertList structure | ||
| 54 | defined in RFC 5280 section 5.1. | ||
| 55 | It is used inside the | ||
| 56 | .Vt X509_CRL | ||
| 57 | object and can hold a list of revoked certificates, an issuer name, | ||
| 58 | the time the list was issued, the time when the next update of the | ||
| 59 | list is due, and optional extensions. | ||
| 60 | .Fn X509_CRL_INFO_free | ||
| 61 | frees | ||
| 62 | .Fa crl_info . | ||
| 63 | .Sh RETURN VALUES | ||
| 64 | .Fn X509_CRL_new | ||
| 65 | and | ||
| 66 | .Fn X509_CRL_INFO_new | ||
| 67 | return the new | ||
| 68 | .Vt X509_CRL | ||
| 69 | or | ||
| 70 | .Vt X509_CRL_INFO | ||
| 71 | object, respectively, or | ||
| 72 | .Dv NULL | ||
| 73 | if an error occurs. | ||
| 74 | .Sh SEE ALSO | ||
| 75 | .Xr d2i_X509_CRL 3 , | ||
| 76 | .Xr PEM_read_X509_CRL 3 , | ||
| 77 | .Xr X509_CRL_get0_by_serial 3 , | ||
| 78 | .Xr X509_CRL_get_ext 3 , | ||
| 79 | .Xr X509_CRL_get_ext_d2i 3 , | ||
| 80 | .Xr X509_CRL_get_issuer 3 , | ||
| 81 | .Xr X509_CRL_get_version 3 , | ||
| 82 | .Xr X509_CRL_sign 3 , | ||
| 83 | .Xr X509_load_crl_file 3 , | ||
| 84 | .Xr X509_new 3 , | ||
| 85 | .Xr X509_REVOKED_new 3 , | ||
| 86 | .Xr X509_STORE_CTX_set0_crls 3 | ||
| 87 | .Sh STANDARDS | ||
| 88 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
| 89 | Certificate Revocation List (CRL) Profile, section 5: CRL and CRL | ||
| 90 | Extensions Profile | ||
