Loading...
Searching...
No Matches
auth_client.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef AUTH_CLIENT_H
#define AUTH_CLIENT_H
#ifndef MSG_TYPES_H
#include <sofia-sip/msg_types.h>
#endif
#ifndef URL_H
#include <sofia-sip/url.h>
#endif
SOFIA_BEGIN_DECLS
typedef struct auth_client_s auth_client_t;
SOFIAPUBFUN
int auc_challenge(auth_client_t **auc, su_home_t *home,
msg_auth_t const *auth,
msg_hclass_t *crcl);
SOFIAPUBFUN
int auc_credentials(auth_client_t **auc, su_home_t *home, char const *data);
SOFIAPUBFUN
int auc_info(auth_client_t **auc_list,
msg_auth_info_t const *ai,
msg_hclass_t *credential_class);
SOFIAPUBFUN
int auc_all_credentials(auth_client_t **auc_list,
char const *scheme,
char const *realm,
char const *user,
char const *pass);
SOFIAPUBFUN
int auc_clear_credentials(auth_client_t **auc_list,
char const *scheme,
char const *realm);
SOFIAPUBFUN
int auc_copy_credentials(auth_client_t **dst, auth_client_t const *src);
SOFIAPUBFUN
int auc_has_authorization(auth_client_t **auc_list);
SOFIAPUBFUN
int auc_authorization(auth_client_t **auc_list, msg_t *msg, msg_pub_t *pub,
char const *method,
url_t const *url,
msg_payload_t const *body);
SOFIAPUBFUN
int auc_authorization_headers(auth_client_t **auc_list,
su_home_t *home,
char const *method,
url_t const *url,
msg_payload_t const *body,
msg_header_t **return_headers);
struct sip_s;
SOFIAPUBFUN
int auc_authorize(auth_client_t **auc, msg_t *msg, struct sip_s *sip);
typedef struct auth_client_plugin auth_client_plugin_t;
SOFIAPUBFUN
int auc_register_plugin(auth_client_plugin_t const *plugin);
SOFIA_END_DECLS
#endif
auc_authorization_headers
int auc_authorization_headers(auth_client_t **auc_list, su_home_t *home, char const *method, url_t const *url, msg_payload_t const *body, msg_header_t **return_headers)
Generate headers authorizing a request.
Definition auth_client.c:764
auc_all_credentials
int auc_all_credentials(auth_client_t **auc_list, char const *scheme, char const *realm, char const *user, char const *pass)
Feed authentication data to the authenticators.
Definition auth_client.c:381
auc_credentials
int auc_credentials(auth_client_t **auc, su_home_t *home, char const *data)
Feed authentication data to the authenticator.
Definition auth_client.c:311
auc_authorization
int auc_authorization(auth_client_t **auc_list, msg_t *msg, msg_pub_t *pub, char const *method, url_t const *url, msg_payload_t const *body)
Authorize a request.
Definition auth_client.c:699
auc_register_plugin
int auc_register_plugin(auth_client_plugin_t const *plugin)
Register an authentication client plugin.
Definition auth_client.c:1171
auc_copy_credentials
int auc_copy_credentials(auth_client_t **dst, auth_client_t const *src)
Copy authentication data from src to dst.
Definition auth_client.c:496
auth_client_t
struct auth_client_s auth_client_t
Authenticator object.
Definition auth_client.h:49
auc_has_authorization
int auc_has_authorization(auth_client_t **auc_list)
Check if there are credentials for all challenges.
Definition auth_client.c:643
auc_clear_credentials
int auc_clear_credentials(auth_client_t **auc_list, char const *scheme, char const *realm)
Clear authentication data from the authenticator.
Definition auth_client.c:593
auc_challenge
int auc_challenge(auth_client_t **auc, su_home_t *home, msg_auth_t const *auth, msg_hclass_t *crcl)
Initialize authenticators.
Definition auth_client.c:102
auc_info
int auc_info(auth_client_t **auc_list, msg_auth_info_t const *ai, msg_hclass_t *credential_class)
Store authentication info to authenticators.
Definition auth_client.c:231
msg_payload_t
struct msg_payload_s msg_payload_t
msg_types.h
msg_hclass_t
struct msg_hclass_s const msg_hclass_t
msg_header_t
MSG_HDR_T msg_header_t
msg_t
struct msg_s msg_t
msg_pub_t
MSG_PUB_T msg_pub_t
sip_s
url_t
su_home_t
SU_HOME_T su_home_t
SOFIAPUBFUN
#define SOFIAPUBFUN
url.h

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.