mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
Remove no-longer-useful SSL-specific Port.count field.
Since we removed SSL renegotiation, there's no longer any reason to keep track of the amount of data transferred over the link. Daniel Gustafsson Discussion: <FEA7F89C-ECDF-4799-B789-2F8DDCBA467F@yesql.se>
This commit is contained in:
parent
14cca1bf8e
commit
679226337a
@ -447,8 +447,6 @@ aloop:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
port->count = 0;
|
|
||||||
|
|
||||||
/* Get client certificate, if available. */
|
/* Get client certificate, if available. */
|
||||||
port->peer = SSL_get_peer_certificate(port->ssl);
|
port->peer = SSL_get_peer_certificate(port->ssl);
|
||||||
|
|
||||||
@ -549,7 +547,7 @@ be_tls_read(Port *port, void *ptr, size_t len, int *waitfor)
|
|||||||
switch (err)
|
switch (err)
|
||||||
{
|
{
|
||||||
case SSL_ERROR_NONE:
|
case SSL_ERROR_NONE:
|
||||||
port->count += n;
|
/* a-ok */
|
||||||
break;
|
break;
|
||||||
case SSL_ERROR_WANT_READ:
|
case SSL_ERROR_WANT_READ:
|
||||||
*waitfor = WL_SOCKET_READABLE;
|
*waitfor = WL_SOCKET_READABLE;
|
||||||
@ -609,7 +607,7 @@ be_tls_write(Port *port, void *ptr, size_t len, int *waitfor)
|
|||||||
switch (err)
|
switch (err)
|
||||||
{
|
{
|
||||||
case SSL_ERROR_NONE:
|
case SSL_ERROR_NONE:
|
||||||
port->count += n;
|
/* a-ok */
|
||||||
break;
|
break;
|
||||||
case SSL_ERROR_WANT_READ:
|
case SSL_ERROR_WANT_READ:
|
||||||
*waitfor = WL_SOCKET_READABLE;
|
*waitfor = WL_SOCKET_READABLE;
|
||||||
|
@ -192,7 +192,6 @@ typedef struct Port
|
|||||||
#ifdef USE_OPENSSL
|
#ifdef USE_OPENSSL
|
||||||
SSL *ssl;
|
SSL *ssl;
|
||||||
X509 *peer;
|
X509 *peer;
|
||||||
unsigned long count;
|
|
||||||
#endif
|
#endif
|
||||||
} Port;
|
} Port;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user