#include <unistd.h>
#include <ctype.h>
#include <string.h>
+#include <sys/types.h>
#include "socket.h"
#include "fetchmail.h"
-#include "md5.h"
+#include "fm_md5.h"
#include "i18n.h"
#ifdef TESTMODE
static void GenChallenge(unsigned char* buf, int len);
static int DigestPassphrase(char* passphrase,
unsigned char* rbuf, int unicodeit);
- static void CompUserResp();
- static int CheckUserAuth();
+ static void CompUserResp(void);
+ static int CheckUserAuth(void);
static void md5(const void* in, int len, unsigned char* out);
#endif
char buf [POPBUFSIZE];
char *bufp;
int status,aulin,kuslin;
- char* stdec[4] = { N_("Success") ,
+ const char* stdec[4] = { N_("Success") ,
N_("Restricted user (something wrong with account)") ,
N_("Invalid userid or passphrase") ,
N_("Deity error") };
else if ( ch=='+' ) newx = 62;
else if ( ch=='/' ) newx = 63;
else {
- report(stderr, GT_("dec64 error at char %d: %x\n"), inp - bufp, ch);
+ report(stderr, GT_("dec64 error at char %d: %x\n"), (int)(inp - bufp), ch);
return(0);
}
part=((part & 0x3F)*64) + newx;
MD5Final( out, &md5context );
if (outlevel >= O_DEBUG)
{
- report(stdout, GT_("MD5 result is: \n"));
+ report(stdout, GT_("MD5 result is:\n"));
for (i=0; i<16; i++)
{
report_build(stdout, "%02X ",out[i]);