Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-12-25 08:58:34 +0300
committerAdam Langley <alangley@gmail.com>2016-01-28 03:29:34 +0300
commitb6155e60f3eab82ce35c27de90b642f59d26598b (patch)
treeef6ce8dd100d230d134c0c49d0dcc32b00b435ec /crypto/evp
parent4e98e5c903785a96a3e263a892941e90af56cb5f (diff)
Remove app_data from EVP_PKEY_CTX.
It's never used. It's not clear why one would want such a thing. EVP_PKEY_CTX has no way for callers to register callbacks, which means there shouldn't be a way for the library to present you an EVP_PKEY_CTX out-of-context. (Whereas app_data/ex_data makes sense on SSL because of its numerous callbacks or RSA because of RSA_METHOD.) Change-Id: I55af537ab101682677af34f6ac1f2c27b5899a89 Reviewed-on: https://boringssl-review.googlesource.com/6849 Reviewed-by: Adam Langley <alangley@gmail.com>
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp_ctx.c6
-rw-r--r--crypto/evp/internal.h2
2 files changed, 0 insertions, 8 deletions
diff --git a/crypto/evp/evp_ctx.c b/crypto/evp/evp_ctx.c
index e2f4bee6..b06eefd6 100644
--- a/crypto/evp/evp_ctx.c
+++ b/crypto/evp/evp_ctx.c
@@ -193,12 +193,6 @@ err:
EVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx) { return ctx->pkey; }
-void EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data) {
- ctx->app_data = data;
-}
-
-void *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) { return ctx->app_data; }
-
int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd,
int p1, void *p2) {
if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl) {
diff --git a/crypto/evp/internal.h b/crypto/evp/internal.h
index fa57ae96..3acc3614 100644
--- a/crypto/evp/internal.h
+++ b/crypto/evp/internal.h
@@ -218,8 +218,6 @@ struct evp_pkey_ctx_st {
int operation;
/* Algorithm specific data */
void *data;
- /* Application specific data */
- void *app_data;
} /* EVP_PKEY_CTX */;
struct evp_pkey_method_st {