Ruby  2.4.2p198(2017-09-14revision59899)
Macros | Functions | Variables
openssl_missing.h File Reference
#include "ruby/config.h"
Include dependency graph for openssl_missing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EVP_CIPHER_CTX_new   ossl_EVP_CIPHER_CTX_new
 
#define EVP_CIPHER_CTX_free   ossl_EVP_CIPHER_CTX_free
 
#define SSL_CTX_clear_options(ctx, op)   ((ctx)->options &= ~(op))
 
#define EVP_PKEY_base_id(pkey)   EVP_PKEY_type((pkey)->type)
 
#define EVP_CIPHER_CTX_copy   ossl_EVP_CIPHER_CTX_copy
 
#define HMAC_CTX_copy   ossl_HMAC_CTX_copy
 
#define X509_STORE_CTX_get0_current_crl(x)   ((x)->current_crl)
 
#define X509_STORE_set_verify_cb   X509_STORE_set_verify_cb_func
 
#define i2d_ASN1_SET_ANY(sk, x)
 
#define EVP_PKEY_get0(pk)   (pk->pkey.ptr)
 
#define EC_curve_nist2nid   ossl_EC_curve_nist2nid
 
#define X509_REVOKED_dup(rev)
 
#define X509_STORE_CTX_get0_store(x)   ((x)->ctx)
 
#define SSL_is_server(s)   ((s)->server)
 
#define BN_GENCB_new()   ((BN_GENCB *)OPENSSL_malloc(sizeof(BN_GENCB)))
 
#define BN_GENCB_free(cb)   OPENSSL_free(cb)
 
#define BN_GENCB_get_arg(cb)   (cb)->arg
 
#define EVP_MD_CTX_new   EVP_MD_CTX_create
 
#define EVP_MD_CTX_free   EVP_MD_CTX_destroy
 
#define HMAC_CTX_new   ossl_HMAC_CTX_new
 
#define HMAC_CTX_free   ossl_HMAC_CTX_free
 
#define X509_STORE_get_ex_data(x, idx)   CRYPTO_get_ex_data(&(x)->ex_data, (idx))
 
#define X509_STORE_set_ex_data(x, idx, data)   CRYPTO_set_ex_data(&(x)->ex_data, (idx), (data))
 
#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef)
 
#define X509_CRL_get0_signature   ossl_X509_CRL_get0_signature
 
#define X509_REQ_get0_signature   ossl_X509_REQ_get0_signature
 
#define X509_REVOKED_get0_serialNumber(x)   ((x)->serialNumber)
 
#define X509_REVOKED_get0_revocationDate(x)   ((x)->revocationDate)
 
#define X509_get0_tbs_sigalg(x)   ((x)->cert_info->signature)
 
#define X509_STORE_CTX_get0_untrusted(x)   ((x)->untrusted)
 
#define X509_STORE_CTX_get0_cert(x)   ((x)->cert)
 
#define X509_STORE_CTX_get0_chain(ctx)   X509_STORE_CTX_get_chain(ctx)
 
#define OCSP_SINGLERESP_get0_id(s)   ((s)->certId)
 
#define SSL_CTX_get_ciphers(ctx)   ((ctx)->cipher_list)
 
#define X509_up_ref(x)   CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509)
 
#define X509_CRL_up_ref(x)   CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509_CRL);
 
#define X509_STORE_up_ref(x)   CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509_STORE);
 
#define SSL_SESSION_up_ref(x)   CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_SSL_SESSION);
 
#define EVP_PKEY_up_ref(x)   CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_EVP_PKEY);
 
#define IMPL_PKEY_GETTER(_type, _name)
 
#define IMPL_KEY_ACCESSOR2(_type, _group, a1, a2, _fail_cond)
 
#define IMPL_KEY_ACCESSOR3(_type, _group, a1, a2, a3, _fail_cond)
 
#define X509_get0_notBefore(x)   X509_get_notBefore(x)
 
#define X509_get0_notAfter(x)   X509_get_notAfter(x)
 
