Commit 718fe610 authored by Pekka Pessi's avatar Pekka Pessi

Fixed auth_mod_method().

darcs-hash:20060524213053-65a35-d5b9daa5b3b185957297e7c2b0f28bde762a1859.gz
parent 0c4c7e47
...@@ -1467,7 +1467,7 @@ void auth_md5_hmac_digest(auth_mod_t *am, struct su_md5_t *imd5, ...@@ -1467,7 +1467,7 @@ void auth_md5_hmac_digest(auth_mod_t *am, struct su_md5_t *imd5,
/* ====================================================================== */ /* ====================================================================== */
/* Compatibility interface */ /* Compatibility interface */
void auth_mod_module(auth_mod_t *am, void auth_mod_method(auth_mod_t *am,
auth_status_t *as, auth_status_t *as,
msg_auth_t *credentials, msg_auth_t *credentials,
auth_challenger_t const *ach) auth_challenger_t const *ach)
......
...@@ -101,9 +101,8 @@ struct auth_status_t ...@@ -101,9 +101,8 @@ struct auth_status_t
char const *as_phrase; /**< Return response phrase [out] */ char const *as_phrase; /**< Return response phrase [out] */
char const *as_user; /**< Authenticated username [in/out] */ char const *as_user; /**< Authenticated username [in/out] */
char const *as_display; /**< Return user's real name [in/out] */ char const *as_display; /**< Return user's real name [in/out] */
/* @deprecated This is unused and goes away in 1.11.10. */
url_t const *as_user_uri; /* Return user's identity [in/out] */
url_t const *as_user_uri; /* Return user's identity [in/out] */
char const *as_ident; /**< Identities [out] */ char const *as_ident; /**< Identities [out] */
unsigned as_profile; /**< User profile (group) [out] */ unsigned as_profile; /**< User profile (group) [out] */
...@@ -202,15 +201,20 @@ SOFIAPUBFUN void auth_mod_authorize(auth_mod_t *am, ...@@ -202,15 +201,20 @@ SOFIAPUBFUN void auth_mod_authorize(auth_mod_t *am,
SOFIAPUBFUN void auth_mod_cancel(auth_mod_t *am, auth_status_t *as); SOFIAPUBFUN void auth_mod_cancel(auth_mod_t *am, auth_status_t *as);
/* ====================================================================== */ /* ====================================================================== */
/* Compatibility interface */ /* Deprecated functions */
typedef enum { typedef enum {
auth_server, auth_server,
auth_proxy, auth_proxy,
auth_proxy_consume, auth_proxy_consume,
auth_consume auth_consume
} auth_kind_t; } auth_kind_t;
SOFIAPUBFUN void auth_mod_method(auth_mod_t *am,
auth_status_t *as,
msg_auth_t *credentials,
auth_challenger_t const *ach);
SOFIAPUBFUN void auth_mod_check_client(auth_mod_t *am, SOFIAPUBFUN void auth_mod_check_client(auth_mod_t *am,
auth_status_t *as, auth_status_t *as,
msg_auth_t *credentials, msg_auth_t *credentials,
...@@ -220,7 +224,7 @@ SOFIAPUBFUN void auth_mod_challenge_client(auth_mod_t *am, ...@@ -220,7 +224,7 @@ SOFIAPUBFUN void auth_mod_challenge_client(auth_mod_t *am,
auth_status_t *as, auth_status_t *as,
auth_challenger_t const *ach); auth_challenger_t const *ach);
#ifdef NTA_H #ifdef SIP_H
SOFIAPUBFUN void auth_mod_check(auth_mod_t *am, SOFIAPUBFUN void auth_mod_check(auth_mod_t *am,
auth_status_t *as, auth_status_t *as,
sip_t const *sip, sip_t const *sip,
...@@ -234,6 +238,9 @@ SOFIAPUBFUN const char *auth_mod_check_http(auth_mod_t *am, ...@@ -234,6 +238,9 @@ SOFIAPUBFUN const char *auth_mod_check_http(auth_mod_t *am,
auth_kind_t proxy); auth_kind_t proxy);
#endif #endif
/* ====================================================================== */
/* Tags */
#define AUTHTAG_ANY() authtag_any, ((tag_value_t)0) #define AUTHTAG_ANY() authtag_any, ((tag_value_t)0)
SOFIAPUBVAR tag_typedef_t authtag_any; SOFIAPUBVAR tag_typedef_t authtag_any;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment