Skip to content
Snippets Groups Projects
Commit 4ac66b58 authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Removed #if 0 code.

parent 7a5eafd4
Branches
Tags
No related merge requests found
...@@ -1018,14 +1018,6 @@ class KeyExchangeECDHE ...@@ -1018,14 +1018,6 @@ class KeyExchangeECDHE
#endif /* Crypto.ECC.Curve */ #endif /* Crypto.ECC.Curve */
#if 0
class mac_none
{
/* Dummy MAC algorithm */
string hash(string data, int seq_num) { return ""; }
}
#endif
//! MAC using SHA. //! MAC using SHA.
//! //!
//! @note //! @note
......
...@@ -778,13 +778,6 @@ Stdio.File shutdown() ...@@ -778,13 +778,6 @@ Stdio.File shutdown()
write_buffer = ({}); write_buffer = ({});
#if 0
accept_callback = 0;
read_callback = 0;
write_callback = 0;
close_callback = 0;
#endif
if (got_extra_read_call_out > 0) if (got_extra_read_call_out > 0)
real_backend->remove_call_out (ssl_read_callback); real_backend->remove_call_out (ssl_read_callback);
got_extra_read_call_out = 0; got_extra_read_call_out = 0;
...@@ -1120,19 +1113,13 @@ void set_callbacks (void|function(mixed, string:int) read, ...@@ -1120,19 +1113,13 @@ void set_callbacks (void|function(mixed, string:int) read,
if (!zero_type(read)) if (!zero_type(read))
read_callback = read; read_callback = read;
if (!zero_type(write)) if (!zero_type(write))
write_callback = write; write_callback = write;
if (!zero_type(close)) if (!zero_type(close))
close_callback = close; close_callback = close;
#if 0
if (!zero_type(read_oob))
read_oob_callback = read_oob;
if (!zero_type (write_oob_cb))
write_oob_callback = write_oob;
#endif
if (!zero_type(accept)) if (!zero_type(accept))
accept_callback = accept; accept_callback = accept;
...@@ -2074,14 +2061,7 @@ protected int ssl_write_callback (int called_from_real_backend) ...@@ -2074,14 +2061,7 @@ protected int ssl_write_callback (int called_from_real_backend)
#endif #endif
written = stream->write (write_buffer); written = stream->write (write_buffer);
if (written < 0 if (written < 0 ) {
#if 0
#ifdef __NT__
// You don't want to know.. (Bug observed in Pike 0.6.132.)
&& stream->errno() != 1
#endif
#endif
) {
#ifdef SIMULATE_CLOSE_PACKET_WRITE_FAILURE #ifdef SIMULATE_CLOSE_PACKET_WRITE_FAILURE
if (conn->state & CONNECTION_local_closing) if (conn->state & CONNECTION_local_closing)
cb_errno = System.EPIPE; cb_errno = System.EPIPE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment