Home
last modified time | relevance | path

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

123

/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.pod16 const ASN1_TIME *X509_get0_notBefore(const X509 *x);
17 const ASN1_TIME *X509_get0_notAfter(const X509 *x);
19 ASN1_TIME *X509_getm_notBefore(const X509 *x);
20 ASN1_TIME *X509_getm_notAfter(const X509 *x);
22 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);
23 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);
31 const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);
32 const ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl);
34 int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);
35 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()
265 ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type) in ossl_asn1_time_from_tm()
268 ASN1_TIME *tmps = NULL; in ossl_asn1_time_from_tm()
323 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) in ASN1_TIME_set()
328 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, in ASN1_TIME_adj()
346 int ASN1_TIME_check(const ASN1_TIME *t) in ASN1_TIME_check()
356 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.h17 int ossl_asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d);
93 ASN1_TIME *ossl_asn1_time_from_tm(ASN1_TIME *s, struct tm *ts, int type);
/freebsd/crypto/openssl/crypto/x509/
H A Dx509cset.c43 int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_lastUpdate()
50 int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) in X509_CRL_set1_nextUpdate()
91 const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl) in X509_CRL_get0_lastUpdate()
96 const ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl) in X509_CRL_get0_nextUpdate()
102 ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl) in X509_CRL_get_lastUpdate()
107 ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl) in X509_CRL_get_nextUpdate()
142 const ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *x) in X509_REVOKED_get0_revocationDate()
147 int X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm) in X509_REVOKED_set_revocationDate()
H A Dx509_set.c73 int ossl_x509_set1_time(int *modified, ASN1_TIME **ptm, const ASN1_TIME *tm) in ossl_x509_set1_time()
75 ASN1_TIME *new; in ossl_x509_set1_time()
89 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm) in X509_set1_notBefore()
97 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm) in X509_set1_notAfter()
132 const ASN1_TIME *X509_get0_notBefore(const X509 *x) in X509_get0_notBefore()
137 const ASN1_TIME *X509_get0_notAfter(const X509 *x) in X509_get0_notAfter()
142 ASN1_TIME *X509_getm_notBefore(const X509 *x) in X509_getm_notBefore()
147 ASN1_TIME *X509_getm_notAfter(const X509 *x) in X509_getm_notAfter()
/freebsd/crypto/openssl/test/
H A Dx509_time_test.c407 ASN1_TIME t; in test_x509_cmp_time()
429 ASN1_TIME *asn1_before = NULL, *asn1_after = NULL; in test_x509_cmp_time_current()
450 ASN1_TIME *asn1_before, in test_X509_cmp_timeframe_vpm()
451 ASN1_TIME *asn1_mid, in test_X509_cmp_timeframe_vpm()
452 ASN1_TIME *asn1_after) in test_X509_cmp_timeframe_vpm()
474 ASN1_TIME *asn1_mid = ASN1_TIME_adj(NULL, now, 0, 0); in test_X509_cmp_timeframe()
476 ASN1_TIME *asn1_before = ASN1_TIME_adj(NULL, now, -1, 0); in test_X509_cmp_timeframe()
477 ASN1_TIME *asn1_after = ASN1_TIME_adj(NULL, now, 1, 0); in test_X509_cmp_timeframe()
503 ASN1_TIME *t = NULL; in test_x509_time()
610 ASN1_TIME *a = NULL; in test_days()
[all …]
H A Dasn1_time_test.c609 static ASN1_TIME gtime = {
620 ASN1_TIME atime; in test_table()
621 ASN1_TIME *ptime; in test_table()
784 ASN1_TIME t1;
785 ASN1_TIME t2;
831 ASN1_TIME *asn1_time = NULL; in test_time_dup()
832 ASN1_TIME *asn1_time_dup = NULL; in test_time_dup()
833 ASN1_TIME *asn1_gentime = NULL; in test_time_dup()
912 ASN1_TIME *at; in convert_tm_to_asn1_time()
H A Dtime_offset_test.c59 static ASN1_TIME the_asn1_time = {
68 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 */
313 int ossl_x509_set1_time(int *modified, ASN1_TIME **ptm, const ASN1_TIME *tm);
/freebsd/crypto/openssl/include/openssl/
H A Dasn1.h742 const ASN1_TIME *from, const ASN1_TIME *to);
830 DECLARE_ASN1_FUNCTIONS(ASN1_TIME)
832 DECLARE_ASN1_DUP_FUNCTION(ASN1_TIME)
838 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
839 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,
841 int ASN1_TIME_check(const ASN1_TIME *t);
842 ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
844 int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
845 int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
846 int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
[all …]
H A Dx509.h.in101 ASN1_TIME *notBefore;
102 ASN1_TIME *notAfter;
498 int X509_cmp_time(const ASN1_TIME *s, time_t *t);
499 int X509_cmp_current_time(const ASN1_TIME *s);
501 const ASN1_TIME *start, const ASN1_TIME *end);
502 ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);
503 ASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,
505 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
664 const ASN1_TIME *X509_get0_notBefore(const X509 *x);
665 ASN1_TIME *X509_getm_notBefore(const X509 *x);
[all …]
H A Dx509.h199 ASN1_TIME *notBefore;
200 ASN1_TIME *notAfter;
692 int X509_cmp_time(const ASN1_TIME *s, time_t *t);
693 int X509_cmp_current_time(const ASN1_TIME *s);
695 const ASN1_TIME *start, const ASN1_TIME *end);
696 ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);
697 ASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,
699 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
858 const ASN1_TIME *X509_get0_notBefore(const X509 *x);
859 ASN1_TIME *X509_getm_notBefore(const X509 *x);
[all …]
H A Dasn1.h.in623 const ASN1_TIME *from, const ASN1_TIME *to);
663 DECLARE_ASN1_FUNCTIONS(ASN1_TIME)
665 DECLARE_ASN1_DUP_FUNCTION(ASN1_TIME)
671 ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);
672 ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,
674 int ASN1_TIME_check(const ASN1_TIME *t);
675 ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,
677 int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);
678 int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);
679 int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);
[all …]
H A Dtypes.h54 #define ASN1_TIME ASN1_STRING macro
74 typedef struct asn1_string_st ASN1_TIME; typedef
/freebsd/crypto/openssl/crypto/crmf/
H A Dcrmf_local.h308 /* 0 */ ASN1_TIME *notBefore;
309 /* 1 */ ASN1_TIME *notAfter;
H A Dcrmf_asn.c186 ASN1_EXP_OPT(OSSL_CRMF_OPTIONALVALIDITY, notBefore, ASN1_TIME, 0),
187 ASN1_EXP_OPT(OSSL_CRMF_OPTIONALVALIDITY, notAfter, ASN1_TIME, 1)
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_attr.c107 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t) in PKCS7_add0_attrib_signing_time()
109 ASN1_TIME *tmp = NULL; in PKCS7_add0_attrib_signing_time()
/freebsd/crypto/openssl/crypto/ocsp/
H A Docsp_srv.c87 ASN1_TIME *revtime, in OCSP_basic_add1_status()
88 ASN1_TIME *thisupd, in OCSP_basic_add1_status()
89 ASN1_TIME *nextupd) in OCSP_basic_add1_status()
/freebsd/crypto/openssl/test/testutil/
H A Dhelper.c28 ASN1_TIME *timestamp_asn1 = NULL; in test_asn1_string_to_time_t()
H A Dtests.c445 static const char *print_time(const ASN1_TIME *t) in print_time()
455 ASN1_TIME *at1 = ASN1_TIME_set(NULL, t1); \
456 ASN1_TIME *at2 = ASN1_TIME_set(NULL, t2); \

123