aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpttls/pt_tls_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libpttls/pt_tls_client.h')
-rw-r--r--src/libpttls/pt_tls_client.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libpttls/pt_tls_client.h b/src/libpttls/pt_tls_client.h
index 2e0553641..1d418d181 100644
--- a/src/libpttls/pt_tls_client.h
+++ b/src/libpttls/pt_tls_client.h
@@ -50,10 +50,16 @@ struct pt_tls_client_t {
/**
* Create a pt_tls_client instance.
*
+ * The client identity is used for:
+ * - TLS authentication if an appropirate certificate is found
+ * - SASL authentication if requested from the server
+ *
* @param address address/port to run assessments against, gets owned
- * @param id server identity to use for authentication, gets owned
+ * @param server server identity to use for authentication, gets owned
+ * @param client client identity to use for authentication, gets owned
* @return PT-TLS context
*/
-pt_tls_client_t *pt_tls_client_create(host_t *address, identification_t *id);
+pt_tls_client_t *pt_tls_client_create(host_t *address, identification_t *server,
+ identification_t *client);
#endif /** PT_TLS_CLIENT_H_ @}*/