summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-07 00:24:59 +0100
committerRichard Levitte <levitte@openssl.org>2000-11-07 00:24:59 +0100
commitbbbc96a87ed548788676874cf5387b5844e37d42 (patch)
tree0a68b7c5bbb004975bda288fca999b1036e486bd /crypto
parentThe consequence of constification is that to pass the address to a (diff)
downloadopenssl-bbbc96a87ed548788676874cf5387b5844e37d42.tar.xz
openssl-bbbc96a87ed548788676874cf5387b5844e37d42.zip
Constification of CRYPTO_get_ex_data() needed for the sake of
RSA_get_ext_data().
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.h2
-rw-r--r--crypto/ex_data.c2
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);