iptsec 1.12.11devel
Loading...
Searching...
No Matches
auth_ntlm.h
Go to the documentation of this file.
1/*
2 * This file is part of the Sofia-SIP package
3 *
4 * Copyright (C) 2005 Nokia Corporation.
5 *
6 * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 *
23 */
24
25#ifndef AUTH_NTLM_H
27#define AUTH_NTLM_H
28
48#ifndef SU_ALLOC_H
49#include <sofia-sip/su_alloc.h>
50#endif
51
52#ifndef AUTH_PLUGIN_H
54#endif
55
56SOFIA_BEGIN_DECLS
57
59 char const * const params[]);
61 char const * const params[]);
62
63int auth_ntlm_a1(auth_response_t *ar,
64 auth_hexmd5_t ha1,
65 char const *secret);
66
67int auth_ntlm_a1sess(auth_response_t *ar,
68 auth_hexmd5_t ha1sess,
69 char const *ha1);
70
71int auth_ntlm_sessionkey(auth_response_t *, auth_hexmd5_t ha1,
72 char const *secret);
73int auth_ntlm_response(auth_response_t *, auth_hexmd5_t response,
74 auth_hexmd5_t const ha1,
75 char const *method_name, void const *data, issize_t dlen);
76
78msg_auth_t *auth_ntlm_credentials(msg_auth_t *auth,
79 char const *realm,
80 char const *opaque,
81 char const *gssapidata,
82 char const *targetname);
83
85 auth_status_t *as,
86 auth_challenger_t const *ach);
87
88
90 auth_status_t *as,
91 msg_auth_t *au,
92 auth_challenger_t const *ach);
93
94
96 auth_status_t *as,
98 auth_challenger_t const *ach);
99
100int auth_generate_ntlm_nonce(auth_mod_t *am,
101 char buffer[],
102 size_t buffer_len,
103 int nextnonce,
104 msg_time_t now);
105
106int auth_validate_ntlm_nonce(auth_mod_t *am,
107 auth_status_t *as,
108 auth_response_t *ar,
109 msg_time_t now);
110
112 auth_status_t *as,
113 auth_challenger_t const *ach);
114
115SOFIA_END_DECLS
116
117#endif
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
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
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
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
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
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
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
Plugin interface for authentication verification modules.
unsigned long msg_time_t
Parameters for digest-challenge.
Definition auth_digest.h:75
Authentication challenge.
Definition auth_module.h:150
Common data for authentication module.
Definition auth_plugin.h:125
Digest parameters for digest-response in Authorize.
Definition auth_digest.h:117
Authentication operation result.
Definition auth_module.h:97
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.