Fix building without multiblock support
authorMatt Caswell <matt@openssl.org>
Mon, 7 Mar 2016 23:26:32 +0000 (23:26 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 8 Mar 2016 08:52:45 +0000 (08:52 +0000)
Not all platforms support multiblock. Building without it fails prior to
this fix.

RT#4396

Reviewed-by: Richard Levitte <levitte@openssl.org>
Configure
ssl/record/rec_layer_s3.c

index 34926ab0d88ed659699f289011e526eb9a5563e7..10be766d02071968c80db858d2667c51626bb14a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -280,6 +280,7 @@ my @disablables = (
     "md5",
     "mdc2",
     "md[-_]ghost94",
+    "multiblock",
     "nextprotoneg",
     "ocb",
     "ocsp",
index 91a70e54f90643aa60ba251338a64d661de2db52..6d2f250b7b07979ac4395cde46990bb8896333ab 100644 (file)
@@ -450,9 +450,9 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
 {
     const unsigned char *buf = buf_;
     int tot;
-    unsigned int n, nw;
+    unsigned int n, split_send_fragment, maxpipes;
 #if !defined(OPENSSL_NO_MULTIBLOCK) && EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK
-    unsigned int max_send_fragment, split_send_fragment, maxpipes;
+    unsigned int max_send_fragment, nw;
     unsigned int u_len = (unsigned int)len;
 #endif
     SSL3_BUFFER *wb = &s->rlayer.wbuf[0];