Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Data Structures | |
struct | ossl_verify_cb_args |
Macros | |
#define | NewX509Store(klass) TypedData_Wrap_Struct((klass), &ossl_x509store_type, 0) |
#define | SetX509Store(obj, st) |
#define | GetX509Store(obj, st) |
#define | SafeGetX509Store(obj, st) |
#define | NewX509StCtx(klass) TypedData_Wrap_Struct((klass), &ossl_x509stctx_type, 0) |
#define | SetX509StCtx(obj, ctx) |
#define | GetX509StCtx(obj, ctx) |
#define | SafeGetX509StCtx(obj, storep) |
Variables | |
static int | stctx_ex_verify_cb_idx |
static int | store_ex_verify_cb_idx |
VALUE | cX509Store |
VALUE | cX509StoreContext |
VALUE | eX509StoreError |
static const rb_data_type_t | ossl_x509store_type |
static const rb_data_type_t | ossl_x509stctx_type |
#define GetX509StCtx | ( | obj, | |
ctx | |||
) |
Definition at line 39 of file ossl_x509store.c.
Referenced by ossl_x509stctx_get_chain(), ossl_x509stctx_get_curr_cert(), ossl_x509stctx_get_curr_crl(), ossl_x509stctx_get_err(), ossl_x509stctx_get_err_depth(), ossl_x509stctx_get_err_string(), ossl_x509stctx_initialize(), ossl_x509stctx_set_error(), ossl_x509stctx_set_flags(), ossl_x509stctx_set_purpose(), ossl_x509stctx_set_time(), ossl_x509stctx_set_trust(), and ossl_x509stctx_verify().
#define GetX509Store | ( | obj, | |
st | |||
) |
Definition at line 20 of file ossl_x509store.c.
Referenced by ossl_x509store_add_cert(), ossl_x509store_add_crl(), ossl_x509store_add_file(), ossl_x509store_add_path(), ossl_x509store_initialize(), ossl_x509store_set_default_paths(), ossl_x509store_set_flags(), ossl_x509store_set_purpose(), ossl_x509store_set_trust(), and ossl_x509store_set_vfy_cb().
#define NewX509StCtx | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_x509stctx_type, 0) |
Definition at line 31 of file ossl_x509store.c.
Referenced by ossl_x509stctx_alloc(), and ossl_x509stctx_new().
#define NewX509Store | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_x509store_type, 0) |
Definition at line 12 of file ossl_x509store.c.
Referenced by ossl_x509store_alloc(), and ossl_x509store_new().
#define SafeGetX509StCtx | ( | obj, | |
storep | |||
) |
Definition at line 45 of file ossl_x509store.c.
#define SafeGetX509Store | ( | obj, | |
st | |||
) |
Definition at line 26 of file ossl_x509store.c.
Referenced by DupX509StorePtr(), GetX509StorePtr(), and ossl_x509stctx_initialize().
#define SetX509StCtx | ( | obj, | |
ctx | |||
) |
Definition at line 33 of file ossl_x509store.c.
Referenced by ossl_x509stctx_alloc(), and ossl_x509stctx_new().
#define SetX509Store | ( | obj, | |
st | |||
) |
Definition at line 14 of file ossl_x509store.c.
Referenced by ossl_x509store_alloc(), and ossl_x509store_new().
|
static |
Definition at line 63 of file ossl_x509store.c.
References ossl_verify_cb_args::preverify_ok, ossl_verify_cb_args::proc, rb_funcall(), rb_intern, and ossl_verify_cb_args::store_ctx.
Referenced by ossl_verify_cb_call().
X509_STORE* DupX509StorePtr | ( | VALUE | obj | ) |
Definition at line 155 of file ossl_x509store.c.
References SafeGetX509Store, and X509_STORE_up_ref.
X509_STORE* GetX509StorePtr | ( | VALUE | obj | ) |
Definition at line 145 of file ossl_x509store.c.
References SafeGetX509Store.
Referenced by ossl_ocspbres_verify(), ossl_ocspreq_verify(), ossl_pkcs7_verify(), and ossl_sslctx_setup().
void Init_ossl_x509store | ( | void | ) |
Definition at line 801 of file ossl_x509store.c.
References cX509Store, cX509StoreContext, eOSSLError, eX509StoreError, mOSSL, mX509, ossl_raise(), ossl_x509stctx_alloc(), ossl_x509stctx_get_chain(), ossl_x509stctx_get_curr_cert(), ossl_x509stctx_get_curr_crl(), ossl_x509stctx_get_err(), ossl_x509stctx_get_err_depth(), ossl_x509stctx_get_err_string(), ossl_x509stctx_initialize(), ossl_x509stctx_set_error(), ossl_x509stctx_set_flags(), ossl_x509stctx_set_purpose(), ossl_x509stctx_set_time(), ossl_x509stctx_set_trust(), ossl_x509stctx_verify(), ossl_x509store_add_cert(), ossl_x509store_add_crl(), ossl_x509store_add_file(), ossl_x509store_add_path(), ossl_x509store_alloc(), ossl_x509store_initialize(), ossl_x509store_set_default_paths(), ossl_x509store_set_flags(), ossl_x509store_set_purpose(), ossl_x509store_set_time(), ossl_x509store_set_trust(), ossl_x509store_set_vfy_cb(), ossl_x509store_verify(), Qfalse, rb_attr(), rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_eStandardError, rb_intern, rb_undef_method(), stctx_ex_verify_cb_idx, store_ex_verify_cb_idx, and X509_STORE_get_ex_new_index.
Referenced by Init_ossl_x509().
int ossl_verify_cb_call | ( | VALUE | proc, |
int | ok, | ||
X509_STORE_CTX * | ctx | ||
) |
Definition at line 70 of file ossl_x509store.c.
References call_verify_cb_proc(), NIL_P, NULL, ossl_x509stctx_new(), ossl_verify_cb_args::preverify_ok, ossl_verify_cb_args::proc, Qfalse, Qnil, Qtrue, rb_protect(), rb_set_errinfo(), rb_warn(), RTYPEDDATA_DATA, and ossl_verify_cb_args::store_ctx.
Referenced by ossl_ssl_verify_callback(), and x509store_verify_cb().
Definition at line 519 of file ossl_x509store.c.
References eX509StoreError, NewX509StCtx, NULL, ossl_raise(), and SetX509StCtx.
Referenced by Init_ossl_x509store().
|
static |
Definition at line 508 of file ossl_x509store.c.
References X509_STORE_CTX_get0_cert, and X509_STORE_CTX_get0_untrusted.
Referenced by ossl_x509store_verify().
Definition at line 608 of file ossl_x509store.c.
References GetX509StCtx, NULL, OSSL_Debug, ossl_x509_new(), Qnil, rb_ary_new(), rb_ary_new2, rb_ary_push(), STACK_OF(), and X509_STORE_CTX_get0_chain.
Referenced by Init_ossl_x509store(), ossl_x509store_add_crl(), and ossl_x509store_verify().
Definition at line 699 of file ossl_x509store.c.
References GetX509StCtx, and ossl_x509_new().
Referenced by Init_ossl_x509store().
Definition at line 713 of file ossl_x509store.c.
References GetX509StCtx, ossl_x509crl_new(), Qnil, and X509_STORE_CTX_get0_current_crl.
Referenced by Init_ossl_x509store().
Definition at line 638 of file ossl_x509store.c.
References GetX509StCtx, and INT2NUM.
Referenced by Init_ossl_x509store(), ossl_x509store_add_crl(), and ossl_x509store_verify().
Definition at line 685 of file ossl_x509store.c.
References GetX509StCtx, and INT2NUM.
Referenced by Init_ossl_x509store().
Definition at line 669 of file ossl_x509store.c.
References err, GetX509StCtx, and rb_str_new2.
Referenced by Init_ossl_x509store(), ossl_x509store_add_crl(), and ossl_x509store_verify().
Definition at line 554 of file ossl_x509store.c.
References DupX509CertPtr(), eX509StoreError, GetX509StCtx, NIL_P, NULL, ossl_raise(), ossl_x509stctx_set_time(), rb_iv_get(), rb_iv_set(), rb_scan_args(), SafeGetX509Store, and STACK_OF().
Referenced by Init_ossl_x509store().
|
static |
Definition at line 534 of file ossl_x509store.c.
References cX509StoreContext, NewX509StCtx, ossl_x509stctx_set_flags(), ossl_x509stctx_set_purpose(), ossl_x509stctx_set_time(), ossl_x509stctx_set_trust(), and SetX509StCtx.
Referenced by ossl_verify_cb_call().
Definition at line 652 of file ossl_x509store.c.
References err, GetX509StCtx, and NUM2INT.
Referenced by Init_ossl_x509store().
Definition at line 733 of file ossl_x509store.c.
References f, GetX509StCtx, and NUM2LONG.
Referenced by Init_ossl_x509store(), and ossl_x509stctx_new().
Definition at line 751 of file ossl_x509store.c.
References GetX509StCtx, and NUM2INT.
Referenced by Init_ossl_x509store(), and ossl_x509stctx_new().
Definition at line 785 of file ossl_x509store.c.
References GetX509StCtx, NUM2LONG, and rb_Integer().
Referenced by Init_ossl_x509store(), ossl_x509stctx_initialize(), and ossl_x509stctx_new().
Definition at line 767 of file ossl_x509store.c.
References GetX509StCtx, and NUM2INT.
Referenced by Init_ossl_x509store(), and ossl_x509stctx_new().
Definition at line 584 of file ossl_x509store.c.
References eX509CertError, GetX509StCtx, NULL, ossl_clear_error(), ossl_raise(), Qfalse, Qtrue, rb_iv_get(), and stctx_ex_verify_cb_idx.
Referenced by Init_ossl_x509store().
Definition at line 416 of file ossl_x509store.c.
References eX509StoreError, GetX509CertPtr(), GetX509Store, NULL, and ossl_raise().
Referenced by Init_ossl_x509store().
Definition at line 437 of file ossl_x509store.c.
References eX509StoreError, GetX509CRLPtr(), GetX509Store, NULL, ossl_raise(), ossl_x509stctx_get_chain(), ossl_x509stctx_get_err(), and ossl_x509stctx_get_err_string().
Referenced by Init_ossl_x509store().
Definition at line 329 of file ossl_x509store.c.
References eX509StoreError, GetX509Store, NULL, ossl_clear_error(), ossl_raise(), Qnil, rb_check_safe_obj(), and StringValueCStr.
Referenced by Init_ossl_x509store().
Definition at line 365 of file ossl_x509store.c.
References eX509StoreError, GetX509Store, NULL, ossl_raise(), Qnil, rb_check_safe_obj(), and StringValueCStr.
Referenced by Init_ossl_x509store().
Definition at line 184 of file ossl_x509store.c.
References eX509StoreError, NewX509Store, NULL, ossl_raise(), and SetX509Store.
Referenced by Init_ossl_x509store().
|
static |
Definition at line 117 of file ossl_x509store.c.
Definition at line 221 of file ossl_x509store.c.
References GetX509Store, NULL, ossl_x509store_set_vfy_cb(), Qnil, rb_iv_set(), X509_STORE_set_verify_cb, and x509store_verify_cb().
Referenced by Init_ossl_x509store().
VALUE ossl_x509store_new | ( | X509_STORE * | store | ) |
Definition at line 134 of file ossl_x509store.c.
References cX509Store, NewX509Store, and SetX509Store.
Definition at line 397 of file ossl_x509store.c.
References eX509StoreError, GetX509Store, NULL, ossl_raise(), and Qnil.
Referenced by Init_ossl_x509store().
Definition at line 251 of file ossl_x509store.c.
References f, GetX509Store, and NUM2LONG.
Referenced by Init_ossl_x509store().
Definition at line 281 of file ossl_x509store.c.
References GetX509Store, and NUM2INT.
Referenced by Init_ossl_x509store().
Definition at line 315 of file ossl_x509store.c.
References rb_iv_set().
Referenced by Init_ossl_x509store().
Definition at line 297 of file ossl_x509store.c.
References GetX509Store, and NUM2INT.
Referenced by Init_ossl_x509store().
Definition at line 202 of file ossl_x509store.c.
References GetX509Store, rb_iv_set(), store_ex_verify_cb_idx, and X509_STORE_set_ex_data.
Referenced by Init_ossl_x509store(), and ossl_x509store_initialize().
Definition at line 471 of file ossl_x509store.c.
References cX509StoreContext, ossl_x509stctx_free(), ossl_x509stctx_get_chain(), ossl_x509stctx_get_err(), ossl_x509stctx_get_err_string(), ossl_verify_cb_args::proc, rb_block_given_p(), rb_block_proc(), rb_funcall(), rb_intern, rb_iv_get(), rb_iv_set(), rb_scan_args(), and result.
Referenced by Init_ossl_x509store().
|
static |
Definition at line 169 of file ossl_x509store.c.
References ossl_verify_cb_call(), ossl_verify_cb_args::proc, stctx_ex_verify_cb_idx, store_ex_verify_cb_idx, X509_STORE_CTX_get0_store, and X509_STORE_get_ex_data.
Referenced by ossl_x509store_initialize().
VALUE cX509Store |
Definition at line 112 of file ossl_x509store.c.
Referenced by Init_ossl_x509store(), and ossl_x509store_new().
VALUE cX509StoreContext |
Definition at line 113 of file ossl_x509store.c.
Referenced by Init_ossl_x509store(), ossl_x509stctx_new(), and ossl_x509store_verify().
VALUE eX509StoreError |
Definition at line 114 of file ossl_x509store.c.
Referenced by Init_ossl_x509store(), ossl_x509stctx_alloc(), ossl_x509stctx_initialize(), ossl_x509store_add_cert(), ossl_x509store_add_crl(), ossl_x509store_add_file(), ossl_x509store_add_path(), ossl_x509store_alloc(), and ossl_x509store_set_default_paths().
|
static |
Definition at line 496 of file ossl_x509store.c.
|
static |
Definition at line 122 of file ossl_x509store.c.
|
static |
Definition at line 53 of file ossl_x509store.c.
Referenced by Init_ossl_x509store(), ossl_x509stctx_verify(), and x509store_verify_cb().
|
static |
Definition at line 53 of file ossl_x509store.c.
Referenced by Init_ossl_x509store(), ossl_x509store_set_vfy_cb(), and x509store_verify_cb().