summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-02-06 14:28:38 +0000
committerSimon Josefsson <simon@josefsson.org>2007-02-06 14:28:38 +0000
commit55001184622f589a84328a5c627ee106734faae9 (patch)
tree3144eed36c923af0420bcb22aa16f28f7a6fde8d
parent8ac7a33c44dc08dbc88021e948bc58f73976cd78 (diff)
downloadgnutls-55001184622f589a84328a5c627ee106734faae9.tar.gz
Prefer PSK.
-rw-r--r--src/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 5de360bab0..782be3469f 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -97,13 +97,14 @@ static int protocol_priority[PRI_MAX] = {
};
static int kx_priority[PRI_MAX] = {
+ GNUTLS_KX_DHE_PSK,
+ GNUTLS_KX_PSK,
GNUTLS_KX_SRP_RSA,
GNUTLS_KX_SRP_DSS,
GNUTLS_KX_SRP,
GNUTLS_KX_DHE_RSA,
GNUTLS_KX_DHE_DSS,
GNUTLS_KX_RSA,
- GNUTLS_KX_PSK,
/* Do not use anonymous authentication, unless you know what that means */
GNUTLS_KX_RSA_EXPORT,
GNUTLS_KX_ANON_DH, 0