757 |
|
const char *inpath; |
758 |
|
static char inpath_ip[HOSTLEN * 2 + USERLEN + 6]; |
759 |
|
dlink_node *ptr; |
760 |
+ |
#ifdef HAVE_LIBCRYPTO |
761 |
+ |
const COMP_METHOD *compression = NULL, *expansion = NULL; |
762 |
+ |
#endif |
763 |
|
|
764 |
|
assert(client_p != NULL); |
765 |
|
|
877 |
|
AddFlag(client_p, FLAGS_SERVICE); |
878 |
|
|
879 |
|
/* Show the real host/IP to admins */ |
880 |
+ |
#ifdef HAVE_LIBCRYPTO |
881 |
|
if (client_p->localClient->fd.ssl) |
882 |
|
{ |
883 |
+ |
compression = SSL_get_current_compression(client_p->localClient->fd.ssl); |
884 |
+ |
expansion = SSL_get_current_expansion(client_p->localClient->fd.ssl); |
885 |
+ |
|
886 |
|
sendto_realops_flags(UMODE_ALL, L_ADMIN, |
887 |
< |
"Link with %s established: [SSL: %s] (Capabilities: %s)", |
887 |
> |
"Link with %s established: [SSL: %s, Compression/Expansion method: %s/%s] (Capabilities: %s)", |
888 |
|
inpath_ip, ssl_get_cipher(client_p->localClient->fd.ssl), |
889 |
+ |
compression ? SSL_COMP_get_name(compression) : "NONE", |
890 |
+ |
expansion ? SSL_COMP_get_name(expansion) : "NONE", |
891 |
|
show_capabilities(client_p)); |
892 |
|
/* Now show the masked hostname/IP to opers */ |
893 |
|
sendto_realops_flags(UMODE_ALL, L_OPER, |
894 |
< |
"Link with %s established: [SSL: %s] (Capabilities: %s)", |
894 |
> |
"Link with %s established: [SSL: %s, Compression/Expansion method: %s/%s] (Capabilities: %s)", |
895 |
|
inpath, ssl_get_cipher(client_p->localClient->fd.ssl), |
896 |
+ |
compression ? SSL_COMP_get_name(compression) : "NONE", |
897 |
+ |
expansion ? SSL_COMP_get_name(expansion) : "NONE", |
898 |
|
show_capabilities(client_p)); |
899 |
< |
ilog(LOG_TYPE_IRCD, "Link with %s established: [SSL: %s] (Capabilities: %s)", |
899 |
> |
ilog(LOG_TYPE_IRCD, "Link with %s established: [SSL: %s, Compression/Expansion method: %s/%s] (Capabilities: %s)", |
900 |
|
inpath_ip, ssl_get_cipher(client_p->localClient->fd.ssl), |
901 |
+ |
compression ? SSL_COMP_get_name(compression) : "NONE", |
902 |
+ |
expansion ? SSL_COMP_get_name(expansion) : "NONE", |
903 |
|
show_capabilities(client_p)); |
904 |
|
} |
905 |
|
else |
906 |
+ |
#endif |
907 |
|
{ |
908 |
|
sendto_realops_flags(UMODE_ALL, L_ADMIN, |
909 |
|
"Link with %s established: (Capabilities: %s)", |