Ruby  2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
Macros | Functions | Variables
ossl_x509req.c File Reference
#include "ossl.h"

Go to the source code of this file.

Macros

#define NewX509Req(klass)   TypedData_Wrap_Struct((klass), &ossl_x509req_type, 0)
 
#define SetX509Req(obj, req)
 
#define GetX509Req(obj, req)
 

Functions

X509_REQ * GetX509ReqPtr (VALUE obj)
 
void Init_ossl_x509req (void)
 

Variables

VALUE cX509Req
 
VALUE eX509ReqError
 

Macro Definition Documentation

◆ GetX509Req

#define GetX509Req (   obj,
  req 
)
Value:
do { \
TypedData_Get_Struct((obj), X509_REQ, &ossl_x509req_type, (req)); \
if (!(req)) { \
ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \
} \
} while (0)

Definition at line 20 of file ossl_x509req.c.

◆ NewX509Req

#define NewX509Req (   klass)    TypedData_Wrap_Struct((klass), &ossl_x509req_type, 0)

Definition at line 12 of file ossl_x509req.c.

◆ SetX509Req

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

Definition at line 14 of file ossl_x509req.c.

Function Documentation

◆ GetX509ReqPtr()

X509_REQ* GetX509ReqPtr ( VALUE  obj)

Definition at line 51 of file ossl_x509req.c.

References GetX509Req, and obj.

◆ Init_ossl_x509req()

void Init_ossl_x509req ( void  )

Variable Documentation

◆ cX509Req

VALUE cX509Req

Definition at line 30 of file ossl_x509req.c.

Referenced by Init_ossl_x509req().

◆ eX509ReqError

VALUE eX509ReqError

Definition at line 31 of file ossl_x509req.c.

Referenced by Init_ossl_x509req().

obj
const VALUE VALUE obj
Definition: rb_mjit_min_header-2.7.1.h:5742
rb_eRuntimeError
VALUE rb_eRuntimeError
Definition: error.c:920