EVP_SealFinal should return a value.

This commit is contained in:
Dr. Stephen Henson 2002-05-11 17:37:08 +00:00
parent d80a8d1919
commit e9ba69631b
2 changed files with 5 additions and 3 deletions

View file

@ -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,

View file

@ -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;
}