(void) rou_alert(0,"%s JMPDBG phase='%d'",OPEP,phase);
switch (phase) {
case 0 : { //Building the challenge sequence
+ char *nchal;
#define FMT "realm=\"%s\",nonce=\"%s\",qop=\"auth\",algorithm=md5-sess,charset=utf-8"
char *nonce;
nonce=strdup("abcdef");
(void) snprintf(challenge,sizeof(challenge),FMT,contact->locname,nonce);
nonce=rou_freestr(nonce);
+ nchal=dig_getchallenge();
+ (void) rou_alert(0,"good chal=<%s>",challenge);
+ (void) rou_alert(0,"bad chal=<%s>",nchal);
+ (void) strcpy(challenge,nchal);
}
break;
case 1 : { //sending challenge to remote
if (strlen(answer)==0)
phase=999; //no need to go further
}
+ break;
case 3 : //Parsing the answer
if ((resp=dig_parseresp(answer))==(RSPTYP *)0)
phase=999; //Unable to parse answer
#ifndef UNIDIG
#define UNIDIG
-#define REALM APPNAME"-email"
+#define REALM APPNAME".email"
typedef struct { //DIGEST-MD5 challange response structure
char *username; //username requesting authentication