summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rc4/rc4_enc.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-04-23 19:14:59 +0000
committermiod <miod@openbsd.org>2014-04-23 19:14:59 +0000
commit6dde973b8a6222f3ee8e054feee5633224eee7e0 (patch)
tree3d3126e620580b79c0b07186276e72409c12df9b /lib/libcrypto/rc4/rc4_enc.c
parentGrr, the more you remove, the more there remain. (diff)
downloadwireguard-openbsd-6dde973b8a6222f3ee8e054feee5633224eee7e0.tar.xz
wireguard-openbsd-6dde973b8a6222f3ee8e054feee5633224eee7e0.zip
I'm glad to know that Ultrix CC has a bug optimizing switch() statements
lacking an explicit `case 0:' construct. But Ultrix has been dead for more than 15 years, really. Don't give it any reason to move out of its coffin.
Diffstat (limited to 'lib/libcrypto/rc4/rc4_enc.c')
-rw-r--r--lib/libcrypto/rc4/rc4_enc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libcrypto/rc4/rc4_enc.c b/lib/libcrypto/rc4/rc4_enc.c
index d8fc939dac7..ec9d9e7b64e 100644
--- a/lib/libcrypto/rc4/rc4_enc.c
+++ b/lib/libcrypto/rc4/rc4_enc.c
@@ -189,11 +189,6 @@ void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,
case 3: otp |= RC4_STEP<<i, i-=8;
case 2: otp |= RC4_STEP<<i, i-=8;
case 1: otp |= RC4_STEP<<i, i-=8;
- case 0: ; /*
- * it's never the case,
- * but it has to be here
- * for ultrix?
- */
}
ochunk &= ~mask;
ochunk |= (otp^ichunk) & mask;
@@ -242,11 +237,6 @@ void RC4(RC4_KEY *key, size_t len, const unsigned char *indata,
case 3: otp |= RC4_STEP<<i, i+=8;
case 2: otp |= RC4_STEP<<i, i+=8;
case 1: otp |= RC4_STEP<<i, i+=8;
- case 0: ; /*
- * it's never the case,
- * but it has to be here
- * for ultrix?
- */
}
ochunk &= ~mask;
ochunk |= (otp^ichunk) & mask;