Ruby  2.4.2p198(2017-09-14revision59899)
Macros | Functions | Variables
ossl_ssl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GetSSL(obj, ssl)
 
#define GetSSLSession(obj, sess)
 
#define SafeGetSSLSession(obj, sess)
 

Functions

void Init_ossl_ssl (void)
 
void Init_ossl_ssl_session (void)
 

Variables

const rb_data_type_t ossl_ssl_type
 
const rb_data_type_t ossl_ssl_session_type
 
VALUE mSSL
 
VALUE cSSLSocket
 
VALUE cSSLSession
 

Macro Definition Documentation

◆ GetSSL

#define GetSSL (   obj,
  ssl 
)

◆ GetSSLSession

#define GetSSLSession (   obj,
  sess 
)
Value:
do { \
TypedData_Get_Struct((obj), SSL_SESSION, &ossl_ssl_session_type, (sess)); \
if (!(sess)) { \
ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
} \
} while (0)
const rb_data_type_t ossl_ssl_session_type
VALUE rb_eRuntimeError
Definition: error.c:761

Definition at line 20 of file ossl_ssl.h.

Referenced by ossl_ssl_session_eq(), ossl_ssl_session_get_id(), ossl_ssl_session_get_time(), ossl_ssl_session_get_timeout(), ossl_ssl_session_set_time(), ossl_ssl_session_set_timeout(), ossl_ssl_session_to_der(), ossl_ssl_session_to_pem(), and ossl_ssl_session_to_text().

◆ SafeGetSSLSession

#define SafeGetSSLSession (   obj,
  sess 
)
Value:
do { \
OSSL_Check_Kind((obj), cSSLSession); \
GetSSLSession((obj), (sess)); \
} while (0)
VALUE cSSLSession

Definition at line 27 of file ossl_ssl.h.

Referenced by ossl_ssl_session_eq(), ossl_ssl_session_initialize_copy(), ossl_ssl_set_session(), ossl_sslctx_session_add(), ossl_sslctx_session_get_cb(), and ossl_sslctx_session_remove().

Function Documentation

◆ Init_ossl_ssl()

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().

◆ Init_ossl_ssl_session()

void Init_ossl_ssl_session ( void  )

Variable Documentation

◆ cSSLSession

VALUE cSSLSession

◆ cSSLSocket

VALUE cSSLSocket

Definition at line 30 of file ossl_ssl.c.

Referenced by Init_ossl_ssl(), and ossl_ssl_session_initialize().

◆ mSSL

VALUE mSSL

◆ ossl_ssl_session_type

const rb_data_type_t ossl_ssl_session_type

Definition at line 16 of file ossl_ssl_session.c.

◆ ossl_ssl_type

const rb_data_type_t ossl_ssl_type

Definition at line 1406 of file ossl_ssl.c.