Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / cramlib.c
index 72eb426..fe87ca0 100644 (file)
--- a/cramlib.c
+++ b/cramlib.c
@@ -1,5 +1,5 @@
 /*
-** Copyright 1998 - 1999 Double Precision, Inc.  See COPYING for
+** Copyright 1998 - 2008 Double Precision, Inc.  See COPYING for
 ** distribution information.
 */
 
@@ -13,9 +13,6 @@
 #include       "courierauthsasl.h"
 #include       "cramlib.h"
 #include       "courierauthdebug.h"
-
-#if    HAVE_HMACLIB
-
 #include       "libhmac/hmac.h"
 #include       "cramlib.h"
 
@@ -93,7 +90,7 @@ int   response_l;
                (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);
        }
@@ -194,6 +191,3 @@ int rc;
 
        return (*cci->callback_func)(a, cci->callback_arg);
 }
-
-
-#endif