openssl/crypto/asn1
Rich Salz 04e62715db Introduce ASN1_TIME_set_string_X509 API
Make funcs to deal with non-null-term'd string
in both asn1_generalizedtime_to_tm() and asn1_utctime_to_tm().

Fixes issue #3444.

This one is used to enforce strict format (RFC 5280) check and to
convert GeneralizedTime to UTCTime.

apps/ca has been changed to use the new API.

Test cases and documentation are updated/added

Signed-off-by: Paul Yang <paulyang.inf@gmail.com>

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3566)
2017-06-11 16:36:07 -04:00
..
a_bitstr.c
a_d2i_fp.c
a_digest.c Combined patch against master branch for the following issues: 2017-02-03 20:39:52 +01:00
a_dup.c
a_gentm.c Introduce ASN1_TIME_set_string_X509 API 2017-06-11 16:36:07 -04:00
a_i2d_fp.c
a_int.c asn1/a_int.c: fix "next negative minimum" corner case in c2i_ibuf. 2017-04-30 15:17:03 +02:00
a_mbstr.c
a_object.c
a_octet.c
a_print.c
a_sign.c Allow NULL md for custom signing methods 2017-05-30 20:38:19 +01:00
a_strex.c Fix strict-warnings build 2016-10-18 17:09:47 +01:00
a_strnid.c Convert asn1 selftests (a_strnid and ameth_lib) into internal test 2016-11-03 13:13:31 +01:00
a_time.c Introduce ASN1_TIME_set_string_X509 API 2017-06-11 16:36:07 -04:00
a_type.c Fix embedded string handling. 2016-10-17 14:34:00 +01:00
a_utctm.c Introduce ASN1_TIME_set_string_X509 API 2017-06-11 16:36:07 -04:00
a_utf8.c
a_verify.c Add EVP_DigestSign and EVP_DigesVerify 2017-05-11 12:59:25 +01:00
ameth_lib.c Convert asn1 selftests (a_strnid and ameth_lib) into internal test 2016-11-03 13:13:31 +01:00
asn1_err.c make error tables const and separate header file 2017-06-07 15:12:03 -04:00
asn1_gen.c
asn1_item_list.c Fix config option 'no-deprecated' 2016-10-19 12:11:56 +02:00
asn1_item_list.h Act on deprecation of LONG and ZLONG, step 1 2017-04-10 12:11:00 +02:00
asn1_lib.c Fix embedded string handling. 2016-10-17 14:34:00 +01:00
asn1_locl.h Implement internal ASN.1 types INT32, UINT32, INT64, UINT64 2017-04-04 11:29:23 +02:00
asn1_par.c Fix 0 -> NULL, indentation 2017-03-28 16:16:49 -04:00
asn_mime.c
asn_moid.c
asn_mstbl.c
asn_pack.c
bio_asn1.c Exit the loop on failure 2017-03-09 09:26:13 -05:00
bio_ndef.c
build.info Implement internal ASN.1 types INT32, UINT32, INT64, UINT64 2017-04-04 11:29:23 +02:00
charmap.h
charmap.pl
d2i_pr.c
d2i_pu.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
evp_asn1.c ASN.1: adapt our use of INTxx et al by making them explicitely embedded 2017-04-13 10:23:31 +02:00
f_int.c Fix a slightly confusing if condition in a2i_ASN1_INTEGER. 2017-02-17 09:54:25 -05:00
f_string.c
i2d_pr.c
i2d_pu.c
n_pkey.c ASN.1: adapt our use of INTxx et al by making them explicitely embedded 2017-04-13 10:23:31 +02:00
nsseq.c
p5_pbe.c
p5_pbev2.c Clean one unused variable, plus an useless one. 2017-01-18 15:19:24 +01:00
p5_scrypt.c Clean one unused variable, plus an useless one. 2017-01-18 15:19:24 +01:00
p8_pkey.c
standard_methods.h add method 2017-05-30 20:38:19 +01:00
t_bitst.c
t_pkey.c
t_spki.c
tasn_dec.c Don't set choice selector on parse failure. 2016-11-10 13:04:11 +00:00
tasn_enc.c
tasn_fre.c ASN.1: extend the possibilities to embed data instead of pointers 2017-04-13 10:23:31 +02:00
tasn_new.c ASN.1: extend the possibilities to embed data instead of pointers 2017-04-13 10:23:31 +02:00
tasn_prn.c Print <ABSENT> if a STACK is NULL. 2016-09-29 16:21:46 +01:00
tasn_scn.c
tasn_typ.c
tasn_utl.c
tbl_standard.h Add some OID's from X.520 2017-05-31 13:33:20 -04:00
x_algor.c
x_bignum.c
x_info.c
x_int64.c ASN.1: change INTxx, UINTxx and Z variants to be embedable 2017-04-13 10:23:31 +02:00
x_long.c Discourage the use of LONG and ZLONG, and deprecate it in the future 2017-04-10 12:11:00 +02:00
x_pkey.c
x_sig.c
x_spki.c
x_val.c