RE: [HACKERS] Bogus-looking SSL code in postmaster wait loop

2000-10-25 Thread Magnus Hagander
> The postmaster contains this code just before it waits for input: > > #ifdef USE_SSL > for (curr = DLGetHead(PortList); curr; curr = DLGetSucc(curr)) > { > if (((Port *) DLE_VAL(curr))->ssl && > SSL_pending(((Port *) DLE_VAL(curr))->ssl) > 0) >

Re: [HACKERS] Bogus-looking SSL code in postmaster wait loop

2000-10-25 Thread Tom Lane
Magnus Hagander <[EMAIL PROTECTED]> writes: > SSL_pending() returns true when there is data in the SSL buffer of the > socket. > The problem is that since SSL uses block cipher, even if you read one just > byte from the socket (using ssl_read), OpenSSL will read a complete block > from the network

[HACKERS] Bogus-looking SSL code in postmaster wait loop

2000-10-24 Thread Tom Lane
The postmaster contains this code just before it waits for input: #ifdef USE_SSL for (curr = DLGetHead(PortList); curr; curr = DLGetSucc(curr)) { if (((Port *) DLE_VAL(curr))->ssl && SSL_pending(((Port *) DLE_VAL(curr))->ssl) > 0) {