Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewX509Attr(klass) TypedData_Wrap_Struct((klass), &ossl_x509attr_type, 0) |
#define | SetX509Attr(obj, attr) |
#define | GetX509Attr(obj, attr) |
#define | SafeGetX509Attr(obj, attr) |
Functions | |
static void | ossl_x509attr_free (void *ptr) |
VALUE | ossl_x509attr_new (X509_ATTRIBUTE *attr) |
X509_ATTRIBUTE * | GetX509AttrPtr (VALUE obj) |
static VALUE | ossl_x509attr_alloc (VALUE klass) |
static VALUE | ossl_x509attr_initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_x509attr_initialize_copy (VALUE self, VALUE other) |
static VALUE | ossl_x509attr_set_oid (VALUE self, VALUE oid) |
static VALUE | ossl_x509attr_get_oid (VALUE self) |
static VALUE | ossl_x509attr_set_value (VALUE self, VALUE value) |
static VALUE | ossl_x509attr_get_value (VALUE self) |
static VALUE | ossl_x509attr_to_der (VALUE self) |
void | Init_ossl_x509attr (void) |
Variables | |
VALUE | cX509Attr |
VALUE | eX509AttrError |
static const rb_data_type_t | ossl_x509attr_type |
#define GetX509Attr | ( | obj, | |
attr | |||
) |
Definition at line 20 of file ossl_x509attr.c.
Referenced by ossl_x509attr_get_oid(), ossl_x509attr_get_value(), ossl_x509attr_initialize(), ossl_x509attr_initialize_copy(), ossl_x509attr_set_oid(), ossl_x509attr_set_value(), and ossl_x509attr_to_der().
#define NewX509Attr | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_x509attr_type, 0) |
Definition at line 12 of file ossl_x509attr.c.
Referenced by ossl_x509attr_alloc(), and ossl_x509attr_new().
#define SafeGetX509Attr | ( | obj, | |
attr | |||
) |
Definition at line 26 of file ossl_x509attr.c.
Referenced by GetX509AttrPtr(), and ossl_x509attr_initialize_copy().
#define SetX509Attr | ( | obj, | |
attr | |||
) |
Definition at line 14 of file ossl_x509attr.c.
Referenced by ossl_x509attr_alloc(), ossl_x509attr_initialize_copy(), ossl_x509attr_new(), and ossl_x509attr_set_value().
X509_ATTRIBUTE* GetX509AttrPtr | ( | VALUE | obj | ) |
Definition at line 75 of file ossl_x509attr.c.
References SafeGetX509Attr.
Referenced by ossl_x509req_add_attribute(), and ossl_x509req_set_attributes().
void Init_ossl_x509attr | ( | void | ) |
Definition at line 309 of file ossl_x509attr.c.
References cX509Attr, eOSSLError, eX509AttrError, mOSSL, mX509, ossl_x509attr_alloc(), ossl_x509attr_get_oid(), ossl_x509attr_get_value(), ossl_x509attr_initialize(), ossl_x509attr_initialize_copy(), ossl_x509attr_set_oid(), ossl_x509attr_set_value(), ossl_x509attr_to_der(), rb_cObject, 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 88 of file ossl_x509attr.c.
References eX509AttrError, NewX509Attr, NULL, ossl_raise(), and SetX509Attr.
Referenced by Init_ossl_x509attr().
|
static |
Definition at line 38 of file ossl_x509attr.c.
Definition at line 178 of file ossl_x509attr.c.
References eX509AttrError, GetX509Attr, nid, NULL, ossl_membio2str(), ossl_raise(), and rb_str_new2.
Referenced by Init_ossl_x509attr().
Definition at line 248 of file ossl_x509attr.c.
References count, eX509AttrError, GetX509Attr, i2d_ASN1_SET_ANY, len, mASN1, NULL, ossl_raise(), ossl_str_adjust, rb_funcall(), rb_intern, rb_str_new(), RSTRING_PTR, and STACK_OF().
Referenced by Init_ossl_x509attr().
Definition at line 106 of file ossl_x509attr.c.
References DATA_PTR, eX509AttrError, GetX509Attr, 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_x509attr().
Definition at line 131 of file ossl_x509attr.c.
References eX509AttrError, GetX509Attr, ossl_raise(), rb_check_frozen, SafeGetX509Attr, and SetX509Attr.
Referenced by Init_ossl_x509attr().
VALUE ossl_x509attr_new | ( | X509_ATTRIBUTE * | attr | ) |
Definition at line 55 of file ossl_x509attr.c.
References cX509Attr, eX509AttrError, NewX509Attr, NULL, ossl_raise(), and SetX509Attr.
Referenced by ossl_x509req_get_attributes().
Definition at line 154 of file ossl_x509attr.c.
References eX509AttrError, GetX509Attr, NULL, ossl_raise(), and StringValueCStr.
Referenced by Init_ossl_x509attr().
Definition at line 205 of file ossl_x509attr.c.
References cASN1Data, eASN1Error, eX509AttrError, GetX509Attr, NULL, NUM2INT, ossl_asn1_get_asn1type(), OSSL_Check_Kind, ossl_raise(), RARRAY_AREF, RARRAY_LEN, rb_attr_get(), rb_intern, RB_TYPE_P, SetX509Attr, and T_ARRAY.
Referenced by Init_ossl_x509attr().
Definition at line 286 of file ossl_x509attr.c.
References eX509AttrError, GetX509Attr, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_x509attr().
VALUE cX509Attr |
Definition at line 34 of file ossl_x509attr.c.
Referenced by Init_ossl_x509attr(), ossl_x509attr_new(), and ossl_x509req_set_attributes().
VALUE eX509AttrError |
Definition at line 35 of file ossl_x509attr.c.
Referenced by Init_ossl_x509attr(), ossl_x509attr_alloc(), ossl_x509attr_get_oid(), ossl_x509attr_get_value(), ossl_x509attr_initialize(), ossl_x509attr_initialize_copy(), ossl_x509attr_new(), ossl_x509attr_set_oid(), ossl_x509attr_set_value(), and ossl_x509attr_to_der().
|
static |
Definition at line 43 of file ossl_x509attr.c.