diff options
| author | joshua <> | 2024-03-26 05:22:50 +0000 |
|---|---|---|
| committer | joshua <> | 2024-03-26 05:22:50 +0000 |
| commit | 98835cc766bfec13ffe0088cd081e96059a6da2c (patch) | |
| tree | f9740d05186e09ae0961e160c3bcd0e381ae59b8 /src | |
| parent | 60ada654237dd4cad2245c11f7a9ecf4f6091bc5 (diff) | |
| download | openbsd-98835cc766bfec13ffe0088cd081e96059a6da2c.tar.gz openbsd-98835cc766bfec13ffe0088cd081e96059a6da2c.tar.bz2 openbsd-98835cc766bfec13ffe0088cd081e96059a6da2c.zip | |
Clean up use of EVP_CIPHER_CTX_{legacy_clear,cleanup} in EVP_OpenInit
ok tb@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/evp/p_legacy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/p_legacy.c b/src/lib/libcrypto/evp/p_legacy.c index 2036258dc5..a444309f1d 100644 --- a/src/lib/libcrypto/evp/p_legacy.c +++ b/src/lib/libcrypto/evp/p_legacy.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: p_legacy.c,v 1.3 2024/02/18 15:44:10 tb Exp $ */ | 1 | /* $OpenBSD: p_legacy.c,v 1.4 2024/03/26 05:22:50 joshua 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 | * |
| @@ -99,7 +99,7 @@ EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | |||
| 99 | int i, size = 0, ret = 0; | 99 | int i, size = 0, ret = 0; |
| 100 | 100 | ||
| 101 | if (type) { | 101 | if (type) { |
| 102 | EVP_CIPHER_CTX_legacy_clear(ctx); | 102 | EVP_CIPHER_CTX_reset(ctx); |
| 103 | if (!EVP_DecryptInit_ex(ctx, type, NULL, NULL, NULL)) | 103 | if (!EVP_DecryptInit_ex(ctx, type, NULL, NULL, NULL)) |
| 104 | return 0; | 104 | return 0; |
| 105 | } | 105 | } |
| @@ -154,7 +154,7 @@ EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, | |||
| 154 | int i, iv_len; | 154 | int i, iv_len; |
| 155 | 155 | ||
| 156 | if (type) { | 156 | if (type) { |
| 157 | EVP_CIPHER_CTX_legacy_clear(ctx); | 157 | EVP_CIPHER_CTX_reset(ctx); |
| 158 | if (!EVP_EncryptInit_ex(ctx, type, NULL, NULL, NULL)) | 158 | if (!EVP_EncryptInit_ex(ctx, type, NULL, NULL, NULL)) |
| 159 | return 0; | 159 | return 0; |
| 160 | } | 160 | } |
