diff options
| author | schwarze <> | 2018-02-25 10:53:16 +0000 |
|---|---|---|
| committer | schwarze <> | 2018-02-25 10:53:16 +0000 |
| commit | 6e996a3dfa7d20a6d4dbf448351932b433fad051 (patch) | |
| tree | 2ca13a5fba8bb0db15686b75a9909e5767786117 /src | |
| parent | 7dfd9909e0e102040245c7bf26f140e0620d9d98 (diff) | |
| download | openbsd-6e996a3dfa7d20a6d4dbf448351932b433fad051.tar.gz openbsd-6e996a3dfa7d20a6d4dbf448351932b433fad051.tar.bz2 openbsd-6e996a3dfa7d20a6d4dbf448351932b433fad051.zip | |
In x509.h rev. 1.37 2018/02/22 17:01:44, jsing@ provided
X509_CRL_set1_lastUpdate(3) and X509_CRL_set1_nextUpdate(3) and
in rev. 1.39 2018/02/22 17:06:42 X509_set1_notBefore(3) and
X509_set1_notAfter(3). Document them, again from scratch
because what OpenSSL provides is slightly confusing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/X509_get0_notBefore.3 | 72 |
1 files changed, 65 insertions, 7 deletions
diff --git a/src/lib/libcrypto/man/X509_get0_notBefore.3 b/src/lib/libcrypto/man/X509_get0_notBefore.3 index 850dd8bb9e..3af3074d27 100644 --- a/src/lib/libcrypto/man/X509_get0_notBefore.3 +++ b/src/lib/libcrypto/man/X509_get0_notBefore.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: X509_get0_notBefore.3,v 1.2 2018/02/22 17:10:00 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get0_notBefore.3,v 1.3 2018/02/25 10:53:16 schwarze Exp $ |
| 2 | .\" content checked up to: OpenSSL 27b138e9 May 19 00:16:38 2017 +0000 | 2 | .\" content checked up to: OpenSSL 27b138e9 May 19 00:16:38 2017 +0000 |
| 3 | .\" | 3 | .\" |
| 4 | .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> | 4 | .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> |
| @@ -15,17 +15,21 @@ | |||
| 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 15 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 16 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 17 | .\" | 17 | .\" |
| 18 | .Dd $Mdocdate: February 22 2018 $ | 18 | .Dd $Mdocdate: February 25 2018 $ |
| 19 | .Dt X509_GET0_NOTBEFORE 3 | 19 | .Dt X509_GET0_NOTBEFORE 3 |
| 20 | .Os | 20 | .Os |
| 21 | .Sh NAME | 21 | .Sh NAME |
| 22 | .Nm X509_get0_notBefore , | 22 | .Nm X509_get0_notBefore , |
| 23 | .Nm X509_getm_notBefore , | ||
| 24 | .Nm X509_get0_notAfter , | 23 | .Nm X509_get0_notAfter , |
| 24 | .Nm X509_getm_notBefore , | ||
| 25 | .Nm X509_getm_notAfter , | 25 | .Nm X509_getm_notAfter , |
| 26 | .Nm X509_CRL_get0_lastUpdate , | 26 | .Nm X509_CRL_get0_lastUpdate , |
| 27 | .Nm X509_CRL_get0_nextUpdate | 27 | .Nm X509_CRL_get0_nextUpdate , |
| 28 | .Nd get certificate and CRL validity dates | 28 | .Nm X509_set1_notBefore , |
| 29 | .Nm X509_set1_notAfter , | ||
| 30 | .Nm X509_CRL_set1_lastUpdate , | ||
| 31 | .Nm X509_CRL_set1_nextUpdate | ||
| 32 | .Nd get and set certificate and CRL validity dates | ||
| 29 | .Sh SYNOPSIS | 33 | .Sh SYNOPSIS |
| 30 | .In openssl/x509.h | 34 | .In openssl/x509.h |
| 31 | .Ft const ASN1_TIME * | 35 | .Ft const ASN1_TIME * |
| @@ -52,6 +56,26 @@ | |||
| 52 | .Fo X509_CRL_get0_nextUpdate | 56 | .Fo X509_CRL_get0_nextUpdate |
| 53 | .Fa "const X509_CRL *crl" | 57 | .Fa "const X509_CRL *crl" |
| 54 | .Fc | 58 | .Fc |
| 59 | .Ft int | ||
| 60 | .Fo X509_set1_notBefore | ||
| 61 | .Fa "X509 *x" | ||
| 62 | .Fa "const ASN1_TIME *tm" | ||
| 63 | .Fc | ||
| 64 | .Ft int | ||
| 65 | .Fo X509_set1_notAfter | ||
| 66 | .Fa "X509 *x" | ||
| 67 | .Fa "const ASN1_TIME *tm" | ||
| 68 | .Fc | ||
| 69 | .Ft int | ||
| 70 | .Fo X509_CRL_set1_lastUpdate | ||
| 71 | .Fa "X509_CRL *crl" | ||
| 72 | .Fa "const ASN1_TIME *tm" | ||
| 73 | .Fc | ||
| 74 | .Ft int | ||
| 75 | .Fo X509_CRL_set1_nextUpdate | ||
| 76 | .Fa "X509_CRL *crl" | ||
| 77 | .Fa "const ASN1_TIME *tm" | ||
| 78 | .Fc | ||
| 55 | .Sh DESCRIPTION | 79 | .Sh DESCRIPTION |
| 56 | .Fn X509_getm_notBefore | 80 | .Fn X509_getm_notBefore |
| 57 | and | 81 | and |
| @@ -78,11 +102,45 @@ and | |||
| 78 | .Fa nextUpdate | 102 | .Fa nextUpdate |
| 79 | fields of | 103 | fields of |
| 80 | .Fa crl . | 104 | .Fa crl . |
| 105 | .Pp | ||
| 106 | .Fn X509_set1_notBefore , | ||
| 107 | .Fn X509_set1_notAfter , | ||
| 108 | .Fn X509_CRL_set1_lastUpdate , | ||
| 109 | and | ||
| 110 | .Fn X509_CRL_set1_nextUpdate | ||
| 111 | set the | ||
| 112 | .Fa notBefore , | ||
| 113 | .Fa notAfter , | ||
| 114 | .Fa lastUpdate , | ||
| 115 | or | ||
| 116 | .Fa nextUpdate | ||
| 117 | field of | ||
| 118 | .Fa x | ||
| 119 | or | ||
| 120 | .Fa crl , | ||
| 121 | respectively, to a deep copy of | ||
| 122 | .Fa tm | ||
| 123 | and free the | ||
| 124 | .Vt ASN1_TIME | ||
| 125 | value that they replace. | ||
| 81 | .Sh RETURN VALUES | 126 | .Sh RETURN VALUES |
| 82 | These functions return internal pointers which must not be freed | 127 | .Fn X509_get0_notBefore , |
| 83 | by the application, or | 128 | .Fn X509_get0_notAfter , |
| 129 | .Fn X509_getm_notBefore , | ||
| 130 | .Fn X509_getm_notAfter , | ||
| 131 | .Fn X509_CRL_get0_lastUpdate , | ||
| 132 | and | ||
| 133 | .Fn X509_CRL_get0_nextUpdate | ||
| 134 | return internal pointers which must not be freed by the application, or | ||
| 84 | .Dv NULL | 135 | .Dv NULL |
| 85 | if the requested fields are not available. | 136 | if the requested fields are not available. |
| 137 | .Pp | ||
| 138 | .Fn X509_set1_notBefore , | ||
| 139 | .Fn X509_set1_notAfter , | ||
| 140 | .Fn X509_CRL_set1_lastUpdate , | ||
| 141 | and | ||
| 142 | .Fn X509_CRL_set1_nextUpdate | ||
| 143 | return 1 on success or 0 on failure. | ||
| 86 | .Sh SEE ALSO | 144 | .Sh SEE ALSO |
| 87 | .Xr ASN1_TIME_set 3 , | 145 | .Xr ASN1_TIME_set 3 , |
| 88 | .Xr ASN1_TIME_set_tm 3 , | 146 | .Xr ASN1_TIME_set_tm 3 , |
