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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:19:   //! this is to be a client-side or server-side connection. These   //! in turn are typically created by @[sslfile()->create()].   //!   //! @seealso   //! @[ClientConnection], @[ServerConnection], @[context],   //! @[session], @[sslfile], @[state]      //#define SSL3_PROFILING      import .Constants; + #define State .State      #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;    - .state pending_read_state; - .state pending_write_state; + State pending_read_state; + State pending_write_state;      /* State variables */      int handshake_state; // Constant.STATE_*      int handshake_finished = 0;      constant CERT_none = 0;   constant CERT_requested = 1;   constant CERT_received = 2;
pike.git/lib/modules/SSL.pmod/Connection.pike:277:   //! 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)   { -  current_read_state = SSL.state(this); -  current_write_state = SSL.state(this); +  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;
pike.git/lib/modules/SSL.pmod/Connection.pike:317:      // SSL/TLS Protocol Specification documents:   //   // SSL 2 http://wp.netscape.com/eng/security/SSL_2.html   // SSL 3.0 http://wp.netscape.com/eng/ssl3/draft302.txt   // (aka draft-freier-ssl-version3-02.txt).   // TLS 1.0 (SSL 3.1) RFC 2246 "The TLS Protocol Version 1.0".   // TLS 1.1 (SSL 3.2) draft-ietf-tls-rfc2246-bis   // Renegotiation RFC 5746 "Renegotiation Indication Extension".    - .state current_read_state; - .state current_write_state; + State current_read_state; + State current_write_state;   string left_over;   Packet packet;      int sent;   int dying;   int closing; // Bitfield: 1 if a close is sent, 2 of one is received.      function(object,int|object,string:void) alert_callback;      constant PRI_alert = 1;