diff options
author | beck <> | 2016-05-30 13:42:54 +0000 |
---|---|---|
committer | beck <> | 2016-05-30 13:42:54 +0000 |
commit | a35f44242c832a478373d4b9e7fc5c9119c07090 (patch) | |
tree | 362a819b53348b53df2eb57846da7fd93be3f866 /src/lib/libssl/s3_srvr.c | |
parent | 06b5312e6a3b5c470b0de3f0d4b272ded331ca5b (diff) | |
download | openbsd-a35f44242c832a478373d4b9e7fc5c9119c07090.tar.gz openbsd-a35f44242c832a478373d4b9e7fc5c9119c07090.tar.bz2 openbsd-a35f44242c832a478373d4b9e7fc5c9119c07090.zip |
deprecate internal use of EVP_[Cipher|Encrypt|Decrypt]_Final.
14 years ago these were changed in OpenSSL to be the same
as the _ex functions. We use the _ex functions only internally
to ensure it is obvious the ctx must be cleared.
ok bcook@
Diffstat (limited to 'src/lib/libssl/s3_srvr.c')
-rw-r--r-- | src/lib/libssl/s3_srvr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c index 10b6312834..9fe96de53e 100644 --- a/src/lib/libssl/s3_srvr.c +++ b/src/lib/libssl/s3_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_srvr.c,v 1.125 2016/03/11 07:08:45 mmcc Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.126 2016/05/30 13:42:54 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -2558,7 +2558,7 @@ ssl3_send_newsession_ticket(SSL *s) | |||
2558 | /* Encrypt session data */ | 2558 | /* Encrypt session data */ |
2559 | EVP_EncryptUpdate(&ctx, p, &len, senc, slen); | 2559 | EVP_EncryptUpdate(&ctx, p, &len, senc, slen); |
2560 | p += len; | 2560 | p += len; |
2561 | EVP_EncryptFinal(&ctx, p, &len); | 2561 | EVP_EncryptFinal_ex(&ctx, p, &len); |
2562 | p += len; | 2562 | p += len; |
2563 | EVP_CIPHER_CTX_cleanup(&ctx); | 2563 | EVP_CIPHER_CTX_cleanup(&ctx); |
2564 | 2564 | ||