7 ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
8 ** distribution information.
10 struct cram_callback_info
{
11 struct hmac_hashinfo
*h
;
15 int (*callback_func
)(struct authinfo
*, void *);
19 extern int auth_cram_callback(struct authinfo
*a
, void *vp
);
21 ** auth_get_cram parses out an authentication request. It checks whether
22 ** we have the requisite hash function installed, and, if so, base64decodes
23 ** the challenge and the response.
28 int auth_get_cram(const char *authtype
, /* authtype */
29 char *authdata
, /* authdata */
31 struct cram_callback_info
*craminfo
);
32 /* Initializes craminfo */
34 ** auth_verify_cram attempts to verify the secret cookie.
37 int auth_verify_cram(struct hmac_hashinfo
*, /* The hash function */
38 const char *, /* The challenge */
39 const char *, /* The response */
40 const char *); /* Hashed secret, in hex */