Home
last modified time | relevance | path

Searched refs:ASN1_TIME (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/crypto/openssl/doc/man3/
H A DX509_cmp_time.pod11 int X509_cmp_time(const ASN1_TIME *asn1_time, time_t *in_tm);
12 int X509_cmp_current_time(const ASN1_TIME *asn1_time);
14 const ASN1_TIME *start, const ASN1_TIME *end);
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
25 X509_cmp_current_time() compares the ASN1_TIME in
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
[all …]
H A DX509_get0_notBefore.pod14 const ASN1_TIME *X509_get0_notBefore(const X509 *x);
15 const ASN1_TIME *X509_get0_notAfter(const X509 *x);
17 ASN1_TIME *X509_getm_notBefore(const X509 *x);
18 ASN1_TIME *X509_getm_notAfter(const X509 *x);
20 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);
21 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);
23 const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);
24 const ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl);
26 int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
27 int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);
[all …]
H A DASN1_TIME_set.pod21 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
26 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day,
34 int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
35 int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
40 int ASN1_TIME_normalize(ASN1_TIME *s);
42 int ASN1_TIME_check(const ASN1_TIME *t);
46 int ASN1_TIME_print(BIO *b, const ASN1_TIME *s);
47 int ASN1_TIME_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags);
51 int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
52 int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from,
[all …]
H A DX509_CRL_get0_by_serial.pod22 const ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *r);
25 int X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);
81 X509_REVOKED_get0_revocationDate() returns an B<ASN1_TIME> structure.
/freebsd/crypto/openssl/crypto/asn1/
H A Da_time.c25 IMPLEMENT_ASN1_MSTRING(ASN1_TIME, B_ASN1_TIME) in IMPLEMENT_ASN1_MSTRING() argument
27 IMPLEMENT_ASN1_FUNCTIONS(ASN1_TIME) in IMPLEMENT_ASN1_MSTRING()
28 IMPLEMENT_ASN1_DUP_FUNCTION(ASN1_TIME) in IMPLEMENT_ASN1_MSTRING()
76 int ossl_asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d) in ossl_asn1_time_to_tm()
267 ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type) in ossl_asn1_time_from_tm()
270 ASN1_TIME *tmps = NULL; in ossl_asn1_time_from_tm()
319 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) in ASN1_TIME_set()
324 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, in ASN1_TIME_adj()
342 int ASN1_TIME_check(const ASN1_TIME *t) in ASN1_TIME_check()
352 ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t, in ASN1_TIME_to_generalizedtime()
[all …]
H A Dx_val.c16 ASN1_SIMPLE(X509_VAL, notBefore, ASN1_TIME),
17 ASN1_SIMPLE(X509_VAL, notAfter, ASN1_TIME)
H A Dasn1_local.h15 int ossl_asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d);
91 ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type);
/freebsd/crypto/openssl/crypto/x509/
H A Dx509cset.c37 int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_lastUpdate()
44 int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_nextUpdate()
84 const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl) in X509_CRL_get0_lastUpdate()
89 const ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl) in X509_CRL_get0_nextUpdate()
95 ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl) in X509_CRL_get_lastUpdate()
100 ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl) in X509_CRL_get_nextUpdate()
135 const ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *x) in X509_REVOKED_get0_revocationDate()
140 int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) in X509_REVOKED_set_revocationDate()
142 ASN1_TIME *in; in X509_REVOKED_set_revocationDate()
H A Dx509_set.c64 int ossl_x509_set1_time(ASN1_TIME **ptm, const ASN1_TIME *tm) in ossl_x509_set1_time()
66 ASN1_TIME *in; in ossl_x509_set1_time()
78 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm) in X509_set1_notBefore()
85 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm) in X509_set1_notAfter()
116 const ASN1_TIME *X509_get0_notBefore(const X509 *x) in X509_get0_notBefore()
121 const ASN1_TIME *X509_get0_notAfter(const X509 *x) in X509_get0_notAfter()
126 ASN1_TIME *X509_getm_notBefore(const X509 *x) in X509_getm_notBefore()
131 ASN1_TIME *X509_getm_notAfter(const X509 *x) in X509_getm_notAfter()
H A Dx_crl.c24 ASN1_SIMPLE(X509_REVOKED,revocationDate, ASN1_TIME),
71 ASN1_SIMPLE(X509_CRL_INFO, lastUpdate, ASN1_TIME),
72 ASN1_OPT(X509_CRL_INFO, nextUpdate, ASN1_TIME),
/freebsd/crypto/openssl/test/
H A Dx509_time_test.c258 ASN1_TIME t; in test_x509_cmp_time()
280 ASN1_TIME *asn1_before = NULL, *asn1_after = NULL; in test_x509_cmp_time_current()
301 ASN1_TIME *asn1_before, in test_X509_cmp_timeframe_vpm()
302 ASN1_TIME *asn1_mid, in test_X509_cmp_timeframe_vpm()
303 ASN1_TIME *asn1_after) in test_X509_cmp_timeframe_vpm()
325 ASN1_TIME *asn1_mid = ASN1_TIME_adj(NULL, now, 0, 0); in test_X509_cmp_timeframe()
327 ASN1_TIME *asn1_before = ASN1_TIME_adj(NULL, now, -1, 0); in test_X509_cmp_timeframe()
328 ASN1_TIME *asn1_after = ASN1_TIME_adj(NULL, now, 1, 0); in test_X509_cmp_timeframe()
354 ASN1_TIME *t = NULL; in test_x509_time()
461 ASN1_TIME *a = NULL; in test_days()
[all …]
H A Dasn1_time_test.c102 static ASN1_TIME gtime = {
113 ASN1_TIME atime; in test_table()
114 ASN1_TIME *ptime; in test_table()
279 ASN1_TIME t1;
280 ASN1_TIME t2;
326 ASN1_TIME *asn1_time = NULL; in test_time_dup()
327 ASN1_TIME *asn1_time_dup = NULL; in test_time_dup()
328 ASN1_TIME *asn1_gentime = NULL; in test_time_dup()
H A Dtime_offset_test.c60 static ASN1_TIME the_asn1_time = {
69 ASN1_TIME at; in test_offset()
H A Docspapitest.c75 ASN1_TIME *thisupd = ASN1_TIME_set(NULL, time(NULL)); in make_dummy_resp()
76 ASN1_TIME *nextupd = ASN1_TIME_set(NULL, time(NULL) + 200); in make_dummy_resp()
/freebsd/crypto/openssl/include/crypto/
H A Dx509.h93 ASN1_TIME *lastUpdate; /* lastUpdate field */
94 ASN1_TIME *nextUpdate; /* nextUpdate field: optional */
132 ASN1_TIME *revocationDate; /* revocation date */
312 int ossl_x509_set1_time(ASN1_TIME **ptm, const ASN1_TIME *tm);
/freebsd/crypto/openssl/include/openssl/
H A Dasn1.h750 const ASN1_TIME *from, const ASN1_TIME *to);
834 DECLARE_ASN1_FUNCTIONS(ASN1_TIME)
836 DECLARE_ASN1_DUP_FUNCTION(ASN1_TIME)
842 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
843 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,
845 int ASN1_TIME_check(const ASN1_TIME *t);
846 ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
848 int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
849 int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
850 int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
[all …]
H A Dx509.h184 ASN1_TIME *notBefore;
185 ASN1_TIME *notAfter;
675 int X509_cmp_time(const ASN1_TIME *s, time_t *t);
676 int X509_cmp_current_time(const ASN1_TIME *s);
678 const ASN1_TIME *start, const ASN1_TIME *end);
679 ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);
680 ASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,
682 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
841 const ASN1_TIME * X509_get0_notBefore(const X509 *x);
842 ASN1_TIME *X509_getm_notBefore(const X509 *x);
[all …]
H A Dx509.h.in86 ASN1_TIME *notBefore;
87 ASN1_TIME *notAfter;
481 int X509_cmp_time(const ASN1_TIME *s, time_t *t);
482 int X509_cmp_current_time(const ASN1_TIME *s);
484 const ASN1_TIME *start, const ASN1_TIME *end);
485 ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);
486 ASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,
488 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
647 const ASN1_TIME * X509_get0_notBefore(const X509 *x);
648 ASN1_TIME *X509_getm_notBefore(const X509 *x);
[all …]
H A Dasn1.h.in631 const ASN1_TIME *from, const ASN1_TIME *to);
667 DECLARE_ASN1_FUNCTIONS(ASN1_TIME)
669 DECLARE_ASN1_DUP_FUNCTION(ASN1_TIME)
675 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
676 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,
678 int ASN1_TIME_check(const ASN1_TIME *t);
679 ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
681 int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
682 int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
683 int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
[all …]
H A Dtypes.h36 # define ASN1_TIME ASN1_STRING macro
56 typedef struct asn1_string_st ASN1_TIME; typedef
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_attr.c100 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t) in PKCS7_add0_attrib_signing_time()
102 ASN1_TIME *tmp = NULL; in PKCS7_add0_attrib_signing_time()
/freebsd/crypto/openssl/crypto/crmf/
H A Dcrmf_local.h287 /* 0 */ ASN1_TIME *notBefore;
288 /* 1 */ ASN1_TIME *notAfter;
H A Dcrmf_asn.c179 ASN1_EXP_OPT(OSSL_CRMF_OPTIONALVALIDITY, notBefore, ASN1_TIME, 0),
180 ASN1_EXP_OPT(OSSL_CRMF_OPTIONALVALIDITY, notAfter, ASN1_TIME, 1)
/freebsd/crypto/openssl/crypto/ocsp/
H A Docsp_srv.c88 ASN1_TIME *revtime, in OCSP_basic_add1_status()
89 ASN1_TIME *thisupd, in OCSP_basic_add1_status()
90 ASN1_TIME *nextupd) in OCSP_basic_add1_status()
/freebsd/crypto/openssl/test/testutil/
H A Dtests.c446 static const char *print_time(const ASN1_TIME *t) in print_time()
456 ASN1_TIME *at1 = ASN1_TIME_set(NULL, t1); \
457 ASN1_TIME *at2 = ASN1_TIME_set(NULL, t2); \

12