diff options
author | Richard Levitte <levitte@openssl.org> | 2001-10-17 16:03:42 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-10-17 16:03:42 +0000 |
commit | 7beb4087713812609b8859b8a2bd6391c9f5f19b (patch) | |
tree | 8ede834ea78722bc76a87b9b74ddee3cd322ce54 /ssl | |
parent | 51008ffce12b1bf6077efccc19623d9f811a9a8c (diff) |
The EVP_*Init_ex() functions take one extra argument. Let's default
it to NULL.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_clnt.c | 5 | ||||
-rw-r--r-- | ssl/s3_srvr.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index e56bfb1394..734659d7ec 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -1526,9 +1526,10 @@ static int ssl3_send_client_key_exchange(SSL *s) */ memset(iv, 0, EVP_MAX_IV_LENGTH); /* per RFC 1510 */ - EVP_EncryptInit_ex(&ciph_ctx,enc, kssl_ctx->key,iv); + EVP_EncryptInit_ex(&ciph_ctx,enc, NULL, + kssl_ctx->key,iv); EVP_EncryptUpdate(&ciph_ctx,epms,&outl,tmp_buf, - SSL_MAX_MASTER_KEY_LENGTH); + SSL_MAX_MASTER_KEY_LENGTH); EVP_EncryptFinal_ex(&ciph_ctx,&(epms[outl]),&padl); outl += padl; EVP_CIPHER_CTX_cleanup(&ciph_ctx); diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index f858a9f180..0ac44d7ee6 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1618,7 +1618,7 @@ static int ssl3_get_client_key_exchange(SSL *s) memset(iv, 0, EVP_MAX_IV_LENGTH); /* per RFC 1510 */ - if (!EVP_DecryptInit_ex(&ciph_ctx,enc,kssl_ctx->key,iv)) + if (!EVP_DecryptInit_ex(&ciph_ctx,enc,kssl_ctx->key,iv,NULL)) { SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE, SSL_R_DECRYPTION_FAILED); |