diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_get0_notBefore.3 | 74 |
2 files changed, 76 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index f60c238b1e..50e8f70510 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.126 2018/02/14 18:50:47 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.127 2018/02/15 10:01:33 schwarze Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | 4 | ||
| @@ -238,6 +238,7 @@ MAN= \ | |||
| 238 | X509_get_signature_nid.3 \ | 238 | X509_get_signature_nid.3 \ |
| 239 | X509_get_subject_name.3 \ | 239 | X509_get_subject_name.3 \ |
| 240 | X509_get_version.3 \ | 240 | X509_get_version.3 \ |
| 241 | X509_get0_notBefore.3 \ | ||
| 241 | X509_new.3 \ | 242 | X509_new.3 \ |
| 242 | X509_sign.3 \ | 243 | X509_sign.3 \ |
| 243 | X509_verify_cert.3 \ | 244 | X509_verify_cert.3 \ |
diff --git a/src/lib/libcrypto/man/X509_get0_notBefore.3 b/src/lib/libcrypto/man/X509_get0_notBefore.3 new file mode 100644 index 0000000000..a3f3aa267d --- /dev/null +++ b/src/lib/libcrypto/man/X509_get0_notBefore.3 | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | .\" $OpenBSD: X509_get0_notBefore.3,v 1.1 2018/02/15 10:01:33 schwarze Exp $ | ||
| 2 | .\" content checked up to: OpenSSL 27b138e9 May 19 00:16:38 2017 +0000 | ||
| 3 | .\" | ||
| 4 | .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> | ||
| 5 | .\" | ||
| 6 | .\" Permission to use, copy, modify, and distribute this software for any | ||
| 7 | .\" purpose with or without fee is hereby granted, provided that the above | ||
| 8 | .\" copyright notice and this permission notice appear in all copies. | ||
| 9 | .\" | ||
| 10 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 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. | ||
| 17 | .\" | ||
| 18 | .Dd $Mdocdate: February 15 2018 $ | ||
| 19 | .Dt X509_GET0_NOTBEFORE 3 | ||
| 20 | .Os | ||
| 21 | .Sh NAME | ||
| 22 | .Nm X509_get0_notBefore , | ||
| 23 | .Nm X509_getm_notBefore , | ||
| 24 | .Nm X509_get0_notAfter , | ||
| 25 | .Nm X509_getm_notAfter | ||
| 26 | .Nd get certificate validity dates | ||
| 27 | .Sh SYNOPSIS | ||
| 28 | .In openssl/x509.h | ||
| 29 | .Ft const ASN1_TIME * | ||
| 30 | .Fo X509_get0_notBefore | ||
| 31 | .Fa "const X509 *x" | ||
| 32 | .Fc | ||
| 33 | .Ft const ASN1_TIME * | ||
| 34 | .Fo X509_get0_notAfter | ||
| 35 | .Fa "const X509 *x" | ||
| 36 | .Fc | ||
| 37 | .Ft ASN1_TIME * | ||
| 38 | .Fo X509_getm_notBefore | ||
| 39 | .Fa "const X509 *x" | ||
| 40 | .Fc | ||
| 41 | .Ft ASN1_TIME * | ||
| 42 | .Fo X509_getm_notAfter | ||
| 43 | .Fa "const X509 *x" | ||
| 44 | .Fc | ||
| 45 | .Sh DESCRIPTION | ||
| 46 | .Fn X509_getm_notBefore | ||
| 47 | and | ||
| 48 | .Fn X509_getm_notAfter | ||
| 49 | return pointers to the | ||
| 50 | .Fa notBefore | ||
| 51 | and | ||
| 52 | .Fa notAfter | ||
| 53 | fields of the validity period of the certificate | ||
| 54 | .Fa x , | ||
| 55 | respectively. | ||
| 56 | .Pp | ||
| 57 | .Fn X509_get0_notBefore | ||
| 58 | and | ||
| 59 | .Fn X509_get0_notAfter | ||
| 60 | are identical except for the const qualifier on the return type. | ||
| 61 | .Sh RETURN VALUES | ||
| 62 | These functions return internal pointers which must not be freed | ||
| 63 | by the application, or | ||
| 64 | .Dv NULL | ||
| 65 | if the requested fields are not available. | ||
| 66 | .Sh SEE ALSO | ||
| 67 | .Xr ASN1_TIME_set 3 , | ||
| 68 | .Xr ASN1_TIME_set_tm 3 , | ||
| 69 | .Xr X509_cmp_time 3 , | ||
| 70 | .Xr X509_get_subject_name 3 , | ||
| 71 | .Xr X509_new 3 , | ||
| 72 | .Xr X509_sign 3 , | ||
| 73 | .Xr X509_VAL_new 3 , | ||
| 74 | .Xr X509_verify_cert 3 | ||
