diff options
author | tb <> | 2018-08-24 19:30:24 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 19:30:24 +0000 |
commit | 8b1ca906423a8569ce3027d8dd5774a4b6d69b6b (patch) | |
tree | 3d7879554461235e36f65e659d5b261ae424ad53 /src/lib/libcrypto/evp/evp.h | |
parent | 6029783b1b8efb983218905bc956e5a1bb2ff428 (diff) | |
download | openbsd-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.h | 4 |
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); | |||
655 | const BIO_METHOD *BIO_f_md(void); | 655 | const BIO_METHOD *BIO_f_md(void); |
656 | const BIO_METHOD *BIO_f_base64(void); | 656 | const BIO_METHOD *BIO_f_base64(void); |
657 | const BIO_METHOD *BIO_f_cipher(void); | 657 | const BIO_METHOD *BIO_f_cipher(void); |
658 | void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, | 658 | int 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 | ||