Ruby  2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
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)

Definition at line 20 of file ossl_x509revoked.c.

◆ NewX509Rev

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

Definition at line 12 of file ossl_x509revoked.c.

◆ SetX509Rev

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

Definition at line 14 of file ossl_x509revoked.c.

Function Documentation

◆ DupX509RevokedPtr()

X509_REVOKED* DupX509RevokedPtr ( VALUE  obj)

Definition at line 71 of file ossl_x509revoked.c.

References eX509RevError, GetX509Rev, NULL, obj, 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
obj
const VALUE VALUE obj
Definition: rb_mjit_min_header-2.7.1.h:5742
rb_eRuntimeError
VALUE rb_eRuntimeError
Definition: error.c:920