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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:886:    }    else    return 0;   }      //! Create a new session.   Session new_session()   {    Session s = Session();    s->identity = (use_cache) ? -  sprintf("%4cPikeSSL3%4c", time(), session_number++) : ""; +  sprintf("PikeSSL3%s", Standards.UUID.make_version4()->encode()) : "";    return s;   }      //! Add a session to the cache (if caching is enabled).   void record_session(Session s)   {    if (use_cache && s->identity)    {    while (sizeof (active_sessions) >= max_sessions) {    array pair = [array] active_sessions->get();