diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-04-18 16:54:33 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-04-18 18:06:34 +0200 |
commit | 254464339ec2b164905be726922649ad9672bd83 (patch) | |
tree | 82838324f49496034ca8380b6eae251bb7255570 | |
parent | d73d7527142850442b16883628de5e87f99a57ea (diff) | |
download | fetchmail-254464339ec2b164905be726922649ad9672bd83.tar.gz fetchmail-254464339ec2b164905be726922649ad9672bd83.tar.bz2 fetchmail-254464339ec2b164905be726922649ad9672bd83.zip |
Fix MD5Digest prototype and remove unneeded type casts.
-rw-r--r-- | fetchmail.h | 2 | ||||
-rw-r--r-- | fm_md5.h | 2 | ||||
-rw-r--r-- | pop3.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fetchmail.h b/fetchmail.h index bc9abf03..40ab2eb8 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -651,7 +651,7 @@ extern char currentwd[1024], rcfiledir[1024]; struct query *hostalloc(struct query *); int parsecmdline (int, char **, struct runctl *, struct query *); char *prependdir (const char *, const char *); -unsigned char *MD5Digest (unsigned const char *); +char *MD5Digest (unsigned const char *); void hmac_md5 (const unsigned char *, size_t, const unsigned char *, size_t, unsigned char *, size_t); int POP3_auth_rpa(char *, char *, int socket); typedef RETSIGTYPE (*SIGHANDLERTYPE) (int); @@ -8,7 +8,7 @@ #ifdef HAVE_MD5_H #include <md5.h> #else - +#include "fetchmail.h" #ifndef HEADER_MD5_H /* Try to avoid clashes with OpenSSL */ #define HEADER_MD5_H @@ -690,7 +690,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting) msg = (char *)xmalloc((end-start+1) + strlen(ctl->password) + 1); strcpy(msg,start); strcat(msg,ctl->password); - strcpy((char *)ctl->digest, (char *)MD5Digest((unsigned char *)msg)); + strcpy((char *)ctl->digest, MD5Digest((unsigned char *)msg)); free(msg); ok = gen_transact(sock, "APOP %s %s", ctl->remotename, ctl->digest); |