Loading...
Searching...
No Matches
auth_ntlm.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_NTLM_H
#define AUTH_NTLM_H
#ifndef SU_ALLOC_H
#include <sofia-sip/su_alloc.h>
#endif
#ifndef AUTH_PLUGIN_H
#include <sofia-sip/auth_plugin.h>
#endif
SOFIA_BEGIN_DECLS
issize_t auth_ntlm_challenge_get(su_home_t *, auth_challenge_t *,
char const * const params[]);
issize_t auth_ntlm_response_get(su_home_t *, auth_response_t *,
char const * const params[]);
int auth_ntlm_a1(auth_response_t *ar,
auth_hexmd5_t ha1,
char const *secret);
int auth_ntlm_a1sess(auth_response_t *ar,
auth_hexmd5_t ha1sess,
char const *ha1);
int auth_ntlm_sessionkey(auth_response_t *, auth_hexmd5_t ha1,
char const *secret);
int auth_ntlm_response(auth_response_t *, auth_hexmd5_t response,
auth_hexmd5_t const ha1,
char const *method_name, void const *data, issize_t dlen);
msg_auth_t *auth_ntlm_credentials(msg_auth_t *auth,
char const *realm,
char const *opaque,
char const *gssapidata,
char const *targetname);
void auth_challenge_ntlm(auth_mod_t *am,
auth_status_t *as,
auth_challenger_t const *ach);
void auth_method_ntlm(auth_mod_t *am,
auth_status_t *as,
msg_auth_t *au,
auth_challenger_t const *ach);
void auth_check_ntlm(auth_mod_t *am,
auth_status_t *as,
auth_response_t *ar,
auth_challenger_t const *ach);
int auth_generate_ntlm_nonce(auth_mod_t *am,
char buffer[],
size_t buffer_len,
int nextnonce,
msg_time_t now);
int auth_validate_ntlm_nonce(auth_mod_t *am,
auth_status_t *as,
auth_response_t *ar,
msg_time_t now);
void auth_info_ntlm(auth_mod_t *am,
auth_status_t *as,
auth_challenger_t const *ach);
SOFIA_END_DECLS
#endif
auth_challenger_t
struct auth_challenger auth_challenger_t
Authentication challenge.
auth_ntlm_credentials
msg_auth_t * auth_ntlm_credentials(msg_auth_t *auth, char const *realm, char const *opaque, char const *gssapidata, char const *targetname)
NTLM scheme.
Definition auth_plugin_ntlm.c:164
auth_ntlm_response_get
issize_t auth_ntlm_response_get(su_home_t *, auth_response_t *, char const *const params[])
Get ntlm-response parameters.
Definition auth_ntlm.c:121
auth_info_ntlm
void auth_info_ntlm(auth_mod_t *am, auth_status_t *as, auth_challenger_t const *ach)
Construct a info header for Ntlm authentication scheme.
Definition auth_plugin_ntlm.c:371
auth_method_ntlm
void auth_method_ntlm(auth_mod_t *am, auth_status_t *as, msg_auth_t *au, auth_challenger_t const *ach)
Authenticate a request with Ntlm authentication scheme.
Definition auth_plugin_ntlm.c:128
auth_ntlm_challenge_get
issize_t auth_ntlm_challenge_get(su_home_t *, auth_challenge_t *, char const *const params[])
Get ntlm-challenge parameters.
Definition auth_ntlm.c:60
auth_check_ntlm
void auth_check_ntlm(auth_mod_t *am, auth_status_t *as, auth_response_t *ar, auth_challenger_t const *ach)
Check ntlm authentication.
Definition auth_plugin_ntlm.c:196
auth_challenge_ntlm
void auth_challenge_ntlm(auth_mod_t *am, auth_status_t *as, auth_challenger_t const *ach)
Construct a challenge header for Ntlm authentication scheme.
Definition auth_plugin_ntlm.c:324
auth_plugin.h
Plugin interface for authentication verification modules.
msg_time_t
unsigned long msg_time_t
auth_challenge_t
Parameters for digest-challenge.
Definition auth_digest.h:75
auth_mod_t
Common data for authentication module.
Definition auth_plugin.h:125
auth_response_t
Digest parameters for digest-response in Authorize.
Definition auth_digest.h:117
auth_status_t
Authentication operation result.
Definition auth_module.h:97
su_alloc.h
su_home_t
SU_HOME_T su_home_t

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