Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewX509Ext(klass) TypedData_Wrap_Struct((klass), &ossl_x509ext_type, 0) |
#define | SetX509Ext(obj, ext) |
#define | GetX509Ext(obj, ext) |
#define | SafeGetX509Ext(obj, ext) |
#define | MakeX509ExtFactory(klass, obj, ctx) |
#define | GetX509ExtFactory(obj, ctx) |
Variables | |
VALUE | cX509Ext |
VALUE | cX509ExtFactory |
VALUE | eX509ExtError |
static const rb_data_type_t | ossl_x509ext_type |
static const rb_data_type_t | ossl_x509extfactory_type |
#define GetX509Ext | ( | obj, | |
ext | |||
) |
Definition at line 20 of file ossl_x509ext.c.
Referenced by ossl_x509ext_get_critical(), ossl_x509ext_get_oid(), ossl_x509ext_get_value(), ossl_x509ext_initialize(), ossl_x509ext_initialize_copy(), ossl_x509ext_set_critical(), ossl_x509ext_set_oid(), ossl_x509ext_set_value(), and ossl_x509ext_to_der().
#define GetX509ExtFactory | ( | obj, | |
ctx | |||
) |
Definition at line 37 of file ossl_x509ext.c.
Referenced by ossl_x509extfactory_create_ext(), ossl_x509extfactory_set_crl(), ossl_x509extfactory_set_issuer_cert(), ossl_x509extfactory_set_subject_cert(), and ossl_x509extfactory_set_subject_req().
#define MakeX509ExtFactory | ( | klass, | |
obj, | |||
ctx | |||
) |
Definition at line 30 of file ossl_x509ext.c.
Referenced by ossl_x509extfactory_alloc().
#define NewX509Ext | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_x509ext_type, 0) |
Definition at line 12 of file ossl_x509ext.c.
Referenced by ossl_x509ext_alloc(), ossl_x509ext_new(), and ossl_x509extfactory_create_ext().
#define SafeGetX509Ext | ( | obj, | |
ext | |||
) |
Definition at line 26 of file ossl_x509ext.c.
Referenced by GetX509ExtPtr(), and ossl_x509ext_initialize_copy().
#define SetX509Ext | ( | obj, | |
ext | |||
) |
Definition at line 14 of file ossl_x509ext.c.
Referenced by ossl_x509ext_alloc(), ossl_x509ext_initialize_copy(), ossl_x509ext_new(), and ossl_x509extfactory_create_ext().
X509_EXTENSION* GetX509ExtPtr | ( | VALUE | obj | ) |
Definition at line 89 of file ossl_x509ext.c.
References SafeGetX509Ext.
Referenced by ossl_ocspbres_add_status(), ossl_x509_add_extension(), ossl_x509_set_extensions(), ossl_x509crl_add_extension(), ossl_x509crl_set_extensions(), ossl_x509revoked_add_extension(), and ossl_x509revoked_set_extensions().
void Init_ossl_x509ext | ( | void | ) |
Definition at line 442 of file ossl_x509ext.c.
References cX509Ext, cX509ExtFactory, eOSSLError, eX509ExtError, mOSSL, mX509, ossl_x509ext_alloc(), ossl_x509ext_get_critical(), ossl_x509ext_get_oid(), ossl_x509ext_get_value(), ossl_x509ext_initialize(), ossl_x509ext_initialize_copy(), ossl_x509ext_set_critical(), ossl_x509ext_set_oid(), ossl_x509ext_set_value(), ossl_x509ext_to_der(), ossl_x509extfactory_alloc(), ossl_x509extfactory_create_ext(), ossl_x509extfactory_initialize(), ossl_x509extfactory_set_crl(), ossl_x509extfactory_set_issuer_cert(), ossl_x509extfactory_set_subject_cert(), ossl_x509extfactory_set_subject_req(), Qfalse, rb_attr(), rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_copy_func, rb_define_method(), rb_define_module(), rb_define_module_under(), rb_eStandardError, and rb_intern.
Referenced by Init_ossl_x509().
Definition at line 250 of file ossl_x509ext.c.
References eX509ExtError, NewX509Ext, NULL, ossl_raise(), and SetX509Ext.
Referenced by Init_ossl_x509ext().
|
static |
Definition at line 52 of file ossl_x509ext.c.
Definition at line 410 of file ossl_x509ext.c.
References GetX509Ext, Qfalse, and Qtrue.
Referenced by Init_ossl_x509ext().
Definition at line 370 of file ossl_x509ext.c.
References eX509ExtError, GetX509Ext, nid, NULL, ossl_membio2str(), ossl_raise(), and rb_str_new2.
Referenced by Init_ossl_x509ext().
Definition at line 393 of file ossl_x509ext.c.
References eX509ExtError, GetX509Ext, NULL, ossl_membio2str(), and ossl_raise().
Referenced by Init_ossl_x509ext().
Definition at line 277 of file ossl_x509ext.c.
References DATA_PTR, eX509ExtError, GetX509Ext, NULL, ossl_raise(), ossl_to_der_if_possible(), rb_funcall(), rb_intern, rb_scan_args(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_x509ext().
Definition at line 302 of file ossl_x509ext.c.
References eX509ExtError, GetX509Ext, ossl_raise(), rb_check_frozen, SafeGetX509Ext, and SetX509Ext.
Referenced by Init_ossl_x509ext().
VALUE ossl_x509ext_new | ( | X509_EXTENSION * | ext | ) |
Definition at line 69 of file ossl_x509ext.c.
References cX509Ext, eX509ExtError, NewX509Ext, NULL, ossl_raise(), and SetX509Ext.
Referenced by ossl_ocspbres_get_status(), ossl_ocspsres_get_extensions(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), and ossl_x509revoked_get_extensions().
Definition at line 359 of file ossl_x509ext.c.
References GetX509Ext, and RTEST.
Referenced by Init_ossl_x509ext().
Definition at line 321 of file ossl_x509ext.c.
References eX509ExtError, GetX509Ext, ossl_raise(), and StringValueCStr.
Referenced by Init_ossl_x509ext().
Definition at line 340 of file ossl_x509ext.c.
References eX509ExtError, GetX509Ext, ossl_raise(), ossl_to_der_if_possible(), RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_x509ext().
Definition at line 419 of file ossl_x509ext.c.
References eX509ExtError, GetX509Ext, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_x509ext().
Definition at line 119 of file ossl_x509ext.c.
References MakeX509ExtFactory, Qnil, and rb_iv_set().
Referenced by Init_ossl_x509ext().
Definition at line 208 of file ossl_x509ext.c.
References cX509Ext, DupConfigPtr(), eX509ExtError, GetX509ExtFactory, NewX509Ext, nid, NIL_P, NULL, ossl_raise(), PRIsVALUE, Qfalse, rb_iv_get(), rb_scan_args(), rb_str_append(), rb_str_new2, RSTRING_PTR, RTEST, SetX509Ext, StringValue, and StringValueCStr.
Referenced by Init_ossl_x509ext().
|
static |
Definition at line 105 of file ossl_x509ext.c.
Definition at line 179 of file ossl_x509ext.c.
References NIL_P, ossl_x509extfactory_set_crl(), ossl_x509extfactory_set_issuer_cert(), ossl_x509extfactory_set_subject_cert(), ossl_x509extfactory_set_subject_req(), and rb_scan_args().
Referenced by Init_ossl_x509ext().
Definition at line 167 of file ossl_x509ext.c.
References GetX509CRLPtr(), GetX509ExtFactory, and rb_iv_set().
Referenced by Init_ossl_x509ext(), and ossl_x509extfactory_initialize().
Definition at line 131 of file ossl_x509ext.c.
References GetX509CertPtr(), GetX509ExtFactory, and rb_iv_set().
Referenced by Init_ossl_x509ext(), and ossl_x509extfactory_initialize().
Definition at line 143 of file ossl_x509ext.c.
References GetX509CertPtr(), GetX509ExtFactory, and rb_iv_set().
Referenced by Init_ossl_x509ext(), and ossl_x509extfactory_initialize().
Definition at line 155 of file ossl_x509ext.c.
References GetX509ExtFactory, GetX509ReqPtr(), and rb_iv_set().
Referenced by Init_ossl_x509ext(), and ossl_x509extfactory_initialize().
VALUE cX509Ext |
Definition at line 47 of file ossl_x509ext.c.
Referenced by Init_ossl_x509ext(), ossl_ocspbres_add_status(), ossl_x509_set_extensions(), ossl_x509crl_set_extensions(), ossl_x509ext_new(), ossl_x509extfactory_create_ext(), and ossl_x509revoked_set_extensions().
VALUE cX509ExtFactory |
Definition at line 48 of file ossl_x509ext.c.
Referenced by Init_ossl_x509ext().
VALUE eX509ExtError |
Definition at line 49 of file ossl_x509ext.c.
Referenced by Init_ossl_x509ext(), ossl_x509ext_alloc(), ossl_x509ext_get_oid(), ossl_x509ext_get_value(), ossl_x509ext_initialize(), ossl_x509ext_initialize_copy(), ossl_x509ext_new(), ossl_x509ext_set_oid(), ossl_x509ext_set_value(), ossl_x509ext_to_der(), and ossl_x509extfactory_create_ext().
|
static |
Definition at line 57 of file ossl_x509ext.c.
|
static |
Definition at line 110 of file ossl_x509ext.c.