Ruby  2.0.0p645(2015-04-13revision50299)
Macros | Functions | Variables
ossl_x509crl.c File Reference
#include "ossl.h"

Go to the source code of this file.

Macros

#define WrapX509CRL(klass, obj, crl)
 
#define GetX509CRL(obj, crl)
 
#define SafeGetX509CRL(obj, crl)
 

Functions

X509_CRL * GetX509CRLPtr (VALUE obj)
 
X509_CRL * DupX509CRLPtr (VALUE obj)
 
VALUE ossl_x509crl_new (X509_CRL *crl)
 
static VALUE ossl_x509crl_alloc (VALUE klass)
 
static VALUE ossl_x509crl_initialize (int argc, VALUE *argv, VALUE self)
 
static VALUE ossl_x509crl_copy (VALUE self, VALUE other)
 
static VALUE ossl_x509crl_get_version (VALUE self)
 
static VALUE ossl_x509crl_set_version (VALUE self, VALUE version)
 
static VALUE ossl_x509crl_get_signature_algorithm (VALUE self)
 
static VALUE ossl_x509crl_get_issuer (VALUE self)
 
static VALUE ossl_x509crl_set_issuer (VALUE self, VALUE issuer)
 
static VALUE ossl_x509crl_get_last_update (VALUE self)
 
static VALUE ossl_x509crl_set_last_update (VALUE self, VALUE time)
 
static VALUE ossl_x509crl_get_next_update (VALUE self)
 
static VALUE ossl_x509crl_set_next_update (VALUE self, VALUE time)
 
static VALUE ossl_x509crl_get_revoked (VALUE self)
 
static VALUE ossl_x509crl_set_revoked (VALUE self, VALUE ary)
 
static VALUE ossl_x509crl_add_revoked (VALUE self, VALUE revoked)
 
static VALUE ossl_x509crl_sign (VALUE self, VALUE key, VALUE digest)
 
static VALUE ossl_x509crl_verify (VALUE self, VALUE key)
 
static VALUE ossl_x509crl_to_der (VALUE self)
 
static VALUE ossl_x509crl_to_pem (VALUE self)
 
static VALUE ossl_x509crl_to_text (VALUE self)
 
static VALUE ossl_x509crl_get_extensions (VALUE self)
 
static VALUE ossl_x509crl_set_extensions (VALUE self, VALUE ary)
 
static VALUE ossl_x509crl_add_extension (VALUE self, VALUE extension)
 
void Init_ossl_x509crl ()
 

Variables

VALUE cX509CRL
 
VALUE eX509CRLError
 

Macro Definition Documentation

#define GetX509CRL (   obj,
  crl 
)
#define SafeGetX509CRL (   obj,
  crl 
)
Value:
do { \
GetX509CRL((obj), (crl)); \
} while (0)
#define GetX509CRL(obj, crl)
Definition: ossl_x509crl.c:19
VALUE cX509CRL
Definition: ossl_x509crl.c:33
#define OSSL_Check_Kind(obj, klass)
Definition: ossl.h:96

Definition at line 25 of file ossl_x509crl.c.

Referenced by DupX509CRLPtr(), GetX509CRLPtr(), and ossl_x509crl_copy().

#define WrapX509CRL (   klass,
  obj,
  crl 
)
Value:
do { \
if (!(crl)) { \
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
} \
(obj) = Data_Wrap_Struct((klass), 0, X509_CRL_free, (crl)); \
} while (0)
if(dispIdMember==DISPID_VALUE)
Definition: win32ole.c:791
#define Data_Wrap_Struct(klass, mark, free, sval)
Definition: ruby.h:1007
VALUE rb_eRuntimeError
Definition: error.c:515
void ossl_raise(VALUE exc, const char *fmt,...)
Definition: ossl.c:333

Definition at line 13 of file ossl_x509crl.c.

Referenced by ossl_x509crl_alloc(), and ossl_x509crl_new().

Function Documentation

X509_CRL* DupX509CRLPtr ( VALUE  obj)

Definition at line 50 of file ossl_x509crl.c.

References SafeGetX509CRL.

X509_CRL* GetX509CRLPtr ( VALUE  obj)
void Init_ossl_x509crl ( void  )
static VALUE ossl_x509crl_add_extension ( VALUE  self,
VALUE  extension 
)
static

Definition at line 485 of file ossl_x509crl.c.

