diff options
author | tb <> | 2021-12-24 12:55:04 +0000 |
---|---|---|
committer | tb <> | 2021-12-24 12:55:04 +0000 |
commit | 6d0e78d09a83ec5890337baf10efbff2f48b6f9d (patch) | |
tree | 49667c45b395567bea6b4d81b319cab34cbad9cd /src/lib/libcrypto/evp/evp.h | |
parent | e52fde876fd50f605f22b3abd919333afe296d0a (diff) | |
download | openbsd-6d0e78d09a83ec5890337baf10efbff2f48b6f9d.tar.gz openbsd-6d0e78d09a83ec5890337baf10efbff2f48b6f9d.tar.bz2 openbsd-6d0e78d09a83ec5890337baf10efbff2f48b6f9d.zip |
Prepare to provide EVP_CIPHER_CTX_{get,set}_cipher_data
They will be needed by security/py-M2Crypto and telephony/sngrep.
ok inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 2e6053c9bc..aa0a9e77c9 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp.h,v 1.89 2021/12/24 12:02:15 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.90 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 | * |
@@ -520,9 +520,11 @@ int EVP_CIPHER_CTX_get_iv(const EVP_CIPHER_CTX *ctx, | |||
520 | int EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, | 520 | int EVP_CIPHER_CTX_set_iv(EVP_CIPHER_CTX *ctx, |
521 | const unsigned char *iv, size_t len); | 521 | const unsigned char *iv, size_t len); |
522 | int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in); | 522 | int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in); |
523 | void * EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx); | 523 | void *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx); |
524 | void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data); | 524 | void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data); |
525 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL) | 525 | #if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL) |
526 | void *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx); | ||
527 | void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data); | ||
526 | unsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx); | 528 | unsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx); |
527 | #endif | 529 | #endif |
528 | #define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)) | 530 | #define EVP_CIPHER_CTX_type(c) EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c)) |