diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2019-11-22 13:02:52 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-12-04 15:17:55 +0000 |
commit | 25d7cd1d69e5d5df9c9f346922a48797baca03b7 (patch) | |
tree | 7c60c618d7e22dc13cb6a7a270fccb50aa3a394c /include | |
parent | dc5d74e648c499d5247ff2d3db125c347abc5c1f (diff) |
add X509_cmp_timeframe() including its documentation
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10502)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/x509.h | 2 | ||||
-rw-r--r-- | include/openssl/x509_vfy.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/openssl/x509.h b/include/openssl/x509.h index e4de10e6f9..9d8cc03c53 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h @@ -495,6 +495,8 @@ DECLARE_ASN1_DUP_FUNCTION(X509_NAME_ENTRY) int X509_cmp_time(const ASN1_TIME *s, time_t *t); int X509_cmp_current_time(const ASN1_TIME *s); +int X509_cmp_timeframe(const X509_VERIFY_PARAM *vpm, + const ASN1_TIME *start, const ASN1_TIME *end); ASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t); ASN1_TIME *X509_time_adj_ex(ASN1_TIME *s, int offset_day, long offset_sec, time_t *t); diff --git a/include/openssl/x509_vfy.h b/include/openssl/x509_vfy.h index 651ffbcbe6..affdc67d80 100644 --- a/include/openssl/x509_vfy.h +++ b/include/openssl/x509_vfy.h @@ -558,7 +558,7 @@ int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, unsigned long flags); int X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param, unsigned long flags); -unsigned long X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param); +unsigned long X509_VERIFY_PARAM_get_flags(const X509_VERIFY_PARAM *param); int X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose); int X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust); void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth); |