Changeset 31c28a4 for lib


Ignore:
Timestamp:
2010-12-19T11:16:20Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
50c9996
Parents:
b9de97b
Message:

Implement ssl_pending() for NSS. This fixes bug #368 which so far only
affected OpenSSL. Submitted by Ricky Zhou.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_nss.c

    rb9de97b r31c28a4  
    210210int ssl_pending( void *conn )
    211211{
    212         return 0;
     212        struct scd *c = (struct scd *) conn;
     213
     214        if( c == NULL ) {
     215                return 0;
     216        }
     217
     218        return ( c->established && SSL_DataPending( c->prfd ) > 0 );
    213219}
    214220
Note: See TracChangeset for help on using the changeset viewer.