File: sedcrypt.h

package info (click to toggle)
epic4 1%3A3.0-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,756 kB
  • sloc: ansic: 56,285; makefile: 631; sh: 161; perl: 30
file content (33 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (10)
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_ */