From bbbc96a87ed548788676874cf5387b5844e37d42 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 6 Nov 2000 23:24:59 +0000 Subject: [PATCH] Constification of CRYPTO_get_ex_data() needed for the sake of RSA_get_ext_data(). --- crypto/crypto.h | 2 +- crypto/ex_data.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/crypto.h b/crypto/crypto.h index 52ee97b71a..08bb1fc83e 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -281,7 +281,7 @@ unsigned long SSLeay(void); int CRYPTO_get_ex_new_index(int idx, STACK_OF(CRYPTO_EX_DATA_FUNCS) **skp, long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val); -void *CRYPTO_get_ex_data(CRYPTO_EX_DATA *ad,int idx); +void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad,int idx); int CRYPTO_dup_ex_data(STACK_OF(CRYPTO_EX_DATA_FUNCS) *meth, CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from); void CRYPTO_free_ex_data(STACK_OF(CRYPTO_EX_DATA_FUNCS) *meth, void *obj, CRYPTO_EX_DATA *ad); diff --git a/crypto/ex_data.c b/crypto/ex_data.c index 739e543d78..35ea2c2982 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -131,7 +131,7 @@ int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val) return(1); } -void *CRYPTO_get_ex_data(CRYPTO_EX_DATA *ad, int idx) +void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx) { if (ad->sk == NULL) return(0); -- 2.25.1