code: def default_ssl_context():
      
  
      ctx = OpenSSL.SSL.Context(OpenSSL.SSL.SSLv23_METHOD)
      ctx.set_options(OpenSSL.SSL.OP_NO_SSLv2 | OpenSSL.SSL.OP_NO_SSLv3)
      ctx.set_verify(OpenSSL.SSL.VERIFY_PEER, default_verify_callback)
      return ctx
docs: Return a sensibly configured :class:`OpenSSL.SSL.Context` context.
  
      The context has SSLv2 and SSLv3 disabled, and supports TLS 1.0+ (depending
      on the version of the SSL library).
  
      Tries to negotiate an XMPP c2s connection via ALPN (:rfc:`7301`).