/[svn]/ircd-hybrid-8/src/s_serv.c
ViewVC logotype

Diff of /ircd-hybrid-8/src/s_serv.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1304 by michael, Fri Mar 23 10:52:19 2012 UTC revision 1305 by michael, Fri Mar 23 12:43:55 2012 UTC
# Line 757  server_estab(struct Client *client_p) Line 757  server_estab(struct Client *client_p)
757    const char *inpath;    const char *inpath;
758    static char inpath_ip[HOSTLEN * 2 + USERLEN + 6];    static char inpath_ip[HOSTLEN * 2 + USERLEN + 6];
759    dlink_node *ptr;    dlink_node *ptr;
760    #ifdef HAVE_LIBCRYPTO
761      const COMP_METHOD *compression = NULL, *expansion = NULL;
762    #endif
763    
764    assert(client_p != NULL);    assert(client_p != NULL);
765    
# Line 874  server_estab(struct Client *client_p) Line 877  server_estab(struct Client *client_p)
877      AddFlag(client_p, FLAGS_SERVICE);      AddFlag(client_p, FLAGS_SERVICE);
878    
879    /* Show the real host/IP to admins */    /* Show the real host/IP to admins */
880    #ifdef HAVE_LIBCRYPTO
881    if (client_p->localClient->fd.ssl)    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,      sendto_realops_flags(UMODE_ALL, L_ADMIN,
887                           "Link with %s established: [SSL: %s] (Capabilities: %s)",                           "Link with %s established: [SSL: %s, Compression/Expansion method: %s/%s] (Capabilities: %s)",
888                           inpath_ip, ssl_get_cipher(client_p->localClient->fd.ssl),                           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));                           show_capabilities(client_p));
892      /* Now show the masked hostname/IP to opers */      /* Now show the masked hostname/IP to opers */
893      sendto_realops_flags(UMODE_ALL, L_OPER,      sendto_realops_flags(UMODE_ALL, L_OPER,
894                           "Link with %s established: [SSL: %s] (Capabilities: %s)",                           "Link with %s established: [SSL: %s, Compression/Expansion method: %s/%s] (Capabilities: %s)",
895                           inpath, ssl_get_cipher(client_p->localClient->fd.ssl),                           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));                           show_capabilities(client_p));
899      ilog(LOG_TYPE_IRCD, "Link with %s established: [SSL: %s] (Capabilities: %s)",      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),           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));           show_capabilities(client_p));
904    }    }
905    else    else
906    #endif
907    {    {
908      sendto_realops_flags(UMODE_ALL, L_ADMIN,      sendto_realops_flags(UMODE_ALL, L_ADMIN,
909                           "Link with %s established: (Capabilities: %s)",                           "Link with %s established: (Capabilities: %s)",

Legend:
Removed from v.1304  
changed lines
  Added in v.1305

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28