ze-filter  (ze-filter-0.8.0-develop-180218)
ze-msg-hash.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : Wed May 9 22:18:40 CEST 2007
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 
25 #ifndef __ZE_MSG_HASH_H
26 
27 #define HASH_PLAIN 0
28 #define HASH_MD5 1
29 #define HASH_SHA1 2
30 
31 #define HASH_UNDEF -1
32 
33 
34 bool jmc_str2md5(char *sout, unsigned char *sin, size_t szout);
35 
36 bool jmc_str2sha1(char *sout, unsigned char *sin, size_t szout);
37 
38 bool str2hash2hex(int code, char *sout, char *sin, size_t szout);
39 bool str2hash2b64(int code, char *sout, char *sin, size_t szout);
40 
41 int hash_label2code(char *label);
42 char *hash_code2label(int code);
43 
44 # define __ZE_MSG_HASH_H 1
45 #endif /* __ZE_MSG_HASH_H */
bool jmc_str2sha1(char *sout, unsigned char *sin, size_t szout)
Definition: ze-msg-hash.c:60
bool str2hash2hex(int code, char *sout, char *sin, size_t szout)
Definition: ze-msg-hash.c:107
bool jmc_str2md5(char *sout, unsigned char *sin, size_t szout)
Definition: ze-msg-hash.c:37
char * hash_code2label(int code)
Definition: ze-msg-hash.c:209
bool str2hash2b64(int code, char *sout, char *sin, size_t szout)
Definition: ze-msg-hash.c:148
int hash_label2code(char *label)
Definition: ze-msg-hash.c:189