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

Go to the source code of this file.

Data Structures

struct  dsa_blocking_gen_arg
 

Macros

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

Functions

VALUE ossl_dsa_new (EVP_PKEY *pkey)
 
void Init_ossl_dsa (void)
 

Variables

VALUE cDSA
 
VALUE eDSAError
 

Macro Definition Documentation

◆ DSAPublicKey_dup

#define DSAPublicKey_dup (   dsa)
Value:
(DSA *)ASN1_dup( \
(i2d_of_void *)i2d_DSAPublicKey, (d2i_of_void *)d2i_DSAPublicKey, (char *)(dsa))

◆ 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)
VALUE rb_eRuntimeError
Definition: error.c:800

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))
#define bp()
Definition: vm_debug.h:25

Function Documentation

◆ Init_ossl_dsa()

void Init_ossl_dsa ( void  )

◆ ossl_dsa_new()

VALUE ossl_dsa_new ( EVP_PKEY *  pkey)

Definition at line 72 of file ossl_pkey_dsa.c.

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().