projects
/
radsecproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a11aab1
)
Don't verify server certificate if we're using PSK.
author
Linus Nordberg
<linus@nordberg.se>
Thu, 24 Jan 2013 15:51:36 +0000
(16:51 +0100)
committer
Linus Nordberg
<linus@nordberg.se>
Thu, 24 Jan 2013 15:51:36 +0000
(16:51 +0100)
lib/event.c
patch
|
blob
|
history
diff --git
a/lib/event.c
b/lib/event.c
index
f768273
..
138fa72
100644
(file)
--- a/
lib/event.c
+++ b/
lib/event.c
@@
-246,8
+246,9
@@
event_on_connect (struct rs_connection *conn, struct rs_message *msg)
assert (!conn->is_connecting);
#if defined (RS_ENABLE_TLS)
- if (conn->realm->type == RS_CONN_TYPE_TLS
- || conn->realm->type == RS_CONN_TYPE_DTLS)
+ if ((conn->realm->type == RS_CONN_TYPE_TLS
+ || conn->realm->type == RS_CONN_TYPE_DTLS)
+ && conn->realm->transport_cred->type != RS_CRED_TLS_PSK)
if (tls_verify_cert (conn) != RSE_OK)
{
rs_debug (("%s: server cert verification failed\n", __func__));