diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-06-11 12:27:58 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-06-11 12:27:58 +0000 |
commit | fd75eb50c0460f13dc58d6884c14e4010478953f (patch) | |
tree | ff96b6a573995160cfba0bba07a474a274897b67 /crypto/evp/p_seal.c | |
parent | a91dedca48ec58e6baab75839753121fb725c9e1 (diff) |
Make EVP_SealInit() and EVP_OpenInit() check EVP_EncryptInit() and
EVP_DecryptInit() return values.
Update docs.
Diffstat (limited to 'crypto/evp/p_seal.c')
-rw-r--r-- | crypto/evp/p_seal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p_seal.c b/crypto/evp/p_seal.c index be021ee3cf..2fd1d7e0c2 100644 --- a/crypto/evp/p_seal.c +++ b/crypto/evp/p_seal.c @@ -74,7 +74,7 @@ int EVP_SealInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char **ek, if(type) { EVP_CIPHER_CTX_init(ctx); - EVP_EncryptInit(ctx,type,NULL,NULL); + if(!EVP_EncryptInit(ctx,type,NULL,NULL)) return 0; } if (npubk <= 0) return(0); if (RAND_bytes(key,EVP_MAX_KEY_LENGTH) <= 0) |