Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ext/openssl/ossl_pkey_dh.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
EVP_PKEY *_pkey; \
GetPKeyDH((obj), _pkey); \
(dh) = EVP_PKEY_get0_DH(_pkey); \
if ((dh) == NULL) \
ossl_raise(eDHError, "failed to get DH from EVP_PKEY"); \
} while (0)

/*
Expand Down
2 changes: 2 additions & 0 deletions ext/openssl/ossl_pkey_dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
EVP_PKEY *_pkey; \
GetPKeyDSA((obj), _pkey); \
(dsa) = EVP_PKEY_get0_DSA(_pkey); \
if ((dsa) == NULL) \
ossl_raise(eDSAError, "failed to get DSA from EVP_PKEY"); \
} while (0)

static inline int
Expand Down
2 changes: 2 additions & 0 deletions ext/openssl/ossl_pkey_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ static const rb_data_type_t ossl_ec_point_type;
EVP_PKEY *_pkey; \
GetPKeyEC(obj, _pkey); \
(key) = EVP_PKEY_get0_EC_KEY(_pkey); \
if ((key) == NULL) \
ossl_raise(eECError, "failed to get EC_KEY from EVP_PKEY"); \
} while (0)

#define GetECGroup(obj, group) do { \
Expand Down
2 changes: 2 additions & 0 deletions ext/openssl/ossl_pkey_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
EVP_PKEY *_pkey; \
GetPKeyRSA((obj), _pkey); \
(rsa) = EVP_PKEY_get0_RSA(_pkey); \
if ((rsa) == NULL) \
ossl_raise(eRSAError, "failed to get RSA from EVP_PKEY"); \
} while (0)

static inline int
Expand Down
Loading