Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
#define | NewSPKI(klass) TypedData_Wrap_Struct((klass), &ossl_netscape_spki_type, 0) |
#define | SetSPKI(obj, spki) |
#define | GetSPKI(obj, spki) |
Functions | |
static void | ossl_netscape_spki_free (void *spki) |
static VALUE | ossl_spki_alloc (VALUE klass) |
static VALUE | ossl_spki_initialize (int argc, VALUE *argv, VALUE self) |
static VALUE | ossl_spki_to_der (VALUE self) |
static VALUE | ossl_spki_to_pem (VALUE self) |
static VALUE | ossl_spki_print (VALUE self) |
static VALUE | ossl_spki_get_public_key (VALUE self) |
static VALUE | ossl_spki_set_public_key (VALUE self, VALUE key) |
static VALUE | ossl_spki_get_challenge (VALUE self) |
static VALUE | ossl_spki_set_challenge (VALUE self, VALUE str) |
static VALUE | ossl_spki_sign (VALUE self, VALUE key, VALUE digest) |
static VALUE | ossl_spki_verify (VALUE self, VALUE key) |
void | Init_ossl_ns_spki (void) |
Variables | |
VALUE | mNetscape |
VALUE | cSPKI |
VALUE | eSPKIError |
static const rb_data_type_t | ossl_netscape_spki_type |
#define GetSPKI | ( | obj, | |
spki | |||
) |
Definition at line 20 of file ossl_ns_spki.c.
Referenced by ossl_spki_get_challenge(), ossl_spki_get_public_key(), ossl_spki_print(), ossl_spki_set_challenge(), ossl_spki_set_public_key(), ossl_spki_sign(), ossl_spki_to_der(), ossl_spki_to_pem(), and ossl_spki_verify().
#define NewSPKI | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_netscape_spki_type, 0) |
Definition at line 12 of file ossl_ns_spki.c.
Referenced by ossl_spki_alloc().
#define SetSPKI | ( | obj, | |
spki | |||
) |
Definition at line 14 of file ossl_ns_spki.c.
Referenced by ossl_spki_alloc(), and ossl_spki_initialize().
void Init_ossl_ns_spki | ( | void | ) |
Definition at line 375 of file ossl_ns_spki.c.
References cSPKI, eOSSLError, eSPKIError, mNetscape, mOSSL, ossl_spki_alloc(), ossl_spki_get_challenge(), ossl_spki_get_public_key(), ossl_spki_initialize(), ossl_spki_print(), ossl_spki_set_challenge(), ossl_spki_set_public_key(), ossl_spki_sign(), ossl_spki_to_der(), ossl_spki_to_pem(), ossl_spki_verify(), rb_cObject, rb_define_alias(), rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_module(), rb_define_module_under(), and rb_eStandardError.
Referenced by Init_openssl().
|
static |
Definition at line 43 of file ossl_ns_spki.c.
Definition at line 57 of file ossl_ns_spki.c.
References eSPKIError, NewSPKI, NULL, ossl_raise(), and SetSPKI.
Referenced by Init_ossl_ns_spki().
Definition at line 227 of file ossl_ns_spki.c.
References GetSPKI, OSSL_Debug, and rb_str_new().
Referenced by Init_ossl_ns_spki().
Definition at line 183 of file ossl_ns_spki.c.
References eSPKIError, GetSPKI, NULL, ossl_pkey_new(), and ossl_raise().
Referenced by Init_ossl_ns_spki().
Definition at line 79 of file ossl_ns_spki.c.
References DATA_PTR, eSPKIError, NULL, ossl_clear_error(), ossl_raise(), rb_scan_args(), RSTRING_LEN, RSTRING_LENINT, RSTRING_PTR, SetSPKI, and StringValue.
Referenced by Init_ossl_ns_spki().
Definition at line 158 of file ossl_ns_spki.c.
References eSPKIError, GetSPKI, NULL, ossl_membio2str(), and ossl_raise().
Referenced by Init_ossl_ns_spki().
Definition at line 252 of file ossl_ns_spki.c.
References eSPKIError, GetSPKI, NULL, ossl_raise(), RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_ns_spki().
Definition at line 208 of file ossl_ns_spki.c.
References eSPKIError, GetPKeyPtr(), GetSPKI, key, NULL, and ossl_raise().
Referenced by Init_ossl_ns_spki().
Definition at line 280 of file ossl_ns_spki.c.
References eSPKIError, GetDigestPtr(), GetPrivPKeyPtr(), GetSPKI, NULL, and ossl_raise().
Referenced by Init_ossl_ns_spki().
Definition at line 109 of file ossl_ns_spki.c.
References eX509CertError, GetSPKI, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_ns_spki().
Definition at line 135 of file ossl_ns_spki.c.
References eSPKIError, GetSPKI, NULL, ossl_buf2str(), ossl_raise(), rb_long2int, and strlen().
Referenced by Init_ossl_ns_spki().
Definition at line 307 of file ossl_ns_spki.c.
References eSPKIError, GetPKeyPtr(), GetSPKI, NULL, ossl_raise(), Qfalse, Qnil, and Qtrue.
Referenced by Init_ossl_ns_spki().
VALUE cSPKI |
Definition at line 31 of file ossl_ns_spki.c.
Referenced by Init_ossl_ns_spki().
VALUE eSPKIError |
Definition at line 32 of file ossl_ns_spki.c.
Referenced by Init_ossl_ns_spki(), ossl_spki_alloc(), ossl_spki_get_public_key(), ossl_spki_initialize(), ossl_spki_print(), ossl_spki_set_challenge(), ossl_spki_set_public_key(), ossl_spki_sign(), ossl_spki_to_pem(), and ossl_spki_verify().
VALUE mNetscape |
Definition at line 30 of file ossl_ns_spki.c.
Referenced by Init_ossl_ns_spki().
|
static |
Definition at line 48 of file ossl_ns_spki.c.