Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewPKCS12(klass) TypedData_Wrap_Struct((klass), &ossl_pkcs12_type, 0) |
#define | SetPKCS12(obj, p12) |
#define | GetPKCS12(obj, p12) |
#define | SafeGetPKCS12(obj, p12) |
#define | ossl_pkcs12_set_key(o, v) rb_iv_set((o), "@key", (v)) |
#define | ossl_pkcs12_set_cert(o, v) rb_iv_set((o), "@certificate", (v)) |
#define | ossl_pkcs12_set_ca_certs(o, v) rb_iv_set((o), "@ca_certs", (v)) |
#define | ossl_pkcs12_get_key(o) rb_iv_get((o), "@key") |
#define | ossl_pkcs12_get_cert(o) rb_iv_get((o), "@certificate") |
#define | ossl_pkcs12_get_ca_certs(o) rb_iv_get((o), "@ca_certs") |
Functions | |
static void | ossl_pkcs12_free (void *ptr) |
static VALUE | ossl_pkcs12_s_allocate (VALUE klass) |
static VALUE | ossl_pkcs12_initialize_copy (VALUE self, VALUE other) |
static VALUE | ossl_pkcs12_s_create (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_pkcs12_initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_pkcs12_to_der (VALUE self) |
void | Init_ossl_pkcs12 (void) |
Variables | |
VALUE | cPKCS12 |
VALUE | ePKCS12Error |
static const rb_data_type_t | ossl_pkcs12_type |
#define GetPKCS12 | ( | obj, | |
p12 | |||
) |
Definition at line 15 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_initialize_copy(), and ossl_pkcs12_to_der().
#define NewPKCS12 | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_pkcs12_type, 0) |
Definition at line 7 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_s_allocate(), and ossl_pkcs12_s_create().
#define ossl_pkcs12_get_ca_certs | ( | o | ) | rb_iv_get((o), "@ca_certs") |
Definition at line 30 of file ossl_pkcs12.c.
#define ossl_pkcs12_get_cert | ( | o | ) | rb_iv_get((o), "@certificate") |
Definition at line 29 of file ossl_pkcs12.c.
#define ossl_pkcs12_get_key | ( | o | ) | rb_iv_get((o), "@key") |
Definition at line 28 of file ossl_pkcs12.c.
#define ossl_pkcs12_set_ca_certs | ( | o, | |
v | |||
) | rb_iv_set((o), "@ca_certs", (v)) |
Definition at line 27 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_initialize(), and ossl_pkcs12_s_create().
#define ossl_pkcs12_set_cert | ( | o, | |
v | |||
) | rb_iv_set((o), "@certificate", (v)) |
Definition at line 26 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_initialize(), and ossl_pkcs12_s_create().
#define ossl_pkcs12_set_key | ( | o, | |
v | |||
) | rb_iv_set((o), "@key", (v)) |
Definition at line 25 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_initialize(), and ossl_pkcs12_s_create().
#define SafeGetPKCS12 | ( | obj, | |
p12 | |||
) |
Definition at line 20 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_initialize_copy().
#define SetPKCS12 | ( | obj, | |
p12 | |||
) |
Definition at line 10 of file ossl_pkcs12.c.
Referenced by ossl_pkcs12_initialize_copy(), ossl_pkcs12_s_allocate(), and ossl_pkcs12_s_create().
void Init_ossl_pkcs12 | ( | void | ) |
Definition at line 238 of file ossl_pkcs12.c.
References cPKCS12, eOSSLError, ePKCS12Error, mOSSL, ossl_pkcs12_initialize(), ossl_pkcs12_initialize_copy(), ossl_pkcs12_s_allocate(), ossl_pkcs12_s_create(), ossl_pkcs12_to_der(), 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_singleton_method(), rb_eStandardError, and rb_intern.
Referenced by Init_openssl().
|
static |
Definition at line 42 of file ossl_pkcs12.c.
Definition at line 168 of file ossl_pkcs12.c.
References DATA_PTR, ePKCS12Error, err, key, NIL_P, NULL, ossl_obj2bio(), ossl_pkcs12_set_ca_certs, ossl_pkcs12_set_cert, ossl_pkcs12_set_key, ossl_pkey_new(), ossl_raise(), ossl_x509_new(), ossl_x509_sk2ary(), Qnil, rb_jump_tag(), rb_protect(), rb_scan_args(), STACK_OF(), and StringValueCStr.
Referenced by Init_ossl_pkcs12().
Definition at line 69 of file ossl_pkcs12.c.
References ePKCS12Error, GetPKCS12, ossl_raise(), rb_check_frozen, SafeGetPKCS12, and SetPKCS12.
Referenced by Init_ossl_pkcs12().
Definition at line 56 of file ossl_pkcs12.c.
References ePKCS12Error, NewPKCS12, NULL, ossl_raise(), and SetPKCS12.
Referenced by Init_ossl_pkcs12().
Definition at line 110 of file ossl_pkcs12.c.
References cPKCS12, ePKCS12Error, GetPKeyPtr(), GetX509CertPtr(), key, name, NewPKCS12, NIL_P, NULL, NUM2INT, ossl_pkcs12_set_ca_certs, ossl_pkcs12_set_cert, ossl_pkcs12_set_key, ossl_raise(), PRIsVALUE, rb_eArgError, rb_scan_args(), SetPKCS12, STACK_OF(), and StringValueCStr.
Referenced by Init_ossl_pkcs12().
Definition at line 218 of file ossl_pkcs12.c.
References ePKCS12Error, GetPKCS12, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_pkcs12().
VALUE cPKCS12 |
Definition at line 35 of file ossl_pkcs12.c.
Referenced by Init_ossl_pkcs12(), and ossl_pkcs12_s_create().
VALUE ePKCS12Error |
Definition at line 36 of file ossl_pkcs12.c.
Referenced by Init_ossl_pkcs12(), ossl_pkcs12_initialize(), ossl_pkcs12_initialize_copy(), ossl_pkcs12_s_allocate(), ossl_pkcs12_s_create(), and ossl_pkcs12_to_der().
|
static |
Definition at line 47 of file ossl_pkcs12.c.