Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix compilation of OFOpenSSLTLSStream Removing the previous line causes the variable declaration to be just after the case, so an extra semicolon is needed. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
64d9603a4f89934caf3a0714f329ed89 |
| User & Date: | js 2024-01-06 01:00:30.733 |
Context
|
2024-01-06
| ||
| 01:08 | Revert change to OFSecureTransportTLSStream check-in: 6a2cac23e8 user: js tags: trunk | |
| 01:00 | Fix compilation of OFOpenSSLTLSStream check-in: 64d9603a4f user: js tags: trunk | |
| 00:52 | Initial support for Mbed TLS check-in: 11b2a17595 user: js tags: trunk | |
Changes
Changes to src/tls/OFOpenSSLTLSStream.m.
| ︙ | ︙ | |||
315 316 317 318 319 320 321 |
length: (size_t)length
exception: (nullable id)exception
{
if (exception == nil) {
static const OFTLSStreamErrorCode unknownErrorCode =
OFTLSStreamErrorCodeUnknown;
int status;
| < | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
length: (size_t)length
exception: (nullable id)exception
{
if (exception == nil) {
static const OFTLSStreamErrorCode unknownErrorCode =
OFTLSStreamErrorCodeUnknown;
int status;
OFEnsure(length <= INT_MAX);
OFEnsure(BIO_write(_readBIO, buffer, (int)length) ==
(int)length);
status = SSL_do_handshake(_SSL);
|
| ︙ | ︙ | |||
338 339 340 341 342 343 344 |
if (status == 1)
_handshakeDone = true;
else {
switch (SSL_get_error(_SSL, status)) {
case SSL_ERROR_WANT_READ:
return true;
| | | 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
if (status == 1)
_handshakeDone = true;
else {
switch (SSL_get_error(_SSL, status)) {
case SSL_ERROR_WANT_READ:
return true;
case SSL_ERROR_WANT_WRITE:;
OFRunLoopMode runLoopMode =
[OFRunLoop currentRunLoop].currentMode;
[_underlyingStream asyncWriteData: [OFData data]
runLoopMode: runLoopMode];
return false;
default:
exception = [OFTLSHandshakeFailedException
|
| ︙ | ︙ |