Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewX509Name(klass) TypedData_Wrap_Struct((klass), &ossl_x509name_type, 0) |
#define | SetX509Name(obj, name) |
#define | GetX509Name(obj, name) |
#define | SafeGetX509Name(obj, name) |
#define | OBJECT_TYPE_TEMPLATE rb_const_get(cX509Name, rb_intern("OBJECT_TYPE_TEMPLATE")) |
#define | DEFAULT_OBJECT_TYPE rb_const_get(cX509Name, rb_intern("DEFAULT_OBJECT_TYPE")) |
#define | rb_aref(obj, key) rb_funcall((obj), id_aref, 1, (key)) |
Functions | |
static void | ossl_x509name_free (void *ptr) |
VALUE | ossl_x509name_new (X509_NAME *name) |
X509_NAME * | GetX509NamePtr (VALUE obj) |
static VALUE | ossl_x509name_alloc (VALUE klass) |
static VALUE | ossl_x509name_add_entry (int, VALUE *, VALUE) |
static VALUE | ossl_x509name_init_i (RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) |
static VALUE | ossl_x509name_initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_x509name_initialize_copy (VALUE self, VALUE other) |
static VALUE | ossl_x509name_to_s_old (VALUE self) |
static VALUE | ossl_x509name_to_s (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_x509name_to_a (VALUE self) |
static int | ossl_x509name_cmp0 (VALUE self, VALUE other) |
static VALUE | ossl_x509name_cmp (VALUE self, VALUE other) |
static VALUE | ossl_x509name_eql (VALUE self, VALUE other) |
static VALUE | ossl_x509name_hash (VALUE self) |
static VALUE | ossl_x509name_to_der (VALUE self) |
void | Init_ossl_x509name (void) |
Variables | |
VALUE | cX509Name |
VALUE | eX509NameError |
static const rb_data_type_t | ossl_x509name_type |
static ID | id_aref |
#define DEFAULT_OBJECT_TYPE rb_const_get(cX509Name, rb_intern("DEFAULT_OBJECT_TYPE")) |
Definition at line 33 of file ossl_x509name.c.
Referenced by ossl_x509name_init_i().
#define GetX509Name | ( | obj, | |
name | |||
) |
Definition at line 20 of file ossl_x509name.c.
Referenced by ossl_x509name_add_entry(), ossl_x509name_cmp0(), ossl_x509name_hash(), ossl_x509name_initialize(), ossl_x509name_initialize_copy(), ossl_x509name_to_a(), ossl_x509name_to_der(), ossl_x509name_to_s(), and ossl_x509name_to_s_old().
#define NewX509Name | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_x509name_type, 0) |
Definition at line 12 of file ossl_x509name.c.
Referenced by ossl_x509name_alloc(), and ossl_x509name_new().
#define OBJECT_TYPE_TEMPLATE rb_const_get(cX509Name, rb_intern("OBJECT_TYPE_TEMPLATE")) |
Definition at line 31 of file ossl_x509name.c.
Referenced by ossl_x509name_add_entry(), and ossl_x509name_initialize().
#define rb_aref | ( | obj, | |
key | |||
) | rb_funcall((obj), id_aref, 1, (key)) |
Definition at line 109 of file ossl_x509name.c.
Referenced by ossl_x509name_add_entry(), and ossl_x509name_init_i().
#define SafeGetX509Name | ( | obj, | |
name | |||
) |
Definition at line 26 of file ossl_x509name.c.
Referenced by GetX509NamePtr(), ossl_x509name_cmp0(), and ossl_x509name_initialize_copy().
#define SetX509Name | ( | obj, | |
name | |||
) |
Definition at line 14 of file ossl_x509name.c.
Referenced by ossl_x509name_alloc(), ossl_x509name_initialize_copy(), and ossl_x509name_new().
X509_NAME* GetX509NamePtr | ( | VALUE | obj | ) |
Definition at line 80 of file ossl_x509name.c.
References name, and SafeGetX509Name.
Referenced by ossl_x509_set_issuer(), ossl_x509_set_subject(), ossl_x509crl_set_issuer(), and ossl_x509req_set_subject().
void Init_ossl_x509name | ( | void | ) |
Definition at line 463 of file ossl_x509name.c.
References cX509Name, eOSSLError, eX509NameError, hash(), id_aref, INT2NUM, mOSSL, mX509, ossl_x509name_add_entry(), ossl_x509name_alloc(), ossl_x509name_cmp(), ossl_x509name_eql(), ossl_x509name_hash(), ossl_x509name_initialize(), ossl_x509name_initialize_copy(), ossl_x509name_to_a(), ossl_x509name_to_der(), ossl_x509name_to_s(), rb_cObject, rb_define_alias(), rb_define_alloc_func(), rb_define_class_under(), rb_define_const(), rb_define_copy_func, rb_define_method(), rb_define_module(), rb_define_module_under(), rb_eStandardError, rb_hash_aset(), rb_hash_new(), rb_include_module(), rb_intern, rb_mComparable, rb_str_new2, RHASH_SET_IFNONE, and ULONG2NUM.
Referenced by Init_ossl_x509().
Definition at line 218 of file ossl_x509name.c.
References eX509NameError, GetX509Name, name, NIL_P, NULL, NUM2INT, OBJECT_TYPE_TEMPLATE, ossl_raise(), rb_aref, rb_scan_args(), RSTRING_LENINT, RSTRING_PTR, StringValue, and StringValueCStr.
Referenced by Init_ossl_x509name(), and ossl_x509name_init_i().
Definition at line 93 of file ossl_x509name.c.
References eX509NameError, name, NewX509Name, NULL, ossl_raise(), and SetX509Name.
Referenced by Init_ossl_x509name().
Definition at line 355 of file ossl_x509name.c.
References INT2FIX, ossl_x509name_cmp0(), and result.
Referenced by Init_ossl_x509name().
Definition at line 336 of file ossl_x509name.c.
References GetX509Name, and SafeGetX509Name.
Referenced by ossl_x509name_cmp(), and ossl_x509name_eql().
Definition at line 373 of file ossl_x509name.c.
References cX509Name, ossl_x509name_cmp0(), Qfalse, Qtrue, and rb_obj_is_kind_of().
Referenced by Init_ossl_x509name().
|
static |
Definition at line 43 of file ossl_x509name.c.
Definition at line 389 of file ossl_x509name.c.
References GetX509Name, hash(), name, and ULONG2NUM.
Referenced by Init_ossl_x509name().
|
static |
Definition at line 112 of file ossl_x509name.c.
References Check_Type, DEFAULT_OBJECT_TYPE, NIL_P, ossl_x509name_add_entry(), Qnil, rb_aref, rb_ary_entry(), and T_ARRAY.
Referenced by ossl_x509name_initialize().
Definition at line 150 of file ossl_x509name.c.
References DATA_PTR, eX509NameError, GetX509Name, name, NIL_P, NULL, OBJECT_TYPE_TEMPLATE, ossl_raise(), ossl_to_der_if_possible(), ossl_x509name_init_i(), rb_ary_new3, rb_block_call(), rb_check_array_type(), rb_intern, rb_scan_args(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_x509name().
Definition at line 185 of file ossl_x509name.c.
References eX509NameError, GetX509Name, name, ossl_raise(), rb_check_frozen, SafeGetX509Name, and SetX509Name.
Referenced by Init_ossl_x509name().
VALUE ossl_x509name_new | ( | X509_NAME * | name | ) |
Definition at line 60 of file ossl_x509name.c.
References cX509Name, eX509NameError, NewX509Name, NULL, ossl_raise(), and SetX509Name.
Referenced by ossl_pkcs7ri_get_issuer(), ossl_pkcs7si_get_issuer(), ossl_x509_get_issuer(), ossl_x509_get_subject(), ossl_x509crl_get_issuer(), and ossl_x509req_get_subject().
Definition at line 296 of file ossl_x509name.c.
References asn1str_to_str(), eX509NameError, GetX509Name, INT2NUM, name, nid, NULL, OSSL_Debug, ossl_raise(), rb_ary_new(), rb_ary_new2, rb_ary_new3, rb_ary_push(), and rb_str_new2.
Referenced by Init_ossl_x509name().
Definition at line 429 of file ossl_x509name.c.
References eX509NameError, GetX509Name, len, name, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_x509name().
Definition at line 265 of file ossl_x509name.c.
References eX509NameError, GetX509Name, name, NIL_P, NULL, NUM2ULONG, ossl_membio2str(), ossl_raise(), ossl_x509name_to_s_old(), and rb_scan_args().
Referenced by Init_ossl_x509name().
Definition at line 238 of file ossl_x509name.c.
References buf, GetX509Name, name, NULL, and rb_str_new2.
Referenced by ossl_x509name_to_s().
VALUE cX509Name |
Definition at line 39 of file ossl_x509name.c.
Referenced by Init_ossl_x509name(), ossl_x509name_eql(), and ossl_x509name_new().
VALUE eX509NameError |
Definition at line 40 of file ossl_x509name.c.
Referenced by Init_ossl_x509name(), ossl_x509name_add_entry(), ossl_x509name_alloc(), ossl_x509name_initialize(), ossl_x509name_initialize_copy(), ossl_x509name_new(), ossl_x509name_to_a(), ossl_x509name_to_der(), and ossl_x509name_to_s().
|
static |
Definition at line 107 of file ossl_x509name.c.
Referenced by Init_ossl_x509name().
|
static |
Definition at line 48 of file ossl_x509name.c.