Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewX509(klass) TypedData_Wrap_Struct((klass), &ossl_x509_type, 0) |
#define | SetX509(obj, x509) |
#define | GetX509(obj, x509) |
#define | SafeGetX509(obj, x509) |
Variables | |
VALUE | cX509Cert |
VALUE | eX509CertError |
static const rb_data_type_t | ossl_x509_type |
#define GetX509 | ( | obj, | |
x509 | |||
) |
Definition at line 20 of file ossl_x509cert.c.
Referenced by ossl_x509_add_extension(), ossl_x509_check_private_key(), ossl_x509_copy(), ossl_x509_get_extensions(), ossl_x509_get_issuer(), ossl_x509_get_not_after(), ossl_x509_get_not_before(), ossl_x509_get_public_key(), ossl_x509_get_serial(), ossl_x509_get_signature_algorithm(), ossl_x509_get_subject(), ossl_x509_get_version(), ossl_x509_set_extensions(), ossl_x509_set_issuer(), ossl_x509_set_not_after(), ossl_x509_set_not_before(), ossl_x509_set_public_key(), ossl_x509_set_serial(), ossl_x509_set_subject(), ossl_x509_set_version(), ossl_x509_sign(), ossl_x509_to_der(), ossl_x509_to_pem(), ossl_x509_to_text(), and ossl_x509_verify().
#define NewX509 | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_x509_type, 0) |
Definition at line 12 of file ossl_x509cert.c.
Referenced by ossl_x509_alloc(), ossl_x509_new(), and ossl_x509_new_from_file().
#define SafeGetX509 | ( | obj, | |
x509 | |||
) |
Definition at line 26 of file ossl_x509cert.c.
Referenced by DupX509CertPtr(), GetX509CertPtr(), and ossl_x509_copy().
#define SetX509 | ( | obj, | |
x509 | |||
) |
Definition at line 14 of file ossl_x509cert.c.
Referenced by ossl_x509_alloc(), ossl_x509_new(), and ossl_x509_new_from_file().
X509* DupX509CertPtr | ( | VALUE | obj | ) |
Definition at line 119 of file ossl_x509cert.c.
References SafeGetX509, and X509_up_ref.
Referenced by ossl_client_cert_cb(), ossl_sslctx_add_extra_chain_cert_i(), and ossl_x509stctx_initialize().
X509* GetX509CertPtr | ( | VALUE | obj | ) |
Definition at line 109 of file ossl_x509cert.c.
References SafeGetX509.
Referenced by ossl_call_client_cert_cb(), ossl_ocspbres_sign(), ossl_ocspcid_initialize(), ossl_ocspreq_sign(), ossl_pkcs12_s_create(), ossl_pkcs7_add_certificate(), ossl_pkcs7_decrypt(), ossl_pkcs7_s_sign(), ossl_pkcs7ri_initialize(), ossl_pkcs7si_initialize(), ossl_sslctx_setup(), ossl_x509extfactory_set_issuer_cert(), ossl_x509extfactory_set_subject_cert(), and ossl_x509store_add_cert().
void Init_ossl_x509cert | ( | void | ) |
Definition at line 726 of file ossl_x509cert.c.
References cX509Cert, eOSSLError, eX509CertError, mOSSL, mX509, ossl_x509_add_extension(), ossl_x509_alloc(), ossl_x509_check_private_key(), ossl_x509_copy(), ossl_x509_get_extensions(), ossl_x509_get_issuer(), ossl_x509_get_not_after(), ossl_x509_get_not_before(), ossl_x509_get_public_key(), ossl_x509_get_serial(), ossl_x509_get_signature_algorithm(), ossl_x509_get_subject(), ossl_x509_get_version(), ossl_x509_initialize(), ossl_x509_inspect(), ossl_x509_set_extensions(), ossl_x509_set_issuer(), ossl_x509_set_not_after(), ossl_x509_set_not_before(), ossl_x509_set_public_key(), ossl_x509_set_serial(), ossl_x509_set_subject(), ossl_x509_set_version(), ossl_x509_sign(), ossl_x509_to_der(), ossl_x509_to_pem(), ossl_x509_to_text(), ossl_x509_verify(), rb_cObject, rb_define_alias(), rb_define_alloc_func(), rb_define_class_under(), rb_define_copy_func, rb_define_method(), rb_define_module(), rb_define_module_under(), and rb_eStandardError.
Referenced by Init_ossl_x509().
Definition at line 694 of file ossl_x509cert.c.
References eX509CertError, GetX509, GetX509ExtPtr(), NULL, and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 134 of file ossl_x509cert.c.
References eX509CertError, NewX509, NULL, ossl_raise(), and SetX509.
Referenced by Init_ossl_x509cert().
Definition at line 618 of file ossl_x509cert.c.
References GetPrivPKeyPtr(), GetX509, ossl_clear_error(), Qfalse, and Qtrue.
Referenced by Init_ossl_x509cert().
Definition at line 179 of file ossl_x509cert.c.
References DATA_PTR, eX509CertError, GetX509, NULL, ossl_raise(), rb_check_frozen, and SafeGetX509.
Referenced by Init_ossl_x509cert().
|
static |
Definition at line 38 of file ossl_x509cert.c.
Definition at line 639 of file ossl_x509cert.c.
References count, GetX509, ossl_x509ext_new(), rb_ary_new(), rb_ary_new2, and rb_ary_push().
Referenced by Init_ossl_x509cert().
Definition at line 421 of file ossl_x509cert.c.
References eX509CertError, GetX509, name, NULL, ossl_raise(), and ossl_x509name_new().
Referenced by Init_ossl_x509cert(), and ossl_x509_inspect().
Definition at line 495 of file ossl_x509cert.c.
References asn1time_to_time(), eX509CertError, GetX509, NULL, ossl_raise(), and X509_get0_notAfter.
Referenced by Init_ossl_x509cert(), and ossl_x509_inspect().
Definition at line 456 of file ossl_x509cert.c.
References asn1time_to_time(), eX509CertError, GetX509, NULL, ossl_raise(), and X509_get0_notBefore.
Referenced by Init_ossl_x509cert(), and ossl_x509_inspect().
Definition at line 534 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, ossl_pkey_new(), and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 333 of file ossl_x509cert.c.
References asn1integer_to_num(), and GetX509.
Referenced by Init_ossl_x509cert(), and ossl_x509_inspect().
Definition at line 362 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, ossl_membio2str(), ossl_raise(), and X509_get0_tbs_sigalg.
Referenced by Init_ossl_x509cert().
Definition at line 386 of file ossl_x509cert.c.
References eX509CertError, GetX509, name, NULL, ossl_raise(), and ossl_x509name_new().
Referenced by Init_ossl_x509cert(), and ossl_x509_inspect().
Definition at line 298 of file ossl_x509cert.c.
References GetX509, and LONG2NUM.
Referenced by Init_ossl_x509cert().
Definition at line 153 of file ossl_x509cert.c.
References DATA_PTR, eX509CertError, NULL, OSSL_BIO_reset, ossl_obj2bio(), ossl_raise(), ossl_to_der_if_possible(), and rb_scan_args().
Referenced by Init_ossl_x509cert().
Definition at line 709 of file ossl_x509cert.c.
References ossl_x509_get_issuer(), ossl_x509_get_not_after(), ossl_x509_get_not_before(), ossl_x509_get_serial(), ossl_x509_get_subject(), PRIsVALUE, rb_obj_class(), and rb_sprintf().
Referenced by Init_ossl_x509cert().
VALUE ossl_x509_new | ( | X509 * | x509 | ) |
Definition at line 55 of file ossl_x509cert.c.
References cX509Cert, eX509CertError, NewX509, NULL, ossl_raise(), and SetX509.
Referenced by call_verify_certificate_identity(), ossl_pkcs12_initialize(), ossl_ssl_get_cert(), ossl_ssl_get_peer_cert(), ossl_ssl_get_peer_cert_chain(), ossl_x509req_to_text(), ossl_x509stctx_get_chain(), and ossl_x509stctx_get_curr_cert().
Definition at line 75 of file ossl_x509cert.c.
References cX509Cert, errno, eX509CertError, fileno, NewX509, NULL, ossl_raise(), rb_check_safe_obj(), rb_fd_fix_cloexec(), SetX509, strerror(), and StringValueCStr.
Definition at line 665 of file ossl_x509cert.c.
References Check_Type, cX509Ext, eX509CertError, GetX509, GetX509ExtPtr(), NULL, OSSL_Check_Kind, ossl_raise(), RARRAY_AREF, RARRAY_LEN, and T_ARRAY.
Referenced by Init_ossl_x509cert().
Definition at line 439 of file ossl_x509cert.c.
References eX509CertError, GetX509, GetX509NamePtr(), NULL, and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 513 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, ossl_raise(), and ossl_x509_time_adjust().
Referenced by Init_ossl_x509cert().
Definition at line 474 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, ossl_raise(), and ossl_x509_time_adjust().
Referenced by Init_ossl_x509cert().
Definition at line 552 of file ossl_x509cert.c.
References eX509CertError, GetPKeyPtr(), GetX509, key, NULL, and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 347 of file ossl_x509cert.c.
References GetX509, and num_to_asn1integer().
Referenced by Init_ossl_x509cert().
Definition at line 404 of file ossl_x509cert.c.
References eX509CertError, GetX509, GetX509NamePtr(), NULL, and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 312 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, NUM2LONG, ossl_raise(), and version.
Referenced by Init_ossl_x509cert().
Definition at line 569 of file ossl_x509cert.c.
References eX509CertError, GetDigestPtr(), GetPrivPKeyPtr(), GetX509, NULL, and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 203 of file ossl_x509cert.c.
References eX509CertError, GetX509, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_x509cert().
Definition at line 227 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, ossl_membio2str(), and ossl_raise().
Referenced by Init_ossl_x509cert().
Definition at line 251 of file ossl_x509cert.c.
References eX509CertError, GetX509, NULL, ossl_membio2str(), ossl_raise(), and ossl_x509req_new().
Referenced by Init_ossl_x509cert().
Definition at line 592 of file ossl_x509cert.c.
References eX509CertError, GetPKeyPtr(), GetX509, NULL, ossl_clear_error(), ossl_raise(), Qfalse, and Qtrue.
Referenced by Init_ossl_x509cert().
VALUE cX509Cert |
Definition at line 34 of file ossl_x509cert.c.
Referenced by Init_ossl_x509cert(), ossl_x509_new(), and ossl_x509_new_from_file().
VALUE eX509CertError |
Definition at line 35 of file ossl_x509cert.c.
Referenced by Init_ossl_x509cert(), ossl_spki_to_der(), ossl_x509_add_extension(), ossl_x509_alloc(), ossl_x509_copy(), ossl_x509_get_issuer(), ossl_x509_get_not_after(), ossl_x509_get_not_before(), ossl_x509_get_public_key(), ossl_x509_get_signature_algorithm(), ossl_x509_get_subject(), ossl_x509_initialize(), ossl_x509_new(), ossl_x509_new_from_file(), ossl_x509_set_extensions(), ossl_x509_set_issuer(), ossl_x509_set_not_after(), ossl_x509_set_not_before(), ossl_x509_set_public_key(), ossl_x509_set_subject(), ossl_x509_set_version(), ossl_x509_sign(), ossl_x509_to_der(), ossl_x509_to_pem(), ossl_x509_to_text(), ossl_x509_verify(), and ossl_x509stctx_verify().
|
static |
Definition at line 43 of file ossl_x509cert.c.