diff --git a/Changes b/Changes index b87579eae..d7f8e8117 100644 --- a/Changes +++ b/Changes @@ -747,5 +747,6 @@ - Removed CRYPTOIRCD (replaced by SSL) - Added support for some more SJB64 stuff - Added some more support for some even more SJB64 stuff -- Added some network files -- Added more network files +- Added some network files and even more network files +- Fixed some copyright stuff in ssl.c +- Fixed a /map problem diff --git a/src/s_serv.c b/src/s_serv.c index 06db9b972..e550b42de 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -4825,8 +4825,6 @@ int m_map(cptr, sptr, parc, parv) if ((strlen(acptr->name) + acptr->hopcount * 2) > longest) longest = strlen(acptr->name) + acptr->hopcount * 2; } - for (acptr = client; acptr; acptr = acptr->next) - if (longest > 60) longest = 60; longest += 2; diff --git a/src/ssl.c b/src/ssl.c index 18bf68a4b..29eec4a2b 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -1,7 +1,23 @@ -/* - This was originally done by the hq.alert.sk implementation - Modified by Stskeeps -*/ +/************************************************************************ + * Unreal Internet Relay Chat Daemon, src/ssl.c + * (C) 2000 hq.alert.sk (base) + * (C) 2000 Carsten V. Munk + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 1, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + #include "config.h" #ifdef USE_SSL @@ -96,19 +112,16 @@ int ssl_handshake(aClient *cptr) if ((err) == -1) { if (IsHandshake(cptr)) - sendto_ops("Lost connection to %s:Error in SSL_accept()", + sendto_realops("Lost connection to %s:Error in SSL_accept()", get_client_name(cptr, TRUE)); return 0; } - /* Get the cipher - opt */ - -/* ircd_log("SSL connection using %s\n", - SSL_get_cipher((SSL *) cptr->ssl)); -*/ /* Get client's certificate (note: beware of dynamic * allocation) - opt */ + /* We do not do this -Stskeeps */ +#ifdef NO_CERTCHECKING cptr->client_cert = (struct X509 *)SSL_get_peer_certificate((SSL *) cptr->ssl); @@ -140,11 +153,15 @@ int ssl_handshake(aClient *cptr) { // log (L_DEBUG, "Client does not have certificate.\n"); } +#endif return 0; } /* ssl_client_handshake + This will initiate a client SSL_connect + + -Stskeeps Return values: -1 = Could not SSL_new @@ -156,8 +173,9 @@ int ssl_client_handshake(aClient *cptr) cptr->ssl = (struct SSL *) SSL_new((SSL_CTX *)ctx_client); if (!cptr->ssl) { - sendto_realops("Couldn't SSL_new(ctx_client)"); - return; + sendto_realops("Couldn't SSL_new(ctx_client) on %s", + get_client_name(cptr, FALSE)); + return -1; } set_blocking(cptr->fd); SSL_set_fd((SSL *)cptr->ssl, cptr->fd);