diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/evp/evp_lib.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_lib.c b/src/lib/libcrypto/evp/evp_lib.c index d74a53997e..63bd147fea 100644 --- a/src/lib/libcrypto/evp/evp_lib.c +++ b/src/lib/libcrypto/evp/evp_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_lib.c,v 1.20 2021/12/24 12:02:15 tb Exp $ */ | 1 | /* $OpenBSD: evp_lib.c,v 1.21 2021/12/24 12:55:04 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -239,6 +239,23 @@ EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) | |||
239 | ctx->app_data = data; | 239 | ctx->app_data = data; |
240 | } | 240 | } |
241 | 241 | ||
242 | void * | ||
243 | EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx) | ||
244 | { | ||
245 | return ctx->cipher_data; | ||
246 | } | ||
247 | |||
248 | void * | ||
249 | EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) | ||
250 | { | ||
251 | void *old_cipher_data; | ||
252 | |||
253 | old_cipher_data = ctx->cipher_data; | ||
254 | ctx->cipher_data = cipher_data; | ||
255 | |||
256 | return old_cipher_data; | ||
257 | } | ||
258 | |||
242 | int | 259 | int |
243 | EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) | 260 | EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) |
244 | { | 261 | { |