diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-07-31 08:49:50 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-09-05 16:17:15 -0400 |
commit | d35ff2c0ade0a12e84aaa2e9841b4983a2f3cf45 (patch) | |
tree | ea7207dd84a2a5ab1e18e9f9711cb966e46751a0 /apps/opt.c | |
parent | 2519b4e18101a7e987dad842084cd1da5da5c191 (diff) | |
download | openssl-d35ff2c0ade0a12e84aaa2e9841b4983a2f3cf45.tar.gz |
RT3951: Add X509_V_FLAG_NO_CHECK_TIME to suppress time check
In some environments, such as firmware, the current system time is entirely
meaningless. Provide a clean mechanism to suppress the checks against it.
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps/opt.c')
-rw-r--r-- | apps/opt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/opt.c b/apps/opt.c index bfb039e872..c7dcc434e8 100644 --- a/apps/opt.c +++ b/apps/opt.c @@ -543,6 +543,10 @@ int opt_verify(int opt, X509_VERIFY_PARAM *vpm) break; case OPT_V_NO_ALT_CHAINS: X509_VERIFY_PARAM_set_flags(vpm, X509_V_FLAG_NO_ALT_CHAINS); + break; + case OPT_V_NO_CHECK_TIME: + X509_VERIFY_PARAM_set_flags(vpm, X509_V_FLAG_NO_CHECK_TIME); + break; } return 1; |