Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d9265da2
...
d9265da2fb40da26e6d775c6439828ecfeec1da6
authored
2002-09-03 09:37:59 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use FSF md5 functions.
1 parent
768751ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
sieve/script.c
sieve/script.c
View file @
d9265da
...
...
@@ -31,7 +31,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <stdlib.h>
#include <string.h>
#include <md5
-rsa
.h>
#include <md5.h>
#include <ctype.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
...
...
@@ -108,7 +108,7 @@ int script_require(sieve_script_t *s, char *req)
}
/* given an interpretor and a script, produce an executable script */
int
sieve_script_parse
(
sieve_interp_t
*
interp
,
FILE
*
script
,
int
sieve_script_parse
(
sieve_interp_t
*
interp
,
FILE
*
script
,
void
*
script_context
,
sieve_script_t
**
ret
)
{
sieve_script_t
*
s
;
...
...
@@ -811,14 +811,14 @@ const char * sieve_errname (int e)
static
int
makehash
(
unsigned
char
hash
[
HASHSIZE
],
char
*
s1
,
char
*
s2
)
{
MD5_CTX
ctx
;
struct
md5_ctx
ctx
;
MD5Init
(
&
ctx
);
MD5Update
(
&
ctx
,
(
unsigned
char
*
)
s1
,
strlen
(
s1
)
);
MD5Update
(
&
ctx
,
(
unsigned
char
*
)
s2
,
strlen
(
s2
)
);
MD5Final
(
hash
,
&
ctx
);
md5_init_ctx
(
&
ctx
);
md5_process_bytes
(
s1
,
strlen
(
s1
),
&
ctx
);
md5_process_bytes
(
s2
,
strlen
(
s2
),
&
ctx
);
md5_finish_ctx
(
&
ctx
,
hash
);
return
SIEVE_OK
;
return
SIEVE_OK
;
}
/* execute a script on a message, producing side effects via callbacks.
...
...
Please
register
or
sign in
to post a comment