diff options
author | Emilia Kasper <emilia@openssl.org> | 2017-02-17 19:00:15 +0100 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2017-02-24 17:37:08 +0100 |
commit | 80770da39ebba0101079477611b7ce2f426653c5 (patch) | |
tree | df2d381df58d8d0e9ad68dead17ea96c1ad17ddb /test/recipes | |
parent | b169c0ec40408566270fb638bcbfab01a0d2dc60 (diff) |
X509 time: tighten validation per RFC 5280
- Reject fractional seconds
- Reject offsets
- Check that the date/time digits are in valid range.
- Add documentation for X509_cmp_time
GH issue 2620
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/60-test_x509_time.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/recipes/60-test_x509_time.t b/test/recipes/60-test_x509_time.t new file mode 100644 index 0000000000..8b311ad314 --- /dev/null +++ b/test/recipes/60-test_x509_time.t @@ -0,0 +1,12 @@ +#! /usr/bin/env perl +# Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the OpenSSL license (the "License"). You may not use +# this file except in compliance with the License. You can obtain a copy +# in the file LICENSE in the source distribution or at +# https://www.openssl.org/source/license.html + + +use OpenSSL::Test::Simple; + +simple_test("test_x509_time", "x509_time_test"); |