]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
TLS: Add functions for managing cached session state
authorJouni Malinen <j@w1.fi>
Sun, 23 Aug 2015 19:01:37 +0000 (22:01 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Aug 2015 23:29:30 +0000 (02:29 +0300)
The new tls_connection_set_success_data(),
tls_connection_set_success_data_resumed(),
tls_connection_get_success_data(), and tls_connection_remove_session()
functions can be used to mark cached sessions valid and to remove
invalid cached sessions. This commit is only adding empty functions. The
actual functionality will be implemented in followup commits.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls.h
src/crypto/tls_gnutls.c
src/crypto/tls_internal.c
src/crypto/tls_none.c
src/crypto/tls_openssl.c

index d2196ddc44fc430dd73a324f7ed198eb01e9ce62..2e562339cc5c04cfc8e62b2a5fe426e93ab8e3e6 100644 (file)
@@ -575,4 +575,14 @@ void tls_connection_set_test_flags(struct tls_connection *conn, u32 flags);
 
 int tls_get_library_version(char *buf, size_t buf_len);
 
+void tls_connection_set_success_data(struct tls_connection *conn,
+                                    struct wpabuf *data);
+
+void tls_connection_set_success_data_resumed(struct tls_connection *conn);
+
+const struct wpabuf *
+tls_connection_get_success_data(struct tls_connection *conn);
+
+void tls_connection_remove_session(struct tls_connection *conn);
+
 #endif /* TLS_H */
index 3c39e542469ee10f8e32bd8624665120a5a8e3e0..f994379b16b22a07596626ee65626711b4624d02 100644 (file)
@@ -1498,3 +1498,26 @@ int tls_get_library_version(char *buf, size_t buf_len)
        return os_snprintf(buf, buf_len, "GnuTLS build=%s run=%s",
                           GNUTLS_VERSION, gnutls_check_version(NULL));
 }
+
+
+void tls_connection_set_success_data(struct tls_connection *conn,
+                                    struct wpabuf *data)
+{
+}
+
+
+void tls_connection_set_success_data_resumed(struct tls_connection *conn)
+{
+}
+
+
+const struct wpabuf *
+tls_connection_get_success_data(struct tls_connection *conn)
+{
+       return NULL;
+}
+
+
+void tls_connection_remove_session(struct tls_connection *conn)
+{
+}
index 79f14a3a2cd199606bc77fa087afcd47aaf7d74d..704751d308fcf9f080de1a5f2aeab086573ff096 100644 (file)
@@ -708,3 +708,26 @@ int tls_get_library_version(char *buf, size_t buf_len)
 {
        return os_snprintf(buf, buf_len, "internal");
 }
+
+
+void tls_connection_set_success_data(struct tls_connection *conn,
+                                    struct wpabuf *data)
+{
+}
+
+
+void tls_connection_set_success_data_resumed(struct tls_connection *conn)
+{
+}
+
+
+const struct wpabuf *
+tls_connection_get_success_data(struct tls_connection *conn)
+{
+       return NULL;
+}
+
+
+void tls_connection_remove_session(struct tls_connection *conn)
+{
+}
index 1f8c9b4c46959870fdc427fcbe8ce793d76971f8..ae392ad8aa0f56bcb819cf5276c567984a1ad112 100644 (file)
@@ -193,3 +193,26 @@ int tls_get_library_version(char *buf, size_t buf_len)
 {
        return os_snprintf(buf, buf_len, "none");
 }
+
+
+void tls_connection_set_success_data(struct tls_connection *conn,
+                                    struct wpabuf *data)
+{
+}
+
+
+void tls_connection_set_success_data_resumed(struct tls_connection *conn)
+{
+}
+
+
+const struct wpabuf *
+tls_connection_get_success_data(struct tls_connection *conn)
+{
+       return NULL;
+}
+
+
+void tls_connection_remove_session(struct tls_connection *conn)
+{
+}
index 62e18c8bda3dfd50071f24987d171192cd9ac369..d40eea6cda5d21dc7ffc80fca7dc19255dd5eedf 100644 (file)
@@ -4013,3 +4013,26 @@ int tls_get_library_version(char *buf, size_t buf_len)
                           OPENSSL_VERSION_TEXT,
                           SSLeay_version(SSLEAY_VERSION));
 }
+
+
+void tls_connection_set_success_data(struct tls_connection *conn,
+                                    struct wpabuf *data)
+{
+}
+
+
+void tls_connection_set_success_data_resumed(struct tls_connection *conn)
+{
+}
+
+
+const struct wpabuf *
+tls_connection_get_success_data(struct tls_connection *conn)
+{
+       return NULL;
+}
+
+
+void tls_connection_remove_session(struct tls_connection *conn)
+{
+}