aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_client.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-11-29 17:48:17 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-29 17:48:17 (GMT)
commit0cbc22b2eb37713e5f8e63783ce7f87fee8272bd (patch)
treefde9d229468896ffb880bb2de25efc86de05ce08 /src/tls/tlsv1_client.c
parent20804fe8448df81a875e0b62d3ee01e696caa90a (diff)
downloadhostap-0cbc22b2eb37713e5f8e63783ce7f87fee8272bd.zip
hostap-0cbc22b2eb37713e5f8e63783ce7f87fee8272bd.tar.gz
hostap-0cbc22b2eb37713e5f8e63783ce7f87fee8272bd.tar.bz2
TLS client: Use TLS_CONN_* flags
This makes it simpler to add support for new TLS_CONN_* flags without having to add a new configuration function for each flag. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/tls/tlsv1_client.c')
-rw-r--r--src/tls/tlsv1_client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tls/tlsv1_client.c b/src/tls/tlsv1_client.c
index 26f055c..846d293 100644
--- a/src/tls/tlsv1_client.c
+++ b/src/tls/tlsv1_client.c
@@ -811,9 +811,14 @@ int tlsv1_client_set_cred(struct tlsv1_client *conn,
}
-void tlsv1_client_set_time_checks(struct tlsv1_client *conn, int enabled)
+/**
+ * tlsv1_client_set_flags - Set connection flags
+ * @conn: TLSv1 client connection data from tlsv1_client_init()
+ * @flags: TLS_CONN_* bitfield
+ */
+void tlsv1_client_set_flags(struct tlsv1_client *conn, unsigned int flags)
{
- conn->disable_time_checks = !enabled;
+ conn->flags = flags;
}