Client-side plugin interface for authentication. More...
#include "sofia-sip/auth_client.h"#include <sofia-sip/msg_header.h>
Go to the source code of this file.
Defines | |
| #define | AUTH_CLIENT_PLUGIN_H |
| Defined when <sofia-sip/auth_client_plugin.h> has been included. | |
| #define | AUTH_CLIENT_IS_EXTENDED(ca) |
| Check if authentication client has been extended. | |
| #define | AUTH_CLIENT_SAVE_CREDENTIALS(ca) |
| Return auc_save_credentials method from authentication client. | |
| #define | AUTH_CLIENT_COPY_CREDENTIALS(ca) |
| Return auc_copy_credentials method from authentication client. | |
Functions | |
| int | auth_client_save_credentials (auth_client_t *ac, char const *scheme, char const *realm, char const *user, char const *pass) |
| Save authentication data to an authenticator. | |
| int | auth_client_copy_credentials (auth_client_t *ac, auth_client_t const *src) |
| Copy authentication data from a matching client in src to d. | |
Client-side plugin interface for authentication.
| #define AUTH_CLIENT_COPY_CREDENTIALS | ( | ca | ) |
Return auc_copy_credentials method from authentication client.
| #define AUTH_CLIENT_IS_EXTENDED | ( | ca | ) |
Check if authentication client has been extended.
| #define AUTH_CLIENT_PLUGIN_H |
Defined when <sofia-sip/auth_client_plugin.h> has been included.
| #define AUTH_CLIENT_SAVE_CREDENTIALS | ( | ca | ) |
Return auc_save_credentials method from authentication client.
| int auth_client_copy_credentials | ( | auth_client_t * | d, | |
| auth_client_t const * | s | |||
| ) |
Copy authentication data from a matching client in src to d.
| 1 | if credentials were copied | |
| 0 | clients did not match | |
| -1 | if an error occurred. |
| int auth_client_save_credentials | ( | auth_client_t * | ca, | |
| char const * | scheme, | |||
| char const * | realm, | |||
| char const * | user, | |||
| char const * | pass | |||
| ) |
Save authentication data to an authenticator.
Function saves the authentication data in the authentication client, if the scheme and the realm match.
| [in] | ca | client authenticator |
| [in] | scheme | scheme to use (NULL, if any) |
| [in] | realm | realm to use (NULL, if any) |
| [in] | user | username |
| [in] | pass | password |
| 1 | if successful | |
| 0 | data did not match | |
| -1 | upon an error |