EVP_SealFinal should return a value.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 11 May 2002 17:37:08 +0000 (17:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 11 May 2002 17:37:08 +0000 (17:37 +0000)
crypto/evp/evp.h
crypto/evp/p_seal.c

index d6494ed06a7137bb8ffdca74449b6e98432c702a..981c6179f190e2261d1ef8d95a5aeb348e84e055 100644 (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);
 
 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,
 
 void   EVP_EncodeInit(EVP_ENCODE_CTX *ctx);
 void   EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx,unsigned char *out,
index 5570ca3745648aeecdd8c5515bfa671e3095ae73..37e547fe7276a1ee748456a5008f4ca34bacde18 100644 (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);
        EVP_EncryptInit_ex(ctx,NULL,NULL,NULL,NULL);
+       return i;
        }
        }