pike.git / lib / modules / SSL.pmod / Connection.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:420:      //! Initialize the connection state.   //!   //! @param ctx   //! The context for the connection.   protected void create(Context ctx)   {    current_read_state = State(this);    current_write_state = State(this);    -  if ((ctx->max_version < PROTOCOL_SSL_3_0) || -  (ctx->max_version > PROTOCOL_TLS_MAX)) { -  ctx->max_version = PROTOCOL_TLS_MAX; -  } -  -  if (ctx->min_version < PROTOCOL_SSL_3_0) { -  ctx->min_version = PROTOCOL_SSL_3_0; -  } else if (ctx->min_version > ctx->max_version) { -  ctx->min_version = ctx->max_version; -  } -  +     version = ctx->max_version;    context = ctx;   }      //! Remove cyclic references as best we can.   void shutdown()   {    current_read_state = current_write_state = UNDEFINED;    pending_read_state = pending_write_state = ({});    ke = UNDEFINED;