summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp.h
diff options
context:
space:
mode:
authortb <>2018-08-24 19:30:24 +0000
committertb <>2018-08-24 19:30:24 +0000
commit8b1ca906423a8569ce3027d8dd5774a4b6d69b6b (patch)
tree3d7879554461235e36f65e659d5b261ae424ad53 /src/lib/libcrypto/evp/evp.h
parent6029783b1b8efb983218905bc956e5a1bb2ff428 (diff)
downloadopenbsd-8b1ca906423a8569ce3027d8dd5774a4b6d69b6b.tar.gz
openbsd-8b1ca906423a8569ce3027d8dd5774a4b6d69b6b.tar.bz2
openbsd-8b1ca906423a8569ce3027d8dd5774a4b6d69b6b.zip
Return an int in BIO_set_cipher() to be able to report errors.
tested in a bulk by sthen ok jsing
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/evp/evp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index c557ba9f39..c6ec0e35d8 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.64 2018/05/30 15:40:50 tb Exp $ */ 1/* $OpenBSD: evp.h,v 1.65 2018/08/24 19:30:24 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 *
@@ -655,7 +655,7 @@ int EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);
655const BIO_METHOD *BIO_f_md(void); 655const BIO_METHOD *BIO_f_md(void);
656const BIO_METHOD *BIO_f_base64(void); 656const BIO_METHOD *BIO_f_base64(void);
657const BIO_METHOD *BIO_f_cipher(void); 657const BIO_METHOD *BIO_f_cipher(void);
658void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, 658int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
659 const unsigned char *i, int enc); 659 const unsigned char *i, int enc);
660#endif 660#endif
661 661