#define X509_CRL_get0_lastUpdate(x)   X509_CRL_get_lastUpdate(x)
 
#define X509_CRL_get0_nextUpdate(x)   X509_CRL_get_nextUpdate(x)
 
#define SSL_SESSION_get_protocol_version(s)   ((s)->ssl_version)
 

Functions

EVP_CIPHER_CTX * ossl_EVP_CIPHER_CTX_new (void)
 
void ossl_EVP_CIPHER_CTX_free (EVP_CIPHER_CTX *)
 
int ossl_EVP_CIPHER_CTX_copy (EVP_CIPHER_CTX *, const EVP_CIPHER_CTX *)
 
int ossl_HMAC_CTX_copy (HMAC_CTX *out, HMAC_CTX *in)
 
int ossl_EC_curve_nist2nid (const char *)
 
HMAC_CTX * ossl_HMAC_CTX_new (void)
 
void ossl_HMAC_CTX_free (HMAC_CTX *)
 
void ossl_X509_CRL_get0_signature (const X509_CRL *, const ASN1_BIT_STRING **, const X509_ALGOR **)
 
void ossl_X509_REQ_get0_signature (const X509_REQ *, const ASN1_BIT_STRING **, const X509_ALGOR **)
 
 IMPL_KEY_ACCESSOR3 (RSA, key, n, e, d,(n==obj->n||e==obj->e||(obj->d &&d==obj->d))) IMPL_KEY_ACCESSOR2(DSA
 

Variables

 key
 
 pub_key
 
 priv_key
 

Macro Definition Documentation

◆ BN_GENCB_free

#define BN_GENCB_free (   cb)    OPENSSL_free(cb)

Definition at line 89 of file openssl_missing.h.

Referenced by dh_generate(), dsa_generate(), and rsa_generate().

◆ BN_GENCB_get_arg

#define BN_GENCB_get_arg (   cb)    (cb)->arg

Definition at line 93 of file openssl_missing.h.

Referenced by ossl_generate_cb_2().

◆ BN_GENCB_new

#define BN_GENCB_new ( )    ((BN_GENCB *)OPENSSL_malloc(sizeof(BN_GENCB)))

Definition at line 85 of file openssl_missing.h.

Referenced by dh_generate(), dsa_generate(), and rsa_generate().

◆ EC_curve_nist2nid

#define EC_curve_nist2nid   ossl_EC_curve_nist2nid

Definition at line 66 of file openssl_missing.h.

Referenced by ossl_sslctx_set_ecdh_curves().

◆ EVP_CIPHER_CTX_copy

#define EVP_CIPHER_CTX_copy   ossl_EVP_CIPHER_CTX_copy

Definition at line 37 of file openssl_missing.h.

Referenced by ossl_cipher_copy().

◆ EVP_CIPHER_CTX_free

#define EVP_CIPHER_CTX_free   ossl_EVP_CIPHER_CTX_free

Definition at line 23 of file openssl_missing.h.

Referenced by ossl_cipher_free().

◆ EVP_CIPHER_CTX_new

#define EVP_CIPHER_CTX_new   ossl_EVP_CIPHER_CTX_new

Definition at line 18 of file openssl_missing.h.

◆ EVP_MD_CTX_free

#define EVP_MD_CTX_free   EVP_MD_CTX_destroy

Definition at line 101 of file openssl_missing.h.

Referenced by ossl_pkey_sign(), and ossl_pkey_verify().

◆ EVP_MD_CTX_new

#define EVP_MD_CTX_new   EVP_MD_CTX_create

◆ EVP_PKEY_base_id

#define EVP_PKEY_base_id (   pkey)    EVP_PKEY_type((pkey)->type)

◆ EVP_PKEY_get0

#define EVP_PKEY_get0 (   pk)    (pk->pkey.ptr)

Definition at line 59 of file openssl_missing.h.

Referenced by pkey_check_public_key().

◆ EVP_PKEY_up_ref

#define EVP_PKEY_up_ref (   x)    CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_EVP_PKEY);

Definition at line 190 of file openssl_missing.h.

Referenced by DupPKeyPtr().

◆ HMAC_CTX_copy

#define HMAC_CTX_copy   ossl_HMAC_CTX_copy

Definition at line 42 of file openssl_missing.h.

Referenced by hmac_final(), and ossl_hmac_copy().

◆ HMAC_CTX_free

#define HMAC_CTX_free   ossl_HMAC_CTX_free

Definition at line 111 of file openssl_missing.h.

Referenced by hmac_final(), and ossl_hmac_free().

◆ HMAC_CTX_new

#define HMAC_CTX_new   ossl_HMAC_CTX_new

Definition at line 106 of file openssl_missing.h.

Referenced by hmac_final(), and ossl_hmac_alloc().

◆ i2d_ASN1_SET_ANY

#define i2d_ASN1_SET_ANY (   sk,
 
)
Value:
i2d_ASN1_SET_OF_ASN1_TYPE((sk), (x), \
i2d_ASN1_TYPE, V_ASN1_SET, V_ASN1_UNIVERSAL, 0)

