Skip to content

Commit

Permalink
Merge branch 'release/1.6.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
cryogen committed May 6, 2015
2 parents b110ee0 + d459418 commit 23a2db7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
2 changes: 1 addition & 1 deletion include/patchlevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
*/

#ifndef PATCHLEVEL
#define PATCHLEVEL "hybrid-7.2.2+oftc1.6.18"
#define PATCHLEVEL "hybrid-7.2.2+oftc1.6.19"
#endif
2 changes: 1 addition & 1 deletion src/messages.tab
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static struct NumericInfo replies[] = {
#ifdef HALFOPS
/* 004 */ {"RPL_MYINFO", ":%s 004 %s %s %s %s biklmnopstveIh bkloveIh", NULL},
#else
/* 004 */ {"RPL_MYINFO", ":%s 004 %s %s %s %s biklmnopstveI bkloveI", NULL},
/* 004 */ {"RPL_MYINFO", ":%s 004 %s %s %s %s bciklmnopstvzeIMRS bkloveI", NULL},
#endif
/* 005 */ {"RPL_ISUPPORT", ":%s 005 %s %s :are supported by this server", NULL},
/* 006 */ {NULL, NULL, NULL},
Expand Down
2 changes: 1 addition & 1 deletion src/s_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2620,7 +2620,7 @@ read_conf_files(int cold)
add_isupport("CHANLIMIT", chanlimit, -1);
ircsprintf(chanmodes, "%s%s%s%s", ConfigChannel.use_except ? "e" : "",
ConfigChannel.use_invex ? "I" : "", ConfigChannel.use_quiet ? "q" : "",
"b,k,l,imnpstMRS");
"b,k,l,cimnpstzMRS");
add_isupport("CHANNELLEN", NULL, LOCAL_CHANNELLEN);
if (ConfigChannel.use_except)
add_isupport("EXCEPTS", "e", -1);
Expand Down
28 changes: 4 additions & 24 deletions src/s_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,33 +138,13 @@ small_file_date(time_t lclock)
char *
ssl_get_cipher(SSL *ssl)
{
static char buffer[128];
const char *name = NULL;
int bits;

switch (ssl->session->ssl_version)
{
case SSL2_VERSION:
name = "SSLv2";
break;

case SSL3_VERSION:
name = "SSLv3";
break;

case TLS1_VERSION:
name = "TLSv1";
break;

default:
name = "UNKNOWN";
}
static char buffer[IRCD_BUFSIZE];
int bits = 0;

SSL_CIPHER_get_bits(SSL_get_current_cipher(ssl), &bits);

snprintf(buffer, sizeof(buffer), "%s %s-%d",
name, SSL_get_cipher(ssl), bits);

snprintf(buffer, sizeof(buffer), "%s %s-%d", SSL_get_version(ssl),
SSL_get_cipher(ssl), bits);
return buffer;
}
#endif
Expand Down

0 comments on commit 23a2db7

Please sign in to comment.