HCoop
/
hcoop
/
debian
/
courier-authlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'debian'
[hcoop/debian/courier-authlib.git]
/
authcustom.c
diff --git
a/authcustom.c
b/authcustom.c
index
e371f1f
..
ff16979
100644
(file)
--- a/
authcustom.c
+++ b/
authcustom.c
@@
-1,5
+1,5
@@
/*
/*
-** Copyright 1998 - 200
4
Double Precision, Inc. See COPYING for
+** Copyright 1998 - 200
8
Double Precision, Inc. See COPYING for
** distribution information.
*/
** distribution information.
*/
@@
-14,9
+14,8
@@
#include "auth.h"
#include "authcustom.h"
#include "auth.h"
#include "authcustom.h"
-#include "authstaticlist.h"
+#include "
courier
authstaticlist.h"
-static const char rcsid[]="$Id: authcustom.c,v 1.6 2005/03/20 19:10:30 mrsam Exp $";
static int auth_custom_login(const char *service, char *authdata,
int (*callback_func)(struct authinfo *, void *),
static int auth_custom_login(const char *service, char *authdata,
int (*callback_func)(struct authinfo *, void *),
@@
-34,8
+33,6
@@
static int auth_custom_login(const char *service, char *authdata,
return authcustomcommon(user, pass, callback_func, callback_arg);
}
return authcustomcommon(user, pass, callback_func, callback_arg);
}
-#if HAVE_HMACLIB
-
#include "libhmac/hmac.h"
#include "cramlib.h"
#include "libhmac/hmac.h"
#include "cramlib.h"
@@
-55,7
+52,6
@@
static int auth_custom_cram(const char *service,
return authcustomcommon(cci.user, 0, &auth_cram_callback, &cci);
}
return authcustomcommon(cci.user, 0, &auth_cram_callback, &cci);
}
-#endif
int auth_custom(const char *service, const char *authtype, char *authdata,
int (*callback_func)(struct authinfo *, void *),
int auth_custom(const char *service, const char *authtype, char *authdata,
int (*callback_func)(struct authinfo *, void *),
@@
-65,12
+61,8
@@
int auth_custom(const char *service, const char *authtype, char *authdata,
return (auth_custom_login(service, authdata,
callback_func, callback_arg));
return (auth_custom_login(service, authdata,
callback_func, callback_arg));
-#if HAVE_HMACLIB
return (auth_custom_cram(service, authtype, authdata,
callback_func, callback_arg));
return (auth_custom_cram(service, authtype, authdata,
callback_func, callback_arg));
-#else
- return -1;
-#endif
}
}