Ruby  3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
Macros | Functions | Variables
ossl_pkcs7.h File Reference

(b76ad15ed0da636161de0243c547ee1e6fc95681)

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NewPKCS7(klass)   TypedData_Wrap_Struct((klass), &ossl_pkcs7_type, 0)
 
#define SetPKCS7(obj, pkcs7)
 
#define GetPKCS7(obj, pkcs7)
 

Functions

void Init_ossl_pkcs7 (void)
 

Variables

const rb_data_type_t ossl_pkcs7_type
 
VALUE cPKCS7
 
VALUE cPKCS7Signer
 
VALUE cPKCS7Recipient
 
VALUE ePKCS7Error
 

Macro Definition Documentation

◆ GetPKCS7

#define GetPKCS7 (   obj,
  pkcs7 
)
Value:
do { \
TypedData_Get_Struct((obj), PKCS7, &ossl_pkcs7_type, (pkcs7)); \
if (!(pkcs7)) { \
ossl_raise(rb_eRuntimeError, "PKCS7 wasn't initialized."); \
} \
} while (0)

Definition at line 21 of file ossl_pkcs7.h.

◆ NewPKCS7

#define NewPKCS7 (   klass)    TypedData_Wrap_Struct((klass), &ossl_pkcs7_type, 0)

Definition at line 13 of file ossl_pkcs7.h.

◆ SetPKCS7

#define SetPKCS7 (   obj,
  pkcs7 
)
Value:
do { \
if (!(pkcs7)) { \
ossl_raise(rb_eRuntimeError, "PKCS7 wasn't initialized."); \
} \
RTYPEDDATA_DATA(obj) = (pkcs7); \
} while (0)

Definition at line 15 of file ossl_pkcs7.h.

Function Documentation

◆ Init_ossl_pkcs7()

void Init_ossl_pkcs7 ( void  )

Variable Documentation

◆ cPKCS7

VALUE cPKCS7

Definition at line 52 of file ossl_pkcs7.c.

Referenced by Init_ossl_pkcs7().

◆ cPKCS7Recipient

VALUE cPKCS7Recipient

Definition at line 54 of file ossl_pkcs7.c.

◆ cPKCS7Signer

VALUE cPKCS7Signer

Definition at line 53 of file ossl_pkcs7.c.

◆ ePKCS7Error

VALUE ePKCS7Error

Definition at line 55 of file ossl_pkcs7.c.

Referenced by Init_ossl_pkcs7().

◆ ossl_pkcs7_type

const rb_data_type_t ossl_pkcs7_type

Definition at line 63 of file ossl_pkcs7.c.

rb_eRuntimeError
VALUE rb_eRuntimeError
Definition: error.c:1091
ossl_pkcs7_type
const rb_data_type_t ossl_pkcs7_type
Definition: ossl_pkcs7.c:63