"Fossies" - the Fresh Open Source Software Archive

Member "openssl-1.0.2q/doc/man3/X509_cmp_time.pod" (20 Nov 2018, 1004 Bytes) of package /linux/misc/openssl-1.0.2q.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested pod source page into HTML format but links to other pod pages may be missing or even errorneous. Alternatively you can here view or download the uninterpreted pod source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last Fossies "Diffs" side-by-side code changes report for "X509_cmp_time.pod": 1.1.1-pre3_vs_1.1.1-pre8.

NAME

X509_cmp_time - X509 time functions

SYNOPSIS

 X509_cmp_time(const ASN1_TIME *asn1_time, time_t *cmp_time);

DESCRIPTION

X509_cmp_time() compares the ASN1_TIME in asn1_time with the time in <cmp_time>.

asn1_time must satisfy the ASN1_TIME format mandated by RFC 5280, i.e., its format must be either YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ.

If cmp_time is NULL the current time is used.

BUGS

Unlike many standard comparison functions, X509_cmp_time returns 0 on error.

RETURN VALUES

X509_cmp_time() returns -1 if asn1_time is earlier than, or equal to, cmp_time, and 1 otherwise. It returns 0 on error.

COPYRIGHT

Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.