diff options
author | tb <> | 2018-08-24 19:45:11 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 19:45:11 +0000 |
commit | 6293082abd1637ba78f1778c0a9aa9ada5446c9a (patch) | |
tree | 380347303834352303f2e5b7142fac859b00482f /src/lib/libcrypto/evp/evp.h | |
parent | 645802590860062ee4cd2e1c571bdeb77a92c722 (diff) | |
download | openbsd-6293082abd1637ba78f1778c0a9aa9ada5446c9a.tar.gz openbsd-6293082abd1637ba78f1778c0a9aa9ada5446c9a.tar.bz2 openbsd-6293082abd1637ba78f1778c0a9aa9ada5446c9a.zip |
Convert EVP_EncodeUpdate() to return an int to allow for error
checking. Matches our documented behavior.
Based on OpenSSL commit c5ebfcab713a82a1d46a51c8c2668c419425b387
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 b607be7ae5..0ec0431bc7 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.66 2018/08/24 19:36:52 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.67 2018/08/24 19:45:11 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 | * |
@@ -631,7 +631,7 @@ int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | |||
631 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); | 631 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); |
632 | 632 | ||
633 | void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); | 633 | void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); |
634 | void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | 634 | int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, |
635 | const unsigned char *in, int inl); | 635 | const unsigned char *in, int inl); |
636 | void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); | 636 | void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); |
637 | int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n); | 637 | int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n); |