From e9ba69631bb1ab9107337e4a4b7e859e12db4081 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 11 May 2002 17:37:08 +0000 Subject: [PATCH] EVP_SealFinal should return a value. --- crypto/evp/evp.h | 2 +- crypto/evp/p_seal.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index d6494ed06a..981c6179f1 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -543,7 +543,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; } -- 2.25.1