Commit 16938284 authored by David Woodhouse's avatar David Woodhouse Committed by Matt Caswell
Browse files

Add basic test for Cisco DTLS1_BAD_VER and record replay handling

parent 2e94723c
Loading
Loading
Loading
Loading
+637

File added.

Preview size limit exceeded, changes collapsed.

+5 −1
Changes for test/build.info: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ IF[{- !$disabled{tests} -}]
          randtest dhtest enginetest casttest \
          bftest ssltest_old dsatest exptest rsa_test \
          evp_test evp_extra_test igetest v3nametest v3ext \
          danetest heartbeat_test p5_crpt2_test \
          danetest heartbeat_test p5_crpt2_test bad_dtls_test \
          constant_time_test verify_extra_test clienthellotest \
          packettest asynctest secmemtest srptest memleaktest \
          dtlsv1listentest ct_test threadstest afalgtest d2i_test \
@@ -190,6 +190,10 @@ IF[{- !$disabled{tests} -}]
  INCLUDE[clienthellotest]=../include
  DEPEND[clienthellotest]=../libcrypto ../libssl

  SOURCE[bad_dtls_test]=bad_dtls_test.c
  INCLUDE[bad_dtls_test]=.. ../include
  DEPEND[bad_dtls_test]=../libcrypto ../libssl

  SOURCE[packettest]=packettest.c
  INCLUDE[packettest]=../include
  DEPEND[packettest]=../libcrypto
+20
Changes for test/recipes/70-test_bad_dtls.t: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
#! /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;
use OpenSSL::Test::Utils;

setup("test_bad_dtls");

plan skip_all => "DTLSv1 is not supported by this OpenSSL build"
    if disabled("dtls1");

plan tests => 1;

ok(run(test(["bad_dtls_test"])), "running bad_dtls_test");