+SKIP: {
+ skip "TLSv1.2 and TLSv1.1 disabled", 1
+ if disabled("tls1_2") && disabled("tls1_1");
+ #Test 5: Client fails to do renegotiation
+ $proxy->clear();
+ $proxy->filter(undef);
+ $proxy->serverflags("-no_tls1_3");
+ $proxy->clientflags("-no_tls1_3");
+ $proxy->reneg(1);
+ $proxy->start();
+ ok(TLSProxy::Message->fail(),
+ "Check client renegotiation failed");
+}
+
+SKIP: {
+ skip "TLSv1.2 and TLSv1.1 disabled", 1
+ if disabled("tls1_2") && disabled("tls1_1");
+ #Test 6: Server can do renegotiation
+ $proxy->clear();
+ $proxy->filter(undef);
+ $proxy->serverflags("-no_tls1_3 -immediate_renegotiation");
+ $proxy->clientflags("-no_tls1_3");
+ $proxy->start();
+ ok(TLSProxy::Message->success(),
+ "Check server renegotiation succeeded");
+}
+