aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tlsv1_client_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-11-29 16:59:27 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-29 16:59:27 (GMT)
commitf2a6ad01a943103c658de5721c2d7f7e91ee7fa4 (patch)
tree73d1fbdd538d39173755a854b428c728894be2ec /src/tls/tlsv1_client_i.h
parentb115eebe01ca23848d3af786a6b22803a1b2fafc (diff)
downloadhostap-f2a6ad01a943103c658de5721c2d7f7e91ee7fa4.zip
hostap-f2a6ad01a943103c658de5721c2d7f7e91ee7fa4.tar.gz
hostap-f2a6ad01a943103c658de5721c2d7f7e91ee7fa4.tar.bz2
TLS client: Add support for server certificate probing
The internal TLS client implementation can now be used with ca_cert="probe://" to probe the server certificate chain. This is also adding the related CTRL-EVENT-EAP-TLS-CERT-ERROR and CTRL-EVENT-EAP-PEER-CERT events. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/tls/tlsv1_client_i.h')
-rw-r--r--src/tls/tlsv1_client_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tls/tlsv1_client_i.h b/src/tls/tlsv1_client_i.h
index 55fdcf8..1c517a8 100644
--- a/src/tls/tlsv1_client_i.h
+++ b/src/tls/tlsv1_client_i.h
@@ -34,6 +34,7 @@ struct tlsv1_client {
unsigned int session_ticket_included:1;
unsigned int use_session_ticket:1;
unsigned int disable_time_checks:1;
+ unsigned int cert_in_cb:1;
struct crypto_public_key *server_rsa_key;
@@ -64,6 +65,10 @@ struct tlsv1_client {
void *session_ticket_cb_ctx;
struct wpabuf *partial_input;
+
+ void (*event_cb)(void *ctx, enum tls_event ev,
+ union tls_event_data *data);
+ void *cb_ctx;
};