diff options
author | Matt Caswell <matt@openssl.org> | 2016-07-04 14:59:06 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-19 13:52:40 +0100 |
commit | 6fc1748ec65c94c195d02b59556434e36a5f7651 (patch) | |
tree | 87755d0e90ffa518861116dbe82ce6ccfdf0e1a0 /test/recipes | |
parent | b4982125e63882cf9d77c704ef555105528a5dac (diff) |
Add a DTLS unprocesed records test
Add a test to inject a record from the next epoch during the handshake and
make sure it doesn't get processed immediately.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/80-test_dtls.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/recipes/80-test_dtls.t b/test/recipes/80-test_dtls.t new file mode 100644 index 0000000000..008c81774e --- /dev/null +++ b/test/recipes/80-test_dtls.t @@ -0,0 +1,21 @@ +#! /usr/bin/env perl +# Copyright 2015-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; +use OpenSSL::Test::Utils; +use OpenSSL::Test qw/:DEFAULT srctop_file/; + +setup("test_dtls"); + +plan skip_all => "No DTLS protocols are supported by this OpenSSL build" + if alldisabled(available_protocols("dtls")); + +plan tests => 1; + +ok(run(test(["dtlstest", srctop_file("apps", "server.pem"), + srctop_file("apps", "server.pem")])), "running dtlstest"); |