Deleted Added
full compact
70-test_sslskewith0p.t (1.1.1.3) 70-test_sslskewith0p.t (1.1.1.1)
1#! /usr/bin/env perl
1#! /usr/bin/env perl
2# Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
2# Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
3#
4# Licensed under the OpenSSL license (the "License"). You may not use
5# this file except in compliance with the License. You can obtain a copy
6# in the file LICENSE in the source distribution or at
7# https://www.openssl.org/source/license.html
8
9use strict;
10use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/;
11use OpenSSL::Test::Utils;
12use TLSProxy::Proxy;
13
14my $test_name = "test_sslskewith0p";
15setup($test_name);
16
17plan skip_all => "TLSProxy isn't usable on $^O"
3#
4# Licensed under the OpenSSL license (the "License"). You may not use
5# this file except in compliance with the License. You can obtain a copy
6# in the file LICENSE in the source distribution or at
7# https://www.openssl.org/source/license.html
8
9use strict;
10use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/;
11use OpenSSL::Test::Utils;
12use TLSProxy::Proxy;
13
14my $test_name = "test_sslskewith0p";
15setup($test_name);
16
17plan skip_all => "TLSProxy isn't usable on $^O"
18 if $^O =~ /^(VMS)$/;
18 if $^O =~ /^(VMS|MSWin32)$/;
19
20plan skip_all => "$test_name needs the dynamic engine feature enabled"
21 if disabled("engine") || disabled("dynamic-engine");
22
23plan skip_all => "dh is not supported by this OpenSSL build"
24 if disabled("dh");
25
26plan skip_all => "$test_name needs the sock feature enabled"

--- 9 unchanged lines hidden (view full) ---

36 srctop_file("apps", "server.pem"),
37 (!$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE})
38);
39
40#We must use an anon DHE cipher for this test
41$proxy->cipherc('ADH-AES128-SHA:@SECLEVEL=0');
42$proxy->ciphers('ADH-AES128-SHA:@SECLEVEL=0');
43
19
20plan skip_all => "$test_name needs the dynamic engine feature enabled"
21 if disabled("engine") || disabled("dynamic-engine");
22
23plan skip_all => "dh is not supported by this OpenSSL build"
24 if disabled("dh");
25
26plan skip_all => "$test_name needs the sock feature enabled"

--- 9 unchanged lines hidden (view full) ---

36 srctop_file("apps", "server.pem"),
37 (!$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE})
38);
39
40#We must use an anon DHE cipher for this test
41$proxy->cipherc('ADH-AES128-SHA:@SECLEVEL=0');
42$proxy->ciphers('ADH-AES128-SHA:@SECLEVEL=0');
43
44$proxy->clientflags("-no_tls1_3");
45$proxy->start() or plan skip_all => "Unable to start up Proxy for tests";
46plan tests => 1;
47ok(TLSProxy::Message->fail, "ServerKeyExchange with 0 p");
48
49sub ske_0_p_filter
50{
51 my $proxy = shift;
52

--- 14 unchanged lines hidden ---
44$proxy->start() or plan skip_all => "Unable to start up Proxy for tests";
45plan tests => 1;
46ok(TLSProxy::Message->fail, "ServerKeyExchange with 0 p");
47
48sub ske_0_p_filter
49{
50 my $proxy = shift;
51

--- 14 unchanged lines hidden ---