summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-11-16 14:20:49 +0000
committertb <>2023-11-16 14:20:49 +0000
commitb1b5f5273375a2833976e2f36bd89c4d22de1b49 (patch)
tree0adbf4d8d8638f856910a7f54066051c20a57225 /src/lib
parent40261a979668400cda0314dacee266b701d727d1 (diff)
downloadopenbsd-b1b5f5273375a2833976e2f36bd89c4d22de1b49.tar.gz
openbsd-b1b5f5273375a2833976e2f36bd89c4d22de1b49.tar.bz2
openbsd-b1b5f5273375a2833976e2f36bd89c4d22de1b49.zip
Minimal fix to unbreak OPENSSL_{gmtime,timegm}(3)
I was told not to look since it will magically get fixed. Fine. I'd still have expected a minimal amount of care so that the manpage isn't totally dysfunctional and missing text in the right places. Sigh.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/ASN1_TIME_set.333
1 files changed, 18 insertions, 15 deletions
diff --git a/src/lib/libcrypto/man/ASN1_TIME_set.3 b/src/lib/libcrypto/man/ASN1_TIME_set.3
index 3b649e05be..cf8dadbb32 100644
--- a/src/lib/libcrypto/man/ASN1_TIME_set.3
+++ b/src/lib/libcrypto/man/ASN1_TIME_set.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ASN1_TIME_set.3,v 1.20 2023/11/13 12:46:07 beck Exp $ 1.\" $OpenBSD: ASN1_TIME_set.3,v 1.21 2023/11/16 14:20:49 tb Exp $
2.\" full merge up to: OpenSSL 3d0f1cb9 Jul 11 03:01:24 2017 +0800 2.\" full merge up to: OpenSSL 3d0f1cb9 Jul 11 03:01:24 2017 +0800
3.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 3.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
4.\" 4.\"
@@ -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: November 13 2023 $ 71.Dd $Mdocdate: November 16 2023 $
72.Dt ASN1_TIME_SET 3 72.Dt ASN1_TIME_SET 3
73.Os 73.Os
74.Sh NAME 74.Sh NAME
@@ -94,9 +94,9 @@
94.Nm ASN1_TIME_cmp_time_t , 94.Nm ASN1_TIME_cmp_time_t ,
95.Nm ASN1_UTCTIME_cmp_time_t , 95.Nm ASN1_UTCTIME_cmp_time_t ,
96.Nm ASN1_TIME_compare , 96.Nm ASN1_TIME_compare ,
97.Nm ASN1_TIME_to_generalizedtime 97.Nm ASN1_TIME_to_generalizedtime ,
98.Nm OPENSSL_gmtime, 98.Nm OPENSSL_gmtime ,
99.Nm OPENSSL_timegm, 99.Nm OPENSSL_timegm
100.Nd ASN.1 Time functions 100.Nd ASN.1 Time functions
101.Sh SYNOPSIS 101.Sh SYNOPSIS
102.In openssl/asn1.h 102.In openssl/asn1.h
@@ -516,6 +516,19 @@ and
516functions act only on that specific time format, while the 516functions act only on that specific time format, while the
517.Vt ASN1_TIME 517.Vt ASN1_TIME
518functions operate on either format. 518functions operate on either format.
519.Pp
520.Fn OPENSSL_gmtime
521converts a time_t value in
522.Fa time
523to a struct tm in
524.Fa out_tm
525and also returns the struct passed in on success.
526.Pp
527.Fn OPENSSL_timegm
528converts a time structure in UTC time in
529.Fa tm
530to a time_t value in
531.Fa out_time .
519.Sh RETURN VALUES 532.Sh RETURN VALUES
520.Fn ASN1_TIME_set , 533.Fn ASN1_TIME_set ,
521.Fn ASN1_UTCTIME_set , 534.Fn ASN1_UTCTIME_set ,
@@ -576,21 +589,11 @@ is later than
576or \-2 on error. 589or \-2 on error.
577.Pp 590.Pp
578.Fn OPENSSL_timegm 591.Fn OPENSSL_timegm
579converts a time structure in UTC time in
580.Fa tm
581to a time_t value in
582.Fa out_time
583.Fn OPENSSL_timegm
584returns 1 for success or 0 for failure. 592returns 1 for success or 0 for failure.
585It can fail if the time is not representable in a time_t, 593It can fail if the time is not representable in a time_t,
586or falls outside the range allowed in RFC 5280 times. 594or falls outside the range allowed in RFC 5280 times.
587.Pp 595.Pp
588.Fn OPENSSL_gmtime 596.Fn OPENSSL_gmtime
589converts a time_t value in
590.Fa time
591to a struct tm in
592.Fa out_tm
593.Fn OPENSSL_gmtime
594returns 597returns
595.Fa out_tm 598.Fa out_tm
596on success or NULL for failure. 599on success or NULL for failure.