- enhanced the config auth functions return codes - part of a path by Alex Hermann, FS#101
@@ -220,6 +220,18 @@ static int digest_authenticate(struct sip_msg* msg, str *realm,
ret = auth_api.pre_auth(msg, realm, hftype, &h, NULL);
switch(ret) {
+ case NONCE_REUSED:
+ LM_DBG("nonce reused");
+ ret = AUTH_NONCE_REUSED;
+ goto end;
+ case STALE_NONCE:
+ LM_DBG("stale nonce\n");
+ ret = AUTH_STALE_NONCE;
+ case NO_CREDENTIALS:
+ LM_DBG("no credentials\n");
+ ret = AUTH_NO_CREDENTIALS;
case ERROR:
case BAD_CREDENTIALS:
LM_DBG("error or bad credentials\n");