Check-in [79ea996cac]
Overview
Comment:Added a check for a BIO error
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tls-1-7
Files: files | file ages | folders
SHA1: 79ea996cacdadb52a8eec0b3bcde169c334a9a00
User & Date: rkeene on 2016-12-07 15:25:06
Other Links: branch diff | manifest | tags
Context
2016-12-07
15:34
More specific check for non-BIO failures check-in: e10ce6579d user: rkeene tags: tls-1-7
15:25
Added a check for a BIO error check-in: 79ea996cac user: rkeene tags: tls-1-7
15:12
Added more debugging check-in: ed1ce834df user: rkeene tags: tls-1-7
Changes

Modified tlsIO.c from [0ede72c6bc] to [b1a0a715c4].

930
931
932
933
934
935
936







937
938
939
940
941
942
943
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950







+
+
+
+
+
+
+








	    if (rc == SSL_ERROR_SSL) {
		Tls_Error(statePtr,
			(char *)ERR_reason_error_string(ERR_get_error()));
                statePtr->flags |= TLS_TCL_HANDSHAKE_FAILED;
		*errorCodePtr = ECONNABORTED;
		return -1;
	    } else if (rc == SSL_ERROR_SYSCALL) {
                dprintf("Got an error from our BIO");
                Tls_Error(statePtr,
                        (char *)ERR_reason_error_string(ERR_get_error()));
                statePtr->flags |= TLS_TCL_HANDSHAKE_FAILED;
                *errorCodePtr = ECONNABORTED;
                return -1;
	    } else if (BIO_should_retry(statePtr->bio)) {
		if (statePtr->flags & TLS_TCL_ASYNC) {
		    dprintf("E! ");
		    *errorCodePtr = EAGAIN;
		    return -1;
		} else {
		    continue;