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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:1128:   //!   //! Over-ride this function (and @[decode_ticket()]) to implement   //! server-side state-less session resumption.   //!   //! @returns   //! Returns @expr{0@} (zero) on failure (ie cache disabled), and   //! an array on success:   //! @array   //! @elem string(8bit) 0   //! Non-empty string with the ticket. - //! @elem int + //! @elem int 1   //! Lifetime hint for the ticket.   //! @endarray   //!   //! @seealso   //! @[decode_ticket()], @[record_session()], @rfc{4507:3.3@}   array(string(8bit)|int) encode_ticket(Session session)   {    if (!use_cache) return 0;    string(8bit) ticket = session->ticket;    if (!sizeof(ticket||"")) {