Ruby  2.5.0dev(2017-10-22revision60238)
Macros | Functions | Variables
ossl_x509revoked.c File Reference
#include "ossl.h"

Go to the source code of this file.

Macros

#define NewX509Rev(klass)   TypedData_Wrap_Struct((klass), &ossl_x509rev_type, 0)
 
#define SetX509Rev(obj, rev)
 
#define GetX509Rev(obj, rev)
 

Functions

VALUE ossl_x509revoked_new (X509_REVOKED *rev)
 
X509_REVOKED * DupX509RevokedPtr (VALUE obj)
 
void Init_ossl_x509revoked (void)
 

Variables

VALUE cX509Rev
 
VALUE eX509RevError
 

Macro Definition Documentation

◆ GetX509Rev

#define GetX509Rev (   obj,
  rev 
)
Value:
do { \
TypedData_Get_Struct((obj), X509_REVOKED, &ossl_x509rev_type, (rev)); \
if (!(rev)) { \
ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
} \
} while (0)
VALUE rb_eRuntimeError
Definition: error.c:800

Definition at line 20 of file ossl_x509revoked.c.

Referenced by DupX509RevokedPtr().

◆ NewX509Rev

#define NewX509Rev (   klass)    TypedData_Wrap_Struct((klass), &ossl_x509rev_type, 0)

Definition at line 12 of file ossl_x509revoked.c.

Referenced by ossl_x509revoked_new().

◆ SetX509Rev

#define SetX509Rev (   obj,
  rev 
)
Value:
do { \
if (!(rev)) { \
ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
} \
RTYPEDDATA_DATA(obj) = (rev); \
} while (0)
VALUE rb_eRuntimeError
Definition: error.c:800

Definition at line 14 of file ossl_x509revoked.c.

Referenced by ossl_x509revoked_new().

Function Documentation

◆ DupX509RevokedPtr()

X509_REVOKED* DupX509RevokedPtr ( VALUE  obj)

Definition at line 71 of file ossl_x509revoked.c.

References eX509RevError, GetX509Rev, NULL, ossl_raise(), and X509_REVOKED_dup.

◆ Init_ossl_x509revoked()

void Init_ossl_x509revoked ( void  )

◆ ossl_x509revoked_new()

VALUE ossl_x509revoked_new ( X509_REVOKED *  rev)

Variable Documentation

◆ cX509Rev

VALUE cX509Rev

Definition at line 30 of file ossl_x509revoked.c.

Referenced by Init_ossl_x509revoked(), and ossl_x509revoked_new().

◆ eX509RevError

VALUE eX509RevError