configure: Fix typo when enabling CPAN modules as dependency
[strongswan.git] / src / libpttls / pt_tls_client.c
index 01a84cd..bd5b96f 100644 (file)
@@ -84,7 +84,8 @@ static bool make_connection(private_pt_tls_client_t *this)
                return FALSE;
        }
 
-       this->tls = tls_socket_create(FALSE, this->server, this->client, fd, NULL);
+       this->tls = tls_socket_create(FALSE, this->server, this->client, fd,
+                                                                 NULL, TLS_1_2, FALSE);
        if (!this->tls)
        {
                close(fd);
@@ -449,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))