iptsec
1.12.11devel
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Groups
Pages
libsofia-sip-ua
iptsec
sofia-sip
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
26
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
53
#include <
sofia-sip/auth_plugin.h
>
54
#endif
55
56
SOFIA_BEGIN_DECLS
57
58
issize_t
auth_ntlm_challenge_get
(
su_home_t
*,
auth_challenge_t
*,
59
char
const
*
const
params[]);
60
issize_t
auth_ntlm_response_get
(
su_home_t
*,
auth_response_t
*,
61
char
const
*
const
params[]);
62
63
int
auth_ntlm_a1(
auth_response_t
*ar,
64
auth_hexmd5_t ha1,
65
char
const
*secret);
66
67
int
auth_ntlm_a1sess(
auth_response_t
*ar,
68
auth_hexmd5_t ha1sess,
69
char
const
*ha1);
70
71
int
auth_ntlm_sessionkey(
auth_response_t
*, auth_hexmd5_t ha1,
72
char
const
*secret);
73
int
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
78
msg_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
84
void
auth_challenge_ntlm
(
auth_mod_t
*am,
85
auth_status_t
*as,
86
auth_challenger_t
const
*ach);
87
88
89
void
auth_method_ntlm
(
auth_mod_t
*am,
90
auth_status_t
*as,
91
msg_auth_t *au,
92
auth_challenger_t
const
*ach);
93
94
95
void
auth_check_ntlm
(
auth_mod_t
*am,
96
auth_status_t
*as,
97
auth_response_t
*ar,
98
auth_challenger_t
const
*ach);
99
100
int
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
106
int
auth_validate_ntlm_nonce(
auth_mod_t
*am,
107
auth_status_t
*as,
108
auth_response_t
*ar,
109
msg_time_t
now);
110
111
void
auth_info_ntlm
(
auth_mod_t
*am,
112
auth_status_t
*as,
113
auth_challenger_t
const
*ach);
114
115
SOFIA_END_DECLS
116
117
#endif
Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.