Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ruby/config.h"
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 | |
#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().
#define BN_GENCB_get_arg | ( | cb | ) | (cb)->arg |
Definition at line 93 of file openssl_missing.h.
Referenced by ossl_generate_cb_2().
#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().
#define EC_curve_nist2nid ossl_EC_curve_nist2nid |
Definition at line 66 of file openssl_missing.h.
Referenced by ossl_sslctx_set_ecdh_curves().
#define EVP_CIPHER_CTX_copy ossl_EVP_CIPHER_CTX_copy |
Definition at line 37 of file openssl_missing.h.
Referenced by ossl_cipher_copy().
#define EVP_CIPHER_CTX_free ossl_EVP_CIPHER_CTX_free |
Definition at line 23 of file openssl_missing.h.
Referenced by ossl_cipher_free().
#define EVP_CIPHER_CTX_new ossl_EVP_CIPHER_CTX_new |
Definition at line 18 of file openssl_missing.h.
#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().
#define EVP_MD_CTX_new EVP_MD_CTX_create |
Definition at line 97 of file openssl_missing.h.
Referenced by ossl_digest_copy(), ossl_digest_initialize(), ossl_digest_new(), ossl_pkey_sign(), and ossl_pkey_verify().
#define EVP_PKEY_base_id | ( | pkey | ) | EVP_PKEY_type((pkey)->type) |
Definition at line 32 of file openssl_missing.h.
Referenced by ossl_call_tmp_dh_callback(), ossl_dh_initialize_copy(), ossl_dh_new(), ossl_dsa_initialize_copy(), ossl_dsa_new(), ossl_rsa_initialize_copy(), ossl_rsa_new(), pkey_check_public_key(), and pkey_new0().
#define EVP_PKEY_get0 | ( | pk | ) | (pk->pkey.ptr) |
Definition at line 59 of file openssl_missing.h.
Referenced by pkey_check_public_key().
#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().
#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().
#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().
#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().
#define i2d_ASN1_SET_ANY | ( | sk, | |
x | |||
) |
Definition at line 54 of file openssl_missing.h.
Referenced by ossl_x509attr_get_value().
#define IMPL_KEY_ACCESSOR2 | ( | _type, | |
_group, | |||
a1, | |||
a2, | |||
_fail_cond | |||
) |
Definition at line 198 of file openssl_missing.h.
#define IMPL_KEY_ACCESSOR3 | ( | _type, | |
_group, | |||
a1, | |||
a2, | |||
a3, | |||
_fail_cond | |||
) |
Definition at line 207 of file openssl_missing.h.
#define IMPL_PKEY_GETTER | ( | _type, | |
_name | |||
) |
Definition at line 195 of file openssl_missing.h.
#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().
#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().
#define SSL_CTX_get_ciphers | ( | ctx | ) | ((ctx)->cipher_list) |
Definition at line 166 of file openssl_missing.h.
Referenced by ossl_sslctx_get_ciphers().
#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().
#define SSL_SESSION_get_protocol_version | ( | s | ) | ((s)->ssl_version) |
Referenced by ossl_SSL_SESSION_cmp().
#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().
#define X509_CRL_get0_lastUpdate | ( | x | ) | X509_CRL_get_lastUpdate(x) |
Referenced by ossl_x509crl_get_last_update().
#define X509_CRL_get0_nextUpdate | ( | x | ) | X509_CRL_get_nextUpdate(x) |
Referenced by ossl_x509crl_get_next_update().
#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().
#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().
#define X509_get0_notAfter | ( | x | ) | X509_get_notAfter(x) |
Referenced by ossl_x509_get_not_after().
#define X509_get0_notBefore | ( | x | ) | X509_get_notBefore(x) |
Referenced by ossl_x509_get_not_before().
#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().
#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().
#define X509_REVOKED_dup | ( | rev | ) |
Definition at line 71 of file openssl_missing.h.
Referenced by DupX509RevokedPtr(), ossl_x509revoked_initialize_copy(), and ossl_x509revoked_new().
#define X509_REVOKED_get0_revocationDate | ( | x | ) | ((x)->revocationDate) |
Definition at line 142 of file openssl_missing.h.
Referenced by ossl_x509revoked_get_time().
#define X509_REVOKED_get0_serialNumber | ( | x | ) | ((x)->serialNumber) |
Definition at line 138 of file openssl_missing.h.
Referenced by ossl_x509revoked_get_serial().
#define X509_STORE_CTX_get0_cert | ( | x | ) | ((x)->cert) |
Definition at line 154 of file openssl_missing.h.
Referenced by ossl_x509stctx_free().
#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().
#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().
#define X509_STORE_CTX_get0_store | ( | x | ) | ((x)->ctx) |
Definition at line 76 of file openssl_missing.h.
Referenced by x509store_verify_cb().
#define X509_STORE_CTX_get0_untrusted | ( | x | ) | ((x)->untrusted) |
Definition at line 150 of file openssl_missing.h.
Referenced by ossl_x509stctx_free().
#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().
#define X509_STORE_get_ex_new_index | ( | l, | |
p, | |||
newf, | |||
dupf, | |||
freef | |||
) |
Definition at line 122 of file openssl_missing.h.
Referenced by Init_ossl_x509store().
#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().
#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().
#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().
#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().
IMPL_KEY_ACCESSOR3 | ( | RSA | , |
key | , | ||
n | , | ||
e | , | ||
d | , | ||
(n==obj->n||e==obj->e||(obj->d &&d==obj->d)) | |||
) |
int ossl_EC_curve_nist2nid | ( | const char * | ) |
Definition at line 115 of file openssl_missing.c.
References nid, and nist_curves.
int ossl_EVP_CIPHER_CTX_copy | ( | EVP_CIPHER_CTX * | , |
const EVP_CIPHER_CTX * | |||
) |
Definition at line 55 of file openssl_missing.c.
References memcpy.
void ossl_EVP_CIPHER_CTX_free | ( | EVP_CIPHER_CTX * | ) |
Definition at line 38 of file openssl_missing.c.
EVP_CIPHER_CTX* ossl_EVP_CIPHER_CTX_new | ( | void | ) |
Definition at line 26 of file openssl_missing.c.
References NULL.
int ossl_HMAC_CTX_copy | ( | HMAC_CTX * | out, |
HMAC_CTX * | in | ||
) |
Definition at line 74 of file openssl_missing.c.
References memcpy.
void ossl_HMAC_CTX_free | ( | HMAC_CTX * | ) |
Definition at line 142 of file openssl_missing.c.
HMAC_CTX* ossl_HMAC_CTX_new | ( | void | ) |
Definition at line 130 of file openssl_missing.c.
References NULL.
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.
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.
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 |
Definition at line 228 of file openssl_missing.h.
Referenced by Init_ossl_dh(), Init_ossl_dsa(), ossl_dh_compute_key(), ossl_dh_get_params(), ossl_dsa_get_params(), and ossl_dsa_verify().
pub_key |
Definition at line 228 of file openssl_missing.h.
Referenced by Init_ossl_dh(), Init_ossl_dsa(), ossl_dh_compute_key(), ossl_dh_get_params(), ossl_dsa_get_params(), and ossl_dsa_verify().