summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_pkt.c
diff options
context:
space:
mode:
authorjsing <>2020-02-21 16:06:00 +0000
committerjsing <>2020-02-21 16:06:00 +0000
commit6786372e1ef02967fdab4846b1fef041603e9667 (patch)
tree8878b0f5b72860c8c35a308dcb9cc3c91c0e28b4 /src/lib/libssl/ssl_pkt.c
parent89b122df5b1e02aa24527338712879c80ff0501d (diff)
downloadopenbsd-6786372e1ef02967fdab4846b1fef041603e9667.tar.gz
openbsd-6786372e1ef02967fdab4846b1fef041603e9667.tar.bz2
openbsd-6786372e1ef02967fdab4846b1fef041603e9667.zip
Remove now unused variable.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_pkt.c')
-rw-r--r--src/lib/libssl/ssl_pkt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_pkt.c b/src/lib/libssl/ssl_pkt.c
index e7bbf37bcd..cfe82a05fc 100644
--- a/src/lib/libssl/ssl_pkt.c
+++ b/src/lib/libssl/ssl_pkt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_pkt.c,v 1.17 2020/02/19 18:22:54 jsing Exp $ */ 1/* $OpenBSD: ssl_pkt.c,v 1.18 2020/02/21 16:06:00 jsing 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 *
@@ -627,11 +627,9 @@ ssl3_create_record(SSL *s, unsigned char *p, int type, const unsigned char *buf,
627 SSL_SESSION *sess = s->session; 627 SSL_SESSION *sess = s->session;
628 unsigned char *plen; 628 unsigned char *plen;
629 int eivlen, mac_size; 629 int eivlen, mac_size;
630 int clear = 0;
631 630
632 if ((sess == NULL) || (s->internal->enc_write_ctx == NULL) || 631 if ((sess == NULL) || (s->internal->enc_write_ctx == NULL) ||
633 (EVP_MD_CTX_md(s->internal->write_hash) == NULL)) { 632 (EVP_MD_CTX_md(s->internal->write_hash) == NULL)) {
634 clear = s->internal->enc_write_ctx ? 0 : 1; /* must be AEAD cipher */
635 mac_size = 0; 633 mac_size = 0;
636 } else { 634 } else {
637 mac_size = EVP_MD_CTX_size(s->internal->write_hash); 635 mac_size = EVP_MD_CTX_size(s->internal->write_hash);