summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/evp/evp_enc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c
index 04aa8f57a7..7c3f8c8648 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.57 2023/12/01 06:53:18 tb Exp $ */ 1/* $OpenBSD: evp_enc.c,v 1.58 2023/12/03 11:18:30 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 *
@@ -61,8 +61,6 @@
61#include <stdlib.h> 61#include <stdlib.h>
62#include <string.h> 62#include <string.h>
63 63
64#include <sys/types.h>
65
66#include <openssl/opensslconf.h> 64#include <openssl/opensslconf.h>
67 65
68#include <openssl/err.h> 66#include <openssl/err.h>
@@ -211,9 +209,6 @@ EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
211 return EVP_DecryptFinal_ex(ctx, out, outl); 209 return EVP_DecryptFinal_ex(ctx, out, outl);
212} 210}
213 211
214__warn_references(EVP_CipherFinal,
215 "EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup");
216
217int 212int
218EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) 213EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
219{ 214{
@@ -333,9 +328,6 @@ EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
333 return 1; 328 return 1;
334} 329}
335 330
336__warn_references(EVP_EncryptFinal,
337 "EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup");
338
339int 331int
340EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) 332EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
341{ 333{
@@ -458,9 +450,6 @@ EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
458 return 1; 450 return 1;
459} 451}
460 452
461__warn_references(EVP_DecryptFinal,
462 "EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup");
463
464int 453int
465EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) 454EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
466{ 455{