From: Dr. Stephen Henson Date: Sat, 11 May 2002 17:33:01 +0000 (+0000) Subject: EVP_SealFinal should return a value. X-Git-Tag: OpenSSL_0_9_7-beta1~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0e3726ca4bddd2ad5dcf7e5c1fd4eff5ec015ab;p=oweals%2Fopenssl.git EVP_SealFinal should return a value. --- diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index 915fe62341..96123daadd 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -525,7 +525,7 @@ int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, int *ekl, unsigned char *iv,EVP_PKEY **pubk, int npubk); -void EVP_SealFinal(EVP_CIPHER_CTX *ctx,unsigned char *out,int *outl); +int EVP_SealFinal(EVP_CIPHER_CTX *ctx,unsigned char *out,int *outl); void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx,unsigned char *out, diff --git a/crypto/evp/p_seal.c b/crypto/evp/p_seal.c index 5570ca3745..37e547fe72 100644 --- a/crypto/evp/p_seal.c +++ b/crypto/evp/p_seal.c @@ -106,8 +106,10 @@ int inl; } */ -void EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) +int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) { - EVP_EncryptFinal_ex(ctx,out,outl); + int i; + i = EVP_EncryptFinal_ex(ctx,out,outl); EVP_EncryptInit_ex(ctx,NULL,NULL,NULL,NULL); + return i; }