mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
a little update to the sofia-sip library
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4939 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
fabed21ea8
commit
853936abd3
270 files changed
+37121
-11402
No files matched your search
@@ -29,6 +29,9 @@
|
||||
/**@file sofia-sip/auth_client_plugin.h
|
||||
* @brief Client-side plugin interface for authentication
|
||||
*
|
||||
* @note For extensions in 1.12.6 or later,
|
||||
* you have to #define SOFIA_EXTEND_AUTH_CLIENT to 1.
|
||||
*
|
||||
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
|
||||
*
|
||||
* @date Created: Fri May 19 16:18:21 EEST 2006
|
||||
@@ -58,6 +61,10 @@ struct auth_client_s {
|
||||
char *ca_pass;
|
||||
|
||||
msg_hclass_t *ca_credential_class;
|
||||
|
||||
#if SOFIA_EXTEND_AUTH_CLIENT
|
||||
int ca_clear;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct auth_client_plugin
|
||||
@@ -81,8 +88,19 @@ struct auth_client_plugin
|
||||
|
||||
/** Store nextnonce from Authentication-Info or Proxy-Authentication-Info. */
|
||||
int (*auc_info)(auth_client_t *ca, msg_auth_info_t const *ai);
|
||||
|
||||
#if SOFIA_EXTEND_AUTH_CLIENT
|
||||
/** Clear credentials (user/pass). @NEW_1_12_6 */
|
||||
int (*auc_clear)(auth_client_t *ca);
|
||||
#endif
|
||||
};
|
||||
|
||||
/** Check if authentication client has been extended. @NEW_1_12_6 */
|
||||
#define AUTH_CLIENT_IS_EXTENDED(ca) \
|
||||
((ca)->ca_auc->auc_plugin_size > \
|
||||
(int)offsetof(auth_client_plugin_t, auc_clear) \
|
||||
&& (ca)->ca_auc->auc_clear != NULL)
|
||||
|
||||
SOFIA_END_DECLS
|
||||
|
||||
#endif /* !defined AUTH_CLIENT_PLUGIN_H */
|
||||
Reference in new issue
Block a user