Move PSK example configuration to a separate file.
authorLinus Nordberg <linus@nordberg.se>
Fri, 17 May 2013 08:41:50 +0000 (10:41 +0200)
committerLinus Nordberg <linus@nordberg.se>
Fri, 17 May 2013 08:41:50 +0000 (10:41 +0200)
lib/examples/client-psk.conf [new file with mode: 0644]
lib/examples/client.conf

diff --git a/lib/examples/client-psk.conf b/lib/examples/client-psk.conf
new file mode 100644 (file)
index 0000000..7b35e23
--- /dev/null
@@ -0,0 +1,18 @@
+# We keep PSK configurations in a separate config file until
+# --enable-tls-psk is on by default. This configuration is not valid
+# without PSK support.
+
+realm blocking-tls-psk {
+    type = "TLS"
+    timeout = 1
+    retries = 3
+    #pskstr = "sikrit psk"
+    pskhexstr = "deadbeef4711"
+    pskid = "Client_identity"
+    pskex = "PSK"
+    server {
+        hostname = "srv1"
+       service = "4433"
+       secret = "sikrit"
+    }
+}
index a19b699..b0b4536 100644 (file)
@@ -22,18 +22,3 @@ realm blocking-tls {
        secret = "sikrit"
     }
 }
-
-realm blocking-tls-psk {
-    type = "TLS"
-    timeout = 1
-    retries = 3
-    #pskstr = "sikrit psk"
-    pskhexstr = "deadbeef4711"
-    pskid = "Client_identity"
-    pskex = "PSK"
-    server {
-        hostname = "srv1"
-       service = "4433"
-       secret = "sikrit"
-    }
-}