1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 06:23:12 +02:00

+- Fixed a typo in ssl.c

This commit is contained in:
stskeeps
2000-11-30 11:19:54 +00:00
parent d7a342fed1
commit 4eda3e1752
6 changed files with 15 additions and 9 deletions
+1
View File
@@ -208,3 +208,4 @@
- Fixed overflow in SJOIN
- Added SMO *, all users
- If a +r user is /who'ed, it shows a "r" in flags field. Suggested by
Mirar.
+6 -6
View File
@@ -193,13 +193,13 @@ extern unsigned char char_atribs[];
#define ispunct(c) (!(char_atribs[(u_char)(c)]&(CNTRL|ALPHA|DIGIT)))
#endif
// #ifndef DMALLOC
#ifndef DMALLOC
extern char *MyMalloc();
// #else
// #define MyMalloc malloc
// #define MyRealloc realloc
// #define MyFree free
// #endif
#else
#define MyMalloc malloc
#define MyRealloc realloc
#define MyFree free
#endif
extern void flush_connections();
extern struct SLink *find_user_link( /* struct SLink *, struct Client * */ );
+2 -1
View File
@@ -139,8 +139,9 @@ extern void inittoken PROTO(());
extern void reset_help PROTO(());
extern int find_exception(char *); /* hidden host */
#ifndef DMALLOC
extern char *MyMalloc PROTO((int)), *MyRealloc PROTO((char *, int));
#endif
extern char *debugmode, *configfile, *sbrk0;
extern char *getfield PROTO((char *));
extern void get_sockhost PROTO((aClient *, char *));
+2
View File
@@ -86,6 +86,7 @@ extern char *rindex PROTO((char *, char));
#else
#include <sys/time.h>
#endif
#ifndef DMALLOC
#if !defined(DEBUGMODE)
# ifndef _WIN32
# define MyFree(x) if ((x) != NULL) free(x)
@@ -95,6 +96,7 @@ extern char *rindex PROTO((char *, char));
#else
#define free(x) MyFree(x)
#endif
#endif
#ifdef NEXT
#define VOIDSIG int /* whether signal() returns int of void */
#else
+1 -1
View File
@@ -67,7 +67,7 @@ void init_ctx_client(void)
if (SSL_CTX_use_certificate_file(ctx_client, CERTF, SSL_FILETYPE_PEM) <= 0)
{
ircd_log("Failed to load SSL certificate %s (client)", "client.pem");
ircd_log("Failed to load SSL certificate %s (client)", CERTF);
exit(3);
}
if (SSL_CTX_use_PrivateKey_file(ctx_client, KEYF, SSL_FILETYPE_PEM) <= 0)
+3 -1
View File
@@ -202,7 +202,7 @@ int inet_netof(in)
#endif /* NEED_INET_NETOF */
#ifndef DMALLOC
#if defined(DEBUGMODE)
void dumpcore(msg, p1, p2, p3, p4, p5, p6, p7, p8, p9)
char *msg, *p1, *p2, *p3, *p4, *p5, *p6, *p7, *p8, *p9;
@@ -287,6 +287,7 @@ char *MyMalloc(x)
char *MyRealloc(x, y)
char *x;
size_t y;
{
int l;
char **s;
@@ -405,6 +406,7 @@ char *MyRealloc(x, y)
return ret;
}
#endif
#endif
/*
* * read a string terminated by \r or \n in from a fd *
*