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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:21:   //!   //! @seealso   //! @[ClientConnection], @[ServerConnection], @[context],   //! @[session], @[sslfile], @[state]      //#define SSL3_PROFILING      import .Constants;   #define State .State   #define Session .Session + #define Context .Context      #ifdef SSL3_DEBUG   #define SSL3_DEBUG_MSG(X ...) werror(X)   #else /*! SSL3_DEBUG */   #define SSL3_DEBUG_MSG(X ...)   #endif /* SSL3_DEBUG */      Session session; - .context context; + Context context;      State pending_read_state;   State pending_write_state;      /* State variables */      int handshake_state; // Constant.STATE_*      int handshake_finished = 0;   
pike.git/lib/modules/SSL.pmod/Connection.pike:277:   //!   //! This function returns 0 if handshake is in progress, 1 if handshake   //! is finished, and -1 if a fatal error occurred. It uses the   //! send_packet() function to transmit packets.   int(-1..1) handle_handshake(int type, string(0..255) data, string(0..255) raw);      //! Initialize the connection state.   //!   //! @param ctx   //! The context for the connection. - protected void create(SSL.context ctx) + 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) {