Check-in [91e419adbd]
Overview
Comment:Added EOF fixes for TLS package
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:91e419adbd643999a4fa9ef08c258c0b9e633561
User & Date: rkeene on 2014-07-10 16:56:21
Other Links: manifest | tags
Context
2014-07-19
06:59
Added basic web interface check-in: 5613f08f7e user: rkeene tags: trunk
2014-07-10
16:56
Added EOF fixes for TLS package check-in: 91e419adbd user: rkeene tags: trunk
16:56
Updated to latest tcc4tcl check-in: 18a3ef02c8 user: rkeene tags: trunk
Changes

Added tls/patches/all/tls-1.6-eoffix.diff version [a489f87c5b].

            1  +diff -uNr tls1.6/tlsIO.c tls1.6-eof-1dgp/tlsIO.c
            2  +--- tls1.6/tlsIO.c	2008-03-17 19:59:02.000000000 -0500
            3  ++++ tls1.6-eof-1dgp/tlsIO.c	2014-07-07 22:41:14.017514735 -0500
            4  +@@ -729,6 +729,19 @@
            5  + 	statePtr->timer = (Tcl_TimerToken) NULL;
            6  +     }
            7  + 
            8  ++    if (statePtr->flags & TLS_TCL_CALLBACK) {
            9  ++	return 0;
           10  ++    }
           11  ++
           12  ++    if (statePtr->flags & TLS_TCL_INIT
           13  ++	    && !SSL_is_init_finished(statePtr->ssl)) {
           14  ++	int errorCode;
           15  ++	if (Tls_WaitForConnect(statePtr, &errorCode) <= 0
           16  ++		&& errorCode == EAGAIN) {
           17  ++	    return 0;
           18  ++	}
           19  ++    }
           20  ++
           21  +     return mask;
           22  + }
           23  + 
           24  +@@ -900,6 +913,9 @@
           25  + 		    continue;
           26  + 		}
           27  + 	    } else if (err == 0) {
           28  ++		if (Tcl_Eof(statePtr->self)) {
           29  ++		    return 0;
           30  ++		}
           31  + 		dprintf(stderr,"CR! ");
           32  + 		*errorCodePtr = ECONNRESET;
           33  + 		return -1;