diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-25 13:56:44 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-16 09:50:48 +0100 |
commit | cf3404fcc77aaf592c95326cbdd25612a8af6878 (patch) | |
tree | f85b17508cae4736176c27266148a23f64a7571a /include | |
parent | 2ac6115d9ee35308300b82d96078d03d81e7d320 (diff) |
Change the return type of EVP_EncodeUpdate
Previously EVP_EncodeUpdate returned a void. However there are a couple
of error conditions that can occur. Therefore the return type has been
changed to an int, with 0 indicating error and 1 indicating success.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/evp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 796f4ccb3c..343cd9fd17 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -610,8 +610,8 @@ EVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void); void EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx); int EVP_ENCODE_CTX_num(EVP_ENCODE_CTX *ctx); void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); -void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, - const unsigned char *in, int inl); +int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, + const unsigned char *in, int inl); void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl); int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n); |