Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewEngine(klass) TypedData_Wrap_Struct((klass), &ossl_engine_type, 0) |
#define | SetEngine(obj, engine) |
#define | GetEngine(obj, engine) |
#define | SafeGetEngine(obj, engine) |
#define | OSSL_ENGINE_LOAD_IF_MATCH(x) |
#define | DefEngineConst(x) rb_define_const(cEngine, #x, INT2NUM(ENGINE_##x)) |
Functions | |
static void | ossl_engine_free (void *engine) |
static VALUE | ossl_engine_s_load (int argc, VALUE *argv, VALUE klass) |
static VALUE | ossl_engine_s_cleanup (VALUE self) |
static VALUE | ossl_engine_s_engines (VALUE klass) |
static VALUE | ossl_engine_s_by_id (VALUE klass, VALUE id) |
static VALUE | ossl_engine_get_id (VALUE self) |
static VALUE | ossl_engine_get_name (VALUE self) |
static VALUE | ossl_engine_finish (VALUE self) |
static VALUE | ossl_engine_get_cipher (VALUE self, VALUE name) |
static VALUE | ossl_engine_get_digest (VALUE self, VALUE name) |
static VALUE | ossl_engine_load_privkey (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_engine_load_pubkey (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_engine_set_default (VALUE self, VALUE flag) |
static VALUE | ossl_engine_ctrl_cmd (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_engine_cmd_flag_to_name (int flag) |
static VALUE | ossl_engine_get_cmds (VALUE self) |
static VALUE | ossl_engine_inspect (VALUE self) |
void | Init_ossl_engine (void) |
Variables | |
VALUE | cEngine |
VALUE | eEngineError |
static const rb_data_type_t | ossl_engine_type |
#define DefEngineConst | ( | x | ) | rb_define_const(cEngine, #x, INT2NUM(ENGINE_##x)) |
Definition at line 512 of file ossl_engine.c.
Referenced by Init_ossl_engine().
#define GetEngine | ( | obj, | |
engine | |||
) |
Definition at line 22 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_inspect(), ossl_engine_load_privkey(), ossl_engine_load_pubkey(), and ossl_engine_set_default().
#define NewEngine | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_engine_type, 0) |
Definition at line 14 of file ossl_engine.c.
Referenced by ossl_engine_s_by_id(), and ossl_engine_s_engines().
#define OSSL_ENGINE_LOAD_IF_MATCH | ( | x | ) |
Definition at line 53 of file ossl_engine.c.
Referenced by ossl_engine_s_load().
#define SafeGetEngine | ( | obj, | |
engine | |||
) |
Definition at line 28 of file ossl_engine.c.
#define SetEngine | ( | obj, | |
engine | |||
) |
Definition at line 16 of file ossl_engine.c.
Referenced by ossl_engine_s_by_id(), and ossl_engine_s_engines().
void Init_ossl_engine | ( | void | ) |
Definition at line 515 of file ossl_engine.c.
References cEngine, DefEngineConst, eEngineError, eOSSLError, Init_ossl_engine(), 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_by_id(), ossl_engine_s_cleanup(), ossl_engine_s_engines(), ossl_engine_s_load(), ossl_engine_set_default(), rb_cObject, rb_define_class_under(), rb_define_method(), rb_define_module(), rb_define_singleton_method(), rb_eStandardError, and rb_undef_alloc_func().
Referenced by Init_openssl(), and Init_ossl_engine().
|
static |
Definition at line 461 of file ossl_engine.c.
References rb_str_new2.
Referenced by ossl_engine_get_cmds().
Definition at line 445 of file ossl_engine.c.
References eEngineError, GetEngine, NIL_P, NULL, ossl_raise(), rb_scan_args(), StringValueCStr, and val.
Referenced by Init_ossl_engine().
Definition at line 272 of file ossl_engine.c.
References eEngineError, GetEngine, NULL, ossl_raise(), and Qnil.
Referenced by Init_ossl_engine().
|
static |
Definition at line 62 of file ossl_engine.c.
Definition at line 299 of file ossl_engine.c.
References eEngineError, GetEngine, nid, NULL, ossl_cipher_new(), ossl_raise(), PRIsVALUE, and StringValueCStr.
Referenced by Init_ossl_engine().
Definition at line 477 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 332 of file ossl_engine.c.
References eEngineError, GetEngine, nid, NULL, ossl_digest_new(), ossl_raise(), PRIsVALUE, and StringValueCStr.
Referenced by Init_ossl_engine().
Definition at line 240 of file ossl_engine.c.
References GetEngine, and rb_str_new2.
Referenced by Init_ossl_engine().
Definition at line 258 of file ossl_engine.c.
References GetEngine, and rb_str_new2.
Referenced by Init_ossl_engine().
Definition at line 503 of file ossl_engine.c.
References GetEngine, PRIsVALUE, rb_obj_class(), and rb_sprintf().
Referenced by Init_ossl_engine().
Definition at line 359 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 StringValueCStr.
Referenced by Init_ossl_engine().
Definition at line 389 of file ossl_engine.c.
References eEngineError, GetEngine, id, NIL_P, NULL, ossl_pkey_new(), ossl_raise(), rb_scan_args(), and StringValueCStr.
Referenced by Init_ossl_engine().
Definition at line 209 of file ossl_engine.c.
References eEngineError, NewEngine, NULL, ossl_clear_error(), ossl_engine_s_load(), ossl_pem_passwd_cb(), ossl_raise(), rb_block_given_p(), rb_yield(), RSTRING_PTR, SetEngine, and StringValueCStr.
Referenced by Init_ossl_engine().
Definition at line 177 of file ossl_engine.c.
References NewEngine, rb_ary_new(), rb_ary_push(), and SetEngine.
Referenced by Init_ossl_engine().
Definition at line 87 of file ossl_engine.c.
References name, NIL_P, OSSL_ENGINE_LOAD_IF_MATCH, PRIsVALUE, Qnil, Qtrue, rb_scan_args(), rb_warning(), and StringValueCStr.
Referenced by Init_ossl_engine(), and ossl_engine_s_by_id().
Definition at line 424 of file ossl_engine.c.
References f, GetEngine, NUM2INT, and Qtrue.
Referenced by Init_ossl_engine().
VALUE cEngine |
Definition at line 43 of file ossl_engine.c.
Referenced by Init_ossl_engine().
VALUE eEngineError |
Definition at line 48 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(), and ossl_engine_s_by_id().
|
static |
Definition at line 67 of file ossl_engine.c.