diff options
author | 2020-02-21 16:06:00 +0000 | |
---|---|---|
committer | 2020-02-21 16:06:00 +0000 | |
commit | a1f98e4ac849be8e762656435351a34eebdeff16 (patch) | |
tree | 5162c90b7a7283bfa1812eddb27faf78dc90b25a /lib/libssl/ssl_pkt.c | |
parent | Add rkanxdp(4), rkdrm(4) and rkvop(4) to GENERIC, but keep them (diff) | |
download | wireguard-openbsd-a1f98e4ac849be8e762656435351a34eebdeff16.tar.xz wireguard-openbsd-a1f98e4ac849be8e762656435351a34eebdeff16.zip |
Remove now unused variable.
ok inoguchi@ tb@
Diffstat (limited to 'lib/libssl/ssl_pkt.c')
-rw-r--r-- | lib/libssl/ssl_pkt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libssl/ssl_pkt.c b/lib/libssl/ssl_pkt.c index e7bbf37bcd6..cfe82a05fc9 100644 --- a/lib/libssl/ssl_pkt.c +++ b/lib/libssl/ssl_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_pkt.c,v 1.17 2020/02/19 18:22:54 jsing Exp $ */ +/* $OpenBSD: ssl_pkt.c,v 1.18 2020/02/21 16:06:00 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -627,11 +627,9 @@ ssl3_create_record(SSL *s, unsigned char *p, int type, const unsigned char *buf, SSL_SESSION *sess = s->session; unsigned char *plen; int eivlen, mac_size; - int clear = 0; if ((sess == NULL) || (s->internal->enc_write_ctx == NULL) || (EVP_MD_CTX_md(s->internal->write_hash) == NULL)) { - clear = s->internal->enc_write_ctx ? 0 : 1; /* must be AEAD cipher */ mac_size = 0; } else { mac_size = EVP_MD_CTX_size(s->internal->write_hash); |