Definition at line 54 of file openssl_missing.h.

Referenced by ossl_x509attr_get_value().

◆ IMPL_KEY_ACCESSOR2

#define IMPL_KEY_ACCESSOR2 (   _type,
  _group,
  a1,
  a2,
  _fail_cond 
)
Value:
static inline void _type##_get0_##_group(_type *obj, const BIGNUM **a1, const BIGNUM **a2) { \
if (a1) *a1 = obj->a1; \
if (a2) *a2 = obj->a2; } \
static inline int _type##_set0_##_group(_type *obj, BIGNUM *a1, BIGNUM *a2) { \
if (_fail_cond) return 0; \
BN_clear_free(obj->a1); obj->a1 = a1; \
BN_clear_free(obj->a2); obj->a2 = a2; \
return 1; }

Definition at line 198 of file openssl_missing.h.

◆ IMPL_KEY_ACCESSOR3

#define IMPL_KEY_ACCESSOR3 (   _type,
  _group,
  a1,
  a2,
  a3,
  _fail_cond 
)
Value:
static inline void _type##_get0_##_group(_type *obj, const BIGNUM **a1, const BIGNUM **a2, const BIGNUM **a3) { \
if (a1) *a1 = obj->a1; \
if (a2) *a2 = obj->a2; \
if (a3) *a3 = obj->a3; } \
static inline int _type##_set0_##_group(_type *obj, BIGNUM *a1, BIGNUM *a2, BIGNUM *a3) { \
if (_fail_cond) return 0; \
BN_clear_free(obj->a1); obj->a1 = a1; \
BN_clear_free(obj->a2); obj->a2 = a2; \
BN_clear_free(obj->a3); obj->a3 = a3; \
return 1; }

Definition at line 207 of file openssl_missing.h.

◆ IMPL_PKEY_GETTER

#define IMPL_PKEY_GETTER (   _type,
  _name 
)
Value:
static inline _type *EVP_PKEY_get0_##_type(EVP_PKEY *pkey) { \
return pkey->pkey._name; }

Definition at line 195 of file openssl_missing.h.

◆ OCSP_SINGLERESP_get0_id

#define OCSP_SINGLERESP_get0_id (   s)    ((s)->certId)

Definition at line 162 of file openssl_missing.h.

Referenced by ossl_ocspbres_get_status(), and ossl_ocspsres_get_certid().

◆ SSL_CTX_clear_options

#define SSL_CTX_clear_options (   ctx,
  op 
)    ((ctx)->options &= ~(op))

Definition at line 27 of file openssl_missing.h.

Referenced by ossl_sslctx_set_options().

◆ SSL_CTX_get_ciphers

#define SSL_CTX_get_ciphers (   ctx)    ((ctx)->cipher_list)

Definition at line 166 of file openssl_missing.h.

Referenced by ossl_sslctx_get_ciphers().

◆ SSL_is_server

#define SSL_is_server (   s)    ((s)->server)

Definition at line 80 of file openssl_missing.h.

Referenced by ossl_ssl_verify_callback(), and ssl_info_cb().

