1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
/*
* crypt.h: header for crypt.c
*
* Copyright 1990 Michael Sandrof
* Copyright 1997 EPIC Software Labs
* See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT
*/
#ifndef __crypt_h__
#define __crypt_h__
/*
* Crypt: the crypt list structure, consists of the nickname, and the
* encryption key
*/
typedef struct CryptStru
{
struct CryptStru *next;
char *nick;
char *key;
char *prog;
int filename;
} Crypt;
BUILT_IN_COMMAND(encrypt_cmd);
char *crypt_msg (char *, Crypt *);
char *decrypt_msg (char *, Crypt *);
char *do_crypt (char *, Crypt *, int);
Crypt *is_crypted (const char *);
void my_decrypt (char *, int, char *);
void my_encrypt (char *, int, char *);
#endif /* _CRYPT_H_ */
|