1 #ifndef EAGINE_SSL_API_OBJECT_HANDLE_HPP
9 #define EAGINE_SSL_API_OBJECT_HANDLE_HPP
15 namespace eagine::sslp {
35 basic_handle<ui_method_tag, ssl_types::ui_method_type*, nullptr>;
37 using engine = basic_handle<engine_tag, ssl_types::engine_type*, nullptr>;
39 using basic_io = basic_handle<basic_io_tag, ssl_types::bio_type*, nullptr>;
41 using basic_io_method =
42 basic_handle<basic_io_method_tag, const ssl_types::bio_method_type*, nullptr>;
45 basic_handle<cipher_type_tag, const ssl_types::evp_cipher_type*, nullptr>;
48 basic_handle<cipher_tag, ssl_types::evp_cipher_ctx_type*, nullptr>;
50 using message_digest_type =
51 basic_handle<message_digest_type_tag, const ssl_types::evp_md_type*, nullptr>;
53 using message_digest =
54 basic_handle<message_digest_tag, ssl_types::evp_md_ctx_type*, nullptr>;
56 using pkey = basic_handle<pkey_tag, ssl_types::evp_pkey_type*, nullptr>;
59 basic_handle<pkey_ctx_tag, ssl_types::evp_pkey_ctx_type*, nullptr>;
61 using x509_lookup_method = basic_handle<
62 x509_lookup_method_tag,
63 ssl_types::x509_lookup_method_type*,
66 using x509_store_ctx =
67 basic_handle<x509_store_ctx_tag, ssl_types::x509_store_ctx_type*, nullptr>;
70 basic_handle<x509_store_tag, ssl_types::x509_store_type*, nullptr>;
72 using x509_crl = basic_handle<x509_crl_tag, ssl_types::x509_crl_type*, nullptr>;
74 using x509 = basic_handle<x509_tag, ssl_types::x509_type*, nullptr>;
77 basic_owned_handle<engine_tag, ssl_types::engine_type*, nullptr>;
79 using owned_basic_io =
80 basic_owned_handle<basic_io_tag, ssl_types::bio_type*, nullptr>;
83 basic_owned_handle<cipher_tag, ssl_types::evp_cipher_ctx_type*, nullptr>;
85 using owned_message_digest =
86 basic_owned_handle<message_digest_tag, ssl_types::evp_md_ctx_type*, nullptr>;
89 basic_owned_handle<pkey_tag, ssl_types::evp_pkey_type*, nullptr>;
91 using owned_x509_store_ctx =
92 basic_owned_handle<x509_store_ctx_tag, ssl_types::x509_store_ctx_type*, nullptr>;
94 using owned_x509_store =
95 basic_owned_handle<x509_store_tag, ssl_types::x509_store_type*, nullptr>;
97 using owned_x509_crl =
98 basic_owned_handle<x509_crl_tag, ssl_types::x509_crl_type*, nullptr>;
100 using owned_x509 = basic_owned_handle<x509_tag, ssl_types::x509_type*, nullptr>;
104 #endif // EAGINE_SSL_API_OBJECT_HANDLE_HPP