diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-06-11 12:18:15 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-06-11 12:18:15 +0000 |
commit | a91dedca48ec58e6baab75839753121fb725c9e1 (patch) | |
tree | 939e2269057c5d61dbfa1aca78369159282cb3bd /crypto/evp/p_seal.c | |
parent | 482a9d41b93f504a94ee889c1ebe406e05088c93 (diff) |
Document EVP routines. Change EVP_SealInit() and EVP_OpenInit()
to support multiple calls.
New function to retrieve email address from certificates and
requests.
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 47efc0d3d8..be021ee3cf 100644 --- a/crypto/evp/p_seal.c +++ b/crypto/evp/p_seal.c @@ -72,11 +72,11 @@ int EVP_SealInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char **ek, unsigned char key[EVP_MAX_KEY_LENGTH]; int i; - if (npubk <= 0) return(0); if(type) { EVP_CIPHER_CTX_init(ctx); EVP_EncryptInit(ctx,type,NULL,NULL); } + if (npubk <= 0) return(0); if (RAND_bytes(key,EVP_MAX_KEY_LENGTH) <= 0) return(0); if (EVP_CIPHER_CTX_iv_length(ctx)) |