]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/libcharon/plugins/eap_tls/eap_tls.c
Implemented TLS session resumption both as client and as server
[thirdparty/strongswan.git] / src / libcharon / plugins / eap_tls / eap_tls.c
index 39e1a60d9d59e6b36339031fc22b8f13cb8e15b3..dc0289ba21b76b20db6cb63bd286c5bc6c4593f0 100644 (file)
@@ -39,7 +39,7 @@ struct private_eap_tls_t {
 };
 
 /** Maximum number of EAP-TLS messages/fragments allowed */
-#define MAX_MESSAGE_COUNT 32 
+#define MAX_MESSAGE_COUNT 32
 /** Default size of a EAP-TLS fragment */
 #define MAX_FRAGMENT_LEN 1024
 
@@ -148,8 +148,8 @@ static eap_tls_t *eap_tls_create(identification_t *server,
        max_msg_count = lib->settings->get_int(lib->settings,
                                        "charon.plugins.eap-tls.max_message_count", MAX_MESSAGE_COUNT);
        include_length = lib->settings->get_bool(lib->settings,
-                    "charon.plugins.eap-tls.include_length", TRUE);
-       tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TLS, NULL);
+                                       "charon.plugins.eap-tls.include_length", TRUE);
+       tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TLS, NULL, NULL);
        this->tls_eap = tls_eap_create(EAP_TLS, tls, frag_size, max_msg_count,
                                                                                                 include_length);
        if (!this->tls_eap)