Skip to content

Commit a597d2b

Browse files
noburhenium
authored andcommitted
openssl_missing.h: constified
* ext/openssl/openssl_missing.h (IMPL_KEY_ACCESSOR{2,3}): constified obj argument getters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sync-with-trunk: r63684
1 parent 46436d0 commit a597d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/openssl_missing.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void ossl_X509_REQ_get0_signature(const X509_REQ *, const ASN1_BIT_STRING **, co
196196
static inline _type *EVP_PKEY_get0_##_type(EVP_PKEY *pkey) { \
197197
return pkey->pkey._name; }
198198
#define IMPL_KEY_ACCESSOR2(_type, _group, a1, a2, _fail_cond) \
199-
static inline void _type##_get0_##_group(_type *obj, const BIGNUM **a1, const BIGNUM **a2) { \
199+
static inline void _type##_get0_##_group(const _type *obj, const BIGNUM **a1, const BIGNUM **a2) { \
200200
if (a1) *a1 = obj->a1; \
201201
if (a2) *a2 = obj->a2; } \
202202
static inline int _type##_set0_##_group(_type *obj, BIGNUM *a1, BIGNUM *a2) { \
@@ -205,7 +205,7 @@ static inline int _type##_set0_##_group(_type *obj, BIGNUM *a1, BIGNUM *a2) { \
205205
BN_clear_free(obj->a2); obj->a2 = a2; \
206206
return 1; }
207207
#define IMPL_KEY_ACCESSOR3(_type, _group, a1, a2, a3, _fail_cond) \
208-
static inline void _type##_get0_##_group(_type *obj, const BIGNUM **a1, const BIGNUM **a2, const BIGNUM **a3) { \
208+
static inline void _type##_get0_##_group(const _type *obj, const BIGNUM **a1, const BIGNUM **a2, const BIGNUM **a3) { \
209209
if (a1) *a1 = obj->a1; \
210210
if (a2) *a2 = obj->a2; \
211211
if (a3) *a3 = obj->a3; } \

0 commit comments

Comments
 (0)