diff options
-rw-r--r-- | src/lib/libcrypto/man/ASN1_TIME_set.3 | 33 |
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 | |||
516 | functions act only on that specific time format, while the | 516 | functions act only on that specific time format, while the |
517 | .Vt ASN1_TIME | 517 | .Vt ASN1_TIME |
518 | functions operate on either format. | 518 | functions operate on either format. |
519 | .Pp | ||
520 | .Fn OPENSSL_gmtime | ||
521 | converts a time_t value in | ||
522 | .Fa time | ||
523 | to a struct tm in | ||
524 | .Fa out_tm | ||
525 | and also returns the struct passed in on success. | ||
526 | .Pp | ||
527 | .Fn OPENSSL_timegm | ||
528 | converts a time structure in UTC time in | ||
529 | .Fa tm | ||
530 | to 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 | |||
576 | or \-2 on error. | 589 | or \-2 on error. |
577 | .Pp | 590 | .Pp |
578 | .Fn OPENSSL_timegm | 591 | .Fn OPENSSL_timegm |
579 | converts a time structure in UTC time in | ||
580 | .Fa tm | ||
581 | to a time_t value in | ||
582 | .Fa out_time | ||
583 | .Fn OPENSSL_timegm | ||
584 | returns 1 for success or 0 for failure. | 592 | returns 1 for success or 0 for failure. |
585 | It can fail if the time is not representable in a time_t, | 593 | It can fail if the time is not representable in a time_t, |
586 | or falls outside the range allowed in RFC 5280 times. | 594 | or falls outside the range allowed in RFC 5280 times. |
587 | .Pp | 595 | .Pp |
588 | .Fn OPENSSL_gmtime | 596 | .Fn OPENSSL_gmtime |
589 | converts a time_t value in | ||
590 | .Fa time | ||
591 | to a struct tm in | ||
592 | .Fa out_tm | ||
593 | .Fn OPENSSL_gmtime | ||
594 | returns | 597 | returns |
595 | .Fa out_tm | 598 | .Fa out_tm |
596 | on success or NULL for failure. | 599 | on success or NULL for failure. |