◆ SSL_SESSION_get_protocol_version

#define SSL_SESSION_get_protocol_version (   s)    ((s)->ssl_version)

Referenced by ossl_SSL_SESSION_cmp().

◆ SSL_SESSION_up_ref

#define SSL_SESSION_up_ref (   x)    CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_SSL_SESSION);

Definition at line 185 of file openssl_missing.h.

Referenced by ossl_sslctx_session_new_cb(), and ossl_sslctx_session_remove_cb().

◆ X509_CRL_get0_lastUpdate

#define X509_CRL_get0_lastUpdate (   x)    X509_CRL_get_lastUpdate(x)

◆ X509_CRL_get0_nextUpdate

#define X509_CRL_get0_nextUpdate (   x)    X509_CRL_get_nextUpdate(x)

◆ X509_CRL_get0_signature

#define X509_CRL_get0_signature   ossl_X509_CRL_get0_signature

Definition at line 129 of file openssl_missing.h.

Referenced by ossl_x509crl_get_signature_algorithm().

◆ X509_CRL_up_ref

#define X509_CRL_up_ref (   x)    CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509_CRL);

Definition at line 175 of file openssl_missing.h.

Referenced by DupX509CRLPtr().

◆ X509_get0_notAfter

#define X509_get0_notAfter (   x)    X509_get_notAfter(x)

Referenced by ossl_x509_get_not_after().

◆ X509_get0_notBefore

#define X509_get0_notBefore (   x)    X509_get_notBefore(x)

◆ X509_get0_tbs_sigalg

#define X509_get0_tbs_sigalg (   x)    ((x)->cert_info->signature)

Definition at line 146 of file openssl_missing.h.

Referenced by ossl_x509_get_signature_algorithm().

◆ X509_REQ_get0_signature

#define X509_REQ_get0_signature   ossl_X509_REQ_get0_signature

Definition at line 134 of file openssl_missing.h.

Referenced by ossl_x509req_get_signature_algorithm().

◆ X509_REVOKED_dup

#define X509_REVOKED_dup (   rev)
Value:
(X509_REVOKED *)ASN1_dup((i2d_of_void *)i2d_X509_REVOKED, \
(d2i_of_void *)d2i_X509_REVOKED, (char *)(rev))

Definition at line 71 of file openssl_missing.h.

Referenced by DupX509RevokedPtr(), ossl_x509revoked_initialize_copy(), and ossl_x509revoked_new().

◆ X509_REVOKED_get0_revocationDate

#define X509_REVOKED_get0_revocationDate (   x)    ((x)->revocationDate)

Definition at line 142 of file openssl_missing.h.

Referenced by ossl_x509revoked_get_time().

◆ X509_REVOKED_get0_serialNumber

#define X509_REVOKED_get0_serialNumber (   x)    ((x)->serialNumber)

Definition at line 138 of file openssl_missing.h.

Referenced by ossl_x509revoked_get_serial().

◆ X509_STORE_CTX_get0_cert

#define X509_STORE_CTX_get0_cert (   x)    ((x)->cert)

Definition at line 154 of file openssl_missing.h.

Referenced by ossl_x509stctx_free().

◆ X509_STORE_CTX_get0_chain

#define X509_STORE_CTX_get0_chain (   ctx)    X509_STORE_CTX_get_chain(ctx)

Definition at line 158 of file openssl_missing.h.

Referenced by ossl_x509stctx_get_chain().

◆ X509_STORE_CTX_get0_current_crl

#define X509_STORE_CTX_get0_current_crl (   x)    ((x)->current_crl)

Definition at line 46 of file openssl_missing.h.

Referenced by ossl_x509stctx_get_curr_crl().

◆ X509_STORE_CTX_get0_store

#define X509_STORE_CTX_get0_store (   x)    ((x)->ctx)

Definition at line 76 of file openssl_missing.h.

Referenced by x509store_verify_cb().

◆ X509_STORE_CTX_get0_untrusted

#define X509_STORE_CTX_get0_untrusted (   x)    ((x)->untrusted)

