Ruby  2.5.0dev(2017-10-22revision60238)
Macros | Functions | Variables
ossl_ssl.h File Reference

Go to the source code of this file.

Macros

#define GetSSL(obj, ssl)
 
#define GetSSLSession(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 
)
Value:
do { \
TypedData_Get_Struct((obj), SSL, &ossl_ssl_type, (ssl)); \
if (!(ssl)) { \
ossl_raise(rb_eRuntimeError, "SSL is not initialized"); \
} \
} while (0)
const rb_data_type_t ossl_ssl_type
Definition: ossl_ssl.c:1399
VALUE rb_eRuntimeError
Definition: error.c:800

Definition at line 13 of file ossl_ssl.h.

◆ 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:800

Definition at line 20 of file ossl_ssl.h.

Function Documentation

◆ Init_ossl_ssl()

void Init_ossl_ssl ( void  )

◆ Init_ossl_ssl_session()

void Init_ossl_ssl_session ( void  )

Variable Documentation

◆ cSSLSession

VALUE cSSLSession

Definition at line 7 of file ossl_ssl_session.c.

Referenced by Init_ossl_ssl_session().

◆ cSSLSocket

VALUE cSSLSocket

Definition at line 30 of file ossl_ssl.c.

◆ mSSL

VALUE mSSL

Definition at line 26 of file ossl_ssl.c.

Referenced by Init_ossl_ssl_session().

◆ 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 1399 of file ossl_ssl.c.