configure: Fix typo when enabling CPAN modules as dependency
[strongswan.git] / src / libpttls / pt_tls_client.c
index 98a2f4b..bd5b96f 100644 (file)
@@ -85,7 +85,7 @@ static bool make_connection(private_pt_tls_client_t *this)
        }
 
        this->tls = tls_socket_create(FALSE, this->server, this->client, fd,
-                                                                 NULL, FALSE);
+                                                                 NULL, TLS_1_2, FALSE);
        if (!this->tls)
        {
                close(fd);
@@ -450,6 +450,7 @@ METHOD(pt_tls_client_t, run_assessment, status_t,
        {
                return FAILED;
        }
+       tnccs->set_auth_type(tnccs, TNC_AUTH_X509_CERT);
 
        DBG1(DBG_TNC, "entering PT-TLS data transport phase");
        if (!assess(this, (tls_t*)tnccs))