OGLplus  (0.59.0) a C++ wrapper for rendering APIs

object_handle.hpp
Go to the documentation of this file.
1 #ifndef EAGINE_SSL_API_OBJECT_HANDLE_HPP
9 #define EAGINE_SSL_API_OBJECT_HANDLE_HPP
10 
11 #include "config.hpp"
12 #include <eagine/handle.hpp>
13 #include <eagine/message_id.hpp>
14 
15 namespace eagine::sslp {
16 //------------------------------------------------------------------------------
17 using ui_method_tag = EAGINE_MSG_TYPE(ssl, UIMethod);
18 using engine_tag = EAGINE_MSG_TYPE(ssl, Engine);
19 using basic_io_tag = EAGINE_MSG_TYPE(ssl, BIO);
20 using basic_io_method_tag = EAGINE_MSG_TYPE(ssl, BIOMethod);
21 using cipher_type_tag = EAGINE_MSG_TYPE(ssl, CipherType);
22 using cipher_tag = EAGINE_MSG_TYPE(ssl, Cipher);
23 using message_digest_type_tag = EAGINE_MSG_TYPE(ssl, MsgDgstTyp);
24 using message_digest_tag = EAGINE_MSG_TYPE(ssl, MsgDigest);
25 using pkey_tag = EAGINE_MSG_TYPE(ssl, PKey);
26 using pkey_ctx_tag = EAGINE_MSG_TYPE(ssl, PKeyCtx);
27 using x509_lookup_method_tag = EAGINE_MSG_TYPE(ssl, X509LkpMtd);
28 using x509_lookup_tag = EAGINE_MSG_TYPE(ssl, X509Lookup);
29 using x509_store_ctx_tag = EAGINE_MSG_TYPE(ssl, X509StrCtx);
30 using x509_store_tag = EAGINE_MSG_TYPE(ssl, X509Store);
31 using x509_crl_tag = EAGINE_MSG_TYPE(ssl, X509Crl);
32 using x509_tag = EAGINE_MSG_TYPE(ssl, X509);
33 //------------------------------------------------------------------------------
34 using ui_method =
35  basic_handle<ui_method_tag, ssl_types::ui_method_type*, nullptr>;
36 
37 using engine = basic_handle<engine_tag, ssl_types::engine_type*, nullptr>;
38 
39 using basic_io = basic_handle<basic_io_tag, ssl_types::bio_type*, nullptr>;
40 
41 using basic_io_method =
42  basic_handle<basic_io_method_tag, const ssl_types::bio_method_type*, nullptr>;
43 
44 using cipher_type =
45  basic_handle<cipher_type_tag, const ssl_types::evp_cipher_type*, nullptr>;
46 
47 using cipher =
48  basic_handle<cipher_tag, ssl_types::evp_cipher_ctx_type*, nullptr>;
49 
50 using message_digest_type =
51  basic_handle<message_digest_type_tag, const ssl_types::evp_md_type*, nullptr>;
52 
53 using message_digest =
54  basic_handle<message_digest_tag, ssl_types::evp_md_ctx_type*, nullptr>;
55 
56 using pkey = basic_handle<pkey_tag, ssl_types::evp_pkey_type*, nullptr>;
57 
58 using pkey_ctx =
59  basic_handle<pkey_ctx_tag, ssl_types::evp_pkey_ctx_type*, nullptr>;
60 
61 using x509_lookup_method = basic_handle<
62  x509_lookup_method_tag,
63  ssl_types::x509_lookup_method_type*,
64  nullptr>;
65 
66 using x509_store_ctx =
67  basic_handle<x509_store_ctx_tag, ssl_types::x509_store_ctx_type*, nullptr>;
68 
69 using x509_store =
70  basic_handle<x509_store_tag, ssl_types::x509_store_type*, nullptr>;
71 
72 using x509_crl = basic_handle<x509_crl_tag, ssl_types::x509_crl_type*, nullptr>;
73 
74 using x509 = basic_handle<x509_tag, ssl_types::x509_type*, nullptr>;
75 //------------------------------------------------------------------------------
76 using owned_engine =
77  basic_owned_handle<engine_tag, ssl_types::engine_type*, nullptr>;
78 
79 using owned_basic_io =
80  basic_owned_handle<basic_io_tag, ssl_types::bio_type*, nullptr>;
81 
82 using owned_cipher =
83  basic_owned_handle<cipher_tag, ssl_types::evp_cipher_ctx_type*, nullptr>;
84 
85 using owned_message_digest =
86  basic_owned_handle<message_digest_tag, ssl_types::evp_md_ctx_type*, nullptr>;
87 
88 using owned_pkey =
89  basic_owned_handle<pkey_tag, ssl_types::evp_pkey_type*, nullptr>;
90 
91 using owned_x509_store_ctx =
92  basic_owned_handle<x509_store_ctx_tag, ssl_types::x509_store_ctx_type*, nullptr>;
93 
94 using owned_x509_store =
95  basic_owned_handle<x509_store_tag, ssl_types::x509_store_type*, nullptr>;
96 
97 using owned_x509_crl =
98  basic_owned_handle<x509_crl_tag, ssl_types::x509_crl_type*, nullptr>;
99 
100 using owned_x509 = basic_owned_handle<x509_tag, ssl_types::x509_type*, nullptr>;
101 //------------------------------------------------------------------------------
102 } // namespace eagine::sslp
103 
104 #endif // EAGINE_SSL_API_OBJECT_HANDLE_HPP
#define EAGINE_MSG_TYPE(API, NAME)
Macro for declaring instantiations of static_message_id.
Definition: message_id.hpp:140

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).