diff options
-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); |