diff options
author | tb <> | 2022-07-04 12:17:32 +0000 |
---|---|---|
committer | tb <> | 2022-07-04 12:17:32 +0000 |
commit | 7869bf01c6d0b61d5bf56605b35b2ee60ee72e3c (patch) | |
tree | fd461cb3e0bb3c84bf38a7a31fa704d527a5333c /src | |
parent | c8148fe4a357bf456bc2da69589b49c1c58c535f (diff) | |
download | openbsd-7869bf01c6d0b61d5bf56605b35b2ee60ee72e3c.tar.gz openbsd-7869bf01c6d0b61d5bf56605b35b2ee60ee72e3c.tar.bz2 openbsd-7869bf01c6d0b61d5bf56605b35b2ee60ee72e3c.zip |
Prepare to provide X509_VERIFY_PARAM_get_time()
ok jsing sthen
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_vpm.c | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index d31e779aae..b18dd02fc0 100644 --- a/src/lib/libcrypto/x509/x509_vfy.h +++ b/src/lib/libcrypto/x509/x509_vfy.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vfy.h,v 1.52 2022/06/27 14:10:22 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.53 2022/07/04 12:17:32 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -435,6 +435,7 @@ int X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust); | |||
435 | void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth); | 435 | void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth); |
436 | #if defined(LIBRESSL_INTERNAL) | 436 | #if defined(LIBRESSL_INTERNAL) |
437 | void X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level); | 437 | void X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level); |
438 | time_t X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param); | ||
438 | #endif | 439 | #endif |
439 | void X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t); | 440 | void X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t); |
440 | int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, | 441 | int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, |
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c index d4ec2c597f..e14d7a36fd 100644 --- a/src/lib/libcrypto/x509/x509_vpm.c +++ b/src/lib/libcrypto/x509/x509_vpm.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vpm.c,v 1.29 2022/06/27 14:00:09 tb Exp $ */ | 1 | /* $OpenBSD: x509_vpm.c,v 1.30 2022/07/04 12:17:32 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -459,6 +459,12 @@ X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level) | |||
459 | param->security_level = auth_level; | 459 | param->security_level = auth_level; |
460 | } | 460 | } |
461 | 461 | ||
462 | time_t | ||
463 | X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param) | ||
464 | { | ||
465 | return param->check_time; | ||
466 | } | ||
467 | |||
462 | void | 468 | void |
463 | X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t) | 469 | X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t) |
464 | { | 470 | { |