reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
CertServer.cxx
Go to the documentation of this file.
8
9using namespace resip;
10using namespace repro;
11
13 mDum(dum),
14 mPrivateKeyServer(*mDum.getSecurity()),
15 mPrivateKeyUpdater(*mDum.getSecurity()),
16 mCertServer(*mDum.getSecurity()),
17 mCertUpdater(*mDum.getSecurity())
18{
19 MasterProfile& profile = *mDum.getMasterProfile();
20 profile.addSupportedMethod(PUBLISH);
21 profile.addSupportedMethod(SUBSCRIBE);
22 //profile.validateAcceptEnabled() = true; // !slg! this causes Accept validation for registration requests as well, which is not really desired
23 profile.validateContentEnabled() = true;
28
29 mDum.addServerSubscriptionHandler(Symbols::Credential, &mPrivateKeyServer);
31 mDum.addServerPublicationHandler(Symbols::Credential, &mPrivateKeyUpdater);
33}
34
38
39/* ====================================================================
40*
41* Copyright (c) 2015. All rights reserved.
42*
43* Redistribution and use in source and binary forms, with or without
44* modification, are permitted provided that the following conditions
45* are met:
46*
47* 1. Redistributions of source code must retain the above copyright
48* notice, this list of conditions and the following disclaimer.
49*
50* 2. Redistributions in binary form must reproduce the above copyright
51* notice, this list of conditions and the following disclaimer in
52* the documentation and/or other materials provided with the
53* distribution.
54*
55* 3. Neither the name of the author(s) nor the names of any contributors
56* may be used to endorse or promote products derived from this software
57* without specific prior written permission.
58*
59* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
60* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
61* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
62* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
63* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
64* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
65* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
67* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
68* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
69* SUCH DAMAGE.
70*
71* ====================================================================
72*
73*/
74/*
75* vi: set shiftwidth=3 expandtab:
76*/
77
CertServer(resip::DialogUsageManager &dum)
void addServerPublicationHandler(const Data &eventType, ServerPublicationHandler *)
void addServerSubscriptionHandler(const Data &eventType, ServerSubscriptionHandler *)
std::shared_ptr< MasterProfile > & getMasterProfile()
virtual void addSupportedMimeType(const MethodTypes &method, const Mime &mimeType)
Default is application/sdp for INVITE, OPTIONS, PRACK and UPDATE Methods.
virtual bool & validateContentEnabled() noexcept
enable/disable content validation
virtual void addSupportedMethod(const MethodTypes &method)
Defaults are: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE.
static const Mime & getStaticType()
static const char * Credential
Definition Symbols.hxx:123
static const char * Certificate
Definition Symbols.hxx:122
static const Mime & getStaticType()
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;