Definition at line 150 of file openssl_missing.h.

Referenced by ossl_x509stctx_free().

◆ X509_STORE_get_ex_data

#define X509_STORE_get_ex_data (   x,
  idx 
)    CRYPTO_get_ex_data(&(x)->ex_data, (idx))

Definition at line 115 of file openssl_missing.h.

Referenced by x509store_verify_cb().

◆ X509_STORE_get_ex_new_index

#define X509_STORE_get_ex_new_index (   l,
  p,
  newf,
  dupf,
  freef 
)
Value:
CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
(newf), (dupf), (freef))

Definition at line 122 of file openssl_missing.h.

Referenced by Init_ossl_x509store().

◆ X509_STORE_set_ex_data

#define X509_STORE_set_ex_data (   x,
  idx,
  data 
)    CRYPTO_set_ex_data(&(x)->ex_data, (idx), (data))

Definition at line 120 of file openssl_missing.h.

Referenced by ossl_x509store_set_vfy_cb().

◆ X509_STORE_set_verify_cb

#define X509_STORE_set_verify_cb   X509_STORE_set_verify_cb_func

Definition at line 50 of file openssl_missing.h.

Referenced by ossl_x509store_initialize().

◆ X509_STORE_up_ref

#define X509_STORE_up_ref (   x)    CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509_STORE);

Definition at line 180 of file openssl_missing.h.

Referenced by DupX509StorePtr(), and ossl_sslctx_setup().

◆ X509_up_ref

#define X509_up_ref (   x)    CRYPTO_add(&(x)->references, 1, CRYPTO_LOCK_X509)

Definition at line 170 of file openssl_missing.h.

Referenced by DupX509CertPtr().

Function Documentation

◆ IMPL_KEY_ACCESSOR3()

IMPL_KEY_ACCESSOR3 ( RSA  ,
key  ,
,
,
,
(n==obj->n||e==obj->e||(obj->d &&d==obj->d))   
)

◆ ossl_EC_curve_nist2nid()

int ossl_EC_curve_nist2nid ( const char *  )

Definition at line 115 of file openssl_missing.c.

References nid, and nist_curves.

◆ ossl_EVP_CIPHER_CTX_copy()

int ossl_EVP_CIPHER_CTX_copy ( EVP_CIPHER_CTX *  ,
const EVP_CIPHER_CTX *   
)

Definition at line 55 of file openssl_missing.c.

References memcpy.

◆ ossl_EVP_CIPHER_CTX_free()

void ossl_EVP_CIPHER_CTX_free ( EVP_CIPHER_CTX *  )

Definition at line 38 of file openssl_missing.c.

◆ ossl_EVP_CIPHER_CTX_new()

EVP_CIPHER_CTX* ossl_EVP_CIPHER_CTX_new ( void  )

Definition at line 26 of file openssl_missing.c.

References NULL.

◆ ossl_HMAC_CTX_copy()

int ossl_HMAC_CTX_copy ( HMAC_CTX *  out,
HMAC_CTX *  in 
)

Definition at line 74 of file openssl_missing.c.

References memcpy.

◆ ossl_HMAC_CTX_free()

void ossl_HMAC_CTX_free ( HMAC_CTX *  )

Definition at line 142 of file openssl_missing.c.

◆ ossl_HMAC_CTX_new()

HMAC_CTX* ossl_HMAC_CTX_new ( void  )

Definition at line 130 of file openssl_missing.c.

References NULL.

◆ ossl_X509_CRL_get0_signature()

void ossl_X509_CRL_get0_signature ( const X509_CRL *  ,
const ASN1_BIT_STRING **  ,
const X509_ALGOR **   
)

Definition at line 153 of file openssl_missing.c.

References NULL.

◆ ossl_X509_REQ_get0_signature()

void ossl_X509_REQ_get0_signature ( const X509_REQ *  ,
const ASN1_BIT_STRING **  ,
const X509_ALGOR **   
)

Definition at line 165 of file openssl_missing.c.

References NULL.

Variable Documentation

