diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-19 10:22:15 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-23 23:57:06 +0900 |
commit | 104d5cf90ad4d32d8b7a5916fb9c7d29e916db9e (patch) | |
tree | 7d0065aa9168e04173c8605ba98683dcbe5952cd /crypto/x509/x509_lu.c | |
parent | acde647fb0347f64af8f8678b73ce41f2f499c02 (diff) | |
download | openssl-fix/x509-store-ex-data.tar.gz |
Add ex_data functions for X509_STOREfix/x509-store-ex-data
Add X509_STORE_{set,get}_ex_data() function and
X509_STORE_get_ex_new_index() macro.
X509_STORE has ex_data and the documentation also mentions them but they
are not actually implemented.
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index b822966203..92c25996a7 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -743,6 +743,16 @@ void X509_STORE_set_lookup_crls_cb(X509_STORE *ctx, ctx->lookup_crls = cb; } +int X509_STORE_set_ex_data(X509_STORE *ctx, int idx, void *data) +{ + return CRYPTO_set_ex_data(&ctx->ex_data, idx, data); +} + +void *X509_STORE_get_ex_data(X509_STORE *ctx, int idx) +{ + return CRYPTO_get_ex_data(&ctx->ex_data, idx); +} + X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx) { return ctx->ctx; |