12345678910111213141516171819202122232425262728293031 |
- #include <time.h>
- #include <unistd.h>
- #include <fcntl.h>
- #include "FiSH_version.h"
- #include "inifile.h"
- #include "blowfish.h"
- #include "DH1080.h"
- #include "module.h"
- #include "password.h"
- #include "XSalsa20Poly1305.h"
- #define CONTACT_SIZE 100 // size of buffer for contactName (nick or #channel)
- #define KEYBUF_SIZE 150 // size of buffer for base64 blowfish key (from blow.ini)
- const char blow_ini[] = "/blow.ini";
- char iniPath[255];
- char *iniKey = NULL;
- int iniUsed = 0;
- char g_myPrivKey[300], g_myPubKey[300];
- int keyx_query_created = 0;
- #define ZeroMemory(dest,count) memset((void *)dest, 0, count)
- #define IsNULLorEmpty(psz) (psz==NULL || *psz=='\0')
- #define isNoChar(c) ((c) == 'n' || (c) == 'N' || (c) == '0')
- char *isPlainPrefix(const char *msg);
- char *strfcpy(char *dest, char *buffer, int destSize); // removes leading and trailing blanks from string
- void DH1080_received(SERVER_REC * server, char *msg, char *nick, char *address,
- char *target);
|