◆ key

key

Definition at line 228 of file openssl_missing.h.

Referenced by args_setup_kw_parameters(), check_exec_env_i(), check_exec_options_i(), check_exec_options_i_extract(), check_exec_redirect(), compare_posix_sh(), compile_flip_flop(), constat_delete(), count_imemo_objects_i(), cto_i(), cv_i(), default_proc_for_compat_func(), each_pair_i_fast(), env_fetch(), env_select(), env_shift(), fc_i(), fdbm_clear(), fdbm_delete(), fdbm_delete_if(), fdbm_each_key(), fdbm_each_pair(), fdbm_each_value(), fdbm_empty_p(), fdbm_fetch(), fdbm_has_key(), fdbm_has_value(), fdbm_invert(), fdbm_key(), fdbm_keys(), fdbm_length(), fdbm_select(), fdbm_shift(), fdbm_store(), fdbm_to_a(), fdbm_to_hash(), fdbm_values(), fgdbm_clear(), fgdbm_empty_p(), fgdbm_has_key(), fgdbm_length(), fgdbm_store(), fgdbm_values(), fill_envp_buf_i(), flatten_i(), force_chain_object(), fsdbm_clear(), fsdbm_delete(), fsdbm_delete_if(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), fsdbm_empty_p(), fsdbm_fetch(), fsdbm_has_key(), fsdbm_has_value(), fsdbm_invert(), fsdbm_key(), fsdbm_keys(), fsdbm_length(), fsdbm_select(), fsdbm_shift(), fsdbm_store(), fsdbm_to_a(), fsdbm_to_hash(), fsdbm_values(), gc_mark_roots(), gen_ivar_each(), generate_json_object(), generic_ivar_remove(), getnext(), getnkey(), hash2ptr_dispparams(), hash_aset(), hash_foreach_iter(), ibf_dump_object_hash_i(), ibf_load_object_hash(), id2key(), if(), Init_ossl_ssl(), init_perm(), iseq_build_from_ary_body(), iseq_build_kw(), iseq_data_to_ary(), ivar_i(), key_i(), list_id_table_foreach_values(), list_id_table_insert(), list_ids_bsearch(), load_unlock(), match_named_captures_iter(), obj_ivar_each(), oletypelib_path(), onig_st_insert_strend(), onig_st_lookup_strend(), ossl_call_client_cert_cb(), ossl_cipher_init(), ossl_cipher_pkcs5_keyivgen(), ossl_cipher_set_key(), ossl_dh_compute_key(), ossl_dsa_verify(), ossl_ocspbres_sign(), ossl_ocspreq_sign(), ossl_pkcs12_initialize(), ossl_pkcs12_s_create(), ossl_pkcs7_decrypt(), ossl_pkcs7_s_sign(), ossl_rsa_to_public_key(), ossl_spki_set_public_key(), ossl_ssl_get_client_ca_list(), ossl_sslctx_setup(), ossl_x509_set_public_key(), ossl_x509req_set_public_key(), ossl_x509req_to_text(), r_fixup_compat(), r_object0(), rb_enc_aliases_enc_i(), rb_execarg_parent_start1(), rb_execarg_run_options(), rb_free_generic_ivar(), rb_gdbm_delete(), rb_gdbm_fetch2(), rb_gdbm_firstkey(), rb_gdbm_nextkey(), rb_get_kwargs(), rb_hash_assoc(), rb_hash_fetch_m(), rb_hash_s_create(), rb_hash_update_block_callback(), rb_hash_update_callback(), rb_hash_update_func_callback(), rb_id_serial_to_id(), rb_iseq_parameters(), rb_reserved_word(), rb_struct_each_pair(), rb_thread_start_timer_thread(), reachable_object_from_i(), remove_duplicate_keys(), run_final(), set_state_ivars(), shift_i_safe(), socklist_delete(), splpage(), tr_setup_table(), unknown_keyword_error(), update_char_offset(), vm_stat(), and yaml_document_append_mapping_pair().

◆ priv_key

priv_key

◆ pub_key

pub_key