mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
tls: fix server log messages to have client IP address
Add an additional parameter to TLS_CreateInstance() to save the label of
the connection (server name on the client side and client IP
address:port on the server side) instead of the server name (which is
NULL on the server side) to fix the log messages.
Fixes: 3e32e7e694 ("tls: move gnutls code into tls_gnutls.c")
This commit is contained in:
4
tls.h
4
tls.h
@@ -64,8 +64,8 @@ extern void TLS_DestroyCredentials(TLS_Credentials credentials);
|
||||
|
||||
/* Create new TLS session instance */
|
||||
extern TLS_Instance TLS_CreateInstance(int server_mode, int sock_fd, const char *server_name,
|
||||
const char *alpn_name, TLS_Credentials credentials,
|
||||
int disable_time_checks);
|
||||
const char *label, const char *alpn_name,
|
||||
TLS_Credentials credentials, int disable_time_checks);
|
||||
|
||||
/* Destroy TLS instance */
|
||||
extern void TLS_DestroyInstance(TLS_Instance inst);
|
||||
|
||||
Reference in New Issue
Block a user