util.sslconfig: Remvoe flag merging for 'verify' as this is more of a tri-state field than a set of options
authorKim Alvefur <zash@zash.se>
Thu, 26 Jan 2017 14:18:30 +0100
changeset 7870 194f540e13e2
parent 7869 b6d99132d7dc
child 7871 11fcdef5022f
child 7872 eb5fba4c8074
util.sslconfig: Remvoe flag merging for 'verify' as this is more of a tri-state field than a set of options
plugins/mod_http.lua
util/sslconfig.lua
--- a/plugins/mod_http.lua	Wed Jan 25 11:18:00 2017 +0100
+++ b/plugins/mod_http.lua	Thu Jan 26 14:18:30 2017 +0100
@@ -162,11 +162,7 @@
 	default_port = 5281;
 	encryption = "ssl";
 	ssl_config = {
-		verify = {
-			peer = false,
-			client_once = false,
-			"none",
-		}
+		verify = "none";
 	};
 	multiplex = {
 		pattern = "^[A-Z]";
--- a/util/sslconfig.lua	Wed Jan 25 11:18:00 2017 +0100
+++ b/util/sslconfig.lua	Thu Jan 26 14:18:30 2017 +0100
@@ -36,7 +36,6 @@
 	config[field] = options;
 end
 
-handlers.verify = handlers.options;
 handlers.verifyext = handlers.options;
 
 -- finalisers take something produced by handlers and return what luasec
@@ -53,7 +52,6 @@
 	return output;
 end
 
-finalisers.verify = finalisers.options;
 finalisers.verifyext = finalisers.options;
 
 -- We allow ciphers to be a list