64 #ifndef HEADER_ENGINE_INT_H
65 #define HEADER_ENGINE_INT_H
69 #include <openssl/engine.h>
81 #ifdef ENGINE_REF_COUNT_DEBUG
83 #define engine_ref_debug(e, isfunct, diff) \
84 fprintf(stderr, "engine: %08x %s from %d to %d (%s:%d)\n", \
85 (unsigned int)(e), (isfunct ? "funct" : "struct"), \
86 ((isfunct) ? ((e)->funct_ref - (diff)) : ((e)->struct_ref - (diff))), \
87 ((isfunct) ? (e)->funct_ref : (e)->struct_ref), \
88 (__FILE__), (__LINE__));
92 #define engine_ref_debug(e, isfunct, diff)
100 typedef void (ENGINE_CLEANUP_CB)(void);
103 ENGINE_CLEANUP_CB *cb;
106 void engine_cleanup_add_first(ENGINE_CLEANUP_CB *cb);
107 void engine_cleanup_add_last(ENGINE_CLEANUP_CB *cb);
120 int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup,
121 ENGINE *e, const
int *nids,
int num_nids,
int setdefault);
122 void engine_table_unregister(ENGINE_TABLE **table,
ENGINE *e);
123 void engine_table_cleanup(ENGINE_TABLE **table);
124 #ifndef ENGINE_TABLE_DEBUG
125 ENGINE *engine_table_select(ENGINE_TABLE **table,
int nid);
127 ENGINE *engine_table_select_tmp(ENGINE_TABLE **table,
int nid,
const char *f,
int l);
128 #define engine_table_select(t,n) engine_table_select_tmp(t,n,__FILE__,__LINE__)
134 int engine_unlocked_init(
ENGINE *e);
135 int engine_unlocked_finish(
ENGINE *e,
int unlock_for_handlers);
136 int engine_free_util(
ENGINE *e,
int locked);
141 void engine_set_all_null(
ENGINE *e);
158 const STORE_METHOD *store_meth;
160 ENGINE_CIPHERS_PTR ciphers;
162 ENGINE_DIGESTS_PTR digests;
165 ENGINE_GEN_INT_FUNC_PTR destroy;
167 ENGINE_GEN_INT_FUNC_PTR init;
168 ENGINE_GEN_INT_FUNC_PTR finish;
169 ENGINE_CTRL_FUNC_PTR ctrl;
170 ENGINE_LOAD_KEY_PTR load_privkey;
171 ENGINE_LOAD_KEY_PTR load_pubkey;
Definition: ecs_locl.h:68
Definition: eng_int.h:148
Definition: eng_table.c:74
Definition: eng_int.h:101
Definition: ech_locl.h:65