diff options
author | schwarze <> | 2023-06-06 16:20:13 +0000 |
---|---|---|
committer | schwarze <> | 2023-06-06 16:20:13 +0000 |
commit | e179b69bde328604cd932b1a2e0bf2a4a5e80aba (patch) | |
tree | ab0ef5aabd72c252da5105c4c32d878302f04f8b | |
parent | 285370c6fda08e1e01791466e6f2562290c804a2 (diff) | |
download | openbsd-e179b69bde328604cd932b1a2e0bf2a4a5e80aba.tar.gz openbsd-e179b69bde328604cd932b1a2e0bf2a4a5e80aba.tar.bz2 openbsd-e179b69bde328604cd932b1a2e0bf2a4a5e80aba.zip |
In 1995, Eric A. Young chose a confusing name for the "lastUpdate" field
of the X509_CRL_INFO object. It should have been called "thisUpdate"
like in RFC 5280 section 5.1 (and in its precursor RFC 2459). Then again,
RFC 2459 was only published in 1999, so maybe the terminology wasn't
firmly established yet when Young wrote his code several years earlier -
just guessing, neither we nor the OpenSSL folks appear to know the real
reasons...
Anyway, we have been stuck with the "lastUpdate" names in the API for
more than two decades now, so clarify in the documentation what they
refer to and what they really mean.
Requested by and OK tb@.
-rw-r--r-- | src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_get0_notBefore.3 | 24 |
2 files changed, 20 insertions, 12 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 b/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 index b3d0ee3069..1f221563cb 100644 --- a/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 +++ b/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: X509_STORE_CTX_get_error.3,v 1.27 2023/04/30 14:49:47 tb Exp $ | 1 | .\" $OpenBSD: X509_STORE_CTX_get_error.3,v 1.28 2023/06/06 16:20:13 schwarze Exp $ |
2 | .\" full merge up to: | 2 | .\" full merge up to: |
3 | .\" OpenSSL man3/X509_STORE_CTX_get_error 24a535ea Sep 22 13:14:20 2020 +0100 | 3 | .\" OpenSSL man3/X509_STORE_CTX_get_error 24a535ea Sep 22 13:14:20 2020 +0100 |
4 | .\" OpenSSL man3/X509_STORE_CTX_new 24a535ea Sep 22 13:14:20 2020 +0100 | 4 | .\" OpenSSL man3/X509_STORE_CTX_new 24a535ea Sep 22 13:14:20 2020 +0100 |
@@ -68,7 +68,7 @@ | |||
68 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 68 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
69 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 69 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
70 | .\" | 70 | .\" |
71 | .Dd $Mdocdate: April 30 2023 $ | 71 | .Dd $Mdocdate: June 6 2023 $ |
72 | .Dt X509_STORE_CTX_GET_ERROR 3 | 72 | .Dt X509_STORE_CTX_GET_ERROR 3 |
73 | .Os | 73 | .Os |
74 | .Sh NAME | 74 | .Sh NAME |
@@ -386,7 +386,9 @@ The certificate notBefore field contains an invalid time. | |||
386 | The certificate notAfter field contains an invalid time. | 386 | The certificate notAfter field contains an invalid time. |
387 | .It Dv X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD : \ | 387 | .It Dv X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD : \ |
388 | No format error in CRL's lastUpdate field | 388 | No format error in CRL's lastUpdate field |
389 | The CRL lastUpdate field contains an invalid time. | 389 | The CRL thisUpdate field (sic!) contains an invalid time. |
390 | Both the name of the error constant and the text of the error message | ||
391 | give a wrong name for the field that contains the problem. | ||
390 | .It Dv X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD : \ | 392 | .It Dv X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD : \ |
391 | No format error in CRL's nextUpdate field | 393 | No format error in CRL's nextUpdate field |
392 | The CRL nextUpdate field contains an invalid time. | 394 | The CRL nextUpdate field contains an invalid time. |
diff --git a/src/lib/libcrypto/man/X509_get0_notBefore.3 b/src/lib/libcrypto/man/X509_get0_notBefore.3 index e9f0d62992..53b18d5991 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.5 2020/06/24 14:59:41 schwarze Exp $ | 1 | .\" $OpenBSD: X509_get0_notBefore.3,v 1.6 2023/06/06 16:20:13 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, 2020 Ingo Schwarze <schwarze@openbsd.org> | 4 | .\" Copyright (c) 2018, 2020 Ingo Schwarze <schwarze@openbsd.org> |
@@ -15,7 +15,7 @@ | |||
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: June 24 2020 $ | 18 | .Dd $Mdocdate: June 6 2023 $ |
19 | .Dt X509_GET0_NOTBEFORE 3 | 19 | .Dt X509_GET0_NOTBEFORE 3 |
20 | .Os | 20 | .Os |
21 | .Sh NAME | 21 | .Sh NAME |
@@ -142,14 +142,20 @@ and | |||
142 | are identical except for the const qualifier on the return type. | 142 | are identical except for the const qualifier on the return type. |
143 | .Pp | 143 | .Pp |
144 | .Fn X509_CRL_get0_lastUpdate | 144 | .Fn X509_CRL_get0_lastUpdate |
145 | and | 145 | is misnamed in a confusing way: it returns a pointer to the |
146 | .Fa thisUpdate | ||
147 | field of the | ||
148 | .Fa crl , | ||
149 | indicating the time when this | ||
150 | .Fa crl | ||
151 | was issued. | ||
152 | .Pp | ||
146 | .Fn X509_CRL_get0_nextUpdate | 153 | .Fn X509_CRL_get0_nextUpdate |
147 | return pointers to the | 154 | returns a pointer to the |
148 | .Fa lastUpdate | ||
149 | and | ||
150 | .Fa nextUpdate | 155 | .Fa nextUpdate |
151 | fields of | 156 | field of the |
152 | .Fa crl . | 157 | .Fa crl , |
158 | indicating the time when issuing the subsequent CRL will be due. | ||
153 | .Pp | 159 | .Pp |
154 | .Fn X509_CRL_get_lastUpdate | 160 | .Fn X509_CRL_get_lastUpdate |
155 | and | 161 | and |
@@ -165,7 +171,7 @@ and | |||
165 | set the | 171 | set the |
166 | .Fa notBefore , | 172 | .Fa notBefore , |
167 | .Fa notAfter , | 173 | .Fa notAfter , |
168 | .Fa lastUpdate , | 174 | .Fa thisUpdate Pq sic!\& , |
169 | or | 175 | or |
170 | .Fa nextUpdate | 176 | .Fa nextUpdate |
171 | field of | 177 | field of |