[OpenBSD]

Manual Page Search Parameters

ASN1_TIME_PARSE(3) Library Functions Manual ASN1_TIME_PARSE(3)

NAME

ASN1_time_parse, ASN1_time_tm_cmp, ASN1_TIME_set_tmLibreSSL utilities for ASN.1 time types

SYNOPSIS

#include <openssl/asn1.h>
int
ASN1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode);
int
ASN1_time_tm_cmp(struct tm *tm1, struct tm *tm2);
ASN1_TIME *
ASN1_TIME_set_tm(ASN1_TIME *s, struct tm *tm);

DESCRIPTION

The ASN1_time_parse() function parses an ASN.1 time string of len bytes starting at bytes. The resulting time is stored in tm if tm is not NULL.
The mode parameter must be one of
The ASN1_time_tm_cmp() function compares two times in tm1 and tm2.
The function ASN1_TIME_set_tm() sets the ASN1_TIME structure s to the time represented by the struct tm value pointed to by tm. If s is NULL, a new ASN1_TIME structure is allocated and returned.

RETURN VALUES

ASN1_parse_time() returns
ASN1_time_tm_cmp() returns
ASN1_TIME_set_tm() returns a pointer to an ASN1_TIME structure or NULL if an error occurred.
February 15, 2018 OpenBSD-current