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

(b76ad15ed0da636161de0243c547ee1e6fc95681)

#include "ossl.h"
Include dependency graph for ossl_pkey_dsa.c:

Go to the source code of this file.

Macros

#define GetPKeyDSA(obj, pkey)
 
#define GetDSA(obj, dsa)
 
#define PEM_read_bio_DSAPublicKey(bp, x, cb, u)
 

Functions

void Init_ossl_dsa (void)
 

Variables

VALUE cDSA
 
VALUE eDSAError
 

Macro Definition Documentation

◆ GetDSA

#define GetDSA (   obj,
  dsa 
)
Value:
do { \
EVP_PKEY *_pkey; \
GetPKeyDSA((obj), _pkey); \
(dsa) = EVP_PKEY_get0_DSA(_pkey); \
} while (0)

Definition at line 20 of file ossl_pkey_dsa.c.

◆ GetPKeyDSA

#define GetPKeyDSA (   obj,
  pkey 
)
Value:
do { \
GetPKey((obj), (pkey)); \
if (EVP_PKEY_base_id(pkey) != EVP_PKEY_DSA) { /* PARANOIA? */ \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A DSA!"); \
} \
} while (0)

Definition at line 14 of file ossl_pkey_dsa.c.

◆ PEM_read_bio_DSAPublicKey

#define PEM_read_bio_DSAPublicKey (   bp,
  x,
  cb,
 
)
Value:
(DSA *)PEM_ASN1_read_bio( \
(d2i_of_void *)d2i_DSAPublicKey, PEM_STRING_DSA_PUBLIC, (bp), (void **)(x), (cb), (u))

Function Documentation

◆ Init_ossl_dsa()

void Init_ossl_dsa ( void  )

Variable Documentation

◆ cDSA

VALUE cDSA

Definition at line 43 of file ossl_pkey_dsa.c.

Referenced by Init_ossl_dsa().

◆ eDSAError

VALUE eDSAError

Definition at line 44 of file ossl_pkey_dsa.c.

Referenced by Init_ossl_dsa().

bp
#define bp()
Definition: internal.h:105
rb_eRuntimeError
VALUE rb_eRuntimeError
Definition: error.c:1091