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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:31:   //! @[File()->create()] or used as is embedded in @[Port].   //!   //! @seealso   //! @[File], @[Port], @[Standards.X509]      #include "tls.h"      import ".";   import Constants;    + // FIXME: Remove when TLS 1.3 is released. + int draft_version; +    protected void create()   {    SSL3_DEBUG_MSG("SSL.Context->create\n");       /* Backwards compatibility */    multiset(int) blocked = (< CIPHER_rc4 >);    preferred_suites = get_suites(128, 1, blocked); -  +  +  // FIXME: Remove when TLS 1.3 is released. +  if( max_version >= PROTOCOL_TLS_1_3 && !draft_version ) +  error("No draft version declared.\n");   }      //! The minimum supported protocol version.   //!   //! Defaults to @[PROTOCOL_TLS_1_0].   //!   //! @note   //! This value should not be greater than @[max_version].   ProtocolVersion min_version = PROTOCOL_TLS_1_0;