diff options
author | Todd Short <tshort@akamai.com> | 2017-08-04 11:24:03 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-08-04 11:24:03 +1000 |
commit | cf37aaa335965902c6a022bc3c3e0162f59c0f3a (patch) | |
tree | b00a60fd9a70836f4d97478432cd4d9ddaae73fa /crypto/asn1/asn1_locl.h | |
parent | 2326bba0e5cbe98f4d00855a6909b1f14b6f5427 (diff) | |
download | openssl-cf37aaa335965902c6a022bc3c3e0162f59c0f3a.zip openssl-cf37aaa335965902c6a022bc3c3e0162f59c0f3a.tar.gz openssl-cf37aaa335965902c6a022bc3c3e0162f59c0f3a.tar.bz2 |
Consolidate to a single asn1_time_from_tm() function
Add missing ASN1_TIME functions
Do some cleanup of the ASN1_TIME code.
Add ASN1_TIME_normalize() to normalize ASN1_TIME structures.
Add ASN1_TIME_compare() to compare two ASN1_TIME structures.
Add ASN1_TIME_cmp_time_t() to compare an ASN1_TIME to time_t
(generic version of ASN1_UTCTIME_cmp_time_t()).
Replace '0' .. '9' compares with isdigit()
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2753)
Diffstat (limited to 'crypto/asn1/asn1_locl.h')
-rw-r--r-- | crypto/asn1/asn1_locl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/asn1_locl.h b/crypto/asn1/asn1_locl.h index cee97ab..35cbd8d 100644 --- a/crypto/asn1/asn1_locl.h +++ b/crypto/asn1/asn1_locl.h @@ -78,3 +78,5 @@ ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, /* Internal functions used by x_int64.c */ int c2i_uint64_int(uint64_t *ret, int *neg, const unsigned char **pp, long len); int i2c_uint64_int(unsigned char *p, uint64_t r, int neg); + +ASN1_TIME *asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type); |