FiSH.h 968 B

12345678910111213141516171819202122232425262728293031
  1. #include <time.h>
  2. #include <unistd.h>
  3. #include <fcntl.h>
  4. #include "FiSH_version.h"
  5. #include "inifile.h"
  6. #include "blowfish.h"
  7. #include "DH1080.h"
  8. #include "module.h"
  9. #include "password.h"
  10. #include "XSalsa20Poly1305.h"
  11. #define CONTACT_SIZE 100 // size of buffer for contactName (nick or #channel)
  12. #define KEYBUF_SIZE 150 // size of buffer for base64 blowfish key (from blow.ini)
  13. const char blow_ini[] = "/blow.ini";
  14. char iniPath[255];
  15. char *iniKey = NULL;
  16. int iniUsed = 0;
  17. char g_myPrivKey[300], g_myPubKey[300];
  18. int keyx_query_created = 0;
  19. #define ZeroMemory(dest,count) memset((void *)dest, 0, count)
  20. #define IsNULLorEmpty(psz) (psz==NULL || *psz=='\0')
  21. #define isNoChar(c) ((c) == 'n' || (c) == 'N' || (c) == '0')
  22. char *isPlainPrefix(const char *msg);
  23. char *strfcpy(char *dest, char *buffer, int destSize); // removes leading and trailing blanks from string
  24. void DH1080_received(SERVER_REC * server, char *msg, char *nick, char *address,
  25. char *target);