enabled SASL PLAIN authentication
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Aug 2013 11:35:02 +0000 (13:35 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 15 Aug 2013 21:34:22 +0000 (23:34 +0200)
src/libcharon/plugins/tnc_pdp/tnc_pdp.c

index c835dde..74f5357 100644 (file)
@@ -610,6 +610,7 @@ static bool pt_tls_receive(private_tnc_pdp_t *this, int fd, watcher_event_t even
        identification_t *peer;
        pt_tls_server_t *pt_tls;
        tnccs_t *tnccs;
+       pt_tls_auth_t auth = PT_TLS_AUTH_TLS_OR_SASL;
 
        pt_tls_fd = accept(fd, NULL, NULL);
        if (pt_tls_fd == -1)
@@ -633,8 +634,7 @@ static bool pt_tls_receive(private_tnc_pdp_t *this, int fd, watcher_event_t even
                return FALSE;
        }
 
-       pt_tls = pt_tls_server_create(this->server, pt_tls_fd, PT_TLS_AUTH_NONE,
-                                                                 tnccs);
+       pt_tls = pt_tls_server_create(this->server, pt_tls_fd, auth, tnccs);
        if (!pt_tls)
        {
                DBG1(DBG_TNC, "could not create PT-TLS connection instance");