blob: c7b617bbd45c3beca02a1054b5f257fd9a02fe26 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#ifndef ICESSL_CERTIFICATE_I_H
#define ICESSL_CERTIFICATE_I_H
#include <IceSSL/Plugin.h>
#include <vector>
#include <string>
namespace IceSSL
{
//
// Map a certificate OID to its alias
//
struct ICESSL_API CertificateOID
{
const char* name;
const char* alias;
};
extern const ICESSL_API CertificateOID certificateOIDS[];
extern const ICESSL_API int certificateOIDSSize;
//
// Certificate common implementation
//
class ICESSL_API CertificateI : public virtual IceSSL::Certificate
{
public:
virtual bool operator!=(const IceSSL::Certificate&) const;
virtual std::vector<X509ExtensionPtr> getX509Extensions() const;
virtual X509ExtensionPtr getX509Extension(const std::string&) const;
virtual bool checkValidity() const;
# ifdef ICE_CPP11_MAPPING
virtual bool checkValidity(const std::chrono::system_clock::time_point& now) const;
# else
virtual bool checkValidity(const IceUtil::Time& now) const;
# endif
virtual std::string toString() const;
protected:
//
// Implementations that support retrieving X509 extensions must
// reimplement this method to lazzy initialize the extensions
// list.
//
// The default implementation just throw FeatureNotSupportedException
//
virtual void loadX509Extensions() const;
mutable std::vector<X509ExtensionPtr> _extensions;
};
} // IceSSL namespace end
#endif
|