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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:23:   //! this is to be a client-side or server-side connection. These in   //! turn are typically created by @[File()->create()].   //!   //! @seealso   //! @[ClientConnection], @[ServerConnection], @[Context],   //! @[Session], @[File], @[State]      //#define SSL3_PROFILING      import .Constants; - #define State .State - #define Session .Session - #define Context .Context - #define Buffer .Buffer +     -  + private constant State = .State; + private constant Session = .Session; + private constant Context = .Context; + private constant Buffer = .Buffer; +    #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;
pike.git/lib/modules/SSL.pmod/Connection.pike:71:   //! The active @[Cipher.KeyExchange] (if any).   .Cipher.KeyExchange ke;      ProtocolVersion version;   ProtocolVersion client_version; /* Used to check for version roll-back attacks. */      //! Random cookies, sent and received with the hello-messages.   string(8bit) client_random;   string(8bit) server_random;    - #define Packet .Packet - #define Alert .Alert + private constant Packet = .Packet; + private constant Alert = .Alert;      Alert alert(int(1..2) level, int(8bit) description,    string|void message)   {    return context->alert_factory(this, level, description, version,    message);   }      Buffer get_signature_algorithms()   {
pike.git/lib/modules/SSL.pmod/Connection.pike:102: Inside #if defined(SSL3_PROFILING)
  #ifdef SSL3_PROFILING   System.Timer timer = System.Timer();   void addRecord(int t,int s) {    Stdio.stdout.write("time: %.6f sender: %d type: %s\n", timer->get(), s,    fmt_constant(t, "HANDSHAKE"));   }   #endif      string(8bit) handshake_messages;    - Packet handshake_packet(int(8bit) type, string(8bit)|Buffer data) + Packet handshake_packet(int(8bit) type, +  string(8bit)|Buffer|object(Stdio.Buffer) data)   {   #ifdef SSL3_PROFILING    addRecord(type,1);   #endif    string(8bit) str;    if(stringp(data))    str = [string(8bit)]data;    else -  str = ([object(Buffer)]data)->read(); +  str = (string(8bit))data;    str = sprintf("%1c%3H", type, str);    handshake_messages += str;       /* Perhaps one need to split large packages? */    Packet packet = Packet(version, PACKET_handshake, str);    return packet;   }      Packet change_cipher_packet()   {