reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
RADIUSServerAuthManager.hxx
Go to the documentation of this file.
1
2#ifndef __RADIUSServerAuthManager_h
3#define __RADIUSServerAuthManager_h
4
5#ifdef HAVE_CONFIG_H
6#include "config.h"
7#endif
8
9#ifdef USE_RADIUS_CLIENT
10
11#include <vector>
14
15namespace resip
16{
17
19{
20 private:
22
23 public:
24 RADIUSServerAuthManager(resip::DialogUsageManager& dum,
25 TargetCommand::Target& target,
26 const Data& configurationFile,
27 bool challengeThirdParties = true,
28 const Data& staticRealm = "",
29 const std::vector<DigestType>& challengeDigestTypes = std::vector<DigestType>());
30 virtual ~RADIUSServerAuthManager();
31
32 protected:
33 void requestCredential(const resip::Data& user, const resip::Data& realm,
34 const resip::SipMessage& msg, const resip::Auth& auth,
35 const resip::Data& transactionId);
36 bool useAuthInt() const;
37
38 void onAuthSuccess(const resip::SipMessage& msg);
39 void onAuthFailure(resip::ServerAuthManager::AuthFailureReason reason, const resip::SipMessage& msg);
40};
41
43{
44 private:
45 resip::Data user;
46 resip::Data realm;
48 resip::Data transactionId;
49 public:
50 MyRADIUSDigestAuthListener(const resip::Data& user, const resip::Data& realm,
51 resip::TransactionUser& tu, const resip::Data& transactionId);
52 virtual ~MyRADIUSDigestAuthListener();
53 void onSuccess(const resip::Data& rpid);
54 void onAccessDenied();
55 void onError();
56};
57
58}
59
60#endif
61
62#endif
63
64/* ====================================================================
65 *
66 * Copyright (c) 2026 SIP Spectrum, Inc. https://www.sipspectrum.com
67 * Copyright 2008-2013 Daniel Pocock http://danielpocock.com
68 * All rights reserved.
69 *
70 * Redistribution and use in source and binary forms, with or without
71 * modification, are permitted provided that the following conditions
72 * are met:
73 *
74 * 1. Redistributions of source code must retain the above copyright
75 * notice, this list of conditions and the following disclaimer.
76 *
77 * 2. Redistributions in binary form must reproduce the above copyright
78 * notice, this list of conditions and the following disclaimer in
79 * the documentation and/or other materials provided with the
80 * distribution.
81 *
82 * 3. Neither the name of the author(s) nor the names of any contributors
83 * may be used to endorse or promote products derived from this software
84 * without specific prior written permission.
85 *
86 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
87 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
88 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
89 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
90 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
91 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
92 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
93 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
94 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
95 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
96 * SUCH DAMAGE.
97 *
98 * ====================================================================
99 *
100 *
101 */
102
Represents the "credentials" and "challenge" elements in the SIP grammar.
Definition Auth.hxx:18
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
Represents a SIP message.
The base-class for an RFC 3261 Transaction User.
dcm! – add UnusedChecking(_enum) below;
void list()
Definition userAdmin.cxx:66