#include "ossl.h"Go to the source code of this file.
| #define DefEngineConst | ( | x | ) | rb_define_const(cEngine, #x, INT2NUM(ENGINE_##x)) |
Definition at line 364 of file ossl_engine.c.
Referenced by Init_ossl_engine().
| #define GetEngine | ( | obj, | |||
| engine | ) |
do { \ Data_Get_Struct((obj), ENGINE, (engine)); \ if (!(engine)) { \ ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ } \ } while (0)
Definition at line 21 of file ossl_engine.c.
Referenced by ossl_engine_ctrl_cmd(), ossl_engine_finish(), ossl_engine_get_cipher(), ossl_engine_get_cmds(), ossl_engine_get_digest(), ossl_engine_get_id(), ossl_engine_get_name(), ossl_engine_load_privkey(), ossl_engine_load_pubkey(), and ossl_engine_set_default().
| #define OSSL_ENGINE_LOAD_IF_MATCH | ( | x | ) |
do{\ if(!strcmp(#x, RSTRING_PTR(name))){\ ENGINE_load_##x();\ return Qtrue;\ }\ }while(0)
Definition at line 41 of file ossl_engine.c.
Referenced by ossl_engine_s_load().
| #define SafeGetEngine | ( | obj, | |||
| engine | ) |
do { \ OSSL_Check_Kind((obj), cEngine); \ GetPKCS7((obj), (engine)); \ } while (0)
Definition at line 27 of file ossl_engine.c.
| #define WrapEngine | ( | klass, | |||
| obj, | |||||
| engine | ) |
do { \ if (!(engine)) { \ ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \ } \ (obj) = Data_Wrap_Struct((klass), 0, ENGINE_free, (engine)); \ } while(0)
Definition at line 15 of file ossl_engine.c.
Referenced by ossl_engine_s_alloc(), ossl_engine_s_by_id(), and ossl_engine_s_engines().
| void Init_ossl_engine | ( | void | ) |
Definition at line 367 of file ossl_engine.c.
References cEngine, CLASS_OF, DefEngineConst, eEngineError, eOSSLError, mOSSL, ossl_engine_ctrl_cmd(), ossl_engine_finish(), ossl_engine_get_cipher(), ossl_engine_get_cmds(), ossl_engine_get_digest(), ossl_engine_get_id(), ossl_engine_get_name(), ossl_engine_inspect(), ossl_engine_load_privkey(), ossl_engine_load_pubkey(), ossl_engine_s_alloc(), ossl_engine_s_by_id(), ossl_engine_s_cleanup(), ossl_engine_s_engines(), ossl_engine_s_load(), ossl_engine_set_default(), rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_singleton_method(), and rb_undef_method().
Referenced by Init_openssl().
| static VALUE ossl_engine_cmd_flag_to_name | ( | int | flag | ) | [static] |
Definition at line 314 of file ossl_engine.c.
References rb_str_new2.
Referenced by ossl_engine_get_cmds().
Definition at line 296 of file ossl_engine.c.
References eEngineError, GetEngine, NIL_P, NULL, ossl_raise(), rb_scan_args(), RSTRING_PTR, and StringValue.
Referenced by Init_ossl_engine().
Definition at line 181 of file ossl_engine.c.
References eEngineError, GetEngine, NULL, ossl_raise(), and Qnil.
Referenced by Init_ossl_engine().
Definition at line 193 of file ossl_engine.c.
References eEngineError, GetEngine, NULL, ossl_cipher_new(), ossl_raise(), and StringValuePtr.
Referenced by Init_ossl_engine().
Definition at line 326 of file ossl_engine.c.
References GetEngine, NULL, ossl_engine_cmd_flag_to_name(), rb_ary_new(), rb_ary_push(), and rb_str_new2.
Referenced by Init_ossl_engine().
Definition at line 216 of file ossl_engine.c.
References eEngineError, GetEngine, NULL, ossl_digest_new(), ossl_raise(), and StringValuePtr.
Referenced by Init_ossl_engine().
Definition at line 165 of file ossl_engine.c.
References GetEngine, and rb_str_new2.
Referenced by Init_ossl_engine(), and ossl_engine_inspect().
Definition at line 173 of file ossl_engine.c.
References GetEngine, and rb_str_new2.
Referenced by Init_ossl_engine(), and ossl_engine_inspect().
Definition at line 348 of file ossl_engine.c.
References ossl_engine_get_id(), ossl_engine_get_name(), rb_class2name(), rb_obj_class(), rb_str_append(), rb_str_cat2(), and rb_str_new2.
Referenced by Init_ossl_engine().
Definition at line 238 of file ossl_engine.c.
References eEngineError, GetEngine, id, NIL_P, NULL, ossl_pkey_new(), OSSL_PKEY_SET_PRIVATE, ossl_raise(), rb_scan_args(), and StringValuePtr.
Referenced by Init_ossl_engine().
Definition at line 262 of file ossl_engine.c.
References eEngineError, GetEngine, id, NIL_P, NULL, ossl_pkey_new(), ossl_raise(), rb_scan_args(), and StringValuePtr.
Referenced by Init_ossl_engine().
Definition at line 151 of file ossl_engine.c.
References eEngineError, NULL, ossl_raise(), and WrapEngine.
Referenced by Init_ossl_engine().
Definition at line 130 of file ossl_engine.c.
References eEngineError, NULL, ossl_engine_s_load(), ossl_pem_passwd_cb(), ossl_raise(), rb_block_given_p(), rb_yield(), RSTRING_PTR, StringValue, and WrapEngine.
Referenced by Init_ossl_engine().
Definition at line 111 of file ossl_engine.c.
References rb_ary_new(), rb_ary_push(), and WrapEngine.
Referenced by Init_ossl_engine().
Definition at line 50 of file ossl_engine.c.
References name, NIL_P, OSSL_ENGINE_LOAD_IF_MATCH, Qnil, Qtrue, rb_scan_args(), rb_warning(), RSTRING_PTR, and StringValue.
Referenced by Init_ossl_engine(), and ossl_engine_s_by_id().
Definition at line 284 of file ossl_engine.c.
References GetEngine, NUM2INT, and Qtrue.
Referenced by Init_ossl_engine().
Definition at line 35 of file ossl_engine.c.
Referenced by Init_ossl_engine().
Definition at line 36 of file ossl_engine.c.
Referenced by Init_ossl_engine(), ossl_engine_ctrl_cmd(), ossl_engine_finish(), ossl_engine_get_cipher(), ossl_engine_get_digest(), ossl_engine_load_privkey(), ossl_engine_load_pubkey(), ossl_engine_s_alloc(), and ossl_engine_s_by_id().
1.6.1