Changeset e924ddd in mod_gnutls for src/gnutls_io.c
- Timestamp:
- Apr 21, 2005, 8:26:57 PM (18 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, msva, proxy-ticket, upstream
- Children:
- 316bd8c
- Parents:
- 31645b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_io.c
r31645b2 re924ddd 359 359 int errcode; 360 360 if (ctxt->status != 0) { 361 return 0;361 return -1; 362 362 } 363 363 364 364 tryagain: 365 366 ret = gnutls_handshake(ctxt->session); 365 do { 366 ret = gnutls_handshake(ctxt->session); 367 } while (ret == GNUTLS_E_AGAIN); 368 367 369 if (ret < 0) { 368 370 if (ret == GNUTLS_E_WARNING_ALERT_RECEIVED … … 393 395 /* all done with the handshake */ 394 396 ctxt->status = 1; 395 return ret;397 return 0; 396 398 } 397 399 } … … 412 414 ctxt->status = 0; 413 415 414 gnutls_do_handshake(ctxt); 415 416 if (ctxt->status == 1) { 417 return 0; 418 } 419 else { 420 return -1; 421 } 416 rv = gnutls_do_handshake(ctxt); 417 418 return rv; 422 419 } 423 420
Note: See TracChangeset
for help on using the changeset viewer.