/*
-** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for
+** Copyright 1998 - 2008 Double Precision, Inc. See COPYING for
** distribution information.
*/
#include "courierauthsasl.h"
#include "cramlib.h"
#include "courierauthdebug.h"
-
-#if HAVE_HMACLIB
-
#include "libhmac/hmac.h"
#include "cramlib.h"
(craminfo->challenge=strtok(authdata, "\n")) == 0 ||
(craminfo->response=strtok(0, "\n")) == 0)
{
- DPRINTF("cram: only supports authtype=cram-*");
+ DPRINTF("Unsupported authentication type: %s", authtype);
errno=EPERM;
return (-1);
}
return (*cci->callback_func)(a, cci->callback_arg);
}
-
-
-#endif