summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-02-18 15:47:48 +0000
committertb <>2024-02-18 15:47:48 +0000
commit033c471354a68c7073b53d53793f0842072883f1 (patch)
tree872f17fce54a9e4c2afbc157469336b90bbaf14b /src/lib
parent46825b346de88f3d8b554aef8711f11431f7e17c (diff)
downloadopenbsd-033c471354a68c7073b53d53793f0842072883f1.tar.gz
openbsd-033c471354a68c7073b53d53793f0842072883f1.tar.bz2
openbsd-033c471354a68c7073b53d53793f0842072883f1.zip
Hide EVP_{CIPHER,MD}_CTX_init() from internals
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/evp/evp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index bbc9c3540e..4acd9facbc 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.120 2023/10/18 17:26:06 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.121 2024/02/18 15:47:48 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 *
@@ -472,7 +472,9 @@ int EVP_Cipher(EVP_CIPHER_CTX *c, unsigned char *out, const unsigned char *in,
472 472
473EVP_MD_CTX *EVP_MD_CTX_new(void); 473EVP_MD_CTX *EVP_MD_CTX_new(void);
474void EVP_MD_CTX_free(EVP_MD_CTX *ctx); 474void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
475#ifndef LIBRESSL_INTERNAL
475void EVP_MD_CTX_init(EVP_MD_CTX *ctx); 476void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
477#endif
476int EVP_MD_CTX_reset(EVP_MD_CTX *ctx); 478int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);
477EVP_MD_CTX *EVP_MD_CTX_create(void); 479EVP_MD_CTX *EVP_MD_CTX_create(void);
478void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx); 480void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
@@ -584,7 +586,9 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
584int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); 586int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl);
585int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n); 587int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n);
586 588
589#ifndef LIBRESSL_INTERNAL
587void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a); 590void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a);
591#endif
588int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a); 592int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a);
589EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); 593EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
590void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *a); 594void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *a);