diff options
author | Matt Caswell <matt@openssl.org> | 2017-11-29 13:56:15 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-12-06 15:37:49 +0000 |
commit | 97652f0b3a557876462ef30373ac5eeeaa88b295 (patch) | |
tree | 1ce7f5dffa4cb5677aae1aaba064a2f76792ef65 /test/recipes/90-test_fatalerr.t | |
parent | 77d75993651b63e872244a3256e37967bb3c3e9e (diff) | |
download | openssl-97652f0b3a557876462ef30373ac5eeeaa88b295.zip openssl-97652f0b3a557876462ef30373ac5eeeaa88b295.tar.gz openssl-97652f0b3a557876462ef30373ac5eeeaa88b295.tar.bz2 |
Add a test for CVE-2017-3737
Test reading/writing to an SSL object after a fatal error has been
detected. This CVE only affected 1.0.2, but we should add it to other
branches for completeness.
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'test/recipes/90-test_fatalerr.t')
-rw-r--r-- | test/recipes/90-test_fatalerr.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/recipes/90-test_fatalerr.t b/test/recipes/90-test_fatalerr.t new file mode 100644 index 0000000..361bc1f --- /dev/null +++ b/test/recipes/90-test_fatalerr.t @@ -0,0 +1,21 @@ +#! /usr/bin/env perl +# Copyright 2016 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::Utils; +use OpenSSL::Test qw/:DEFAULT srctop_file/; + +setup("test_fatalerr"); + +plan skip_all => "No TLS/SSL protocols are supported by this OpenSSL build" + if alldisabled(grep { $_ ne "ssl3" } available_protocols("tls")); + +plan tests => 1; + +ok(run(test(["fatalerrtest", srctop_file("apps", "server.pem"), + srctop_file("apps", "server.pem")])), "running fatalerrtest"); |