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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:72:   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;      private constant Packet = .Packet;   private constant Alert = .Alert;    + // RFC 7301 (ALPN) 3.1: + // Unlike many other TLS extensions, this extension does not establish + // properties of the session, only of the connection. When session + // resumption or session tickets [RFC5077] are used, the previous + // contents of this extension are irrelevant, and only the values in the + // new handshake messages are considered. + //! Selected ALPN (RFC 7301) protocol (if any). + //! + //! @note + //! Note that this is a connection property, and needs to be renegotiated + //! on session resumption. + string(8bit) application_protocol; +    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()   {    Buffer sign_algs = Buffer();