References DupX509ExtPtr(), eX509CRLError, GetX509CRL, NULL, and ossl_raise().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_add_revoked ( VALUE  self,
VALUE  revoked 
)
static
static VALUE ossl_x509crl_alloc ( VALUE  klass)
static

Definition at line 77 of file ossl_x509crl.c.

References eX509CRLError, NULL, ossl_raise(), and WrapX509CRL.

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_copy ( VALUE  self,
VALUE  other 
)
static

Definition at line 116 of file ossl_x509crl.c.

References DATA_PTR, eX509CRLError, GetX509CRL, NULL, ossl_raise(), rb_check_frozen, and SafeGetX509CRL.

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_get_extensions ( VALUE  self)
static
static VALUE ossl_x509crl_get_issuer ( VALUE  self)
static

Definition at line 185 of file ossl_x509crl.c.

References GetX509CRL, and ossl_x509name_new().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_get_last_update ( VALUE  self)
static

Definition at line 208 of file ossl_x509crl.c.

References asn1time_to_time(), and GetX509CRL.

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_get_next_update ( VALUE  self)
static

Definition at line 233 of file ossl_x509crl.c.

References asn1time_to_time(), and GetX509CRL.

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_get_revoked ( VALUE  self)
static
static VALUE ossl_x509crl_get_signature_algorithm ( VALUE  self)
static

Definition at line 163 of file ossl_x509crl.c.

References buf, eX509CRLError, GetX509CRL, NULL, ossl_raise(), and rb_str_new().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_get_version ( VALUE  self)
static

Definition at line 134 of file ossl_x509crl.c.

References GetX509CRL, and LONG2NUM.

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_initialize ( int  argc,
VALUE argv,
VALUE  self 
)
static
VALUE ossl_x509crl_new ( X509_CRL *  crl)

Definition at line 61 of file ossl_x509crl.c.

References cX509CRL, eX509CRLError, NULL, ossl_raise(), and WrapX509CRL.

Referenced by ossl_x509stctx_get_curr_crl().

static VALUE ossl_x509crl_set_extensions ( VALUE  self,
VALUE  ary 
)
static
static VALUE ossl_x509crl_set_issuer ( VALUE  self,
VALUE  issuer 
)
static
static VALUE ossl_x509crl_set_last_update ( VALUE  self,
VALUE  time 
)
static

Definition at line 218 of file ossl_x509crl.c.

References eX509CRLError, GetX509CRL, NULL, ossl_raise(), and time_to_time_t().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_set_next_update ( VALUE  self,
VALUE  time 
)
static

Definition at line 243 of file ossl_x509crl.c.

References eX509CRLError, GetX509CRL, NULL, ossl_raise(), and time_to_time_t().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_set_revoked ( VALUE  self,
VALUE  ary 
)
static
static VALUE ossl_x509crl_set_version ( VALUE  self,
VALUE  version 
)
static

Definition at line 146 of file ossl_x509crl.c.

References eX509CRLError, GetX509CRL, NULL, NUM2LONG, ossl_raise(), version(), and X509_CRL_set_version().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_sign ( VALUE  self,
VALUE  key,
VALUE  digest 
)
static

Definition at line 326 of file ossl_x509crl.c.

References eX509CRLError, GetDigestPtr(), GetPrivPKeyPtr(), GetX509CRL, NULL, and ossl_raise().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_to_der ( VALUE  self)
static

Definition at line 360 of file ossl_x509crl.c.

References buf, eX509CRLError, GetX509CRL, NULL, ossl_raise(), and rb_str_new().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_to_pem ( VALUE  self)
static

Definition at line 383 of file ossl_x509crl.c.

References buf, eX509CRLError, GetX509CRL, NULL, ossl_raise(), and rb_str_new().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_to_text ( VALUE  self)
static

Definition at line 406 of file ossl_x509crl.c.

References buf, eX509CRLError, GetX509CRL, NULL, ossl_raise(), and rb_str_new().

Referenced by Init_ossl_x509crl().

static VALUE ossl_x509crl_verify ( VALUE  self,
VALUE  key 
)
static

Definition at line 343 of file ossl_x509crl.c.

References eX509CRLError, GetPKeyPtr(), GetX509CRL, NULL, ossl_raise(), Qfalse, and Qtrue.

Referenced by Init_ossl_x509crl().

Variable Documentation

VALUE cX509CRL

Definition at line 33 of file ossl_x509crl.c.

Referenced by Init_ossl_x509crl(), and ossl_x509crl_new().

VALUE eX509CRLError