Changeset e924ddd in mod_gnutls for src/gnutls_io.c


Ignore:
Timestamp:
Apr 21, 2005, 8:26:57 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
316bd8c
Parents:
31645b2
Message:

client auth is sort of working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r31645b2 re924ddd  
    359359    int errcode;
    360360    if (ctxt->status != 0) {
    361         return 0;
     361        return -1;
    362362    }
    363363
    364364tryagain:
    365 
    366     ret = gnutls_handshake(ctxt->session);
     365    do {
     366        ret = gnutls_handshake(ctxt->session);
     367    } while (ret == GNUTLS_E_AGAIN);
     368   
    367369    if (ret < 0) {
    368370        if (ret == GNUTLS_E_WARNING_ALERT_RECEIVED
     
    393395        /* all done with the handshake */
    394396        ctxt->status = 1;
    395         return ret;
     397        return 0;
    396398    }
    397399}
     
    412414    ctxt->status = 0;
    413415
    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;
    422419}
    423420
Note: See TracChangeset for help on using the changeset viewer.