Searched refs:asn1_time (Results 1 – 3 of 3) sorted by relevance
/freebsd/crypto/openssl/doc/man3/ |
H A D | X509_cmp_time.pod | 11 int X509_cmp_time(const ASN1_TIME *asn1_time, time_t *in_tm); 12 int X509_cmp_current_time(const ASN1_TIME *asn1_time); 15 ASN1_TIME *X509_time_adj(ASN1_TIME *asn1_time, long offset_sec, time_t *in_tm); 16 ASN1_TIME *X509_time_adj_ex(ASN1_TIME *asn1_time, int offset_day, long 18 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *asn1_time, long offset_sec); 22 X509_cmp_time() compares the ASN1_TIME in I<asn1_time> with the time 26 I<asn1_time> with the current time, expressed as time_t. 32 X509_time_adj_ex() sets the ASN1_TIME structure I<asn1_time> to the time 35 X509_time_adj() sets the ASN1_TIME structure I<asn1_time> to the time 40 In both methods, if I<asn1_time> is NULL, a new ASN1_TIME structure [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | asn1_time_test.c | 326 ASN1_TIME *asn1_time = NULL; in test_time_dup() local 330 asn1_time = ASN1_TIME_adj(NULL, time(NULL), 0, 0); in test_time_dup() 331 if (asn1_time == NULL) { in test_time_dup() 336 asn1_gentime = ASN1_TIME_to_generalizedtime(asn1_time, NULL); in test_time_dup() 342 asn1_time_dup = ASN1_TIME_dup(asn1_time); in test_time_dup() 347 if (!TEST_int_eq(ASN1_TIME_compare(asn1_time, asn1_time_dup), 0)) { in test_time_dup() 353 asn1_time_dup = ASN1_UTCTIME_dup(asn1_time); in test_time_dup() 358 if (!TEST_int_eq(ASN1_TIME_compare(asn1_time, asn1_time_dup), 0)) { in test_time_dup() 376 ASN1_STRING_free(asn1_time); in test_time_dup()
|
/freebsd/crypto/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 533 ASN1_GENERALIZEDTIME *asn1_time = NULL; in ts_RESP_create_tst_info() local 551 || (asn1_time = in ts_RESP_create_tst_info() 554 || !TS_TST_INFO_set_time(tst_info, asn1_time)) in ts_RESP_create_tst_info() 601 ASN1_GENERALIZEDTIME_free(asn1_time); in ts_RESP_create_tst_info() 818 ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, in TS_RESP_set_genTime_with_precision() argument 871 if (asn1_time == NULL in TS_RESP_set_genTime_with_precision() 872 && (asn1_time = ASN1_GENERALIZEDTIME_new()) == NULL) in TS_RESP_set_genTime_with_precision() 874 if (!ASN1_GENERALIZEDTIME_set_string(asn1_time, genTime_str)) { in TS_RESP_set_genTime_with_precision() 875 ASN1_GENERALIZEDTIME_free(asn1_time); in TS_RESP_set_genTime_with_precision() 878 return asn1_time; in TS_RESP_set_genTime_with_precision()
|