diff options
author | tb <> | 2023-11-29 21:35:57 +0000 |
---|---|---|
committer | tb <> | 2023-11-29 21:35:57 +0000 |
commit | fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e (patch) | |
tree | 545e6a340462469cf3c04b8bfe5d2a0f9f885ddb /src/lib/libcrypto/evp/evp_enc.c | |
parent | 0423d363b45d6891ba1e59c1ae770ef1443bf41c (diff) | |
download | openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.tar.gz openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.tar.bz2 openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.zip |
Ignore ENGINE at the API boundary
This removes the remaining ENGINE members from various internal structs
and functions. Any ENGINE passed into a public API is now completely
ignored functions returning an ENGINE always return NULL.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_enc.c')
-rw-r--r-- | src/lib/libcrypto/evp/evp_enc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c index 172d8b4019..0867070a76 100644 --- a/src/lib/libcrypto/evp/evp_enc.c +++ b/src/lib/libcrypto/evp/evp_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_enc.c,v 1.55 2023/11/19 15:46:09 tb Exp $ */ | 1 | /* $OpenBSD: evp_enc.c,v 1.56 2023/11/29 21:35:57 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 | * |
@@ -93,7 +93,7 @@ EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, | |||
93 | if (cipher) { | 93 | if (cipher) { |
94 | /* Ensure a context left lying around from last time is cleared | 94 | /* Ensure a context left lying around from last time is cleared |
95 | * (the previous check attempted to avoid this if the same | 95 | * (the previous check attempted to avoid this if the same |
96 | * ENGINE and EVP_CIPHER could be used). */ | 96 | * EVP_CIPHER could be used). */ |
97 | if (ctx->cipher) { | 97 | if (ctx->cipher) { |
98 | unsigned long flags = ctx->flags; | 98 | unsigned long flags = ctx->flags; |
99 | EVP_CIPHER_CTX_cleanup(ctx); | 99 | EVP_CIPHER_CTX_cleanup(ctx); |
@@ -236,7 +236,7 @@ int | |||
236 | EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, | 236 | EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, |
237 | const unsigned char *key, const unsigned char *iv) | 237 | const unsigned char *key, const unsigned char *iv) |
238 | { | 238 | { |
239 | return EVP_CipherInit_ex(ctx, cipher, impl, key, iv, 1); | 239 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 1); |
240 | } | 240 | } |
241 | 241 | ||
242 | int | 242 | int |
@@ -250,7 +250,7 @@ int | |||
250 | EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, | 250 | EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, |
251 | const unsigned char *key, const unsigned char *iv) | 251 | const unsigned char *key, const unsigned char *iv) |
252 | { | 252 | { |
253 | return EVP_CipherInit_ex(ctx, cipher, impl, key, iv, 0); | 253 | return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0); |
254 | } | 254 | } |
255 | 255 | ||
256 | int | 256 | int |