title: How to get the TLS client supported TLS versions in python ssl
body: <p>In python ssl, one can configure the TLS client's ciphersuites and versions. The ciphersuites are set using  <code>context.set_ciphers(ciphers)</code> and the versions using <code>context.options</code>. </p>
  
  <p>To make sure from the setup, one can get the ciphers in a client (even before the handshake, this is for setting up the client) using <code>context.get_ciphers()</code>. </p>
  
  <p>My question: how can I get the client's supported protocols. Please note that I am not using the default versions. I changed them by excluding some versions using <code>context.options</code>. For example, this statement excludes TLS 1.1 from my client:</p>
  
  <pre><code>context.options |= ssl.OP_NO_TLSv1_1
  </code></pre>
  
  <p>I want to make sure form my client TLS versions in the same way as I did in the ciphers using <code>context.get_ciphers()</code>. Is there any way I can do so?</p>