Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Data Structures | |
struct | ossl_asn1_info_t |
Macros | |
#define | ossl_asn1_get_value(o) rb_attr_get((o),sivVALUE) |
#define | ossl_asn1_get_tag(o) rb_attr_get((o),sivTAG) |
#define | ossl_asn1_get_tagging(o) rb_attr_get((o),sivTAGGING) |
#define | ossl_asn1_get_tag_class(o) rb_attr_get((o),sivTAG_CLASS) |
#define | ossl_asn1_get_infinite_length(o) rb_attr_get((o),sivINFINITE_LENGTH) |
#define | ossl_asn1_set_value(o, v) rb_ivar_set((o),sivVALUE,(v)) |
#define | ossl_asn1_set_tag(o, v) rb_ivar_set((o),sivTAG,(v)) |
#define | ossl_asn1_set_tagging(o, v) rb_ivar_set((o),sivTAGGING,(v)) |
#define | ossl_asn1_set_tag_class(o, v) rb_ivar_set((o),sivTAG_CLASS,(v)) |
#define | ossl_asn1_set_infinite_length(o, v) rb_ivar_set((o),sivINFINITE_LENGTH,(v)) |
#define | OSSL_ASN1_IMPL_FACTORY_METHOD(klass) |
#define | OSSL_ASN1_DEFINE_CLASS(name, super) |
Enumerations | |
enum | { ossl_asn1_info_size = (sizeof(ossl_asn1_info)/sizeof(ossl_asn1_info[0])) } |
Functions | |
static VALUE | join_der (VALUE enumerable) |
static VALUE | ossl_asn1_decode0 (unsigned char **pp, long length, long *offset, int depth, int yield, long *num_read) |
static VALUE | ossl_asn1_initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_asn1eoc_initialize (VALUE self) |
VALUE | asn1time_to_time (const ASN1_TIME *time) |
time_t | time_to_time_t (VALUE time) |
VALUE | asn1str_to_str (const ASN1_STRING *str) |
VALUE | asn1integer_to_num (const ASN1_INTEGER *ai) |
ASN1_INTEGER * | num_to_asn1integer (VALUE obj, ASN1_INTEGER *ai) |
static ASN1_BOOLEAN | obj_to_asn1bool (VALUE obj) |
static ASN1_INTEGER * | obj_to_asn1int (VALUE obj) |
static ASN1_BIT_STRING * | obj_to_asn1bstr (VALUE obj, long unused_bits) |
static ASN1_STRING * | obj_to_asn1str (VALUE obj) |
static ASN1_NULL * | obj_to_asn1null (VALUE obj) |
static ASN1_OBJECT * | obj_to_asn1obj (VALUE obj) |
static ASN1_UTCTIME * | obj_to_asn1utime (VALUE time) |
static ASN1_GENERALIZEDTIME * | obj_to_asn1gtime (VALUE time) |
static ASN1_STRING * | obj_to_asn1derstr (VALUE obj) |
static VALUE | decode_bool (unsigned char *der, long length) |
static VALUE | decode_int (unsigned char *der, long length) |
static VALUE | decode_bstr (unsigned char *der, long length, long *unused_bits) |
static VALUE | decode_enum (unsigned char *der, long length) |
static VALUE | decode_null (unsigned char *der, long length) |
static VALUE | decode_obj (unsigned char *der, long length) |
static VALUE | decode_time (unsigned char *der, long length) |
static VALUE | decode_eoc (unsigned char *der, long length) |
static int | ossl_asn1_default_tag (VALUE obj) |
ASN1_TYPE * | ossl_asn1_get_asn1type (VALUE obj) |
static int | ossl_asn1_tag (VALUE obj) |
static int | ossl_asn1_is_explicit (VALUE obj) |
static int | ossl_asn1_tag_class (VALUE obj) |
static VALUE | ossl_asn1_class2sym (int tc) |
static VALUE | ossl_asn1data_initialize (VALUE self, VALUE value, VALUE tag, VALUE tag_class) |
static VALUE | join_der_i (RB_BLOCK_CALL_FUNC_ARGLIST(i, str)) |
static VALUE | ossl_asn1data_to_der (VALUE self) |
static VALUE | int_ossl_asn1_decode0_prim (unsigned char **pp, long length, long hlen, int tag, VALUE tc, long *num_read) |
static VALUE | int_ossl_asn1_decode0_cons (unsigned char **pp, long max_len, long length, long *offset, int depth, int yield, int j, int tag, VALUE tc, long *num_read) |
static void | int_ossl_decode_sanity_check (long len, long read, long offset) |
static VALUE | ossl_asn1_traverse (VALUE self, VALUE obj) |
static VALUE | ossl_asn1_decode (VALUE self, VALUE obj) |
static VALUE | ossl_asn1_decode_all (VALUE self, VALUE obj) |
static VALUE | ossl_asn1prim_to_der (VALUE self) |
static VALUE | ossl_asn1cons_to_der (VALUE self) |
static VALUE | ossl_asn1cons_each (VALUE self) |
static VALUE | ossl_asn1obj_s_register (VALUE self, VALUE oid, VALUE sn, VALUE ln) |
static VALUE | ossl_asn1obj_get_sn (VALUE self) |
static VALUE | ossl_asn1obj_get_ln (VALUE self) |
static VALUE | ossl_asn1obj_get_oid (VALUE self) |
void | Init_ossl_asn1 (void) |
#define OSSL_ASN1_DEFINE_CLASS | ( | name, | |
super | |||
) |
Referenced by Init_ossl_asn1().
#define ossl_asn1_get_infinite_length | ( | o | ) | rb_attr_get((o),sivINFINITE_LENGTH) |
Definition at line 158 of file ossl_asn1.c.
Referenced by ossl_asn1cons_to_der(), and ossl_asn1data_to_der().
#define ossl_asn1_get_tag | ( | o | ) | rb_attr_get((o),sivTAG) |
Definition at line 155 of file ossl_asn1.c.
Referenced by int_ossl_asn1_decode0_cons(), ossl_asn1_tag(), ossl_asn1cons_to_der(), and ossl_asn1prim_to_der().
#define ossl_asn1_get_tag_class | ( | o | ) | rb_attr_get((o),sivTAG_CLASS) |
Definition at line 157 of file ossl_asn1.c.
Referenced by int_ossl_asn1_decode0_cons(), and ossl_asn1_tag_class().
#define ossl_asn1_get_tagging | ( | o | ) | rb_attr_get((o),sivTAGGING) |
Definition at line 156 of file ossl_asn1.c.
Referenced by ossl_asn1_is_explicit().
#define ossl_asn1_get_value | ( | o | ) | rb_attr_get((o),sivVALUE) |
Definition at line 154 of file ossl_asn1.c.
Referenced by ossl_asn1_get_asn1type(), ossl_asn1cons_each(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_asn1obj_get_ln(), ossl_asn1obj_get_oid(), and ossl_asn1obj_get_sn().
#define OSSL_ASN1_IMPL_FACTORY_METHOD | ( | klass | ) |
Definition at line 1384 of file ossl_asn1.c.
#define ossl_asn1_set_infinite_length | ( | o, | |
v | |||
) | rb_ivar_set((o),sivINFINITE_LENGTH,(v)) |
Definition at line 164 of file ossl_asn1.c.
Referenced by int_ossl_asn1_decode0_cons(), ossl_asn1_initialize(), ossl_asn1data_initialize(), and ossl_asn1eoc_initialize().
#define ossl_asn1_set_tag | ( | o, | |
v | |||
) | rb_ivar_set((o),sivTAG,(v)) |
Definition at line 161 of file ossl_asn1.c.
Referenced by ossl_asn1_initialize(), ossl_asn1data_initialize(), and ossl_asn1eoc_initialize().
#define ossl_asn1_set_tag_class | ( | o, | |
v | |||
) | rb_ivar_set((o),sivTAG_CLASS,(v)) |
Definition at line 163 of file ossl_asn1.c.
Referenced by ossl_asn1_initialize(), ossl_asn1data_initialize(), and ossl_asn1eoc_initialize().
#define ossl_asn1_set_tagging | ( | o, | |
v | |||
) | rb_ivar_set((o),sivTAGGING,(v)) |
Definition at line 162 of file ossl_asn1.c.
Referenced by ossl_asn1_initialize(), and ossl_asn1eoc_initialize().
#define ossl_asn1_set_value | ( | o, | |
v | |||
) | rb_ivar_set((o),sivVALUE,(v)) |
Definition at line 160 of file ossl_asn1.c.
Referenced by ossl_asn1_initialize(), ossl_asn1data_initialize(), and ossl_asn1eoc_initialize().
anonymous enum |
Enumerator | |
---|---|
ossl_asn1_info_size |
Definition at line 507 of file ossl_asn1.c.
Definition at line 112 of file ossl_asn1.c.
References eOSSLError, NULL, ossl_bn_new(), ossl_raise(), and rb_eTypeError.
Referenced by decode_enum(), decode_int(), ossl_ocspcid_get_serial(), ossl_pkcs7ri_get_serial(), ossl_pkcs7si_get_serial(), ossl_x509_get_serial(), and ossl_x509revoked_get_serial().
Definition at line 103 of file ossl_asn1.c.
References rb_str_new().
Referenced by ossl_pkcs7ri_get_enc_key(), and ossl_x509name_to_a().
Definition at line 22 of file ossl_asn1.c.
References argv, count, FIX2LONG, FIXNUM_P, INT2FIX, INT2NUM, NUM2INT, ossl_raise(), Qnil, rb_cTime, rb_eTypeError, rb_funcall(), rb_funcall2, rb_Integer(), rb_intern, rb_long2int, and rb_warning().
Referenced by decode_time(), ossl_ocspbres_get_status(), ossl_ocspsres_get_next_update(), ossl_ocspsres_get_revocation_time(), ossl_ocspsres_get_this_update(), ossl_pkcs7si_get_signed_time(), ossl_x509_get_not_after(), ossl_x509_get_not_before(), ossl_x509crl_get_last_update(), ossl_x509crl_get_next_update(), and ossl_x509revoked_get_time().
|
static |
Definition at line 324 of file ossl_asn1.c.
References eASN1Error, ossl_raise(), Qfalse, and Qtrue.
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 356 of file ossl_asn1.c.
References eASN1Error, len, NULL, ossl_raise(), and rb_str_new().
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 377 of file ossl_asn1.c.
References asn1integer_to_num(), eASN1Error, NULL, ossl_raise(), rb_jump_tag(), and rb_protect().
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 458 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), and rb_str_new().
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 337 of file ossl_asn1.c.
References asn1integer_to_num(), eASN1Error, NULL, ossl_raise(), rb_jump_tag(), and rb_protect().
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 396 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), and Qnil.
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 410 of file ossl_asn1.c.
References eASN1Error, nid, NULL, ossl_membio2str(), ossl_raise(), and rb_str_new2.
Referenced by int_ossl_asn1_decode0_prim().
|
static |
Definition at line 439 of file ossl_asn1.c.
References asn1time_to_time(), eASN1Error, NULL, ossl_raise(), rb_jump_tag(), and rb_protect().
Referenced by int_ossl_asn1_decode0_prim().
void Init_ossl_asn1 | ( | void | ) |
Definition at line 1413 of file ossl_asn1.c.
References cASN1BitString, cASN1BMPString, cASN1Boolean, cASN1Constructive, cASN1Data, cASN1EndOfContent, cASN1Enumerated, cASN1GeneralizedTime, cASN1GeneralString, cASN1GraphicString, cASN1IA5String, cASN1Integer, cASN1ISO64String, cASN1Null, cASN1NumericString, cASN1ObjectId, cASN1OctetString, cASN1Primitive, cASN1PrintableString, cASN1Sequence, cASN1Set, cASN1T61String, cASN1UniversalString, cASN1UTCTime, cASN1UTF8String, cASN1VideotexString, class_tag_map, eASN1Error, eOSSLError, ID2SYM, id_each, INT2NUM, mASN1, mOSSL, name, ossl_asn1_decode(), ossl_asn1_decode_all(), OSSL_ASN1_DEFINE_CLASS, ossl_asn1_info_size, ossl_asn1_initialize(), ossl_asn1_traverse(), ossl_asn1cons_each(), ossl_asn1cons_to_der(), ossl_asn1data_initialize(), ossl_asn1data_to_der(), ossl_asn1eoc_initialize(), ossl_asn1obj_get_ln(), ossl_asn1obj_get_oid(), ossl_asn1obj_get_sn(), ossl_asn1obj_s_register(), ossl_asn1prim_to_der(), Qtrue, rb_ary_new(), rb_ary_store(), rb_attr(), rb_cObject, rb_define_alias(), rb_define_class_under(), rb_define_const(), rb_define_method(), rb_define_module(), rb_define_module_function(), rb_define_module_under(), rb_define_singleton_method(), rb_eStandardError, rb_global_variable(), rb_hash_aset(), rb_hash_new(), rb_include_module(), rb_intern, rb_intern_const, rb_mEnumerable, rb_str_new2, rb_undef_method(), sivINFINITE_LENGTH, sivTAG, sivTAG_CLASS, sivTAGGING, sivUNUSED_BITS, sivVALUE, sym_APPLICATION, sym_CONTEXT_SPECIFIC, sym_EXPLICIT, sym_IMPLICIT, sym_PRIVATE, and sym_UNIVERSAL.
Referenced by Init_openssl().
|
static |
Definition at line 827 of file ossl_asn1.c.
References cASN1Constructive, cASN1Data, eASN1Error, INT2NUM, ossl_asn1_info_t::klass, NUM2INT, ossl_asn1_decode0(), ossl_asn1_get_tag, ossl_asn1_get_tag_class, ossl_asn1_initialize(), ossl_asn1_set_infinite_length, ossl_asn1data_initialize(), ossl_raise(), Qfalse, Qnil, Qtrue, rb_ary_new(), rb_ary_push(), rb_obj_alloc(), and sym_UNIVERSAL.
Referenced by ossl_asn1_decode0().
|
static |
Definition at line 753 of file ossl_asn1.c.
References cASN1Data, decode_bool(), decode_bstr(), decode_enum(), decode_eoc(), decode_int(), decode_null(), decode_obj(), decode_time(), INT2NUM, ossl_asn1_info_t::klass, LONG2NUM, ossl_asn1_info_size, ossl_asn1_initialize(), ossl_asn1data_initialize(), Qnil, rb_ivar_set(), rb_obj_alloc(), rb_str_new(), sivUNUSED_BITS, and sym_UNIVERSAL.
Referenced by ossl_asn1_decode0().
|
static |
Definition at line 956 of file ossl_asn1.c.
References eASN1Error, and ossl_raise().
Referenced by ossl_asn1_decode(), ossl_asn1_decode_all(), and ossl_asn1_traverse().
Definition at line 703 of file ossl_asn1.c.
References id_each, join_der_i(), rb_block_call(), and rb_str_new().
Referenced by ossl_asn1cons_to_der(), and ossl_asn1data_to_der().
|
static |
Definition at line 694 of file ossl_asn1.c.
References ossl_to_der_if_possible(), Qnil, rb_str_append(), and StringValue.
Referenced by join_der().
ASN1_INTEGER* num_to_asn1integer | ( | VALUE | obj, |
ASN1_INTEGER * | ai | ||
) |
Definition at line 135 of file ossl_asn1.c.
References eOSSLError, GetBNPtr, NIL_P, NULL, ossl_raise(), and rb_eTypeError.
Referenced by obj_to_asn1int(), ossl_x509_set_serial(), and ossl_x509revoked_set_serial().
|
static |
Definition at line 197 of file ossl_asn1.c.
References NIL_P, ossl_raise(), rb_eTypeError, and RTEST.
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 212 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 307 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), ossl_to_der(), RSTRING_LENINT, and RSTRING_PTR.
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 287 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), and time_to_time_t().
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 206 of file ossl_asn1.c.
References NULL, and num_to_asn1integer().
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 241 of file ossl_asn1.c.
References eASN1Error, NIL_P, NULL, and ossl_raise().
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 254 of file ossl_asn1.c.
References eASN1Error, ossl_raise(), PRIsVALUE, RSTRING_PTR, and StringValueCStr.
Referenced by ossl_asn1_get_asn1type(), and ossl_asn1obj_get_oid().
|
static |
Definition at line 228 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 267 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), and time_to_time_t().
Referenced by ossl_asn1_get_asn1type().
|
static |
Definition at line 650 of file ossl_asn1.c.
References sym_APPLICATION, sym_CONTEXT_SPECIFIC, sym_PRIVATE, and sym_UNIVERSAL.
Referenced by ossl_asn1_decode0().
Definition at line 1016 of file ossl_asn1.c.
References int_ossl_decode_sanity_check(), len, ossl_asn1_decode0(), ossl_to_der_if_possible(), RB_GC_GUARD, rb_str_new4, RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 893 of file ossl_asn1.c.
References eASN1Error, INT2NUM, int_ossl_asn1_decode0_cons(), int_ossl_asn1_decode0_prim(), len, LONG2NUM, NULL, ossl_asn1_class2sym(), ossl_raise(), Qfalse, Qtrue, rb_ary_new(), rb_ary_push(), rb_yield(), sym_APPLICATION, sym_CONTEXT_SPECIFIC, sym_PRIVATE, and sym_UNIVERSAL.
Referenced by int_ossl_asn1_decode0_cons(), ossl_asn1_decode(), ossl_asn1_decode_all(), and ossl_asn1_traverse().
Definition at line 1047 of file ossl_asn1.c.
References int_ossl_decode_sanity_check(), len, ossl_asn1_decode0(), ossl_to_der_if_possible(), rb_ary_new(), rb_ary_push(), RB_GC_GUARD, rb_str_new4, RSTRING_LEN, RSTRING_PTR, StringValue, and val.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 590 of file ossl_asn1.c.
References CLASS_OF, class_tag_map, eASN1Error, NIL_P, NUM2INT, ossl_raise(), PRIsVALUE, Qnil, rb_class_superclass(), rb_hash_lookup(), and rb_obj_class().
Referenced by ossl_asn1_get_asn1type(), ossl_asn1_initialize(), ossl_asn1cons_to_der(), and ossl_asn1eoc_initialize().
ASN1_TYPE* ossl_asn1_get_asn1type | ( | VALUE | obj | ) |
Definition at line 514 of file ossl_asn1.c.
References eASN1Error, NIL_P, NULL, NUM2INT, obj_to_asn1bool(), obj_to_asn1bstr(), obj_to_asn1derstr(), obj_to_asn1gtime(), obj_to_asn1int(), obj_to_asn1null(), obj_to_asn1obj(), obj_to_asn1str(), obj_to_asn1utime(), ossl_asn1_default_tag(), ossl_asn1_get_value, ossl_raise(), rb_attr_get(), and sivUNUSED_BITS.
Referenced by ossl_asn1prim_to_der(), and ossl_x509attr_set_value().
Definition at line 1096 of file ossl_asn1.c.
References eASN1Error, INT2NUM, NIL_P, NUM2INT, ossl_asn1_default_tag(), ossl_asn1_set_infinite_length, ossl_asn1_set_tag, ossl_asn1_set_tag_class, ossl_asn1_set_tagging, ossl_asn1_set_value, ossl_raise(), Qfalse, Qnil, rb_scan_args(), sym_CONTEXT_SPECIFIC, sym_IMPLICIT, sym_UNIVERSAL, and SYMBOL_P.
Referenced by Init_ossl_asn1(), int_ossl_asn1_decode0_cons(), and int_ossl_asn1_decode0_prim().
|
static |
Definition at line 618 of file ossl_asn1.c.
References eASN1Error, NIL_P, ossl_asn1_get_tagging, ossl_raise(), sym_EXPLICIT, and sym_IMPLICIT.
Referenced by ossl_asn1cons_to_der(), and ossl_asn1prim_to_der().
|
static |
Definition at line 606 of file ossl_asn1.c.
References eASN1Error, NIL_P, NUM2INT, ossl_asn1_get_tag, and ossl_raise().
Referenced by ossl_asn1data_to_der().
|
static |
Definition at line 632 of file ossl_asn1.c.
References eASN1Error, NIL_P, ossl_asn1_get_tag_class, ossl_raise(), sym_APPLICATION, sym_CONTEXT_SPECIFIC, sym_PRIVATE, and sym_UNIVERSAL.
Referenced by ossl_asn1cons_to_der(), ossl_asn1data_to_der(), and ossl_asn1prim_to_der().
Definition at line 987 of file ossl_asn1.c.
References int_ossl_decode_sanity_check(), len, ossl_asn1_decode0(), ossl_to_der_if_possible(), Qnil, RB_GC_GUARD, rb_str_new4, RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_asn1().
Definition at line 1292 of file ossl_asn1.c.
References id_each, ossl_asn1_get_value, and rb_block_call().
Referenced by Init_ossl_asn1().
Definition at line 1196 of file ossl_asn1.c.
References cASN1Constructive, cASN1Primitive, cASN1Sequence, cASN1Set, eASN1Error, join_der(), memcpy, NUM2INT, ossl_asn1_default_tag(), ossl_asn1_get_infinite_length, ossl_asn1_get_tag, ossl_asn1_get_value, ossl_asn1_is_explicit(), ossl_asn1_tag_class(), ossl_raise(), ossl_str_adjust, Qnil, Qtrue, rb_ary_entry(), rb_cArray, rb_obj_class(), rb_obj_is_kind_of(), rb_str_new(), RSTRING_LEN, RSTRING_LENINT, and RSTRING_PTR.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 679 of file ossl_asn1.c.
References eASN1Error, NUM2INT, ossl_asn1_set_infinite_length, ossl_asn1_set_tag, ossl_asn1_set_tag_class, ossl_asn1_set_value, ossl_raise(), Qfalse, sym_UNIVERSAL, and SYMBOL_P.
Referenced by Init_ossl_asn1(), int_ossl_asn1_decode0_cons(), and int_ossl_asn1_decode0_prim().
Definition at line 720 of file ossl_asn1.c.
References eASN1Error, join_der(), memcpy, NULL, ossl_asn1_get_infinite_length, ossl_asn1_get_value, ossl_asn1_tag(), ossl_asn1_tag_class(), ossl_raise(), ossl_str_adjust, Qtrue, rb_cArray, rb_obj_is_kind_of(), rb_str_new(), RSTRING_LEN, RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_asn1().
Definition at line 1132 of file ossl_asn1.c.
References INT2NUM, ossl_asn1_default_tag(), ossl_asn1_set_infinite_length, ossl_asn1_set_tag, ossl_asn1_set_tag_class, ossl_asn1_set_tagging, ossl_asn1_set_value, Qfalse, Qnil, rb_str_new(), and sym_UNIVERSAL.
Referenced by Init_ossl_asn1().
Definition at line 1353 of file ossl_asn1.c.
References nid, ossl_asn1_get_value, Qnil, rb_str_new2, StringValueCStr, and val.
Referenced by Init_ossl_asn1().
Definition at line 1370 of file ossl_asn1.c.
References buf, obj_to_asn1obj(), ossl_asn1_get_value, rb_str_new2, and val.
Referenced by Init_ossl_asn1().
Definition at line 1332 of file ossl_asn1.c.
References nid, ossl_asn1_get_value, Qnil, rb_str_new2, StringValueCStr, and val.
Referenced by Init_ossl_asn1().
Definition at line 1311 of file ossl_asn1.c.
References eASN1Error, NULL, ossl_raise(), Qtrue, RSTRING_PTR, and StringValueCStr.
Referenced by Init_ossl_asn1().
Definition at line 1153 of file ossl_asn1.c.
References assert, buf, eASN1Error, len, NULL, NUM2INT, ossl_asn1_get_asn1type(), ossl_asn1_get_tag, ossl_asn1_is_explicit(), ossl_asn1_tag_class(), ossl_buf2str(), ossl_raise(), and rb_long2int.
Referenced by Init_ossl_asn1().
time_t time_to_time_t | ( | VALUE | time | ) |
Definition at line 93 of file ossl_asn1.c.
References rb_Integer().
Referenced by obj_to_asn1gtime(), obj_to_asn1utime(), and ossl_x509_time_adjust().
VALUE cASN1BitString |
Definition at line 176 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1BMPString |
Definition at line 182 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Boolean |
Definition at line 174 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Constructive |
Definition at line 171 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), int_ossl_asn1_decode0_cons(), and ossl_asn1cons_to_der().
VALUE cASN1Data |
Definition at line 169 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), int_ossl_asn1_decode0_cons(), int_ossl_asn1_decode0_prim(), and ossl_x509attr_set_value().
VALUE cASN1EndOfContent |
Definition at line 173 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Enumerated |
Definition at line 175 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1GeneralizedTime |
Definition at line 185 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1GeneralString |
Definition at line 181 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1GraphicString |
Definition at line 180 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1IA5String |
Definition at line 180 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Integer |
Definition at line 175 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1ISO64String |
Definition at line 181 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Null |
Definition at line 183 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1NumericString |
Definition at line 178 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1ObjectId |
Definition at line 184 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1OctetString |
Definition at line 177 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Primitive |
Definition at line 170 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), and ossl_asn1cons_to_der().
VALUE cASN1PrintableString |
Definition at line 178 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1Sequence |
Definition at line 186 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), and ossl_asn1cons_to_der().
VALUE cASN1Set |
Definition at line 186 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), and ossl_asn1cons_to_der().
VALUE cASN1T61String |
Definition at line 179 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1UniversalString |
Definition at line 182 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1UTCTime |
Definition at line 185 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1UTF8String |
Definition at line 177 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
VALUE cASN1VideotexString |
Definition at line 179 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 509 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), and ossl_asn1_default_tag().
VALUE eASN1Error |
Definition at line 167 of file ossl_asn1.c.
Referenced by decode_bool(), decode_bstr(), decode_enum(), decode_eoc(), decode_int(), decode_null(), decode_obj(), decode_time(), Init_ossl_asn1(), int_ossl_asn1_decode0_cons(), int_ossl_decode_sanity_check(), obj_to_asn1bstr(), obj_to_asn1derstr(), obj_to_asn1gtime(), obj_to_asn1null(), obj_to_asn1obj(), obj_to_asn1str(), obj_to_asn1utime(), ossl_asn1_decode0(), ossl_asn1_default_tag(), ossl_asn1_get_asn1type(), ossl_asn1_initialize(), ossl_asn1_is_explicit(), ossl_asn1_tag(), ossl_asn1_tag_class(), ossl_asn1cons_to_der(), ossl_asn1data_initialize(), ossl_asn1data_to_der(), ossl_asn1obj_s_register(), ossl_asn1prim_to_der(), and ossl_x509attr_set_value().
|
static |
Definition at line 191 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), join_der(), and ossl_asn1cons_each().
VALUE mASN1 |
Definition at line 166 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), and ossl_x509attr_get_value().
|
static |
Definition at line 473 of file ossl_asn1.c.
|
static |
Definition at line 190 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 190 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 190 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 190 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 190 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), int_ossl_asn1_decode0_prim(), and ossl_asn1_get_asn1type().
|
static |
Definition at line 190 of file ossl_asn1.c.
Referenced by Init_ossl_asn1().
|
static |
Definition at line 189 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), ossl_asn1_class2sym(), ossl_asn1_decode0(), and ossl_asn1_tag_class().
|
static |
Definition at line 189 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), ossl_asn1_class2sym(), ossl_asn1_decode0(), ossl_asn1_initialize(), and ossl_asn1_tag_class().
|
static |
Definition at line 188 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), and ossl_asn1_is_explicit().
|
static |
Definition at line 188 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), ossl_asn1_initialize(), and ossl_asn1_is_explicit().
|
static |
Definition at line 189 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), ossl_asn1_class2sym(), ossl_asn1_decode0(), and ossl_asn1_tag_class().
|
static |
Definition at line 189 of file ossl_asn1.c.
Referenced by Init_ossl_asn1(), int_ossl_asn1_decode0_cons(), int_ossl_asn1_decode0_prim(), ossl_asn1_class2sym(), ossl_asn1_decode0(), ossl_asn1_initialize(), ossl_asn1_tag_class(), ossl_asn1data_initialize(), and ossl_asn1eoc_initialize().