blob: 6bd18273d715a2b0c11c1338f7bd30e8eb0208a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#ifndef ICESSL_PLUGIN_I_H
#define ICESSL_PLUGIN_I_H
#include <IceSSL/Plugin.h>
#include <IceSSL/SSLEngineF.h>
#include <Ice/CommunicatorF.h>
namespace IceSSL
{
class ICESSL_API PluginI : public virtual IceSSL::Plugin
{
public:
PluginI(const Ice::CommunicatorPtr&, const IceSSL::SSLEnginePtr&);
//
// From Ice::Plugin.
//
virtual void initialize();
virtual void destroy();
//
// From IceSSL::Plugin.
//
#ifdef ICE_CPP11_MAPPING
virtual void setCertificateVerifier(std::function<bool(const std::shared_ptr<ConnectionInfo>&)>);
virtual void setPasswordPrompt(std::function<std::string()>);
#else
virtual void setCertificateVerifier(const CertificateVerifierPtr&);
virtual void setPasswordPrompt(const PasswordPromptPtr&);
#endif
virtual CertificatePtr load(const std::string&) const = 0;
virtual CertificatePtr decode(const std::string&) const = 0;
protected:
SSLEnginePtr _engine;
};
}
#endif
|