summaryrefslogtreecommitdiffstats
path: root/test/recipes
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-10-31 21:50:26 +0100
committerMatt Caswell <matt@openssl.org>2016-11-10 13:04:05 +0000
commit4e7a0fa104b0eb60a60f2d4cc4d7f8d9852a910c (patch)
treefb484933c1fcbd8cfd7bc1d236fe961f997f7b28 /test/recipes
parente9fcdd2e69052412e67cbbf6e8b5bdc5b545d364 (diff)
test: add TLS application data corruption test.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'test/recipes')
-rw-r--r--test/recipes/80-test_sslcorrupt.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/recipes/80-test_sslcorrupt.t b/test/recipes/80-test_sslcorrupt.t
new file mode 100644
index 0000000000..ca5356d04b
--- /dev/null
+++ b/test/recipes/80-test_sslcorrupt.t
@@ -0,0 +1,16 @@
+#! /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 qw/:DEFAULT srctop_file/;
+
+setup("test_sslcorrupt");
+
+plan tests => 1;
+
+ok(run(test(["sslcorrupttest", srctop_file("apps", "server.pem"),
+ srctop_file("apps", "server.pem")])), "running sslcorrupttest");