summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_srvr.c
diff options
context:
space:
mode:
authorbeck <>2016-05-30 13:42:54 +0000
committerbeck <>2016-05-30 13:42:54 +0000
commit5841b6a630957adeb6dc4dbe8ff11ddc224d3de4 (patch)
tree362a819b53348b53df2eb57846da7fd93be3f866 /src/lib/libssl/s3_srvr.c
parent699bfceb6f3dc2a6d562a04cb2e321708af1faca (diff)
downloadopenbsd-5841b6a630957adeb6dc4dbe8ff11ddc224d3de4.tar.gz
openbsd-5841b6a630957adeb6dc4dbe8ff11ddc224d3de4.tar.bz2
openbsd-5841b6a630957adeb6dc4dbe8ff11ddc224d3de4.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.c4
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