Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Data Structures | |
struct | tmp_dh_callback_args |
Macros | |
#define | numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0])) |
#define | TO_SOCKET(s) (s) |
#define | GetSSLCTX(obj, ctx) |
#define | OSSL_SSL_METHOD_ENTRY(name, version) |
#define | ssl_get_error(ssl, ret) SSL_get_error((ssl), (ret)) |
#define | rb_intern(s) rb_intern_const(s) |
#define | ossl_ssl_def_const(x) rb_define_const(mSSL, #x, LONG2NUM(SSL_##x)) |
#define | DefIVarID(name) |
#define DefIVarID | ( | name | ) |
Referenced by Init_ossl_ssl().
#define GetSSLCTX | ( | obj, | |
ctx | |||
) |
Definition at line 22 of file ossl_ssl.c.
Referenced by ossl_ssl_initialize(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_flush_sessions(), ossl_sslctx_get_ciphers(), ossl_sslctx_get_options(), ossl_sslctx_get_security_level(), ossl_sslctx_get_session_cache_mode(), ossl_sslctx_get_session_cache_size(), ossl_sslctx_get_session_cache_stats(), ossl_sslctx_session_add(), ossl_sslctx_session_remove(), ossl_sslctx_set_ciphers(), ossl_sslctx_set_ecdh_curves(), ossl_sslctx_set_options(), ossl_sslctx_set_security_level(), ossl_sslctx_set_session_cache_mode(), ossl_sslctx_set_session_cache_size(), ossl_sslctx_set_ssl_version(), and ossl_sslctx_setup().
#define numberof | ( | ary | ) | (int)(sizeof(ary)/sizeof((ary)[0])) |
Definition at line 14 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and ossl_sslctx_set_ssl_version().
#define ossl_ssl_def_const | ( | x | ) | rb_define_const(mSSL, #x, LONG2NUM(SSL_##x)) |
Referenced by Init_ossl_ssl().
#define rb_intern | ( | s | ) | rb_intern_const(s) |
Definition at line 2241 of file ossl_ssl.c.
Referenced by call_verify_certificate_identity(), Init_ossl_ssl(), ossl_call_client_cert_cb(), ossl_call_session_get_cb(), ossl_call_session_new_cb(), ossl_call_session_remove_cb(), ossl_call_tmp_dh_callback(), ossl_ssl_initialize(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_flush_sessions(), ossl_sslctx_get_session_cache_stats(), ossl_sslctx_setup(), and ssl_renegotiation_cb().
#define ssl_get_error | ( | ssl, | |
ret | |||
) | SSL_get_error((ssl), (ret)) |
Definition at line 1497 of file ossl_ssl.c.
Referenced by ossl_ssl_read_internal(), ossl_ssl_write_internal(), and ossl_start_ssl().
#define TO_SOCKET | ( | s | ) | (s) |
Definition at line 19 of file ossl_ssl.c.
Referenced by ossl_ssl_setup().
Definition at line 313 of file ossl_ssl.c.
References id_i_hostname, mSSL, ossl_ssl_ex_ptr_idx, ossl_x509_new(), Qtrue, rb_attr_get(), rb_funcall(), rb_intern, rb_warning(), RTEST, and tmp_dh_callback_args::ssl_obj.
Referenced by ossl_ssl_verify_callback().
void Init_ossl_ssl | ( | void | ) |
Definition at line 2243 of file ossl_ssl.c.
References cSSLContext, cSSLSocket, DefIVarID, eOSSLError, eSSLError, eSSLErrorWaitReadable, eSSLErrorWaitWritable, ID2SYM, ID_callback_state, id_npn_protocols_encoded, id_tmp_dh_callback, id_tmp_ecdh_callback, Init_ossl_ssl_session(), key, LONG2NUM, mOSSL, mSSL, mSSLExtConfig, name, numberof, ossl_ssl_accept(), ossl_ssl_accept_nonblock(), ossl_ssl_connect(), ossl_ssl_connect_nonblock(), ossl_ssl_def_const, ossl_ssl_ex_ptr_idx, ossl_ssl_ex_store_p, ossl_ssl_ex_vcb_idx, ossl_ssl_get_cert(), ossl_ssl_get_cipher(), ossl_ssl_get_client_ca_list(), ossl_ssl_get_peer_cert(), ossl_ssl_get_peer_cert_chain(), ossl_ssl_get_state(), ossl_ssl_get_verify_result(), ossl_ssl_get_version(), ossl_ssl_initialize(), ossl_ssl_method_tab, ossl_ssl_pending(), ossl_ssl_read(), ossl_ssl_read_nonblock(), ossl_ssl_s_alloc(), ossl_ssl_session_reused(), ossl_ssl_set_session(), ossl_ssl_stop(), ossl_ssl_write(), ossl_ssl_write_nonblock(), ossl_sslctx_flush_sessions(), ossl_sslctx_get_ciphers(), ossl_sslctx_get_options(), ossl_sslctx_get_security_level(), ossl_sslctx_get_session_cache_mode(), ossl_sslctx_get_session_cache_size(), ossl_sslctx_get_session_cache_stats(), ossl_sslctx_s_alloc(), ossl_sslctx_session_add(), ossl_sslctx_session_remove(), ossl_sslctx_set_ciphers(), ossl_sslctx_set_ecdh_curves(), ossl_sslctx_set_options(), ossl_sslctx_set_security_level(), ossl_sslctx_set_session_cache_mode(), ossl_sslctx_set_session_cache_size(), ossl_sslctx_set_ssl_version(), Qfalse, Qtrue, rb_ary_new2, rb_ary_push(), rb_attr(), rb_cIO, rb_cObject, rb_define_alias(), rb_define_alloc_func(), rb_define_class_under(), rb_define_const(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_define_private_method(), rb_eStandardError, rb_f_notimplement(), rb_include_module(), rb_intern, rb_mWaitReadable, rb_mWaitWritable, rb_obj_freeze(), rb_undef_method(), sym_exception, sym_wait_readable, and sym_wait_writable.
Referenced by Init_openssl().
|
static |
Definition at line 1515 of file ossl_ssl.c.
References Qfalse, Qundef, rb_hash_lookup2(), RB_TYPE_P, sym_exception, and T_HASH.
Referenced by ossl_ssl_read_internal(), ossl_ssl_write_internal(), and ossl_start_ssl().
Definition at line 192 of file ossl_ssl.c.
References rsa_blocking_gen_arg::cb, Check_Type, GetPrivPKeyPtr(), GetX509CertPtr(), id_i_client_cert_cb, id_i_context, key, NIL_P, Qnil, rb_ary_entry(), rb_ary_new3, rb_attr_get(), rb_funcall(), rb_intern, and T_ARRAY.
Referenced by ossl_client_cert_cb().
Definition at line 360 of file ossl_ssl.c.
References buf, rsa_blocking_gen_arg::cb, Check_Type, len, NIL_P, ossl_sslctx_session_get_cb(), Qnil, rb_ary_entry(), rb_funcall(), rb_intern, tmp_dh_callback_args::ssl_obj, and T_ARRAY.
Referenced by ossl_sslctx_session_get_cb().
Definition at line 409 of file ossl_ssl.c.
References rsa_blocking_gen_arg::cb, Check_Type, NIL_P, Qnil, rb_ary_entry(), rb_funcall(), rb_intern, tmp_dh_callback_args::ssl_obj, and T_ARRAY.
Referenced by ossl_sslctx_session_new_cb().
Definition at line 459 of file ossl_ssl.c.
References rsa_blocking_gen_arg::cb, Check_Type, id_i_session_remove_cb, NIL_P, Qnil, rb_ary_entry(), rb_attr_get(), rb_funcall(), rb_intern, and T_ARRAY.
Referenced by ossl_sslctx_session_remove_cb().
|
static |
Definition at line 236 of file ossl_ssl.c.
References rsa_blocking_gen_arg::cb, EVP_PKEY_base_id, GetPKeyPtr(), tmp_dh_callback_args::id, INT2NUM, tmp_dh_callback_args::is_export, tmp_dh_callback_args::keylength, NIL_P, NULL, rb_funcall(), rb_intern, tmp_dh_callback_args::ssl_obj, and tmp_dh_callback_args::type.
Referenced by ossl_tmp_dh_callback().
|
static |
Definition at line 210 of file ossl_ssl.c.
References DupPKeyPtr(), DupX509CertPtr(), NIL_P, NULL, ossl_call_client_cert_cb(), ossl_ssl_ex_ptr_idx, RARRAY_AREF, and rb_protect().
Referenced by ossl_sslctx_setup().
Definition at line 1628 of file ossl_ssl.c.
References ossl_ssl_setup(), ossl_start_ssl(), and Qfalse.
Referenced by Init_ossl_ssl().
Definition at line 1658 of file ossl_ssl.c.
References ossl_ssl_setup(), ossl_start_ssl(), and rb_scan_args().
Referenced by Init_ossl_ssl().
Definition at line 961 of file ossl_ssl.c.
References INT2NUM, rb_ary_new2, rb_ary_push(), and rb_str_new2.
Referenced by ossl_ssl_get_cipher(), and ossl_sslctx_get_ciphers().
Definition at line 1580 of file ossl_ssl.c.
References ossl_ssl_setup(), ossl_start_ssl(), and Qfalse.
Referenced by Init_ossl_ssl().
Definition at line 1610 of file ossl_ssl.c.
References ossl_ssl_setup(), ossl_start_ssl(), and rb_scan_args().
Referenced by Init_ossl_ssl().
|
static |
Definition at line 1401 of file ossl_ssl.c.
Definition at line 1912 of file ossl_ssl.c.
References GetSSL, NULL, ossl_x509_new(), and Qnil.
Referenced by Init_ossl_ssl().
Definition at line 2010 of file ossl_ssl.c.
References GetSSL, and ossl_ssl_cipher_to_ary().
Referenced by Init_ossl_ssl().
Definition at line 2158 of file ossl_ssl.c.
References GetSSL, key, ossl_pkey_new(), ossl_x509name_sk2ary(), Qnil, rb_str_new(), and STACK_OF().
Referenced by Init_ossl_ssl().
Definition at line 1938 of file ossl_ssl.c.
References GetSSL, NULL, ossl_x509_new(), and Qnil.
Referenced by Init_ossl_ssl().
Definition at line 1964 of file ossl_ssl.c.
References GetSSL, ossl_x509_new(), Qnil, rb_ary_new2, rb_ary_push(), and STACK_OF().
Referenced by Init_ossl_ssl().
Definition at line 2030 of file ossl_ssl.c.
References GetSSL, rb_str_cat2(), rb_str_new2, and ruby_verbose.
Referenced by Init_ossl_ssl().
Definition at line 2137 of file ossl_ssl.c.
References GetSSL, and INT2NUM.
Referenced by Init_ossl_ssl().
Definition at line 1994 of file ossl_ssl.c.
References GetSSL, and rb_str_new2.
Referenced by Init_ossl_ssl().
Definition at line 1437 of file ossl_ssl.c.
References cSSLContext, eSSLError, GetSSLCTX, id_i_context, id_i_io, id_i_verify_callback, NULL, ossl_raise(), ossl_ssl_ex_ptr_idx, ossl_ssl_ex_vcb_idx, ossl_sslctx_setup(), Qtrue, rb_attr_get(), rb_call_super(), rb_funcall(), rb_intern, rb_ivar_set(), rb_respond_to(), rb_scan_args(), RTYPEDDATA_DATA, ssl_info_cb(), and TypedData_Get_Struct.
Referenced by Init_ossl_ssl().
Definition at line 2052 of file ossl_ssl.c.
References GetSSL, and INT2NUM.
Referenced by Init_ossl_ssl().
Definition at line 1763 of file ossl_ssl.c.
References ossl_ssl_read_internal().
Referenced by Init_ossl_ssl().
Definition at line 1669 of file ossl_ssl.c.
References errno, eSSLError, FPTR_TO_FD, GetOpenFile, GetSSL, id_i_io, len, NIL_P, no_exception_p(), NUM2INT, OBJ_TAINT, ossl_raise(), Qnil, rb_attr_get(), rb_eof_error(), rb_funcall(), rb_intern, rb_io_wait_readable(), rb_io_wait_writable(), rb_scan_args(), rb_str_modify(), rb_str_new(), rb_str_resize(), rb_str_set_len(), rb_sys_fail(), rb_thread_wait_fd(), rb_warning(), read_would_block(), RSTRING_LENINT, RSTRING_PTR, ssl_get_error, ssl_started(), StringValue, sym_wait_readable, sym_wait_writable, and write_would_block().
Referenced by ossl_ssl_read(), and ossl_ssl_read_nonblock().
Definition at line 1782 of file ossl_ssl.c.
References ossl_ssl_read_internal().
Referenced by Init_ossl_ssl().
Definition at line 1415 of file ossl_ssl.c.
References NULL, and TypedData_Wrap_Struct.
Referenced by Init_ossl_ssl().
Definition at line 2068 of file ossl_ssl.c.
References GetSSL, Qfalse, and Qtrue.
Referenced by Init_ossl_ssl().
Definition at line 2084 of file ossl_ssl.c.
References eSSLError, GetSSL, id_i_hostname, NIL_P, NULL, ossl_raise(), rb_ivar_set(), SafeGetSSLSession, and StringValueCStr.
Referenced by Init_ossl_ssl().
Definition at line 1474 of file ossl_ssl.c.
References eSSLError, FPTR_TO_FD, GetOpenFile, GetSSL, id_i_io, ossl_raise(), Qtrue, rb_attr_get(), rb_io_check_readable(), rb_io_check_writable(), ssl_started(), and TO_SOCKET.
Referenced by ossl_ssl_accept(), ossl_ssl_accept_nonblock(), ossl_ssl_connect(), and ossl_ssl_connect_nonblock().
Definition at line 1881 of file ossl_ssl.c.
References GetSSL, ossl_clear_error(), Qnil, and ssl_started().
Referenced by Init_ossl_ssl().
|
static |
Definition at line 334 of file ossl_ssl.c.
References call_verify_certificate_identity(), rsa_blocking_gen_arg::cb, ID_callback_state, id_i_context, id_i_verify_hostname, INT2NUM, ossl_ssl_ex_ptr_idx, ossl_ssl_ex_vcb_idx, ossl_verify_cb_call(), Qtrue, rb_attr_get(), rb_ivar_set(), rb_protect(), RTEST, SSL_is_server, and tmp_dh_callback_args::ssl_obj.
Referenced by ossl_sslctx_setup().
Definition at line 1851 of file ossl_ssl.c.
References ossl_ssl_write_internal(), and Qfalse.
Referenced by Init_ossl_ssl().
Definition at line 1788 of file ossl_ssl.c.
References errno, eSSLError, FPTR_TO_FD, GetOpenFile, GetSSL, id_i_io, INT2NUM, no_exception_p(), ossl_raise(), Qfalse, rb_attr_get(), rb_funcall(), rb_intern, rb_io_wait_readable(), rb_io_wait_writable(), rb_sys_fail(), rb_warning(), read_would_block(), RSTRING_LENINT, RSTRING_PTR, ssl_get_error, ssl_started(), StringValue, sym_wait_readable, sym_wait_writable, and write_would_block().
Referenced by ossl_ssl_write(), and ossl_ssl_write_nonblock().
Definition at line 1864 of file ossl_ssl.c.
References ossl_ssl_write_internal(), and rb_scan_args().
Referenced by Init_ossl_ssl().
|
static |
Definition at line 503 of file ossl_ssl.c.
References rsa_blocking_gen_arg::cb, Check_Type, cSSLContext, DupX509CertPtr(), eSSLError, GetSSL, GetSSLCTX, ID_callback_state, id_i_context, id_i_servername_cb, INT2NUM, NIL_P, NULL, ossl_raise(), ossl_ssl_ex_ptr_idx, ossl_sslctx_setup(), Qnil, rb_ary_entry(), rb_ary_new2, rb_ary_push(), rb_attr_get(), rb_eArgError, rb_funcall(), rb_intern, rb_ivar_set(), rb_obj_is_kind_of(), rb_protect(), rb_str_new2, tmp_dh_callback_args::ssl_obj, and T_ARRAY.
Referenced by ossl_sslctx_setup().
Definition at line 1366 of file ossl_ssl.c.
References GetSSLCTX, NIL_P, NUM2LONG, ossl_raise(), rb_cTime, rb_eArgError, rb_funcall(), rb_intern, rb_obj_is_instance_of(), and rb_scan_args().
Referenced by Init_ossl_ssl().
|
static |
Definition at line 92 of file ossl_ssl.c.
References NULL, and ossl_ssl_ex_store_p.
Definition at line 983 of file ossl_ssl.c.
References GetSSLCTX, ossl_ssl_cipher_to_ary(), Qnil, rb_ary_new(), rb_ary_new2, rb_ary_push(), rb_warning(), SSL_CTX_get_ciphers, and STACK_OF().
Referenced by Init_ossl_ssl().
Definition at line 736 of file ossl_ssl.c.
References GetSSLCTX, and LONG2NUM.
Referenced by Init_ossl_ssl().
Definition at line 1150 of file ossl_ssl.c.
References GetSSLCTX, INT2FIX, and INT2NUM.
Referenced by Init_ossl_ssl().
Definition at line 1246 of file ossl_ssl.c.
References GetSSLCTX, and LONG2NUM.
Referenced by Init_ossl_ssl().
Definition at line 1283 of file ossl_ssl.c.
References GetSSLCTX, and LONG2NUM.
Referenced by Init_ossl_ssl().
Definition at line 1334 of file ossl_ssl.c.
References GetSSLCTX, hash(), ID2SYM, LONG2NUM, rb_hash_aset(), rb_hash_new(), and rb_intern.
Referenced by Init_ossl_ssl().
Definition at line 111 of file ossl_ssl.c.
References eSSLError, ossl_raise(), ossl_ssl_ex_ptr_idx, RTYPEDDATA_DATA, and TypedData_Wrap_Struct.
Referenced by Init_ossl_ssl().
Definition at line 1210 of file ossl_ssl.c.
References GetSSLCTX, Qfalse, Qtrue, and SafeGetSSLSession.
Referenced by Init_ossl_ssl().
|
static |
Definition at line 378 of file ossl_ssl.c.
References cSSLSession, ID_callback_state, INT2NUM, NULL, ossl_call_session_get_cb(), OSSL_Debug, ossl_ssl_ex_ptr_idx, rb_ary_new2, rb_ary_push(), rb_ivar_set(), rb_obj_is_instance_of(), rb_protect(), rb_str_new(), SafeGetSSLSession, and tmp_dh_callback_args::ssl_obj.
Referenced by ossl_call_session_get_cb(), and ossl_sslctx_setup().
|
static |
Definition at line 424 of file ossl_ssl.c.
References cSSLSession, DATA_PTR, ID_callback_state, INT2NUM, NULL, ossl_call_session_new_cb(), OSSL_Debug, ossl_ssl_ex_ptr_idx, rb_ary_new2, rb_ary_push(), rb_ivar_set(), rb_obj_alloc(), rb_protect(), tmp_dh_callback_args::ssl_obj, and SSL_SESSION_up_ref.
Referenced by ossl_sslctx_setup().
Definition at line 1228 of file ossl_ssl.c.
References GetSSLCTX, Qfalse, Qtrue, and SafeGetSSLSession.
Referenced by Init_ossl_ssl().
|
static |
Definition at line 473 of file ossl_ssl.c.
References cSSLSession, DATA_PTR, NULL, ossl_call_session_remove_cb(), OSSL_Debug, ossl_ssl_ex_ptr_idx, rb_ary_new2, rb_ary_push(), rb_obj_alloc(), rb_protect(), and SSL_SESSION_up_ref.
Referenced by ossl_sslctx_setup().
Definition at line 1021 of file ossl_ssl.c.
References eSSLError, GetSSLCTX, NIL_P, ossl_raise(), Qnil, RARRAY_LEN, rb_ary_entry(), rb_check_frozen, rb_str_append(), rb_str_cat2(), rb_str_new(), rb_String(), RB_TYPE_P, StringValue, StringValueCStr, and T_ARRAY.
Referenced by Init_ossl_ssl().
Definition at line 1085 of file ossl_ssl.c.
References EC_curve_nist2nid, eSSLError, GetSSLCTX, nid, NULL, ossl_raise(), RARRAY_AREF, RARRAY_LEN, rb_check_frozen, rb_str_split(), RSTRING_PTR, and StringValueCStr.
Referenced by Init_ossl_ssl().
Definition at line 747 of file ossl_ssl.c.
References GetSSLCTX, NIL_P, NUM2LONG, rb_check_frozen, and SSL_CTX_clear_options.
Referenced by Init_ossl_ssl().
Definition at line 1184 of file ossl_ssl.c.
References GetSSLCTX, NUM2INT, ossl_raise(), rb_check_frozen, and rb_eNotImpError.
Referenced by Init_ossl_ssl().
Definition at line 1264 of file ossl_ssl.c.
References GetSSLCTX, and NUM2LONG.
Referenced by Init_ossl_ssl().
Definition at line 1300 of file ossl_ssl.c.
References GetSSLCTX, and NUM2LONG.
Referenced by Init_ossl_ssl().
Definition at line 157 of file ossl_ssl.c.
References eSSLError, GetSSLCTX, name, numberof, ossl_raise(), ossl_ssl_method_tab, PRIsVALUE, rb_eArgError, rb_sym2str, RB_TYPE_P, StringValueCStr, T_SYMBOL, and version.
Referenced by Init_ossl_ssl().
Definition at line 775 of file ossl_ssl.c.
References eSSLError, GetPrivPKeyPtr(), GetSSLCTX, GetX509CertPtr(), GetX509StorePtr(), id_i_alpn_protocols, id_i_alpn_select_cb, id_i_ca_file, id_i_ca_path, id_i_cert, id_i_cert_store, id_i_client_ca, id_i_client_cert_cb, id_i_extra_chain_cert, id_i_key, id_i_npn_protocols, id_i_npn_select_cb, id_i_servername_cb, id_i_session_get_cb, id_i_session_id_context, id_i_session_new_cb, id_i_session_remove_cb, id_i_timeout, id_i_tmp_ecdh_callback, id_i_verify_depth, id_i_verify_mode, id_npn_protocols_encoded, key, NIL_P, NULL, NUM2INT, NUM2LONG, OBJ_FROZEN, ossl_client_cert_cb(), OSSL_Debug, ossl_raise(), ossl_ssl_ex_store_p, ossl_ssl_verify_callback(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_tmp_dh_callback(), Qnil, Qtrue, RARRAY_AREF, RARRAY_LEN, rb_attr_get(), rb_block_call(), rb_intern, rb_ivar_set(), rb_obj_freeze(), RB_TYPE_P, rb_warn(), rb_warning(), RSTRING_LENINT, RSTRING_PTR, RTEST, StringValue, StringValueCStr, T_ARRAY, val, and X509_STORE_up_ref.
Referenced by ossl_ssl_initialize(), and ossl_sslctx_add_extra_chain_cert_i().
Definition at line 1524 of file ossl_ssl.c.
References errno, eSSLError, FPTR_TO_FD, func, GetOpenFile, GetSSL, ID_callback_state, id_i_io, NIL_P, no_exception_p(), NUM2INT, ossl_clear_error(), ossl_raise(), Qfalse, Qnil, rb_attr_get(), rb_io_wait_readable(), rb_io_wait_writable(), rb_ivar_set(), rb_jump_tag(), rb_sys_fail(), read_would_block(), ssl_get_error, sym_wait_readable, sym_wait_writable, and write_would_block().
Referenced by ossl_ssl_accept(), ossl_ssl_accept_nonblock(), ossl_ssl_connect(), and ossl_ssl_connect_nonblock().
|
static |
Definition at line 256 of file ossl_ssl.c.
References tmp_dh_callback_args::id, ID_callback_state, id_tmp_dh_callback, id_tmp_ecdh_callback, INT2NUM, tmp_dh_callback_args::is_export, tmp_dh_callback_args::keylength, NULL, ossl_call_tmp_dh_callback(), ossl_ssl_ex_ptr_idx, rb_ivar_set(), rb_protect(), tmp_dh_callback_args::ssl_obj, and tmp_dh_callback_args::type.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 1508 of file ossl_ssl.c.
References eSSLErrorWaitReadable, and ossl_raise().
Referenced by ossl_ssl_read_internal(), ossl_ssl_write_internal(), and ossl_start_ssl().
|
static |
Definition at line 723 of file ossl_ssl.c.
References SSL_is_server, and ssl_renegotiation_cb().
Referenced by ossl_ssl_initialize().
|
static |
Definition at line 579 of file ossl_ssl.c.
References rsa_blocking_gen_arg::cb, eSSLError, ID_callback_state, id_i_alpn_select_cb, id_i_context, id_i_npn_select_cb, id_i_renegotiation_cb, INT2NUM, len, NIL_P, NULL, ossl_raise(), ossl_ssl_ex_ptr_idx, Qnil, rb_ary_new(), rb_ary_push(), rb_attr_get(), rb_each(), rb_funcall(), rb_intern, rb_iterate(), rb_ivar_set(), rb_protect(), rb_str_buf_cat(), rb_str_new(), RSTRING_LEN, RSTRING_LENINT, RSTRING_PTR, tmp_dh_callback_args::ssl_obj, and StringValue.
Referenced by ssl_info_cb().
|
inlinestatic |
Definition at line 1394 of file ossl_ssl.c.
Referenced by ossl_ssl_read_internal(), ossl_ssl_setup(), ossl_ssl_stop(), and ossl_ssl_write_internal().
|
static |
Definition at line 1501 of file ossl_ssl.c.
References eSSLErrorWaitWritable, and ossl_raise().
Referenced by ossl_ssl_read_internal(), ossl_ssl_write_internal(), and ossl_start_ssl().
VALUE cSSLContext |
Definition at line 29 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_ssl_initialize(), and ossl_sslctx_add_extra_chain_cert_i().
VALUE cSSLSocket |
Definition at line 30 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and ossl_ssl_session_initialize().
|
static |
Definition at line 28 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_ssl_initialize(), ossl_ssl_read_internal(), ossl_ssl_set_session(), ossl_ssl_setup(), ossl_ssl_write_internal(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_s_alloc(), ossl_sslctx_set_ciphers(), ossl_sslctx_set_ecdh_curves(), ossl_sslctx_set_ssl_version(), ossl_sslctx_setup(), ossl_start_ssl(), and ssl_renegotiation_cb().
|
static |
Definition at line 32 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and read_would_block().
|
static |
Definition at line 33 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and write_would_block().
SSL_METHOD*(* func) (void) |
Definition at line 54 of file ossl_ssl.c.
Referenced by backtrace_collect(), call_cfunc_0(), call_cfunc_1(), call_cfunc_10(), call_cfunc_11(), call_cfunc_12(), call_cfunc_13(), call_cfunc_14(), call_cfunc_15(), call_cfunc_2(), call_cfunc_3(), call_cfunc_4(), call_cfunc_5(), call_cfunc_6(), call_cfunc_7(), call_cfunc_8(), call_cfunc_9(), call_cfunc_m1(), call_cfunc_m2(), call_without_gvl(), check_cfunc(), class_instance_method_list(), console_emulator_p(), default_handler(), define_filetest_function(), do_checksum(), enum_count(), enum_find_index(), enum_uniq(), exec_end_call_list(), exec_recursive(), extract_fd(), f_divide(), f_format(), f_round_common(), fiddle_handle_sym(), gen_ivar_each(), get_final_path_unknown(), get_freefunc(), get_special_folder(), id2key(), init_env(), insn_data_to_s_detail(), lazy_uniq(), lazy_zip(), method_for_self(), num_funcall_bit_1(), num_funcall_op_0(), num_funcall_op_1(), obj_ivar_each(), onig_add_end_call(), onig_foreach_name(), onig_name_to_backref_number(), onig_number_of_names(), ossl_start_ssl(), parser_here_document(), parser_heredoc_identifier(), parser_parse_string(), parser_set_compile_option_flag(), rb_add_method_cfunc(), rb_catch(), rb_catch_obj(), rb_define_alloc_func(), rb_define_global_function(), rb_define_method(), rb_define_method_id(), rb_define_module_function(), rb_define_private_method(), rb_define_protected_method(), rb_define_singleton_method(), rb_enc_foreach_name(), rb_exec_recursive(), rb_exec_recursive_outer(), rb_exec_recursive_paired(), rb_exec_recursive_paired_outer(), rb_fiber_new(), rb_fiddle_ptr_new2(), rb_get_values_at(), rb_glob(), rb_hash_foreach(), rb_hash_update_by(), rb_iseqw_line_trace_each(), rb_ivar_foreach(), rb_mutex_synchronize(), rb_objspace_reachable_objects_from(), rb_objspace_reachable_objects_from_root(), rb_proc_new(), rb_stat_inspect(), rb_str_locktmp_ensure(), rb_thread_call_without_gvl(), rb_thread_call_without_gvl2(), rb_thread_io_blocking_region(), rb_vm_ifunc_new(), rb_vm_ifunc_proc_new(), rb_w32_asynchronize(), rb_zlib_version(), remove_invalid_alternative_data(), rollback_ensure_stack(), rsock_bsock_send(), rsock_connect(), ruby_brace_glob_with_enc(), ruby_vm_at_exit(), ruby_vm_run_at_exit_hooks(), set_unblock_function(), setup_method_cfunc_struct(), sig_trap(), signal_ignored(), st_foreach(), st_foreach_check(), st_foreach_safe(), sys_enc_warning_in(), trace_object_allocations(), trap_handler(), ttymode(), and vm_caller_setup_arg_block().
|
static |
Definition at line 35 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_ssl_verify_callback(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_start_ssl(), ossl_tmp_dh_callback(), and ssl_renegotiation_cb().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup(), and ssl_renegotiation_cb().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_call_client_cert_cb(), and ossl_sslctx_setup().
|
static |
Definition at line 47 of file ossl_ssl.c.
Referenced by ossl_call_client_cert_cb(), ossl_ssl_initialize(), ossl_ssl_verify_callback(), ossl_sslctx_add_extra_chain_cert_i(), and ssl_renegotiation_cb().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 47 of file ossl_ssl.c.
Referenced by call_verify_certificate_identity(), and ossl_ssl_set_session().
|
static |
Definition at line 47 of file ossl_ssl.c.
Referenced by ossl_ssl_initialize(), ossl_ssl_read_internal(), ossl_ssl_setup(), ossl_ssl_write_internal(), and ossl_start_ssl().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup(), and ssl_renegotiation_cb().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ssl_renegotiation_cb().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_add_extra_chain_cert_i(), and ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_call_session_remove_cb(), and ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_ssl_initialize().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_ssl_verify_callback().
|
static |
Definition at line 39 of file ossl_ssl.c.
Referenced by ossl_sslctx_setup().
|
static |
Definition at line 35 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and ossl_sslctx_setup().
|
static |
Definition at line 35 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and ossl_tmp_dh_callback().
|
static |
Definition at line 35 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and ossl_tmp_dh_callback().
VALUE mSSL |
Definition at line 26 of file ossl_ssl.c.
Referenced by call_verify_certificate_identity(), Init_ossl_ssl(), and Init_ossl_ssl_session().
|
static |
Definition at line 27 of file ossl_ssl.c.
Referenced by Init_ossl_ssl().
const char* name |
Definition at line 53 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and ossl_sslctx_set_ssl_version().
|
static |
Definition at line 89 of file ossl_ssl.c.
Referenced by call_verify_certificate_identity(), Init_ossl_ssl(), ossl_client_cert_cb(), ossl_ssl_initialize(), ossl_ssl_verify_callback(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_s_alloc(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_tmp_dh_callback(), and ssl_renegotiation_cb().
|
static |
Definition at line 88 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_sslctx_free(), and ossl_sslctx_setup().
|
static |
Definition at line 87 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_ssl_initialize(), and ossl_ssl_verify_callback().
const { ... } ossl_ssl_method_tab[] |
Referenced by Init_ossl_ssl(), and ossl_sslctx_set_ssl_version().
const rb_data_type_t ossl_ssl_type |
Definition at line 1406 of file ossl_ssl.c.
|
static |
Definition at line 102 of file ossl_ssl.c.
|
static |
Definition at line 37 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), and no_exception_p().
|
static |
Definition at line 37 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), and ossl_start_ssl().
|
static |
Definition at line 37 of file ossl_ssl.c.
Referenced by Init_ossl_ssl(), ossl_ssl_read_internal(), ossl_ssl_write_internal(), and ossl_start_ssl().
int version |
Definition at line 55 of file ossl_ssl.c.
Referenced by etc_systmpdir(), foletypelib_s_typelibs(), foletypelib_version(), Init_dbm(), Init_readline(), Init_version(), oletypelib_search_registry2(), ossl_sslctx_set_ssl_version(), ossl_x509_set_version(), ossl_x509crl_set_version(), ossl_x509req_get_version(), ossl_x509req_set_version(), parse(), proc_options(), process_options(), rb_call_inits(), and StartSockets().