Hex Artifact Content

Artifact afa8cd9482486d7769258431dff4905b7315579e72f291a1451ac86f01c73c5e:


0000: 3c 21 64 6f 63 74 79 70 65 20 68 74 6d 6c 20 70  <!doctype html p
0010: 75 62 6c 69 63 20 22 2d 2f 2f 57 33 43 2f 2f 44  ublic "-//W3C//D
0020: 54 44 20 48 54 4d 4c 20 34 2e 30 20 54 72 61 6e  TD HTML 4.0 Tran
0030: 73 69 74 69 6f 6e 61 6c 2f 2f 45 4e 22 3e 20 0a  sitional//EN"> .
0040: 0a 3c 68 74 6d 6c 3e 0a 0a 3c 68 65 61 64 3e 0a  .<html>..<head>.
0050: 3c 6d 65 74 61 20 68 74 74 70 2d 65 71 75 69 76  <meta http-equiv
0060: 3d 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 0a  ="Content-Type".
0070: 63 6f 6e 74 65 6e 74 3d 22 74 65 78 74 2f 68 74  content="text/ht
0080: 6d 6c 3b 20 63 68 61 72 73 65 74 3d 69 73 6f 2d  ml; charset=iso-
0090: 38 38 35 39 2d 31 22 3e 0a 3c 6d 65 74 61 20 6e  8859-1">.<meta n
00a0: 61 6d 65 3d 22 43 6f 70 79 72 69 67 68 74 22 20  ame="Copyright" 
00b0: 63 6f 6e 74 65 6e 74 3d 22 31 39 39 39 20 4d 61  content="1999 Ma
00c0: 74 74 20 4e 65 77 6d 61 6e 20 2f 20 32 30 30 34  tt Newman / 2004
00d0: 20 53 74 61 72 66 69 73 68 20 53 79 73 74 65 6d   Starfish System
00e0: 73 22 3e 0a 3c 74 69 74 6c 65 3e 54 4c 53 20 28  s">.<title>TLS (
00f0: 53 53 4c 29 20 54 63 6c 20 43 6f 6d 6d 61 6e 64  SSL) Tcl Command
0100: 73 3c 2f 74 69 74 6c 65 3e 0a 3c 2f 68 65 61 64  s</title>.</head
0110: 3e 0a 0a 3c 62 6f 64 79 20 62 67 63 6f 6c 6f 72  >..<body bgcolor
0120: 3d 22 23 46 46 46 46 46 46 22 3e 0a 0a 3c 64 6c  ="#FFFFFF">..<dl
0130: 3e 0a 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 65  >.    <dd><a hre
0140: 66 3d 22 23 4e 41 4d 45 22 3e 4e 41 4d 45 3c 2f  f="#NAME">NAME</
0150: 61 3e 20 3c 64 6c 3e 0a 20 20 20 20 20 20 20 20  a> <dl>.        
0160: 3c 64 64 3e 3c 62 3e 74 6c 73 3c 2f 62 3e 20 2d  <dd><b>tls</b> -
0170: 20 62 69 6e 64 69 6e 67 20 74 6f 20 3c 62 3e 4f   binding to <b>O
0180: 70 65 6e 53 53 4c 3c 2f 62 3e 20 74 6f 6f 6c 6b  penSSL</b> toolk
0190: 69 74 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64  it.</dd>.    </d
01a0: 6c 3e 0a 20 20 20 20 3c 2f 64 64 3e 0a 20 20 20  l>.    </dd>.   
01b0: 20 3c 64 64 3e 3c 61 20 68 72 65 66 3d 22 23 53   <dd><a href="#S
01c0: 59 4e 4f 50 53 49 53 22 3e 53 59 4e 4f 50 53 49  YNOPSIS">SYNOPSI
01d0: 53 3c 2f 61 3e 20 3c 2f 64 64 3e 0a 20 20 20 20  S</a> </dd>.    
01e0: 3c 64 64 3e 3c 64 6c 3e 0a 20 20 20 20 20 20 20  <dd><dl>.       
01f0: 20 20 20 20 20 3c 64 64 3e 3c 62 3e 70 61 63 6b       <dd><b>pack
0200: 61 67 65 20 72 65 71 75 69 72 65 20 54 63 6c 3c  age require Tcl<
0210: 2f 62 3e 20 3c 65 6d 3e 3f 38 2e 34 3f 3c 2f 65  /b> <em>?8.4?</e
0220: 6d 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20  m></dd>.        
0230: 20 20 20 20 3c 64 64 3e 3c 62 3e 70 61 63 6b 61      <dd><b>packa
0240: 67 65 20 72 65 71 75 69 72 65 20 74 6c 73 3c 2f  ge require tls</
0250: 62 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20  b></dd>.        
0260: 20 20 20 20 3c 64 74 3e 26 6e 62 73 70 3b 3c 2f      <dt>&nbsp;</
0270: 64 74 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20  dt>.            
0280: 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 69 6e 69 74  <dd><b>tls::init
0290: 3c 2f 62 3e 20 3c 65 6d 3e 3f 6f 70 74 69 6f 6e  </b> <em>?option
02a0: 73 3f 3c 2f 65 6d 3e 20 3c 2f 64 64 3e 0a 20 20  s?</em> </dd>.  
02b0: 20 20 20 20 20 20 20 20 20 20 3c 64 64 3e 3c 62            <dd><b
02c0: 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 3c 2f 62 3e  >tls::socket</b>
02d0: 20 3c 65 6d 3e 3f 6f 70 74 69 6f 6e 73 3f 20 68   <em>?options? h
02e0: 6f 73 74 20 70 6f 72 74 3c 2f 65 6d 3e 3c 2f 64  ost port</em></d
02f0: 64 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c  d>.            <
0300: 64 64 3e 3c 62 3e 74 6c 73 3a 3a 73 6f 63 6b 65  dd><b>tls::socke
0310: 74 3c 2f 62 3e 20 3c 65 6d 3e 20 3f 2d 73 65 72  t</b> <em> ?-ser
0320: 76 65 72 20 63 6f 6d 6d 61 6e 64 3f 20 3f 6f 70  ver command? ?op
0330: 74 69 6f 6e 73 3f 20 70 6f 72 74 3c 2f 65 6d 3e  tions? port</em>
0340: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 20 20  </dd>.          
0350: 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 68 61    <dd><b>tls::ha
0360: 6e 64 73 68 61 6b 65 3c 2f 62 3e 20 3c 65 6d 3e  ndshake</b> <em>
0370: 20 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 64   channel</em></d
0380: 64 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c  d>.            <
0390: 64 64 3e 3c 62 3e 74 6c 73 3a 3a 73 74 61 74 75  dd><b>tls::statu
03a0: 73 20 3c 2f 62 3e 20 3c 65 6d 3e 3f 2d 6c 6f 63  s </b> <em>?-loc
03b0: 61 6c 3f 20 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e  al? channel</em>
03c0: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 20 20  </dd>.          
03d0: 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 63 6f    <dd><b>tls::co
03e0: 6e 6e 65 63 74 69 6f 6e 20 3c 2f 62 3e 20 3c 65  nnection </b> <e
03f0: 6d 3e 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f  m>channel</em></
0400: 64 64 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20  dd>.            
0410: 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 69 6d 70 6f  <dd><b>tls::impo
0420: 72 74 3c 2f 62 3e 20 3c 65 6d 3e 63 68 61 6e 6e  rt</b> <em>chann
0430: 65 6c 20 3f 6f 70 74 69 6f 6e 73 3f 3c 2f 65 6d  el ?options?</em
0440: 3e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 20  ></dd>.         
0450: 20 20 20 3c 64 64 3e 3c 62 3e 74 6c 73 3a 3a 75     <dd><b>tls::u
0460: 6e 69 6d 70 6f 72 74 3c 2f 62 3e 20 3c 65 6d 3e  nimport</b> <em>
0470: 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 64 64  channel</em></dd
0480: 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 3c 64  >.            <d
0490: 74 3e 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20  t>&nbsp;</dt>.  
04a0: 20 20 20 20 20 20 20 20 20 20 3c 64 64 3e 3c 62            <dd><b
04b0: 3e 74 6c 73 3a 3a 63 69 70 68 65 72 73 20 3c 2f  >tls::ciphers </
04c0: 62 3e 20 3c 65 6d 3e 70 72 6f 74 6f 63 6f 6c 20  b> <em>protocol 
04d0: 3f 76 65 72 62 6f 73 65 3f 20 3f 73 75 70 70 6f  ?verbose? ?suppo
04e0: 72 74 65 64 3f 3c 2f 65 6d 3e 3c 2f 64 64 3e 0a  rted?</em></dd>.
04f0: 20 20 20 20 20 20 20 20 20 20 20 20 3c 64 64 3e              <dd>
0500: 3c 62 3e 74 6c 73 3a 3a 70 72 6f 74 6f 63 6f 6c  <b>tls::protocol
0510: 73 3c 2f 62 3e 3c 2f 64 64 3e 0a 20 20 20 20 20  s</b></dd>.     
0520: 20 20 20 20 20 20 20 3c 64 64 3e 3c 62 3e 74 6c         <dd><b>tl
0530: 73 3a 3a 76 65 72 73 69 6f 6e 3c 2f 62 3e 3c 2f  s::version</b></
0540: 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 2f 64 6c  dd>.        </dl
0550: 3e 0a 20 20 20 20 3c 2f 64 64 3e 0a 20 20 20 20  >.    </dd>.    
0560: 3c 64 64 3e 3c 61 20 68 72 65 66 3d 22 23 43 4f  <dd><a href="#CO
0570: 4d 4d 41 4e 44 53 22 3e 43 4f 4d 4d 41 4e 44 53  MMANDS">COMMANDS
0580: 3c 2f 61 3e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64  </a></dd>.    <d
0590: 64 3e 3c 61 20 68 72 65 66 3d 22 23 43 41 4c 4c  d><a href="#CALL
05a0: 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e 43 41  BACK OPTIONS">CA
05b0: 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 3c 2f  LLBACK OPTIONS</
05c0: 61 3e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 64 3e  a></dd>.    <dd>
05d0: 3c 61 20 68 72 65 66 3d 22 23 48 54 54 50 53 20  <a href="#HTTPS 
05e0: 45 58 41 4d 50 4c 45 22 3e 48 54 54 50 53 20 45  EXAMPLE">HTTPS E
05f0: 58 41 4d 50 4c 45 3c 2f 61 3e 3c 2f 64 64 3e 0a  XAMPLE</a></dd>.
0600: 20 20 20 20 3c 64 64 3e 3c 61 20 68 72 65 66 3d      <dd><a href=
0610: 22 23 53 45 45 20 41 4c 53 4f 22 3e 53 50 45 43  "#SEE ALSO">SPEC
0620: 49 41 4c 20 43 4f 4e 53 49 44 45 52 41 54 49 4f  IAL CONSIDERATIO
0630: 4e 53 3c 2f 61 3e 3c 2f 64 64 3e 0a 20 20 20 20  NS</a></dd>.    
0640: 3c 64 64 3e 3c 61 20 68 72 65 66 3d 22 23 53 45  <dd><a href="#SE
0650: 45 20 41 4c 53 4f 22 3e 53 45 45 20 41 4c 53 4f  E ALSO">SEE ALSO
0660: 3c 2f 61 3e 3c 2f 64 64 3e 0a 3c 2f 64 6c 3e 0a  </a></dd>.</dl>.
0670: 0a 3c 68 72 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61  .<hr>..<h3><a na
0680: 6d 65 3d 22 4e 41 4d 45 22 3e 4e 41 4d 45 3c 2f  me="NAME">NAME</
0690: 61 3e 3c 2f 68 33 3e 0a 0a 3c 70 3e 3c 73 74 72  a></h3>..<p><str
06a0: 6f 6e 67 3e 74 6c 73 3c 2f 73 74 72 6f 6e 67 3e  ong>tls</strong>
06b0: 20 2d 20 62 69 6e 64 69 6e 67 20 74 6f 20 3c 73   - binding to <s
06c0: 74 72 6f 6e 67 3e 4f 70 65 6e 53 53 4c 3c 2f 73  trong>OpenSSL</s
06d0: 74 72 6f 6e 67 3e 0a 74 6f 6f 6c 6b 69 74 2e 3c  trong>.toolkit.<
06e0: 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65  /p>..<h3><a name
06f0: 3d 22 53 59 4e 4f 50 53 49 53 22 3e 53 59 4e 4f  ="SYNOPSIS">SYNO
0700: 50 53 49 53 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c  PSIS</a></h3>..<
0710: 70 3e 3c 62 3e 70 61 63 6b 61 67 65 20 72 65 71  p><b>package req
0720: 75 69 72 65 20 54 63 6c 20 38 2e 34 3c 2f 62 3e  uire Tcl 8.4</b>
0730: 3c 62 72 3e 0a 3c 62 3e 70 61 63 6b 61 67 65 20  <br>.<b>package 
0740: 72 65 71 75 69 72 65 20 74 6c 73 3c 2f 62 3e 3c  require tls</b><
0750: 62 72 3e 0a 3c 62 72 3e 0a 3c 61 20 68 72 65 66  br>.<br>.<a href
0760: 3d 22 23 74 6c 73 3a 3a 69 6e 69 74 22 3e 3c 62  ="#tls::init"><b
0770: 3e 74 6c 73 3a 3a 69 6e 69 74 3c 2f 62 3e 20 3c  >tls::init</b> <
0780: 69 3e 3f 6f 70 74 69 6f 6e 73 3f 3c 2f 69 3e 3c  i>?options?</i><
0790: 2f 61 3e 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d  /a><br>.<a href=
07a0: 22 23 74 6c 73 3a 3a 73 6f 63 6b 65 74 22 3e 3c  "#tls::socket"><
07b0: 62 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 3c 2f 62  b>tls::socket</b
07c0: 3e 20 3c 69 3e 3f 6f 70 74 69 6f 6e 73 3f 20 68  > <i>?options? h
07d0: 6f 73 74 20 70 6f 72 74 3c 2f 69 3e 3c 62 72 3e  ost port</i><br>
07e0: 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a  .<a href="#tls::
07f0: 73 6f 63 6b 65 74 22 3e 3c 62 3e 74 6c 73 3a 3a  socket"><b>tls::
0800: 73 6f 63 6b 65 74 3c 2f 62 3e 20 3c 69 3e 3f 2d  socket</b> <i>?-
0810: 73 65 72 76 65 72 20 63 6f 6d 6d 61 6e 64 3f 20  server command? 
0820: 3f 6f 70 74 69 6f 6e 73 3f 20 70 6f 72 74 3c 2f  ?options? port</
0830: 69 3e 3c 2f 61 3e 3c 62 72 3e 0a 3c 61 20 68 72  i></a><br>.<a hr
0840: 65 66 3d 22 23 74 6c 73 3a 3a 73 74 61 74 75 73  ef="#tls::status
0850: 22 3e 3c 62 3e 74 6c 73 3a 3a 73 74 61 74 75 73  "><b>tls::status
0860: 3c 2f 62 3e 20 3c 69 3e 3f 2d 6c 6f 63 61 6c 3f  </b> <i>?-local?
0870: 20 63 68 61 6e 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e   channel</i></a>
0880: 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74  <br>.<a href="#t
0890: 6c 73 3a 3a 63 6f 6e 6e 65 63 74 69 6f 6e 22 3e  ls::connection">
08a0: 3c 62 3e 74 6c 73 3a 3a 63 6f 6e 6e 65 63 74 69  <b>tls::connecti
08b0: 6f 6e 3c 2f 62 3e 20 3c 69 3e 63 68 61 6e 6e 65  on</b> <i>channe
08c0: 6c 3c 2f 69 3e 3c 2f 61 3e 3c 62 72 3e 0a 3c 61  l</i></a><br>.<a
08d0: 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a 68 61 6e   href="#tls::han
08e0: 64 73 68 61 6b 65 22 3e 3c 62 3e 74 6c 73 3a 3a  dshake"><b>tls::
08f0: 68 61 6e 64 73 68 61 6b 65 3c 2f 62 3e 20 3c 69  handshake</b> <i
0900: 3e 63 68 61 6e 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e  >channel</i></a>
0910: 3c 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74  <br>.<a href="#t
0920: 6c 73 3a 3a 69 6d 70 6f 72 74 22 3e 3c 62 3e 74  ls::import"><b>t
0930: 6c 73 3a 3a 69 6d 70 6f 72 74 3c 2f 62 3e 20 3c  ls::import</b> <
0940: 69 3e 63 68 61 6e 6e 65 6c 20 3f 6f 70 74 69 6f  i>channel ?optio
0950: 6e 73 3f 3c 2f 69 3e 3c 2f 61 3e 3c 62 72 3e 0a  ns?</i></a><br>.
0960: 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a 75  <a href="#tls::u
0970: 6e 69 6d 70 6f 72 74 22 3e 3c 62 3e 74 6c 73 3a  nimport"><b>tls:
0980: 3a 75 6e 69 6d 70 6f 72 74 3c 2f 62 3e 20 3c 69  :unimport</b> <i
0990: 3e 63 68 61 6e 6e 65 6c 3c 2f 69 3e 3c 2f 61 3e  >channel</i></a>
09a0: 3c 62 72 3e 0a 3c 62 72 3e 0a 3c 61 20 68 72 65  <br>.<br>.<a hre
09b0: 66 3d 22 23 74 6c 73 3a 3a 63 69 70 68 65 72 73  f="#tls::ciphers
09c0: 22 3e 3c 62 3e 74 6c 73 3a 3a 63 69 70 68 65 72  "><b>tls::cipher
09d0: 73 3c 2f 62 3e 20 3c 69 3e 70 72 6f 74 6f 63 6f  s</b> <i>protoco
09e0: 6c 20 3f 76 65 72 62 6f 73 65 3f 20 3f 73 75 70  l ?verbose? ?sup
09f0: 70 6f 72 74 65 64 3f 3c 2f 69 3e 3c 2f 61 3e 3c  ported?</i></a><
0a00: 62 72 3e 0a 3c 61 20 68 72 65 66 3d 22 23 74 6c  br>.<a href="#tl
0a10: 73 3a 3a 70 72 6f 74 6f 63 6f 6c 73 22 3e 3c 62  s::protocols"><b
0a20: 3e 74 6c 73 3a 3a 70 72 6f 74 6f 63 6f 6c 73 3c  >tls::protocols<
0a30: 2f 62 3e 3c 2f 61 3e 0a 3c 61 20 68 72 65 66 3d  /b></a>.<a href=
0a40: 22 23 74 6c 73 3a 3a 76 65 72 73 69 6f 6e 22 3e  "#tls::version">
0a50: 3c 62 3e 74 6c 73 3a 3a 76 65 72 73 69 6f 6e 3c  <b>tls::version<
0a60: 2f 62 3e 3c 2f 61 3e 0a 3c 2f 70 3e 0a 0a 3c 68  /b></a>.</p>..<h
0a70: 33 3e 3c 61 20 6e 61 6d 65 3d 22 44 45 53 43 52  3><a name="DESCR
0a80: 49 50 54 49 4f 4e 22 3e 44 45 53 43 52 49 50 54  IPTION">DESCRIPT
0a90: 49 4f 4e 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c 70  ION</a></h3>..<p
0aa0: 3e 54 68 69 73 20 65 78 74 65 6e 73 69 6f 6e 20  >This extension 
0ab0: 70 72 6f 76 69 64 65 73 20 61 20 67 65 6e 65 72  provides a gener
0ac0: 69 63 20 62 69 6e 64 69 6e 67 20 74 6f 20 3c 61  ic binding to <a
0ad0: 0a 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77  .href="http://ww
0ae0: 77 2e 6f 70 65 6e 73 73 6c 2e 6f 72 67 2f 22 3e  w.openssl.org/">
0af0: 4f 70 65 6e 53 53 4c 3c 2f 61 3e 2c 20 75 74 69  OpenSSL</a>, uti
0b00: 6c 69 7a 69 6e 67 20 74 68 65 0a 3c 73 74 72 6f  lizing the.<stro
0b10: 6e 67 3e 54 63 6c 5f 53 74 61 63 6b 43 68 61 6e  ng>Tcl_StackChan
0b20: 6e 65 6c 3c 2f 73 74 72 6f 6e 67 3e 0a 41 50 49  nel</strong>.API
0b30: 20 66 6f 72 20 54 63 6c 20 38 2e 34 20 61 6e 64   for Tcl 8.4 and
0b40: 20 68 69 67 68 65 72 2e 20 54 68 65 20 73 6f 63   higher. The soc
0b50: 6b 65 74 73 20 62 65 68 61 76 65 20 65 78 61 63  kets behave exac
0b60: 74 6c 79 20 74 68 65 20 73 61 6d 65 0a 61 73 20  tly the same.as 
0b70: 63 68 61 6e 6e 65 6c 73 20 63 72 65 61 74 65 64  channels created
0b80: 20 75 73 69 6e 67 20 54 63 6c 27 73 20 62 75 69   using Tcl's bui
0b90: 6c 74 2d 69 6e 20 3c 73 74 72 6f 6e 67 3e 73 6f  lt-in <strong>so
0ba0: 63 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e 0a 63 6f  cket</strong>.co
0bb0: 6d 6d 61 6e 64 20 77 69 74 68 20 61 64 64 69 74  mmand with addit
0bc0: 69 6f 6e 61 6c 20 6f 70 74 69 6f 6e 73 20 66 6f  ional options fo
0bd0: 72 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67 20 74 68  r controlling th
0be0: 65 20 53 53 4c 20 73 65 73 73 69 6f 6e 2e 0a 3c  e SSL session..<
0bf0: 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d 65  /p>..<h3><a name
0c00: 3d 22 43 4f 4d 4d 41 4e 44 53 22 3e 43 4f 4d 4d  ="COMMANDS">COMM
0c10: 41 4e 44 53 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 3c  ANDS</a></h3>..<
0c20: 70 3e 54 79 70 69 63 61 6c 6c 79 20 6f 6e 65 20  p>Typically one 
0c30: 77 6f 75 6c 64 20 75 73 65 20 74 68 65 20 3c 73  would use the <s
0c40: 74 72 6f 6e 67 3e 74 6c 73 3a 3a 73 6f 63 6b 65  trong>tls::socke
0c50: 74 20 3c 2f 73 74 72 6f 6e 67 3e 63 6f 6d 6d 61  t </strong>comma
0c60: 6e 64 0a 77 68 69 63 68 20 70 72 6f 76 69 64 65  nd.which provide
0c70: 73 20 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 20  s compatibility 
0c80: 77 69 74 68 20 74 68 65 20 6e 61 74 69 76 65 20  with the native 
0c90: 54 63 6c 20 3c 73 74 72 6f 6e 67 3e 73 6f 63 6b  Tcl <strong>sock
0ca0: 65 74 3c 2f 73 74 72 6f 6e 67 3e 0a 63 6f 6d 6d  et</strong>.comm
0cb0: 61 6e 64 2e 20 49 6e 20 73 75 63 68 20 63 61 73  and. In such cas
0cc0: 65 73 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a  es <strong>tls::
0cd0: 69 6d 70 6f 72 74 3c 2f 73 74 72 6f 6e 67 3e 20  import</strong> 
0ce0: 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 0a 75 73  should not be.us
0cf0: 65 64 20 64 69 72 65 63 74 6c 79 2e 3c 2f 70 3e  ed directly.</p>
0d00: 0a 0a 3c 64 6c 3e 0a 20 20 20 20 3c 64 74 3e 3c  ..<dl>.    <dt><
0d10: 61 20 6e 61 6d 65 3d 22 74 6c 73 3a 3a 69 6e 69  a name="tls::ini
0d20: 74 22 3e 3c 62 3e 74 6c 73 3a 3a 69 6e 69 74 20  t"><b>tls::init 
0d30: 3c 2f 62 3e 3c 69 3e 3f 6f 70 74 69 6f 6e 73 3f  </b><i>?options?
0d40: 3c 2f 69 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20  </i></a></dt>.  
0d50: 20 20 3c 64 64 3e 4f 70 74 69 6f 6e 61 6c 20 66    <dd>Optional f
0d60: 75 6e 63 74 69 6f 6e 20 74 6f 20 73 65 74 20 74  unction to set t
0d70: 68 65 20 64 65 66 61 75 6c 74 20 6f 70 74 69 6f  he default optio
0d80: 6e 73 20 75 73 65 64 20 62 79 0a 09 3c 73 74 72  ns used by..<str
0d90: 6f 6e 67 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 3c  ong>tls::socket<
0da0: 2f 73 74 72 6f 6e 67 3e 2e 20 49 66 20 79 6f 75  /strong>. If you
0db0: 20 63 61 6c 6c 20 3c 73 74 72 6f 6e 67 3e 74 6c   call <strong>tl
0dc0: 73 3a 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 6f 6e  s::import</stron
0dd0: 67 3e 0a 20 20 20 20 20 20 20 20 64 69 72 65 63  g>.        direc
0de0: 74 6c 79 20 74 68 69 73 20 72 6f 75 74 69 6e 65  tly this routine
0df0: 20 68 61 73 20 6e 6f 20 65 66 66 65 63 74 2e 20   has no effect. 
0e00: 41 6e 79 20 6f 66 20 74 68 65 20 6f 70 74 69 6f  Any of the optio
0e10: 6e 73 0a 20 20 20 20 20 20 20 20 74 68 61 74 20  ns.        that 
0e20: 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 73 6f 63  <strong>tls::soc
0e30: 6b 65 74 3c 2f 73 74 72 6f 6e 67 3e 20 61 63 63  ket</strong> acc
0e40: 65 70 74 73 20 63 61 6e 20 62 65 20 73 65 74 0a  epts can be set.
0e50: 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 74 68          using th
0e60: 69 73 20 63 6f 6d 6d 61 6e 64 2c 20 74 68 6f 75  is command, thou
0e70: 67 68 20 79 6f 75 20 73 68 6f 75 6c 64 20 6c 69  gh you should li
0e80: 6d 69 74 20 79 6f 75 72 20 6f 70 74 69 6f 6e 73  mit your options
0e90: 0a 20 20 20 20 20 20 20 20 74 6f 20 6f 6e 6c 79  .        to only
0ea0: 20 54 4c 53 20 72 65 6c 61 74 65 64 20 6f 6e 65   TLS related one
0eb0: 73 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 74 3e  s.</dd>.    <dt>
0ec0: 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 20 20  &nbsp;</dt>.    
0ed0: 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c 73  <dt><a name="tls
0ee0: 3a 3a 73 6f 63 6b 65 74 22 3e 3c 62 3e 74 6c 73  ::socket"><b>tls
0ef0: 3a 3a 73 6f 63 6b 65 74 20 3c 2f 62 3e 3c 65 6d  ::socket </b><em
0f00: 3e 3f 6f 70 74 69 6f 6e 73 3f 0a 20 20 20 20 20  >?options?.     
0f10: 20 20 20 68 6f 73 74 20 70 6f 72 74 3c 2f 65 6d     host port</em
0f20: 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c  ></a></dt>.    <
0f30: 64 74 3e 3c 62 3e 74 6c 73 3a 3a 73 6f 63 6b 65  dt><b>tls::socke
0f40: 74 3c 2f 62 3e 3c 65 6d 3e 20 3f 2d 73 65 72 76  t</b><em> ?-serv
0f50: 65 72 20 63 6f 6d 6d 61 6e 64 3f 20 3f 6f 70 74  er command? ?opt
0f60: 69 6f 6e 73 3f 20 70 6f 72 74 3c 2f 65 6d 3e 3c  ions? port</em><
0f70: 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 54 68 69  /dt>.    <dd>Thi
0f80: 73 20 69 73 20 61 20 68 65 6c 70 65 72 20 66 75  s is a helper fu
0f90: 6e 63 74 69 6f 6e 20 74 68 61 74 20 75 74 69 6c  nction that util
0fa0: 69 7a 65 73 20 74 68 65 20 75 6e 64 65 72 6c 79  izes the underly
0fb0: 69 6e 67 0a 20 20 20 20 20 20 20 20 63 6f 6d 6d  ing.        comm
0fc0: 61 6e 64 73 20 28 3c 73 74 72 6f 6e 67 3e 74 6c  ands (<strong>tl
0fd0: 73 3a 3a 69 6d 70 6f 72 74 3c 2f 73 74 72 6f 6e  s::import</stron
0fe0: 67 3e 29 2e 20 49 74 20 62 65 68 61 76 65 73 0a  g>). It behaves.
0ff0: 20 20 20 20 20 20 20 20 65 78 61 63 74 6c 79 20          exactly 
1000: 74 68 65 20 73 61 6d 65 20 61 73 20 74 68 65 20  the same as the 
1010: 6e 61 74 69 76 65 20 54 63 6c 20 3c 73 74 72 6f  native Tcl <stro
1020: 6e 67 3e 73 6f 63 6b 65 74 3c 2f 73 74 72 6f 6e  ng>socket</stron
1030: 67 3e 0a 20 20 20 20 20 20 20 20 63 6f 6d 6d 61  g>.        comma
1040: 6e 64 20 65 78 63 65 70 74 20 74 68 61 74 20 74  nd except that t
1050: 68 65 20 6f 70 74 69 6f 6e 73 20 63 61 6e 20 69  he options can i
1060: 6e 63 6c 75 64 65 20 61 6e 79 20 6f 66 20 74 68  nclude any of th
1070: 65 0a 20 20 20 20 20 20 20 20 61 70 70 6c 69 63  e.        applic
1080: 61 62 6c 65 20 3c 61 20 68 72 65 66 3d 22 23 74  able <a href="#t
1090: 6c 73 3a 3a 69 6d 70 6f 72 74 22 3e 3c 73 74 72  ls::import"><str
10a0: 6f 6e 67 3e 74 6c 73 3a 69 6d 70 6f 72 74 3c 2f  ong>tls:import</
10b0: 73 74 72 6f 6e 67 3e 3c 2f 61 3e 0a 20 20 20 20  strong></a>.    
10c0: 20 20 20 20 6f 70 74 69 6f 6e 73 20 77 69 74 68      options with
10d0: 20 6f 6e 65 20 61 64 64 69 74 69 6f 6e 61 6c 20   one additional 
10e0: 6f 70 74 69 6f 6e 3a 0a 3c 62 6c 6f 63 6b 71 75  option:.<blockqu
10f0: 6f 74 65 3e 0a 20 20 20 20 3c 64 6c 3e 0a 20 20  ote>.    <dl>.  
1100: 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e        <dt><stron
1110: 67 3e 2d 61 75 74 6f 73 65 72 76 65 72 6e 61 6d  g>-autoservernam
1120: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62  e</strong> <em>b
1130: 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ool</em></dt>.  
1140: 20 20 20 20 20 20 3c 64 64 3e 41 75 74 6f 6d 61        <dd>Automa
1150: 74 69 63 61 6c 6c 79 20 73 65 6e 64 20 74 68 65  tically send the
1160: 20 2d 73 65 72 76 65 72 6e 61 6d 65 20 61 73 20   -servername as 
1170: 74 68 65 20 3c 65 6d 3e 68 6f 73 74 3c 2f 65 6d  the <em>host</em
1180: 3e 20 61 72 67 75 6d 65 6e 74 0a 20 20 20 20 20  > argument.     
1190: 20 20 20 20 20 20 20 28 64 65 66 61 75 6c 74 20         (default 
11a0: 69 73 20 3c 65 6d 3e 66 61 6c 73 65 3c 2f 65 6d  is <em>false</em
11b0: 3e 29 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c  >)</dd>.    </dl
11c0: 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a  >.</blockquote>.
11d0: 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65  .    <dt><a name
11e0: 3d 22 74 6c 73 3a 3a 69 6d 70 6f 72 74 22 3e 3c  ="tls::import"><
11f0: 62 3e 74 6c 73 3a 3a 69 6d 70 6f 72 74 20 3c 2f  b>tls::import </
1200: 62 3e 3c 69 3e 63 68 61 6e 6e 65 6c 0a 20 20 20  b><i>channel.   
1210: 20 20 20 20 20 3f 6f 70 74 69 6f 6e 73 3f 3c 2f       ?options?</
1220: 69 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20 20  i></a></dt>.    
1230: 3c 64 64 3e 53 53 4c 2d 65 6e 61 62 6c 65 20 61  <dd>SSL-enable a
1240: 20 72 65 67 75 6c 61 72 20 54 63 6c 20 63 68 61   regular Tcl cha
1250: 6e 6e 65 6c 20 2d 20 69 74 20 6e 65 65 64 20 6e  nnel - it need n
1260: 6f 74 20 62 65 20 61 0a 20 20 20 20 20 20 20 20  ot be a.        
1270: 73 6f 63 6b 65 74 2c 20 62 75 74 20 6d 75 73 74  socket, but must
1280: 20 70 72 6f 76 69 64 65 20 62 69 2d 64 69 72 65   provide bi-dire
1290: 63 74 69 6f 6e 61 6c 20 66 6c 6f 77 2e 20 41 6c  ctional flow. Al
12a0: 73 6f 0a 20 20 20 20 20 20 20 20 73 65 74 74 69  so.        setti
12b0: 6e 67 20 73 65 73 73 69 6f 6e 20 70 61 72 61 6d  ng session param
12c0: 65 74 65 72 73 20 66 6f 72 20 53 53 4c 20 68 61  eters for SSL ha
12d0: 6e 64 73 68 61 6b 65 2e 3c 2f 64 64 3e 0a 0a 3c  ndshake.</dd>..<
12e0: 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 20 20 20 20  blockquote>.    
12f0: 3c 64 6c 3e 0a 20 20 20 20 20 20 20 20 3c 64 74  <dl>.        <dt
1300: 3e 3c 73 74 72 6f 6e 67 3e 2d 61 6c 70 6e 3c 2f  ><strong>-alpn</
1310: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6c 69 73 74  strong> <em>list
1320: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
1330: 20 20 20 3c 64 64 3e 4c 69 73 74 20 6f 66 20 70     <dd>List of p
1340: 72 6f 74 6f 63 6f 6c 73 20 74 6f 20 6f 66 66 65  rotocols to offe
1350: 72 20 64 75 72 69 6e 67 20 41 70 70 6c 69 63 61  r during Applica
1360: 74 69 6f 6e 2d 4c 61 79 65 72 0a 09 20 20 20 20  tion-Layer..    
1370: 50 72 6f 74 6f 63 6f 6c 20 4e 65 67 6f 74 69 61  Protocol Negotia
1380: 74 69 6f 6e 20 28 41 4c 50 4e 29 2e 20 46 6f 72  tion (ALPN). For
1390: 20 65 78 61 6d 70 6c 65 3a 20 68 32 2c 20 68 74   example: h2, ht
13a0: 74 70 2f 31 2e 31 2c 20 65 74 63 2e 3c 2f 64 64  tp/1.1, etc.</dd
13b0: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73  >.        <dt><s
13c0: 74 72 6f 6e 67 3e 2d 63 61 64 69 72 3c 2f 73 74  trong>-cadir</st
13d0: 72 6f 6e 67 3e 20 3c 65 6d 3e 64 69 72 3c 2f 65  rong> <em>dir</e
13e0: 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20  m></dt>.        
13f0: 3c 64 64 3e 53 70 65 63 69 66 79 20 74 68 65 20  <dd>Specify the 
1400: 64 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61 69  directory contai
1410: 6e 69 6e 67 20 74 68 65 20 43 41 20 63 65 72 74  ning the CA cert
1420: 69 66 69 63 61 74 65 73 2e 20 54 68 65 0a 09 20  ificates. The.. 
1430: 20 20 20 64 65 66 61 75 6c 74 20 64 69 72 65 63     default direc
1440: 74 6f 72 79 20 69 73 20 70 6c 61 74 66 6f 72 6d  tory is platform
1450: 20 73 70 65 63 69 66 69 63 20 61 6e 64 20 63 61   specific and ca
1460: 6e 20 62 65 20 73 65 74 20 61 74 0a 09 20 20 20  n be set at..   
1470: 20 63 6f 6d 70 69 6c 65 20 74 69 6d 65 2e 20 54   compile time. T
1480: 68 69 73 20 63 61 6e 20 62 65 20 6f 76 65 72 72  his can be overr
1490: 69 64 64 65 6e 20 76 69 61 20 74 68 65 20 3c 62  idden via the <b
14a0: 3e 53 53 4c 5f 43 45 52 54 5f 44 49 52 3c 2f 62  >SSL_CERT_DIR</b
14b0: 3e 0a 09 20 20 20 20 65 6e 76 69 72 6f 6e 6d 65  >..    environme
14c0: 6e 74 20 76 61 72 69 61 62 6c 65 2e 3c 2f 64 64  nt variable.</dd
14d0: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73  >.        <dt><s
14e0: 74 72 6f 6e 67 3e 2d 63 61 66 69 6c 65 20 3c 2f  trong>-cafile </
14f0: 73 74 72 6f 6e 67 3e 3c 65 6d 3e 66 69 6c 65 6e  strong><em>filen
1500: 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ame</em></dt>.  
1510: 20 20 20 20 20 20 3c 64 64 3e 53 70 65 63 69 66        <dd>Specif
1520: 79 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74  y the certificat
1530: 65 20 61 75 74 68 6f 72 69 74 79 20 28 43 41 29  e authority (CA)
1540: 20 66 69 6c 65 20 74 6f 20 75 73 65 2e 3c 2f 64   file to use.</d
1550: 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c  d>.        <dt><
1560: 73 74 72 6f 6e 67 3e 2d 63 65 72 74 66 69 6c 65  strong>-certfile
1570: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 66 69  </strong> <em>fi
1580: 6c 65 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e  lename</em></dt>
1590: 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 53 70 65  .        <dd>Spe
15a0: 63 69 66 79 20 74 68 65 20 66 69 6c 65 6e 61 6d  cify the filenam
15b0: 65 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65  e containing the
15c0: 20 63 65 72 74 69 66 69 63 61 74 65 20 74 6f 20   certificate to 
15d0: 75 73 65 2e 20 54 68 65 0a 09 20 20 20 20 64 65  use. The..    de
15e0: 66 61 75 6c 74 20 6e 61 6d 65 20 69 73 20 3c 62  fault name is <b
15f0: 3e 63 65 72 74 2e 70 65 6d 3c 2f 62 3e 2e 20 54  >cert.pem</b>. T
1600: 68 69 73 20 63 61 6e 20 62 65 20 6f 76 65 72 72  his can be overr
1610: 69 64 64 65 6e 20 76 69 61 0a 09 20 20 20 20 74  idden via..    t
1620: 68 65 20 3c 62 3e 53 53 4c 5f 43 45 52 54 5f 46  he <b>SSL_CERT_F
1630: 49 4c 45 3c 2f 62 3e 20 65 6e 76 69 72 6f 6e 6d  ILE</b> environm
1640: 65 6e 74 20 76 61 72 69 61 62 6c 65 2e 3c 2f 64  ent variable.</d
1650: 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c  d>.        <dt><
1660: 73 74 72 6f 6e 67 3e 2d 63 65 72 74 3c 2f 73 74  strong>-cert</st
1670: 72 6f 6e 67 3e 20 3c 65 6d 3e 66 69 6c 65 6e 61  rong> <em>filena
1680: 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20  me</em></dt>.   
1690: 20 20 20 20 20 3c 64 64 3e 53 70 65 63 69 66 79       <dd>Specify
16a0: 20 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66   the contents of
16b0: 20 61 20 63 65 72 74 69 66 69 63 61 74 65 20 74   a certificate t
16c0: 6f 20 75 73 65 2c 20 61 73 20 61 20 44 45 52 0a  o use, as a DER.
16d0: 09 20 20 20 20 65 6e 63 6f 64 65 64 20 62 69 6e  .    encoded bin
16e0: 61 72 79 20 76 61 6c 75 65 20 28 58 2e 35 30 39  ary value (X.509
16f0: 20 44 45 52 29 2e 3c 2f 64 64 3e 0a 20 20 20 20   DER).</dd>.    
1700: 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e      <dt><strong>
1710: 2d 63 69 70 68 65 72 3c 2f 73 74 72 6f 6e 67 3e  -cipher</strong>
1720: 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 6d 3e   <em>string</em>
1730: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dt>.        <d
1740: 64 3e 4c 69 73 74 20 6f 66 20 63 69 70 68 65 72  d>List of cipher
1750: 73 20 74 6f 20 75 73 65 2e 20 53 74 72 69 6e 67  s to use. String
1760: 20 69 73 20 61 20 63 6f 6c 6f 6e 20 28 22 3a 22   is a colon (":"
1770: 29 20 73 65 70 61 72 61 74 65 64 20 6c 69 73 74  ) separated list
1780: 0a 09 20 20 20 20 6f 66 20 63 69 70 68 65 72 73  ..    of ciphers
1790: 20 6f 72 20 63 69 70 68 65 72 20 73 75 69 74 65   or cipher suite
17a0: 73 2e 20 43 69 70 68 65 72 20 73 75 69 74 65 73  s. Cipher suites
17b0: 20 63 61 6e 20 62 65 20 63 6f 6d 62 69 6e 65 64   can be combined
17c0: 0a 09 20 20 20 20 75 73 69 6e 67 20 74 68 65 20  ..    using the 
17d0: 3c 62 3e 2b 3c 2f 62 3e 20 63 68 61 72 61 63 74  <b>+</b> charact
17e0: 65 72 2e 20 50 72 65 66 69 78 65 73 20 63 61 6e  er. Prefixes can
17f0: 20 62 65 20 75 73 65 64 20 74 6f 20 70 65 72 6d   be used to perm
1800: 61 6e 65 6e 74 6c 79 0a 09 20 20 20 20 72 65 6d  anently..    rem
1810: 6f 76 65 20 28 22 21 22 29 2c 20 64 65 6c 65 74  ove ("!"), delet
1820: 65 20 28 22 2d 22 29 2c 20 6f 72 20 6d 6f 76 65  e ("-"), or move
1830: 20 61 20 63 79 70 68 65 72 20 74 6f 20 74 68 65   a cypher to the
1840: 20 65 6e 64 20 6f 66 0a 09 20 20 20 20 74 68 65   end of..    the
1850: 20 6c 69 73 74 20 28 22 2b 22 29 2e 20 4b 65 79   list ("+"). Key
1860: 77 6f 72 64 73 20 3c 62 3e 40 53 54 52 45 4e 47  words <b>@STRENG
1870: 54 48 3c 2f 62 3e 20 28 73 6f 72 74 20 62 79 20  TH</b> (sort by 
1880: 61 6c 67 6f 72 69 74 68 6d 0a 09 20 20 20 20 6b  algorithm..    k
1890: 65 79 20 6c 65 6e 67 74 68 29 2c 20 3c 62 3e 40  ey length), <b>@
18a0: 53 45 43 4c 45 56 45 4c 3d 3c 2f 62 3e 3c 69 3e  SECLEVEL=</b><i>
18b0: 6e 3c 2f 69 3e 20 28 73 65 74 20 73 65 63 75 72  n</i> (set secur
18c0: 69 74 79 20 6c 65 76 65 6c 20 74 6f 0a 09 20 20  ity level to..  
18d0: 20 20 6e 29 2c 20 61 6e 64 20 3c 62 3e 44 45 46    n), and <b>DEF
18e0: 41 55 4c 54 3c 2f 62 3e 20 28 75 73 65 20 64 65  AULT</b> (use de
18f0: 66 61 75 6c 74 20 63 69 70 68 65 72 20 6c 69 73  fault cipher lis
1900: 74 2c 20 61 74 20 73 74 61 72 74 20 6f 6e 6c 79  t, at start only
1910: 29 0a 09 20 20 20 20 63 61 6e 20 61 6c 73 6f 20  )..    can also 
1920: 62 65 20 73 70 65 63 69 66 69 65 64 2e 20 53 65  be specified. Se
1930: 65 20 4f 70 65 6e 53 53 4c 20 64 6f 63 75 6d 65  e OpenSSL docume
1940: 6e 74 61 74 69 6f 6e 20 66 6f 72 20 74 68 65 20  ntation for the 
1950: 66 75 6c 6c 0a 09 20 20 20 20 6c 69 73 74 20 6f  full..    list o
1960: 66 20 76 61 6c 69 64 20 76 61 6c 75 65 73 2e 20  f valid values. 
1970: 28 54 4c 53 20 31 2e 32 20 61 6e 64 20 65 61 72  (TLS 1.2 and ear
1980: 6c 69 65 72 20 6f 6e 6c 79 29 3c 2f 64 64 3e 0a  lier only)</dd>.
1990: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72          <dt><str
19a0: 6f 6e 67 3e 2d 63 69 70 68 65 72 73 75 69 74 65  ong>-ciphersuite
19b0: 73 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73  s</strong> <em>s
19c0: 74 72 69 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  tring</em></dt>.
19d0: 20 20 20 20 20 20 20 20 3c 64 64 3e 4c 69 73 74          <dd>List
19e0: 20 6f 66 20 63 69 70 68 65 72 20 73 75 69 74 65   of cipher suite
19f0: 73 20 74 6f 20 75 73 65 2e 20 53 74 72 69 6e 67  s to use. String
1a00: 20 69 73 20 61 20 63 6f 6c 6f 6e 20 28 22 3a 22   is a colon (":"
1a10: 29 0a 09 20 20 20 20 73 65 70 61 72 61 74 65 64  )..    separated
1a20: 20 6c 69 73 74 20 6f 66 20 63 69 70 68 65 72 20   list of cipher 
1a30: 73 75 69 74 65 20 6e 61 6d 65 73 2e 20 28 54 4c  suite names. (TL
1a40: 53 20 31 2e 33 20 6f 6e 6c 79 29 3c 2f 64 64 3e  S 1.3 only)</dd>
1a50: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
1a60: 72 6f 6e 67 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f 73  rong>-command</s
1a70: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 61 6c 6c 62  trong> <em>callb
1a80: 61 63 6b 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ack</em></dt>.  
1a90: 20 20 20 20 20 20 3c 64 64 3e 43 61 6c 6c 62 61        <dd>Callba
1aa0: 63 6b 20 74 6f 20 69 6e 76 6f 6b 65 20 61 74 20  ck to invoke at 
1ab0: 73 65 76 65 72 61 6c 20 70 6f 69 6e 74 73 20 64  several points d
1ac0: 75 72 69 6e 67 20 74 68 65 20 68 61 6e 64 73 68  uring the handsh
1ad0: 61 6b 65 2e 0a 09 20 20 20 20 54 68 69 73 20 69  ake...    This i
1ae0: 73 20 75 73 65 64 20 74 6f 20 70 61 73 73 20 65  s used to pass e
1af0: 72 72 6f 72 73 20 61 6e 64 20 74 72 61 63 69 6e  rrors and tracin
1b00: 67 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 2c 20 61  g information, a
1b10: 6e 64 0a 09 20 20 20 20 69 74 20 63 61 6e 20 61  nd..    it can a
1b20: 6c 6c 6f 77 20 54 63 6c 20 73 63 72 69 70 74 73  llow Tcl scripts
1b30: 20 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 69   to perform thei
1b40: 72 20 6f 77 6e 20 63 65 72 74 69 66 69 63 61 74  r own certificat
1b50: 65 0a 09 20 20 20 20 76 61 6c 69 64 61 74 69 6f  e..    validatio
1b60: 6e 20 69 6e 20 70 6c 61 63 65 20 6f 66 20 74 68  n in place of th
1b70: 65 20 64 65 66 61 75 6c 74 20 76 61 6c 69 64 61  e default valida
1b80: 74 69 6f 6e 20 70 72 6f 76 69 64 65 64 20 62 79  tion provided by
1b90: 0a 09 20 20 20 20 4f 70 65 6e 53 53 4c 2e 20 53  ..    OpenSSL. S
1ba0: 65 65 20 3c 61 20 68 72 65 66 3d 22 23 43 41 4c  ee <a href="#CAL
1bb0: 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 22 3e 43  LBACK OPTIONS">C
1bc0: 41 4c 4c 42 41 43 4b 20 4f 50 54 49 4f 4e 53 3c  ALLBACK OPTIONS<
1bd0: 2f 61 3e 0a 09 20 20 20 20 66 6f 72 20 66 75 72  /a>..    for fur
1be0: 74 68 65 72 20 64 69 73 63 75 73 73 69 6f 6e 2e  ther discussion.
1bf0: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
1c00: 74 3e 3c 73 74 72 6f 6e 67 3e 2d 64 68 70 61 72  t><strong>-dhpar
1c10: 61 6d 73 20 3c 2f 73 74 72 6f 6e 67 3e 3c 65 6d  ams </strong><em
1c20: 3e 66 69 6c 65 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f  >filename</em></
1c30: 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e  dt>.        <dd>
1c40: 53 70 65 63 69 66 79 20 74 68 65 20 44 69 66 66  Specify the Diff
1c50: 69 65 2d 48 65 6c 6c 6d 61 6e 20 70 61 72 61 6d  ie-Hellman param
1c60: 65 74 65 72 73 20 66 69 6c 65 2e 3c 2f 64 64 3e  eters file.</dd>
1c70: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
1c80: 72 6f 6e 67 3e 2d 6b 65 79 66 69 6c 65 3c 2f 73  rong>-keyfile</s
1c90: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 66 69 6c 65 6e  trong> <em>filen
1ca0: 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ame</em></dt>.  
1cb0: 20 20 20 20 20 20 3c 64 64 3e 53 70 65 63 69 66        <dd>Specif
1cc0: 79 20 74 68 65 20 70 72 69 76 61 74 65 20 6b 65  y the private ke
1cd0: 79 20 66 69 6c 65 2e 20 28 64 65 66 61 75 6c 74  y file. (default
1ce0: 20 69 73 0a 20 20 20 20 20 20 20 20 20 20 20 20   is.            
1cf0: 76 61 6c 75 65 20 6f 66 20 2d 63 65 72 74 66 69  value of -certfi
1d00: 6c 65 29 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  le)</dd>.       
1d10: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 6b 65   <dt><strong>-ke
1d20: 79 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 66  y</strong> <em>f
1d30: 69 6c 65 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74  ilename</em></dt
1d40: 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 53 70  >.        <dd>Sp
1d50: 65 63 69 66 79 20 74 68 65 20 70 72 69 76 61 74  ecify the privat
1d60: 65 20 6b 65 79 20 74 6f 20 75 73 65 20 61 73 20  e key to use as 
1d70: 61 20 44 45 52 20 65 6e 63 6f 64 65 64 20 76 61  a DER encoded va
1d80: 6c 75 65 20 28 50 4b 43 53 23 31 20 44 45 52 29  lue (PKCS#1 DER)
1d90: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
1da0: 74 3e 3c 73 74 72 6f 6e 67 3e 2d 6d 6f 64 65 6c  t><strong>-model
1db0: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 68  </strong> <em>ch
1dc0: 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  annel</em></dt>.
1dd0: 20 20 20 20 20 20 20 20 3c 64 64 3e 46 6f 72 63          <dd>Forc
1de0: 65 20 74 68 69 73 20 63 68 61 6e 6e 65 6c 20 74  e this channel t
1df0: 6f 20 73 68 61 72 65 20 74 68 65 20 73 61 6d 65  o share the same
1e00: 20 3c 65 6d 3e 3c 73 74 72 6f 6e 67 3e 53 53 4c   <em><strong>SSL
1e10: 5f 43 54 58 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 65  _CTX</strong></e
1e20: 6d 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 73  m>.            s
1e30: 74 72 75 63 74 75 72 65 20 61 73 20 74 68 65 20  tructure as the 
1e40: 73 70 65 63 69 66 69 65 64 20 3c 65 6d 3e 63 68  specified <em>ch
1e50: 61 6e 6e 65 6c 3c 2f 65 6d 3e 2c 20 61 6e 64 0a  annel</em>, and.
1e60: 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 72              ther
1e70: 65 66 6f 72 65 20 73 68 61 72 65 20 63 61 6c 6c  efore share call
1e80: 62 61 63 6b 73 20 65 74 63 2e 3c 2f 64 64 3e 0a  backs etc.</dd>.
1e90: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72          <dt><str
1ea0: 6f 6e 67 3e 2d 70 61 73 73 77 6f 72 64 3c 2f 73  ong>-password</s
1eb0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 61 6c 6c 62  trong> <em>callb
1ec0: 61 63 6b 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ack</em></dt>.  
1ed0: 20 20 20 20 20 20 3c 64 64 3e 43 61 6c 6c 62 61        <dd>Callba
1ee0: 63 6b 20 74 6f 20 69 6e 76 6f 6b 65 20 77 68 65  ck to invoke whe
1ef0: 6e 20 4f 70 65 6e 53 53 4c 20 6e 65 65 64 73 20  n OpenSSL needs 
1f00: 74 6f 20 6f 62 74 61 69 6e 20 61 20 70 61 73 73  to obtain a pass
1f10: 77 6f 72 64 2c 0a 09 20 20 20 20 74 79 70 69 63  word,..    typic
1f20: 61 6c 6c 79 20 74 6f 20 75 6e 6c 6f 63 6b 20 74  ally to unlock t
1f30: 68 65 20 70 72 69 76 61 74 65 20 6b 65 79 20 6f  he private key o
1f40: 66 20 61 20 63 65 72 74 69 66 69 63 61 74 65 2e  f a certificate.
1f50: 20 54 68 65 0a 20 20 20 20 20 20 20 20 20 20 20   The.           
1f60: 20 63 61 6c 6c 62 61 63 6b 20 73 68 6f 75 6c 64   callback should
1f70: 20 72 65 74 75 72 6e 20 61 20 73 74 72 69 6e 67   return a string
1f80: 20 77 68 69 63 68 20 72 65 70 72 65 73 65 6e 74   which represent
1f90: 73 20 74 68 65 20 70 61 73 73 77 6f 72 64 0a 20  s the password. 
1fa0: 20 20 20 20 20 20 20 20 20 20 20 74 6f 20 62 65             to be
1fb0: 20 75 73 65 64 2e 20 53 65 65 20 3c 61 20 68 72   used. See <a hr
1fc0: 65 66 3d 22 23 43 41 4c 4c 42 41 43 4b 20 4f 50  ef="#CALLBACK OP
1fd0: 54 49 4f 4e 53 22 3e 43 41 4c 4c 42 41 43 4b 20  TIONS">CALLBACK 
1fe0: 4f 50 54 49 4f 4e 53 3c 2f 61 3e 0a 09 20 20 20  OPTIONS</a>..   
1ff0: 20 66 6f 72 20 66 75 72 74 68 65 72 20 64 69 73   for further dis
2000: 63 75 73 73 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 20  cussion.</dd>.  
2010: 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e        <dt><stron
2020: 67 3e 2d 72 65 71 75 65 73 74 20 3c 2f 73 74 72  g>-request </str
2030: 6f 6e 67 3e 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d  ong><em>bool</em
2040: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c  ></dt>.        <
2050: 64 64 3e 52 65 71 75 65 73 74 20 61 20 63 65 72  dd>Request a cer
2060: 74 69 66 69 63 61 74 65 20 66 72 6f 6d 20 70 65  tificate from pe
2070: 65 72 20 64 75 72 69 6e 67 20 53 53 4c 20 68 61  er during SSL ha
2080: 6e 64 73 68 61 6b 65 2e 0a 20 20 20 20 20 20 20  ndshake..       
2090: 20 20 20 20 20 28 64 65 66 61 75 6c 74 20 69 73       (default is
20a0: 20 3c 65 6d 3e 74 72 75 65 3c 2f 65 6d 3e 29 3c   <em>true</em>)<
20b0: 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74  /dd>.        <dt
20c0: 3e 3c 73 74 72 6f 6e 67 3e 2d 72 65 71 75 69 72  ><strong>-requir
20d0: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62  e</strong> <em>b
20e0: 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ool</em></dt>.  
20f0: 20 20 20 20 20 20 3c 64 64 3e 52 65 71 75 69 72        <dd>Requir
2100: 65 20 61 20 76 61 6c 69 64 20 63 65 72 74 69 66  e a valid certif
2110: 69 63 61 74 65 20 66 72 6f 6d 20 70 65 65 72 20  icate from peer 
2120: 64 75 72 69 6e 67 20 53 53 4c 20 68 61 6e 64 73  during SSL hands
2130: 68 61 6b 65 2e 0a 09 20 20 20 20 49 66 20 74 68  hake...    If th
2140: 69 73 20 69 73 20 73 65 74 20 74 6f 20 74 72 75  is is set to tru
2150: 65 2c 20 74 68 65 6e 20 3c 73 74 72 6f 6e 67 3e  e, then <strong>
2160: 2d 72 65 71 75 65 73 74 3c 2f 73 74 72 6f 6e 67  -request</strong
2170: 3e 20 6d 75 73 74 0a 20 20 20 20 20 20 20 20 20  > must.         
2180: 20 20 20 61 6c 73 6f 20 62 65 20 73 65 74 20 74     also be set t
2190: 6f 20 74 72 75 65 2e 20 28 64 65 66 61 75 6c 74  o true. (default
21a0: 20 69 73 20 3c 65 6d 3e 66 61 6c 73 65 3c 2f 65   is <em>false</e
21b0: 6d 3e 29 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  m>)</dd>.       
21c0: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 73 65   <dt><strong>-se
21d0: 63 75 72 69 74 79 6c 65 76 65 6c 3c 2f 73 74 72  curitylevel</str
21e0: 6f 6e 67 3e 20 3c 65 6d 3e 69 6e 74 65 67 65 72  ong> <em>integer
21f0: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
2200: 20 20 20 3c 64 64 3e 53 65 74 20 73 65 63 75 72     <dd>Set secur
2210: 69 74 79 20 6c 65 76 65 6c 2e 20 4d 75 73 74 20  ity level. Must 
2220: 62 65 20 30 20 74 6f 20 35 2e 20 54 68 65 20 73  be 0 to 5. The s
2230: 65 63 75 72 69 74 79 20 6c 65 76 65 6c 20 61 66  ecurity level af
2240: 66 65 63 74 73 0a 09 20 20 20 20 63 69 70 68 65  fects..    ciphe
2250: 72 20 73 75 69 74 65 20 65 6e 63 72 79 70 74 69  r suite encrypti
2260: 6f 6e 20 61 6c 67 6f 72 69 74 68 6d 73 2c 20 73  on algorithms, s
2270: 75 70 70 6f 72 74 65 64 20 45 43 43 20 63 75 72  upported ECC cur
2280: 76 65 73 2c 0a 09 20 20 20 20 73 75 70 70 6f 72  ves,..    suppor
2290: 74 65 64 20 73 69 67 6e 61 74 75 72 65 20 61 6c  ted signature al
22a0: 67 6f 72 69 74 68 6d 73 2c 20 44 48 20 70 61 72  gorithms, DH par
22b0: 61 6d 65 74 65 72 20 73 69 7a 65 73 2c 20 63 65  ameter sizes, ce
22c0: 72 74 69 66 69 63 61 74 65 0a 09 20 20 20 20 6b  rtificate..    k
22d0: 65 79 20 73 69 7a 65 73 20 61 6e 64 20 73 69 67  ey sizes and sig
22e0: 6e 61 74 75 72 65 20 61 6c 67 6f 72 69 74 68 6d  nature algorithm
22f0: 73 2e 20 54 68 65 20 64 65 66 61 75 6c 74 20 69  s. The default i
2300: 73 20 31 2e 0a 09 20 20 20 20 4c 65 76 65 6c 20  s 1...    Level 
2310: 33 20 61 6e 64 20 68 69 67 68 65 72 20 64 69 73  3 and higher dis
2320: 61 62 6c 65 20 73 75 70 70 6f 72 74 20 66 6f 72  able support for
2330: 20 73 65 73 73 69 6f 6e 20 74 69 63 6b 65 74 73   session tickets
2340: 20 61 6e 64 20 6f 6e 6c 79 0a 09 20 20 20 20 61   and only..    a
2350: 63 63 65 70 74 20 63 69 70 68 65 72 20 73 75 69  ccept cipher sui
2360: 74 65 73 20 74 68 61 74 20 70 72 6f 76 69 64 65  tes that provide
2370: 20 66 6f 72 77 61 72 64 20 73 65 63 72 65 63 79   forward secrecy
2380: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  .</dd>.        <
2390: 64 74 3e 3c 73 74 72 6f 6e 67 3e 2d 73 65 72 76  dt><strong>-serv
23a0: 65 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  er</strong> <em>
23b0: 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20  bool</em></dt>. 
23c0: 20 20 20 20 20 20 20 3c 64 64 3e 48 61 6e 64 73         <dd>Hands
23d0: 68 61 6b 65 20 61 73 20 73 65 72 76 65 72 20 69  hake as server i
23e0: 66 20 74 72 75 65 2c 20 65 6c 73 65 20 68 61 6e  f true, else han
23f0: 64 73 68 61 6b 65 20 61 73 0a 20 20 20 20 20 20  dshake as.      
2400: 20 20 20 20 20 20 63 6c 69 65 6e 74 2e 20 28 64        client. (d
2410: 65 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e 66 61  efault is <em>fa
2420: 6c 73 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 20  lse</em>)</dd>. 
2430: 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f         <dt><stro
2440: 6e 67 3e 2d 73 65 72 76 65 72 6e 61 6d 65 3c 2f  ng>-servername</
2450: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 68 6f 73 74  strong> <em>host
2460: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
2470: 20 20 20 3c 64 64 3e 53 70 65 63 69 66 79 20 73     <dd>Specify s
2480: 65 72 76 65 72 20 68 6f 73 74 6e 61 6d 65 2e 20  erver hostname. 
2490: 4f 6e 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 69  Only available i
24a0: 66 20 74 68 65 20 4f 70 65 6e 53 53 4c 20 6c 69  f the OpenSSL li
24b0: 62 72 61 72 79 0a 09 20 20 20 20 74 68 65 20 70  brary..    the p
24c0: 61 63 6b 61 67 65 20 69 73 20 6c 69 6e 6b 65 64  ackage is linked
24d0: 20 61 67 61 69 6e 73 74 20 73 75 70 70 6f 72 74   against support
24e0: 73 20 74 68 65 20 54 4c 53 20 68 6f 73 74 6e 61  s the TLS hostna
24f0: 6d 65 20 65 78 74 65 6e 73 69 6f 6e 0a 09 20 20  me extension..  
2500: 20 20 66 6f 72 20 27 53 65 72 76 65 72 20 4e 61    for 'Server Na
2510: 6d 65 20 49 6e 64 69 63 61 74 69 6f 6e 27 20 28  me Indication' (
2520: 53 4e 49 29 2e 20 55 73 65 20 74 6f 20 6e 61 6d  SNI). Use to nam
2530: 65 20 74 68 65 20 6c 6f 67 69 63 61 6c 20 68 6f  e the logical ho
2540: 73 74 0a 09 20 20 20 20 77 65 20 61 72 65 20 74  st..    we are t
2550: 61 6c 6b 69 6e 67 20 74 6f 20 61 6e 64 20 65 78  alking to and ex
2560: 70 65 63 74 69 6e 67 20 61 20 63 65 72 74 69 66  pecting a certif
2570: 69 63 61 74 65 20 66 6f 72 2e 3c 2f 64 64 3e 0a  icate for.</dd>.
2580: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72          <dt><str
2590: 6f 6e 67 3e 2d 73 65 73 73 69 6f 6e 5f 69 64 3c  ong>-session_id<
25a0: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72  /strong> <em>str
25b0: 69 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ing</em></dt>.  
25c0: 20 20 20 20 20 20 3c 64 64 3e 53 65 73 73 69 6f        <dd>Sessio
25d0: 6e 20 69 64 20 74 6f 20 72 65 73 75 6d 65 20 73  n id to resume s
25e0: 65 73 73 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 20 20  ession.</dd>.   
25f0: 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67       <dt><strong
2600: 3e 2d 73 73 6c 32 3c 2f 73 74 72 6f 6e 67 3e 20  >-ssl2</strong> 
2610: 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64  <em>bool</em></d
2620: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 45  t>.        <dd>E
2630: 6e 61 62 6c 65 20 75 73 65 20 6f 66 20 53 53 4c  nable use of SSL
2640: 20 76 32 2e 20 28 64 65 66 61 75 6c 74 20 69 73   v2. (default is
2650: 20 3c 65 6d 3e 66 61 6c 73 65 3c 2f 65 6d 3e 29   <em>false</em>)
2660: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
2670: 74 3e 3c 73 74 72 6f 6e 67 3e 2d 73 73 6c 33 20  t><strong>-ssl3 
2680: 3c 2f 73 74 72 6f 6e 67 3e 3c 65 6d 3e 62 6f 6f  </strong><em>boo
2690: 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20  l</em></dt>.    
26a0: 20 20 20 20 3c 64 64 3e 45 6e 61 62 6c 65 20 75      <dd>Enable u
26b0: 73 65 20 6f 66 20 53 53 4c 20 76 33 2e 20 28 64  se of SSL v3. (d
26c0: 65 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e 66 61  efault is <em>fa
26d0: 6c 73 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 20  lse</em>)</dd>. 
26e0: 20 20 20 20 20 20 20 3c 64 74 3e 2d 3c 73 74 72         <dt>-<str
26f0: 6f 6e 67 3e 74 6c 73 31 3c 2f 73 74 72 6f 6e 67  ong>tls1</strong
2700: 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c  > <em>bool</em><
2710: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64  /dt>.        <dd
2720: 3e 45 6e 61 62 6c 65 20 75 73 65 20 6f 66 20 54  >Enable use of T
2730: 4c 53 20 76 31 2e 20 28 64 65 66 61 75 6c 74 20  LS v1. (default 
2740: 69 73 20 3c 65 6d 3e 74 72 75 65 3c 2f 65 6d 3e  is <em>true</em>
2750: 29 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  )</dd>.        <
2760: 64 74 3e 2d 3c 73 74 72 6f 6e 67 3e 74 6c 73 31  dt>-<strong>tls1
2770: 2e 31 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  .1</strong> <em>
2780: 62 6f 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20  bool</em></dt>. 
2790: 20 20 20 20 20 20 20 3c 64 64 3e 45 6e 61 62 6c         <dd>Enabl
27a0: 65 20 75 73 65 20 6f 66 20 54 4c 53 20 76 31 2e  e use of TLS v1.
27b0: 31 20 28 64 65 66 61 75 6c 74 20 69 73 20 3c 65  1 (default is <e
27c0: 6d 3e 74 72 75 65 3c 2f 65 6d 3e 29 3c 2f 64 64  m>true</em>)</dd
27d0: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 2d 3c  >.        <dt>-<
27e0: 73 74 72 6f 6e 67 3e 74 6c 73 31 2e 32 3c 2f 73  strong>tls1.2</s
27f0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c  trong> <em>bool<
2800: 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20  /em></dt>.      
2810: 20 20 3c 64 64 3e 45 6e 61 62 6c 65 20 75 73 65    <dd>Enable use
2820: 20 6f 66 20 54 4c 53 20 76 31 2e 32 20 28 64 65   of TLS v1.2 (de
2830: 66 61 75 6c 74 20 69 73 20 3c 65 6d 3e 74 72 75  fault is <em>tru
2840: 65 3c 2f 65 6d 3e 29 3c 2f 64 64 3e 0a 20 20 20  e</em>)</dd>.   
2850: 20 20 20 20 20 3c 64 74 3e 2d 3c 73 74 72 6f 6e       <dt>-<stron
2860: 67 3e 74 6c 73 31 2e 33 3c 2f 73 74 72 6f 6e 67  g>tls1.3</strong
2870: 3e 20 3c 65 6d 3e 62 6f 6f 6c 3c 2f 65 6d 3e 3c  > <em>bool</em><
2880: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64  /dt>.        <dd
2890: 3e 45 6e 61 62 6c 65 20 75 73 65 20 6f 66 20 54  >Enable use of T
28a0: 4c 53 20 76 31 2e 33 20 28 64 65 66 61 75 6c 74  LS v1.3 (default
28b0: 20 69 73 20 3c 65 6d 3e 74 72 75 65 3c 2f 65 6d   is <em>true</em
28c0: 3e 29 3c 2f 64 64 3e 0a 20 20 20 20 3c 2f 64 6c  >)</dd>.    </dl
28d0: 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a  >.</blockquote>.
28e0: 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65  .    <dt><a name
28f0: 3d 22 74 6c 73 3a 3a 75 6e 69 6d 70 6f 72 74 22  ="tls::unimport"
2900: 3e 3c 62 3e 74 6c 73 3a 3a 75 6e 69 6d 70 6f 72  ><b>tls::unimpor
2910: 74 20 3c 2f 62 3e 3c 69 3e 63 68 61 6e 6e 65 6c  t </b><i>channel
2920: 3c 2f 69 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20  </i></a></dt>.  
2930: 20 20 3c 64 64 3e 50 72 6f 76 69 64 65 64 20 66    <dd>Provided f
2940: 6f 72 20 73 79 6d 6d 65 74 72 79 20 74 6f 20 3c  or symmetry to <
2950: 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 69 6d 70 6f  strong>tls::impo
2960: 72 74 3c 2f 73 74 72 6f 6e 67 3e 2c 20 74 68 69  rt</strong>, thi
2970: 73 0a 20 20 20 20 20 20 75 6e 73 74 61 63 6b 73  s.      unstacks
2980: 20 74 68 65 20 53 53 4c 2d 65 6e 61 62 6c 69 6e   the SSL-enablin
2990: 67 20 6f 66 20 61 20 72 65 67 75 6c 61 72 20 54  g of a regular T
29a0: 63 6c 20 63 68 61 6e 6e 65 6c 2e 20 20 41 6e 20  cl channel.  An 
29b0: 65 72 72 6f 72 0a 20 20 20 20 20 20 69 73 20 74  error.      is t
29c0: 68 72 6f 77 6e 20 69 66 20 54 4c 53 20 69 73 20  hrown if TLS is 
29d0: 6e 6f 74 20 74 68 65 20 74 6f 70 20 73 74 61 63  not the top stac
29e0: 6b 65 64 20 63 68 61 6e 6e 65 6c 20 74 79 70 65  ked channel type
29f0: 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c 64 74 3e 26  .</dd>.    <dt>&
2a00: 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20 20 20 20 3c  nbsp;</dt>.    <
2a10: 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c 73 3a  dt><a name="tls:
2a20: 3a 68 61 6e 64 73 68 61 6b 65 22 3e 3c 73 74 72  :handshake"><str
2a30: 6f 6e 67 3e 74 6c 73 3a 3a 68 61 6e 64 73 68 61  ong>tls::handsha
2a40: 6b 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  ke</strong> <em>
2a50: 63 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 61 3e  channel</em></a>
2a60: 3c 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 46 6f  </dt>.    <dd>Fo
2a70: 72 63 65 73 20 68 61 6e 64 73 68 61 6b 65 20 74  rces handshake t
2a80: 6f 20 74 61 6b 65 20 70 6c 61 63 65 2c 20 61 6e  o take place, an
2a90: 64 20 72 65 74 75 72 6e 73 20 30 20 69 66 0a 20  d returns 0 if. 
2aa0: 20 20 20 20 20 20 20 68 61 6e 64 73 68 61 6b 65         handshake
2ab0: 20 69 73 20 73 74 69 6c 6c 20 69 6e 20 70 72 6f   is still in pro
2ac0: 67 72 65 73 73 20 28 6e 6f 6e 2d 62 6c 6f 63 6b  gress (non-block
2ad0: 69 6e 67 29 2c 20 6f 72 20 31 20 69 66 0a 20 20  ing), or 1 if.  
2ae0: 20 20 20 20 20 20 74 68 65 20 68 61 6e 64 73 68        the handsh
2af0: 61 6b 65 20 77 61 73 20 73 75 63 63 65 73 73 66  ake was successf
2b00: 75 6c 2e 20 49 66 20 74 68 65 20 68 61 6e 64 73  ul. If the hands
2b10: 68 61 6b 65 20 66 61 69 6c 65 64 0a 20 20 20 20  hake failed.    
2b20: 20 20 20 20 74 68 69 73 20 72 6f 75 74 69 6e 65      this routine
2b30: 20 77 69 6c 6c 20 74 68 72 6f 77 20 61 6e 20 65   will throw an e
2b40: 72 72 6f 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c  rror.</dd>.    <
2b50: 64 74 3e 26 6e 62 73 70 3b 3c 2f 64 74 3e 0a 20  dt>&nbsp;</dt>. 
2b60: 20 20 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22     <dt><a name="
2b70: 74 6c 73 3a 3a 73 74 61 74 75 73 22 3e 3c 73 74  tls::status"><st
2b80: 72 6f 6e 67 3e 74 6c 73 3a 3a 73 74 61 74 75 73  rong>tls::status
2b90: 3c 2f 73 74 72 6f 6e 67 3e 0a 20 20 20 20 3c 65  </strong>.    <e
2ba0: 6d 3e 3f 2d 6c 6f 63 61 6c 3f 20 63 68 61 6e 6e  m>?-local? chann
2bb0: 65 6c 3c 2f 65 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e  el</em></a></dt>
2bc0: 0a 20 20 20 20 3c 64 64 3e 52 65 74 75 72 6e 73  .    <dd>Returns
2bd0: 20 74 68 65 20 63 75 72 72 65 6e 74 20 63 65 72   the current cer
2be0: 74 69 66 69 63 61 74 65 20 73 74 61 74 75 73 20  tificate status 
2bf0: 6f 66 20 61 6e 20 53 53 4c 20 63 68 61 6e 6e 65  of an SSL channe
2c00: 6c 2e 20 54 68 65 0a 20 20 20 20 20 20 20 20 72  l. The.        r
2c10: 65 73 75 6c 74 20 69 73 20 61 20 6c 69 73 74 20  esult is a list 
2c20: 6f 66 20 6b 65 79 2d 76 61 6c 75 65 20 70 61 69  of key-value pai
2c30: 72 73 20 64 65 73 63 72 69 62 69 6e 67 20 74 68  rs describing th
2c40: 65 0a 20 20 20 20 20 20 20 20 63 6f 6e 6e 65 63  e.        connec
2c50: 74 65 64 20 70 65 65 72 2e 20 49 66 20 74 68 65  ted peer. If the
2c60: 20 72 65 73 75 6c 74 20 69 73 20 61 6e 20 65 6d   result is an em
2c70: 70 74 79 20 6c 69 73 74 20 74 68 65 6e 20 74 68  pty list then th
2c80: 65 0a 20 20 20 20 20 20 20 20 53 53 4c 20 68 61  e.        SSL ha
2c90: 6e 64 73 68 61 6b 65 20 68 61 73 20 6e 6f 74 20  ndshake has not 
2ca0: 79 65 74 20 63 6f 6d 70 6c 65 74 65 64 2e 0a 20  yet completed.. 
2cb0: 20 20 20 20 20 20 20 49 66 20 3c 65 6d 3e 2d 6c         If <em>-l
2cc0: 6f 63 61 6c 3c 2f 65 6d 3e 20 69 73 20 67 69 76  ocal</em> is giv
2cd0: 65 6e 2c 20 74 68 65 6e 20 74 68 65 20 63 65 72  en, then the cer
2ce0: 74 69 66 69 63 61 74 65 20 69 6e 66 6f 72 6d 61  tificate informa
2cf0: 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 69 73 20  tion.        is 
2d00: 74 68 65 20 6f 6e 65 20 75 73 65 64 20 6c 6f 63  the one used loc
2d10: 61 6c 6c 79 2e 3c 2f 64 64 3e 0a 0a 3c 62 6c 6f  ally.</dd>..<blo
2d20: 63 6b 71 75 6f 74 65 3e 0a 20 20 20 20 3c 64 6c  ckquote>.    <dl
2d30: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73  >.        <dt><s
2d40: 74 72 6f 6e 67 3e 76 65 72 73 69 6f 6e 3c 2f 73  trong>version</s
2d50: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 76 61 6c 75 65  trong> <em>value
2d60: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
2d70: 20 20 20 3c 64 64 3e 54 68 65 20 63 65 72 74 69     <dd>The certi
2d80: 66 69 63 61 74 69 6f 6e 20 76 65 72 73 69 6f 6e  fication version
2d90: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
2da0: 74 3e 3c 73 74 72 6f 6e 67 3e 73 69 67 6e 61 74  t><strong>signat
2db0: 75 72 65 5f 61 6c 67 6f 72 69 74 68 6d 3c 2f 73  ure_algorithm</s
2dc0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 61 6c 67 6f 72  trong> <em>algor
2dd0: 69 74 68 6d 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20  ithm</em></dt>. 
2de0: 20 20 20 20 20 20 20 3c 64 64 3e 43 69 70 68 65         <dd>Ciphe
2df0: 72 20 61 6c 67 6f 72 69 74 68 6d 20 75 73 65 64  r algorithm used
2e00: 20 66 6f 72 20 63 65 72 74 69 66 69 63 61 74 65   for certificate
2e10: 20 73 69 67 6e 61 74 75 72 65 2e 3c 2f 64 64 3e   signature.</dd>
2e20: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
2e30: 72 6f 6e 67 3e 64 69 67 65 73 74 3c 2f 73 74 72  rong>digest</str
2e40: 6f 6e 67 3e 20 3c 65 6d 3e 76 65 72 73 69 6f 6e  ong> <em>version
2e50: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
2e60: 20 20 20 3c 64 64 3e 43 65 72 74 69 66 69 63 61     <dd>Certifica
2e70: 74 65 20 73 69 67 6e 61 74 75 72 65 20 64 69 67  te signature dig
2e80: 65 73 74 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20  est.</dd>.      
2e90: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 70 75    <dt><strong>pu
2ea0: 62 6c 69 63 5f 6b 65 79 5f 61 6c 67 6f 72 69 74  blic_key_algorit
2eb0: 68 6d 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  hm</strong> <em>
2ec0: 61 6c 67 6f 72 69 74 68 6d 3c 2f 65 6d 3e 3c 2f  algorithm</em></
2ed0: 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e  dt>.        <dd>
2ee0: 43 65 72 74 69 66 69 63 61 74 65 20 73 69 67 6e  Certificate sign
2ef0: 61 74 75 72 65 20 70 75 62 6c 69 63 20 6b 65 79  ature public key
2f00: 20 61 6c 67 6f 72 69 74 68 6d 2e 3c 2f 64 64 3e   algorithm.</dd>
2f10: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
2f20: 72 6f 6e 67 3e 62 69 74 73 3c 2f 73 74 72 6f 6e  rong>bits</stron
2f30: 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c 2f 64  g> <em>n</em></d
2f40: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 4e  t>.        <dd>N
2f50: 75 6d 62 65 72 20 6f 66 20 62 69 74 73 20 75 73  umber of bits us
2f60: 65 64 20 66 6f 72 20 63 65 72 74 69 66 69 63 61  ed for certifica
2f70: 74 65 20 73 69 67 6e 61 74 75 72 65 20 6b 65 79  te signature key
2f80: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
2f90: 74 3e 3c 73 74 72 6f 6e 67 3e 73 65 6c 66 5f 73  t><strong>self_s
2fa0: 69 67 6e 65 64 3c 2f 73 74 72 6f 6e 67 3e 20 3c  igned</strong> <
2fb0: 65 6d 3e 62 6f 6f 6c 65 61 6e 3c 2f 65 6d 3e 3c  em>boolean</em><
2fc0: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64  /dt>.        <dd
2fd0: 3e 49 73 20 63 65 72 74 69 66 69 63 61 74 65 20  >Is certificate 
2fe0: 73 69 67 6e 61 74 75 72 65 20 73 65 6c 66 20 73  signature self s
2ff0: 69 67 6e 65 64 2e 3c 2f 64 64 3e 0a 20 20 20 20  igned.</dd>.    
3000: 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e      <dt><strong>
3010: 73 68 61 31 5f 68 61 73 68 3c 2f 73 74 72 6f 6e  sha1_hash</stron
3020: 67 3e 20 3c 65 6d 3e 68 61 73 68 3c 2f 65 6d 3e  g> <em>hash</em>
3030: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dt>.        <d
3040: 64 3e 54 68 65 20 53 48 41 31 20 68 61 73 68 20  d>The SHA1 hash 
3050: 6f 66 20 74 68 65 20 63 65 72 74 69 66 69 63 61  of the certifica
3060: 74 65 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  te.</dd>.       
3070: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 68 61   <dt><strong>sha
3080: 32 35 36 5f 68 61 73 68 3c 2f 73 74 72 6f 6e 67  256_hash</strong
3090: 3e 20 3c 65 6d 3e 68 61 73 68 3c 2f 65 6d 3e 3c  > <em>hash</em><
30a0: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64  /dt>.        <dd
30b0: 3e 54 68 65 20 53 48 41 32 35 36 20 68 61 73 68  >The SHA256 hash
30c0: 20 6f 66 20 74 68 65 20 63 65 72 74 69 66 69 63   of the certific
30d0: 61 74 65 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20  ate.</dd>.      
30e0: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 75    <dt><strong>su
30f0: 62 6a 65 63 74 3c 2f 73 74 72 6f 6e 67 3e 20 3c  bject</strong> <
3100: 65 6d 3e 64 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  em>dn</em></dt>.
3110: 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20          <dd>The 
3120: 64 69 73 74 69 6e 67 75 69 73 68 65 64 20 6e 61  distinguished na
3130: 6d 65 20 28 44 4e 29 20 6f 66 20 74 68 65 20 63  me (DN) of the c
3140: 65 72 74 69 66 69 63 61 74 65 20 73 75 62 6a 65  ertificate subje
3150: 63 74 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  ct.</dd>.       
3160: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 69 73 73   <dt><strong>iss
3170: 75 65 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d  uer</strong> <em
3180: 3e 64 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  >dn</em></dt>.  
3190: 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20 64 69        <dd>The di
31a0: 73 74 69 6e 67 75 69 73 68 65 64 20 6e 61 6d 65  stinguished name
31b0: 20 28 44 4e 29 20 6f 66 20 74 68 65 20 63 65 72   (DN) of the cer
31c0: 74 69 66 69 63 61 74 65 20 69 73 73 75 65 72 2e  tificate issuer.
31d0: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
31e0: 74 3e 3c 73 74 72 6f 6e 67 3e 6e 6f 74 42 65 66  t><strong>notBef
31f0: 6f 72 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d  ore</strong> <em
3200: 3e 64 61 74 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  >date</em></dt>.
3210: 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20          <dd>The 
3220: 62 65 67 69 6e 20 64 61 74 65 20 66 6f 72 20 74  begin date for t
3230: 68 65 20 76 61 6c 69 64 69 74 79 20 6f 66 20 74  he validity of t
3240: 68 65 20 63 65 72 74 69 66 69 63 61 74 65 2e 3c  he certificate.<
3250: 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74  /dd>.        <dt
3260: 3e 3c 73 74 72 6f 6e 67 3e 6e 6f 74 41 66 74 65  ><strong>notAfte
3270: 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 64  r</strong> <em>d
3280: 61 74 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ate</em></dt>.  
3290: 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20 65 78        <dd>The ex
32a0: 70 69 72 79 20 64 61 74 65 20 66 6f 72 20 74 68  piry date for th
32b0: 65 20 63 65 72 74 69 66 69 63 61 74 65 2e 3c 2f  e certificate.</
32c0: 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e  dd>.        <dt>
32d0: 3c 73 74 72 6f 6e 67 3e 73 65 72 69 61 6c 3c 2f  <strong>serial</
32e0: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f 65  strong> <em>n</e
32f0: 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20  m></dt>.        
3300: 3c 64 64 3e 54 68 65 20 73 65 72 69 61 6c 20 6e  <dd>The serial n
3310: 75 6d 62 65 72 20 6f 66 20 74 68 65 20 63 65 72  umber of the cer
3320: 74 69 66 69 63 61 74 65 2e 3c 2f 64 64 3e 0a 20  tificate.</dd>. 
3330: 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f         <dt><stro
3340: 6e 67 3e 63 65 72 74 69 66 69 63 61 74 65 3c 2f  ng>certificate</
3350: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 65 72 74  strong> <em>cert
3360: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
3370: 20 20 20 3c 64 64 3e 54 68 65 20 50 45 4d 20 65     <dd>The PEM e
3380: 6e 63 6f 64 65 64 20 63 65 72 74 69 66 69 63 61  ncoded certifica
3390: 74 65 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  te.</dd>.       
33a0: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 6e 75 6d   <dt><strong>num
33b0: 5f 65 78 74 65 6e 73 69 6f 6e 73 3c 2f 73 74 72  _extensions</str
33c0: 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c  ong> <em>n</em><
33d0: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64  /dt>.        <dd
33e0: 3e 4e 75 6d 62 65 72 20 6f 66 20 63 65 72 74 69  >Number of certi
33f0: 66 69 63 61 74 65 20 65 78 74 65 6e 73 69 6f 6e  ficate extension
3400: 73 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20  s.</dd>.        
3410: 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 65 78 74 65  <dt><strong>exte
3420: 6e 73 69 6f 6e 73 3c 2f 73 74 72 6f 6e 67 3e 20  nsions</strong> 
3430: 3c 65 6d 3e 6c 69 73 74 3c 2f 65 6d 3e 3c 2f 64  <em>list</em></d
3440: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 4c  t>.        <dd>L
3450: 69 73 74 20 6f 66 20 63 65 72 74 69 66 69 63 61  ist of certifica
3460: 74 65 20 65 78 74 65 6e 73 69 6f 6e 20 6e 61 6d  te extension nam
3470: 65 73 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  es.</dd>.       
3480: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 70 65 65   <dt><strong>pee
3490: 72 6e 61 6d 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c  rname</strong> <
34a0: 65 6d 3e 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74  em>name</em></dt
34b0: 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68  >.        <dd>Th
34c0: 65 20 70 65 65 72 6e 61 6d 65 20 66 72 6f 6d 20  e peername from 
34d0: 74 68 65 20 63 65 72 74 69 66 69 63 61 74 65 2e  the certificate.
34e0: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
34f0: 74 3e 3c 73 74 72 6f 6e 67 3e 73 62 69 74 73 3c  t><strong>sbits<
3500: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e 3c 2f  /strong> <em>n</
3510: 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20  em></dt>.       
3520: 20 3c 64 64 3e 54 68 65 20 6e 75 6d 62 65 72 20   <dd>The number 
3530: 6f 66 20 62 69 74 73 20 75 73 65 64 20 66 6f 72  of bits used for
3540: 20 74 68 65 20 73 65 73 73 69 6f 6e 20 6b 65 79   the session key
3550: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  .</dd>.        <
3560: 64 74 3e 3c 73 74 72 6f 6e 67 3e 63 69 70 68 65  dt><strong>ciphe
3570: 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63  r</strong> <em>c
3580: 69 70 68 65 72 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  ipher</em></dt>.
3590: 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20          <dd>The 
35a0: 63 75 72 72 65 6e 74 20 63 69 70 68 65 72 20 69  current cipher i
35b0: 6e 20 75 73 65 20 62 65 74 77 65 65 6e 20 74 68  n use between th
35c0: 65 20 63 6c 69 65 6e 74 20 61 6e 64 0a 20 20 20  e client and.   
35d0: 20 20 20 20 20 20 20 20 20 73 65 72 76 65 72 20           server 
35e0: 63 68 61 6e 6e 65 6c 73 2e 3c 2f 64 64 3e 0a 20  channels.</dd>. 
35f0: 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f         <dt><stro
3600: 6e 67 3e 76 65 72 69 66 69 63 61 74 69 6f 6e 3c  ng>verification<
3610: 65 6d 3e 72 65 73 75 6c 74 3c 2f 65 6d 3e 3c 2f  em>result</em></
3620: 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e  dt>.        <dd>
3630: 43 65 72 74 69 66 69 63 61 74 65 20 76 65 72 69  Certificate veri
3640: 66 69 63 61 74 69 6f 6e 20 72 65 73 75 6c 74 2e  fication result.
3650: 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dd>.        <d
3660: 74 3e 3c 73 74 72 6f 6e 67 3e 61 6c 70 6e 3c 2f  t><strong>alpn</
3670: 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 70 72 6f 74  strong> <em>prot
3680: 6f 63 6f 6c 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20  ocol</em></dt>. 
3690: 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20 70         <dd>The p
36a0: 72 6f 74 6f 63 6f 6c 20 73 65 6c 65 63 74 65 64  rotocol selected
36b0: 20 61 66 74 65 72 20 41 70 70 6c 69 63 61 74 69   after Applicati
36c0: 6f 6e 2d 4c 61 79 65 72 20 50 72 6f 74 6f 63 6f  on-Layer Protoco
36d0: 6c 0a 09 20 20 20 20 4e 65 67 6f 74 69 61 74 69  l..    Negotiati
36e0: 6f 6e 20 28 41 4c 50 4e 29 2e 3c 2f 64 64 3e 0a  on (ALPN).</dd>.
36f0: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72          <dt><str
3700: 6f 6e 67 3e 70 72 6f 74 6f 63 6f 6c 3c 2f 73 74  ong>protocol</st
3710: 72 6f 6e 67 3e 20 3c 65 6d 3e 76 61 6c 75 65 3c  rong> <em>value<
3720: 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20  /em></dt>.      
3730: 20 20 3c 64 64 3e 54 68 65 20 70 72 6f 74 6f 63    <dd>The protoc
3740: 6f 6c 20 76 65 72 73 69 6f 6e 20 75 73 65 64 20  ol version used 
3750: 66 6f 72 20 74 68 65 20 63 6f 6e 6e 65 63 74 69  for the connecti
3760: 6f 6e 3a 0a 09 20 20 53 53 4c 76 32 2c 20 53 53  on:..  SSLv2, SS
3770: 4c 76 33 2c 20 54 4c 53 76 31 2c 20 54 4c 53 76  Lv3, TLSv1, TLSv
3780: 31 2e 31 2c 20 54 4c 53 76 31 2e 32 2c 20 54 4c  1.1, TLSv1.2, TL
3790: 53 76 31 2e 33 2c 20 6f 72 20 75 6e 6b 6e 6f 77  Sv1.3, or unknow
37a0: 6e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  n</dd>.        <
37b0: 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 69 67 6e 61  dt><strong>signa
37c0: 74 75 72 65 5f 68 61 73 68 3c 2f 73 74 72 6f 6e  ture_hash</stron
37d0: 67 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65  g> <em>string</e
37e0: 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20  m></dt>.        
37f0: 3c 64 64 3e 54 68 65 20 73 69 67 6e 61 74 75 72  <dd>The signatur
3800: 65 20 68 61 73 68 20 76 61 6c 75 65 2e 3c 2f 64  e hash value.</d
3810: 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c  d>.        <dt><
3820: 73 74 72 6f 6e 67 3e 73 69 67 6e 61 74 75 72 65  strong>signature
3830: 5f 74 79 70 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c  _type</strong> <
3840: 65 6d 3e 74 79 70 65 3c 2f 65 6d 3e 3c 2f 64 74  em>type</em></dt
3850: 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68  >.        <dd>Th
3860: 65 20 73 69 67 6e 61 74 75 72 65 20 74 79 70 65  e signature type
3870: 20 76 61 6c 75 65 2e 3c 2f 64 64 3e 0a 20 20 20   value.</dd>.   
3880: 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67       <dt><strong
3890: 3e 63 61 5f 6e 61 6d 65 73 3c 2f 73 74 72 6f 6e  >ca_names</stron
38a0: 67 3e 20 3c 65 6d 3e 6c 69 73 74 3c 2f 65 6d 3e  g> <em>list</em>
38b0: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dt>.        <d
38c0: 64 3e 4c 69 73 74 20 6f 66 20 74 68 65 20 43 65  d>List of the Ce
38d0: 72 74 69 66 69 63 61 74 65 20 41 75 74 68 6f 72  rtificate Author
38e0: 69 74 69 65 73 20 75 73 65 64 20 74 6f 20 63 72  ities used to cr
38f0: 65 61 74 65 20 74 68 65 20 63 65 72 74 69 66 69  eate the certifi
3900: 63 61 74 65 2e 3c 2f 64 64 3e 0a 20 20 20 20 3c  cate.</dd>.    <
3910: 2f 64 6c 3e 0a 3c 2f 62 6c 6f 63 6b 71 75 6f 74  /dl>.</blockquot
3920: 65 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e  e>..    <dt><a n
3930: 61 6d 65 3d 22 74 6c 73 3a 3a 63 6f 6e 6e 65 63  ame="tls::connec
3940: 74 69 6f 6e 22 3e 3c 73 74 72 6f 6e 67 3e 74 6c  tion"><strong>tl
3950: 73 3a 3a 63 6f 6e 6e 65 63 74 69 6f 6e 3c 2f 73  s::connection</s
3960: 74 72 6f 6e 67 3e 0a 20 20 20 20 3c 65 6d 3e 63  trong>.    <em>c
3970: 68 61 6e 6e 65 6c 3c 2f 65 6d 3e 3c 2f 61 3e 3c  hannel</em></a><
3980: 2f 64 74 3e 0a 20 20 20 20 3c 64 64 3e 52 65 74  /dt>.    <dd>Ret
3990: 75 72 6e 73 20 74 68 65 20 63 75 72 72 65 6e 74  urns the current
39a0: 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 73 74 61 74   connection stat
39b0: 75 73 20 6f 66 20 61 6e 20 53 53 4c 20 63 68 61  us of an SSL cha
39c0: 6e 6e 65 6c 2e 20 54 68 65 0a 20 20 20 20 20 20  nnel. The.      
39d0: 20 20 72 65 73 75 6c 74 20 69 73 20 61 20 6c 69    result is a li
39e0: 73 74 20 6f 66 20 6b 65 79 2d 76 61 6c 75 65 20  st of key-value 
39f0: 70 61 69 72 73 20 64 65 73 63 72 69 62 69 6e 67  pairs describing
3a00: 20 74 68 65 0a 20 20 20 20 20 20 20 20 63 6f 6e   the.        con
3a10: 6e 65 63 74 65 64 20 70 65 65 72 2e 3c 2f 64 64  nected peer.</dd
3a20: 3e 0a 0a 3c 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a  >..<blockquote>.
3a30: 20 20 20 20 3c 64 6c 3e 0a 20 20 20 20 20 20 20      <dl>.       
3a40: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 74 61   <dt><strong>sta
3a50: 74 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  te</strong> <em>
3a60: 73 74 61 74 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  state</em></dt>.
3a70: 20 20 20 20 20 20 20 20 3c 64 64 3e 53 74 61 74          <dd>Stat
3a80: 65 20 6f 66 20 74 68 65 20 63 6f 6e 6e 65 63 74  e of the connect
3a90: 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20  ion.</dd>.      
3aa0: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 65    <dt><strong>se
3ab0: 72 76 65 72 6e 61 6d 65 3c 2f 73 74 72 6f 6e 67  rvername</strong
3ac0: 3e 20 3c 65 6d 3e 6e 61 6d 65 3c 2f 65 6d 3e 3c  > <em>name</em><
3ad0: 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64  /dt>.        <dd
3ae0: 3e 54 68 65 20 6e 61 6d 65 20 6f 66 20 74 68 65  >The name of the
3af0: 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 73 65   connected to se
3b00: 72 76 65 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 20  rver.</dd>.     
3b10: 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 70     <dt><strong>p
3b20: 72 6f 74 6f 63 6f 6c 3c 2f 73 74 72 6f 6e 67 3e  rotocol</strong>
3b30: 20 3c 65 6d 3e 76 65 72 73 69 6f 6e 3c 2f 65 6d   <em>version</em
3b40: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c  ></dt>.        <
3b50: 64 64 3e 54 68 65 20 70 72 6f 74 6f 63 6f 6c 20  dd>The protocol 
3b60: 76 65 72 73 69 6f 6e 20 75 73 65 64 20 66 6f 72  version used for
3b70: 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 3a   the connection:
3b80: 0a 09 20 20 20 20 53 53 4c 32 2c 20 53 53 4c 33  ..    SSL2, SSL3
3b90: 2c 20 54 4c 53 31 2c 20 54 4c 53 31 2e 31 2c 20  , TLS1, TLS1.1, 
3ba0: 54 4c 53 31 2e 32 2c 20 54 4c 53 31 2e 33 2c 20  TLS1.2, TLS1.3, 
3bb0: 6f 72 20 75 6e 6b 6e 6f 77 6e 2e 3c 2f 64 64 3e  or unknown.</dd>
3bc0: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
3bd0: 72 6f 6e 67 3e 72 65 6e 65 67 6f 74 69 61 74 69  rong>renegotiati
3be0: 6f 6e 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  on</strong> <em>
3bf0: 73 74 61 74 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  state</em></dt>.
3c00: 20 20 20 20 20 20 20 20 3c 64 64 3e 57 68 65 74          <dd>Whet
3c10: 68 65 72 20 70 72 6f 74 6f 63 6f 6c 20 72 65 6e  her protocol ren
3c20: 65 67 6f 74 69 61 74 69 6f 6e 20 69 73 20 61 6c  egotiation is al
3c30: 6c 6f 77 65 64 20 6f 72 20 64 69 73 61 6c 6c 6f  lowed or disallo
3c40: 77 65 64 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20  wed.</dd>.      
3c50: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73 65    <dt><strong>se
3c60: 63 75 72 69 74 79 6c 65 76 65 6c 3c 2f 73 74 72  curitylevel</str
3c70: 6f 6e 67 3e 20 3c 65 6d 3e 6c 65 76 65 6c 3c 2f  ong> <em>level</
3c80: 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20  em></dt>.       
3c90: 20 3c 64 64 3e 54 68 65 20 73 65 63 75 72 69 74   <dd>The securit
3ca0: 79 20 6c 65 76 65 6c 20 75 73 65 64 20 66 6f 72  y level used for
3cb0: 20 73 65 6c 65 63 74 69 6f 6e 20 6f 66 20 63 69   selection of ci
3cc0: 70 68 65 72 73 2c 20 6b 65 79 20 73 69 7a 65 2c  phers, key size,
3cd0: 20 65 74 63 2e 3c 2f 64 64 3e 0a 20 20 20 20 20   etc.</dd>.     
3ce0: 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 73     <dt><strong>s
3cf0: 65 73 73 69 6f 6e 5f 72 65 75 73 65 64 3c 2f 73  ession_reused</s
3d00: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 6f 6f 6c 65  trong> <em>boole
3d10: 61 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20  an</em></dt>.   
3d20: 20 20 20 20 20 3c 64 64 3e 57 68 65 74 68 65 72       <dd>Whether
3d30: 20 74 68 65 20 73 65 73 73 69 6f 6e 20 68 61 73   the session has
3d40: 20 62 65 65 6e 20 72 65 75 73 65 64 20 6f 72 20   been reused or 
3d50: 6e 6f 74 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20  not.</dd>.      
3d60: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 69 73    <dt><strong>is
3d70: 5f 73 65 72 76 65 72 3c 2f 73 74 72 6f 6e 67 3e  _server</strong>
3d80: 20 3c 65 6d 3e 62 6f 6f 6c 65 61 6e 3c 2f 65 6d   <em>boolean</em
3d90: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c  ></dt>.        <
3da0: 64 64 3e 57 68 65 74 68 65 72 20 74 68 65 20 63  dd>Whether the c
3db0: 6f 6e 6e 65 63 74 69 6f 6e 20 63 6f 6e 66 69 67  onnection config
3dc0: 75 72 65 64 20 61 73 20 61 20 73 65 72 76 65 72  ured as a server
3dd0: 20 6f 72 20 63 6c 69 65 6e 74 20 28 66 61 6c 73   or client (fals
3de0: 65 29 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  e).</dd>.       
3df0: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 63 69 70   <dt><strong>cip
3e00: 68 65 72 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d  her</strong> <em
3e10: 3e 63 69 70 68 65 72 3c 2f 65 6d 3e 3c 2f 64 74  >cipher</em></dt
3e20: 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68  >.        <dd>Th
3e30: 65 20 63 75 72 72 65 6e 74 20 63 69 70 68 65 72  e current cipher
3e40: 20 69 6e 20 75 73 65 20 66 6f 72 20 74 68 65 20   in use for the 
3e50: 63 6f 6e 6e 65 63 74 69 6f 6e 2e 3c 2f 64 64 3e  connection.</dd>
3e60: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
3e70: 72 6f 6e 67 3e 73 74 61 6e 64 61 72 64 5f 6e 61  rong>standard_na
3e80: 6d 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  me</strong> <em>
3e90: 6e 61 6d 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20  name</em></dt>. 
3ea0: 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65 20 73         <dd>The s
3eb0: 74 61 6e 64 61 72 64 20 52 46 43 20 6e 61 6d 65  tandard RFC name
3ec0: 20 6f 66 20 63 69 70 68 65 72 2e 3c 2f 64 64 3e   of cipher.</dd>
3ed0: 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74  .        <dt><st
3ee0: 72 6f 6e 67 3e 62 69 74 73 3c 2f 73 74 72 6f 6e  rong>bits</stron
3ef0: 67 3e 20 3c 65 6d 3e 6e 3c 2f 65 6d 3e 3c 2f 64  g> <em>n</em></d
3f00: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54  t>.        <dd>T
3f10: 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 70 72 6f  he number of pro
3f20: 63 65 73 73 65 64 20 62 69 74 73 20 75 73 65 64  cessed bits used
3f30: 20 66 6f 72 20 63 69 70 68 65 72 2e 3c 2f 64 64   for cipher.</dd
3f40: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73  >.        <dt><s
3f50: 74 72 6f 6e 67 3e 73 65 63 72 65 74 5f 62 69 74  trong>secret_bit
3f60: 73 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6e  s</strong> <em>n
3f70: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20  </em></dt>.     
3f80: 20 20 20 3c 64 64 3e 54 68 65 20 6e 75 6d 62 65     <dd>The numbe
3f90: 72 20 6f 66 20 73 65 63 72 65 74 20 62 69 74 73  r of secret bits
3fa0: 20 75 73 65 64 20 66 6f 72 20 63 69 70 68 65 72   used for cipher
3fb0: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  .</dd>.        <
3fc0: 64 74 3e 3c 73 74 72 6f 6e 67 3e 6d 69 6e 5f 76  dt><strong>min_v
3fd0: 65 72 73 69 6f 6e 3c 2f 73 74 72 6f 6e 67 3e 20  ersion</strong> 
3fe0: 3c 65 6d 3e 76 65 72 73 69 6f 6e 3c 2f 65 6d 3e  <em>version</em>
3ff0: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dt>.        <d
4000: 64 3e 54 68 65 20 6d 69 6e 69 6d 75 6d 20 70 72  d>The minimum pr
4010: 6f 74 6f 63 6f 6c 20 76 65 72 73 69 6f 6e 20 66  otocol version f
4020: 6f 72 20 63 69 70 68 65 72 2e 3c 2f 64 64 3e 0a  or cipher.</dd>.
4030: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72          <dt><str
4040: 6f 6e 67 3e 69 64 3c 2f 73 74 72 6f 6e 67 3e 20  ong>id</strong> 
4050: 3c 65 6d 3e 69 64 3c 2f 65 6d 3e 3c 2f 64 74 3e  <em>id</em></dt>
4060: 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54 68 65  .        <dd>The
4070: 20 4f 70 65 6e 53 53 4c 20 63 69 70 68 65 72 20   OpenSSL cipher 
4080: 69 64 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20  id.</dd>.       
4090: 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 64 65 73   <dt><strong>des
40a0: 63 72 69 70 74 69 6f 6e 3c 2f 73 74 72 6f 6e 67  cription</strong
40b0: 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f 65 6d  > <em>string</em
40c0: 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c  ></dt>.        <
40d0: 64 64 3e 41 20 74 65 78 74 20 64 65 73 63 72 69  dd>A text descri
40e0: 70 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 69 70  ption of the cip
40f0: 68 65 72 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20  her.</dd>.      
4100: 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67 3e 61 6c    <dt><strong>al
4110: 70 6e 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  pn</strong> <em>
4120: 70 72 6f 74 6f 63 6f 6c 3c 2f 65 6d 3e 3c 2f 64  protocol</em></d
4130: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54  t>.        <dd>T
4140: 68 65 20 70 72 6f 74 6f 63 6f 6c 20 73 65 6c 65  he protocol sele
4150: 63 74 65 64 20 61 66 74 65 72 20 41 70 70 6c 69  cted after Appli
4160: 63 61 74 69 6f 6e 2d 4c 61 79 65 72 20 50 72 6f  cation-Layer Pro
4170: 74 6f 63 6f 6c 0a 09 20 20 20 20 4e 65 67 6f 74  tocol..    Negot
4180: 69 61 74 69 6f 6e 20 28 41 4c 50 4e 29 2e 3c 2f  iation (ALPN).</
4190: 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e  dd>.        <dt>
41a0: 3c 73 74 72 6f 6e 67 3e 72 65 73 75 6d 61 62 6c  <strong>resumabl
41b0: 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62  e</strong> <em>b
41c0: 6f 6f 6c 65 61 6e 3c 2f 65 6d 3e 3c 2f 64 74 3e  oolean</em></dt>
41d0: 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 43 61 6e  .        <dd>Can
41e0: 20 74 68 65 20 73 65 73 73 69 6f 6e 20 62 65 20   the session be 
41f0: 72 65 73 75 6d 65 64 20 6f 72 20 6e 6f 74 2e 3c  resumed or not.<
4200: 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74  /dd>.        <dt
4210: 3e 3c 73 74 72 6f 6e 67 3e 73 74 61 72 74 5f 74  ><strong>start_t
4220: 69 6d 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d  ime</strong> <em
4230: 3e 73 65 63 6f 6e 64 73 3c 2f 65 6d 3e 3c 2f 64  >seconds</em></d
4240: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 54  t>.        <dd>T
4250: 69 6d 65 20 73 69 6e 63 65 20 73 65 73 73 69 6f  ime since sessio
4260: 6e 20 73 74 61 72 74 65 64 20 69 6e 20 73 65 63  n started in sec
4270: 6f 6e 64 73 20 73 69 6e 63 65 20 65 70 6f 63 68  onds since epoch
4280: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  .</dd>.        <
4290: 64 74 3e 3c 73 74 72 6f 6e 67 3e 74 69 6d 65 6f  dt><strong>timeo
42a0: 75 74 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e  ut</strong> <em>
42b0: 73 65 63 6f 6e 64 73 3c 2f 65 6d 3e 3c 2f 64 74  seconds</em></dt
42c0: 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 4d 61  >.        <dd>Ma
42d0: 78 20 64 75 72 61 74 69 6f 6e 20 6f 66 20 73 65  x duration of se
42e0: 73 73 69 6f 6e 20 69 6e 20 73 65 63 6f 6e 64 73  ssion in seconds
42f0: 20 62 65 66 6f 72 65 20 74 69 6d 65 2d 6f 75 74   before time-out
4300: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  .</dd>.        <
4310: 64 74 3e 3c 73 74 72 6f 6e 67 3e 6c 69 66 65 74  dt><strong>lifet
4320: 69 6d 65 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d  ime</strong> <em
4330: 3e 73 65 63 6f 6e 64 73 3c 2f 65 6d 3e 3c 2f 64  >seconds</em></d
4340: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 53  t>.        <dd>S
4350: 65 73 73 69 6f 6e 20 74 69 63 6b 65 74 20 6c 69  ession ticket li
4360: 66 65 74 69 6d 65 20 68 69 6e 74 20 69 6e 20 73  fetime hint in s
4370: 65 63 6f 6e 64 73 2e 3c 2f 64 64 3e 0a 20 20 20  econds.</dd>.   
4380: 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e 67       <dt><strong
4390: 3e 73 65 73 73 69 6f 6e 5f 69 64 3c 2f 73 74 72  >session_id</str
43a0: 6f 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c  ong> <em>string<
43b0: 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20  /em></dt>.      
43c0: 20 20 3c 64 64 3e 55 6e 69 71 75 65 20 73 65 73    <dd>Unique ses
43d0: 73 69 6f 6e 20 69 64 20 66 6f 72 20 75 73 65 20  sion id for use 
43e0: 69 6e 20 72 65 73 75 6d 69 6e 67 20 74 68 65 20  in resuming the 
43f0: 73 65 73 73 69 6f 6e 2e 3c 2f 64 64 3e 0a 20 20  session.</dd>.  
4400: 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e        <dt><stron
4410: 67 3e 73 65 73 73 69 6f 6e 5f 74 69 63 6b 65 74  g>session_ticket
4420: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 74  </strong> <em>st
4430: 72 69 6e 67 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20  ring</em></dt>. 
4440: 20 20 20 20 20 20 20 3c 64 64 3e 55 6e 69 71 75         <dd>Uniqu
4450: 65 20 73 65 73 73 69 6f 6e 20 74 69 63 6b 65 74  e session ticket
4460: 20 66 6f 72 20 75 73 65 20 69 6e 20 72 65 73 75   for use in resu
4470: 6d 69 6e 67 20 74 68 65 20 73 65 73 73 69 6f 6e  ming the session
4480: 2e 3c 2f 64 64 3e 0a 20 20 20 20 20 20 20 20 3c  .</dd>.        <
4490: 64 74 3e 3c 73 74 72 6f 6e 67 3e 74 69 63 6b 65  dt><strong>ticke
44a0: 74 5f 61 70 70 5f 64 61 74 61 3c 2f 73 74 72 6f  t_app_data</stro
44b0: 6e 67 3e 20 3c 65 6d 3e 73 74 72 69 6e 67 3c 2f  ng> <em>string</
44c0: 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20  em></dt>.       
44d0: 20 3c 64 64 3e 55 6e 69 71 75 65 20 73 65 73 73   <dd>Unique sess
44e0: 69 6f 6e 20 74 69 63 6b 65 74 20 61 70 70 6c 69  ion ticket appli
44f0: 63 61 74 69 6f 6e 20 64 61 74 61 2e 3c 2f 64 64  cation data.</dd
4500: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73  >.        <dt><s
4510: 74 72 6f 6e 67 3e 6d 61 73 74 65 72 5f 6b 65 79  trong>master_key
4520: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 62 69  </strong> <em>bi
4530: 6e 61 72 79 5f 73 74 72 69 6e 67 3c 2f 65 6d 3e  nary_string</em>
4540: 3c 2f 64 74 3e 0a 20 20 20 20 20 20 20 20 3c 64  </dt>.        <d
4550: 64 3e 55 6e 69 71 75 65 20 73 65 73 73 69 6f 6e  d>Unique session
4560: 20 6d 61 73 74 65 72 20 6b 65 79 2e 3c 2f 64 64   master key.</dd
4570: 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73  >.        <dt><s
4580: 74 72 6f 6e 67 3e 63 6f 6d 70 72 65 73 73 69 6f  trong>compressio
4590: 6e 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6d  n</strong> <em>m
45a0: 6f 64 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20  ode</em></dt>.  
45b0: 20 20 20 20 20 20 3c 64 64 3e 43 6f 6d 70 72 65        <dd>Compre
45c0: 73 73 69 6f 6e 20 6d 65 74 68 6f 64 2e 3c 2f 64  ssion method.</d
45d0: 64 3e 0a 20 20 20 20 20 20 20 20 3c 64 74 3e 3c  d>.        <dt><
45e0: 73 74 72 6f 6e 67 3e 65 78 70 61 6e 73 69 6f 6e  strong>expansion
45f0: 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 6d 6f  </strong> <em>mo
4600: 64 65 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20  de</em></dt>.   
4610: 20 20 20 20 20 3c 64 64 3e 45 78 70 61 6e 73 69       <dd>Expansi
4620: 6f 6e 20 6d 65 74 68 6f 64 2e 3c 2f 64 64 3e 0a  on method.</dd>.
4630: 20 20 20 20 20 20 20 20 3c 64 74 3e 3c 73 74 72          <dt><str
4640: 6f 6e 67 3e 73 65 73 73 69 6f 6e 5f 63 61 63 68  ong>session_cach
4650: 65 5f 6d 6f 64 65 3c 2f 73 74 72 6f 6e 67 3e 20  e_mode</strong> 
4660: 3c 65 6d 3e 6d 6f 64 65 3c 2f 65 6d 3e 3c 2f 64  <em>mode</em></d
4670: 74 3e 0a 20 20 20 20 20 20 20 20 3c 64 64 3e 53  t>.        <dd>S
4680: 65 72 76 65 72 20 63 61 63 68 65 20 6d 6f 64 65  erver cache mode
4690: 20 28 63 6c 69 65 6e 74 2c 20 73 65 72 76 65 72   (client, server
46a0: 2c 20 6f 72 20 62 6f 74 68 29 2e 3c 2f 64 64 3e  , or both).</dd>
46b0: 0a 20 20 20 20 3c 2f 64 6c 3e 0a 3c 2f 62 6c 6f  .    </dl>.</blo
46c0: 63 6b 71 75 6f 74 65 3e 0a 0a 20 20 20 20 3c 64  ckquote>..    <d
46d0: 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c 73 3a 3a  t><a name="tls::
46e0: 63 69 70 68 65 72 73 22 3e 3c 73 74 72 6f 6e 67  ciphers"><strong
46f0: 3e 74 6c 73 3a 3a 63 69 70 68 65 72 73 3c 2f 73  >tls::ciphers</s
4700: 74 72 6f 6e 67 3e 20 0a 20 20 20 20 3c 65 6d 3e  trong> .    <em>
4710: 70 72 6f 74 6f 63 6f 6c 20 3f 76 65 72 62 6f 73  protocol ?verbos
4720: 65 3f 20 3f 73 75 70 70 6f 72 74 65 64 3f 3c 2f  e? ?supported?</
4730: 65 6d 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20  em></a></dt>.   
4740: 20 3c 64 64 3e 52 65 74 75 72 6e 73 20 61 20 6c   <dd>Returns a l
4750: 69 73 74 20 6f 66 20 73 75 70 70 6f 72 74 65 64  ist of supported
4760: 20 63 69 70 68 65 72 73 20 61 76 61 69 6c 61 62   ciphers availab
4770: 6c 65 20 66 6f 72 20 3c 65 6d 3e 70 72 6f 74 6f  le for <em>proto
4780: 63 6f 6c 3c 2f 65 6d 3e 2c 0a 20 20 20 20 20 20  col</em>,.      
4790: 20 20 77 68 65 72 65 20 70 72 6f 74 6f 63 6f 6c    where protocol
47a0: 20 6d 75 73 74 20 62 65 20 6f 6e 65 20 6f 66 20   must be one of 
47b0: 3c 62 3e 73 73 6c 32 2c 20 73 73 6c 33 2c 20 74  <b>ssl2, ssl3, t
47c0: 6c 73 31 2c 20 74 6c 73 31 2e 31 2c 0a 09 74 6c  ls1, tls1.1,..tl
47d0: 73 31 2e 32 2c 3c 2f 62 3e 20 6f 72 20 3c 62 3e  s1.2,</b> or <b>
47e0: 74 6c 73 31 2e 33 3c 2f 62 3e 2e 20 49 66 20 3c  tls1.3</b>. If <
47f0: 65 6d 3e 76 65 72 62 6f 73 65 3c 2f 65 6d 3e 20  em>verbose</em> 
4800: 69 73 20 73 70 65 63 69 66 69 65 64 20 61 73 0a  is specified as.
4810: 09 74 72 75 65 20 74 68 65 6e 20 61 20 76 65 72  .true then a ver
4820: 62 6f 73 65 2c 20 68 75 6d 61 6e 20 72 65 61 64  bose, human read
4830: 61 62 6c 65 20 6c 69 73 74 20 69 73 20 72 65 74  able list is ret
4840: 75 72 6e 65 64 20 77 69 74 68 0a 09 61 64 64 69  urned with..addi
4850: 74 69 6f 6e 61 6c 20 69 6e 66 6f 72 6d 61 74 69  tional informati
4860: 6f 6e 20 6f 6e 20 74 68 65 20 63 69 70 68 65 72  on on the cipher
4870: 2e 20 49 66 20 3c 65 6d 3e 73 75 70 70 6f 72 74  . If <em>support
4880: 65 64 3c 2f 65 6d 3e 0a 09 69 73 20 73 70 65 63  ed</em>..is spec
4890: 69 66 69 65 64 20 61 73 20 74 72 75 65 2c 20 74  ified as true, t
48a0: 68 65 6e 20 6f 6e 6c 79 20 74 68 65 20 63 69 70  hen only the cip
48b0: 68 65 72 73 20 73 75 70 70 6f 72 74 65 64 20 66  hers supported f
48c0: 6f 72 20 70 72 6f 74 6f 63 6f 6c 0a 09 77 69 6c  or protocol..wil
48d0: 6c 20 62 65 20 6c 69 73 74 65 64 2e 3c 2f 64 64  l be listed.</dd
48e0: 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c 61 20 6e 61  >..    <dt><a na
48f0: 6d 65 3d 22 74 6c 73 3a 3a 70 72 6f 74 6f 63 6f  me="tls::protoco
4900: 6c 73 22 3e 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a  ls"><strong>tls:
4910: 3a 70 72 6f 74 6f 63 6f 6c 73 3c 2f 73 74 72 6f  :protocols</stro
4920: 6e 67 3e 3c 2f 61 3e 3c 2f 64 74 3e 0a 20 20 20  ng></a></dt>.   
4930: 20 3c 64 64 3e 52 65 74 75 72 6e 73 20 61 20 6c   <dd>Returns a l
4940: 69 73 74 20 6f 66 20 73 75 70 70 6f 72 74 65 64  ist of supported
4950: 20 70 72 6f 74 6f 63 6f 6c 73 2e 20 56 61 6c 69   protocols. Vali
4960: 64 20 76 61 6c 75 65 73 20 61 72 65 3a 0a 09 3c  d values are:..<
4970: 62 3e 73 73 6c 32 3c 2f 62 3e 2c 20 3c 62 3e 73  b>ssl2</b>, <b>s
4980: 73 6c 33 3c 2f 62 3e 2c 20 3c 62 3e 74 6c 73 31  sl3</b>, <b>tls1
4990: 3c 2f 62 3e 2c 20 3c 62 3e 74 6c 73 31 2e 31 3c  </b>, <b>tls1.1<
49a0: 2f 62 3e 2c 20 3c 62 3e 74 6c 73 31 2e 32 3c 2f  /b>, <b>tls1.2</
49b0: 62 3e 2c 0a 09 61 6e 64 20 3c 62 3e 74 6c 73 31  b>,..and <b>tls1
49c0: 2e 33 3c 2f 62 3e 2e 20 45 78 61 63 74 20 6c 69  .3</b>. Exact li
49d0: 73 74 20 64 65 70 65 6e 64 73 20 6f 6e 20 4f 70  st depends on Op
49e0: 65 6e 53 53 4c 20 76 65 72 73 69 6f 6e 20 61 6e  enSSL version an
49f0: 64 0a 09 63 6f 6d 70 69 6c 65 20 74 69 6d 65 20  d..compile time 
4a00: 66 6c 61 67 73 2e 3c 2f 64 64 3e 0a 0a 20 20 20  flags.</dd>..   
4a10: 20 3c 64 74 3e 3c 61 20 6e 61 6d 65 3d 22 74 6c   <dt><a name="tl
4a20: 73 3a 3a 76 65 72 73 69 6f 6e 22 3e 3c 73 74 72  s::version"><str
4a30: 6f 6e 67 3e 74 6c 73 3a 3a 76 65 72 73 69 6f 6e  ong>tls::version
4a40: 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 61 3e 3c 2f 64  </strong></a></d
4a50: 74 3e 0a 20 20 20 20 3c 64 64 3e 52 65 74 75 72  t>.    <dd>Retur
4a60: 6e 73 20 74 68 65 20 4f 70 65 6e 53 53 4c 20 76  ns the OpenSSL v
4a70: 65 72 73 69 6f 6e 20 73 74 72 69 6e 67 2e 3c 2f  ersion string.</
4a80: 64 64 3e 0a 3c 2f 64 6c 3e 0a 0a 3c 68 33 3e 3c  dd>.</dl>..<h3><
4a90: 61 20 6e 61 6d 65 3d 22 43 41 4c 4c 42 41 43 4b  a name="CALLBACK
4aa0: 20 4f 50 54 49 4f 4e 53 22 3e 43 41 4c 4c 42 41   OPTIONS">CALLBA
4ab0: 43 4b 20 4f 50 54 49 4f 4e 53 3c 2f 61 3e 3c 2f  CK OPTIONS</a></
4ac0: 68 33 3e 0a 0a 3c 70 3e 0a 41 73 20 69 6e 64 69  h3>..<p>.As indi
4ad0: 63 61 74 65 64 20 61 62 6f 76 65 2c 20 69 6e 64  cated above, ind
4ae0: 69 76 69 64 75 61 6c 20 63 68 61 6e 6e 65 6c 73  ividual channels
4af0: 20 63 61 6e 20 62 65 20 67 69 76 65 6e 20 74 68   can be given th
4b00: 65 69 72 20 6f 77 6e 20 63 61 6c 6c 62 61 63 6b  eir own callback
4b10: 73 0a 74 6f 20 68 61 6e 64 6c 65 20 69 6e 74 65  s.to handle inte
4b20: 72 6d 65 64 69 61 74 65 20 70 72 6f 63 65 73 73  rmediate process
4b30: 69 6e 67 20 62 79 20 74 68 65 20 4f 70 65 6e 53  ing by the OpenS
4b40: 53 4c 20 6c 69 62 72 61 72 79 2c 20 75 73 69 6e  SL library, usin
4b50: 67 20 74 68 65 0a 3c 65 6d 3e 2d 63 6f 6d 6d 61  g the.<em>-comma
4b60: 6e 64 3c 2f 65 6d 3e 20 61 6e 64 20 3c 65 6d 3e  nd</em> and <em>
4b70: 2d 70 61 73 73 77 6f 72 64 3c 2f 65 6d 3e 20 6f  -password</em> o
4b80: 70 74 69 6f 6e 73 20 70 61 73 73 65 64 20 74 6f  ptions passed to
4b90: 20 65 69 74 68 65 72 20 6f 66 0a 3c 73 74 72 6f   either of.<stro
4ba0: 6e 67 3e 74 6c 73 3a 3a 73 6f 63 6b 65 74 3c 2f  ng>tls::socket</
4bb0: 73 74 72 6f 6e 67 3e 20 6f 72 20 3c 73 74 72 6f  strong> or <stro
4bc0: 6e 67 3e 74 6c 73 3a 3a 69 6d 70 6f 72 74 3c 2f  ng>tls::import</
4bd0: 73 74 72 6f 6e 67 3e 2e 0a 3c 2f 70 3e 0a 0a 3c  strong>..</p>..<
4be0: 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 3c 64 6c 3e  blockquote>.<dl>
4bf0: 0a 0a 20 20 20 20 3c 64 74 3e 3c 73 74 72 6f 6e  ..    <dt><stron
4c00: 67 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f 73 74 72 6f  g>-command</stro
4c10: 6e 67 3e 20 3c 65 6d 3e 63 61 6c 6c 62 61 63 6b  ng> <em>callback
4c20: 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a 20 20 20 20 3c  </em></dt>.    <
4c30: 64 64 3e 0a 09 49 6e 76 6f 6b 65 73 20 74 68 65  dd>..Invokes the
4c40: 20 73 70 65 63 69 66 69 65 64 20 3c 65 6d 3e 63   specified <em>c
4c50: 61 6c 6c 62 61 63 6b 3c 2f 65 6d 3e 20 73 63 72  allback</em> scr
4c60: 69 70 74 20 61 74 0a 09 73 65 76 65 72 61 6c 20  ipt at..several 
4c70: 70 6f 69 6e 74 73 20 64 75 72 69 6e 67 20 74 68  points during th
4c80: 65 20 4f 70 65 6e 53 53 4c 20 68 61 6e 64 73 68  e OpenSSL handsh
4c90: 61 6b 65 2e 0a 09 45 78 63 65 70 74 20 61 73 20  ake...Except as 
4ca0: 69 6e 64 69 63 61 74 65 64 20 62 65 6c 6f 77 2c  indicated below,
4cb0: 20 76 61 6c 75 65 73 20 72 65 74 75 72 6e 65 64   values returned
4cc0: 20 66 72 6f 6d 20 74 68 65 0a 09 63 61 6c 6c 62   from the..callb
4cd0: 61 63 6b 20 61 72 65 20 69 67 6e 6f 72 65 64 2e  ack are ignored.
4ce0: 0a 09 41 72 67 75 6d 65 6e 74 73 20 61 70 70 65  ..Arguments appe
4cf0: 6e 64 65 64 20 74 6f 20 74 68 65 20 73 63 72 69  nded to the scri
4d00: 70 74 20 75 70 6f 6e 20 63 61 6c 6c 62 61 63 6b  pt upon callback
4d10: 20 74 61 6b 65 20 6f 6e 65 20 6f 66 20 74 68 65   take one of the
4d20: 0a 09 66 6f 6c 6c 6f 77 69 6e 67 20 66 6f 72 6d  ..following form
4d30: 73 3a 0a 0a 09 3c 62 72 3e 0a 09 3c 62 72 3e 0a  s:...<br>..<br>.
4d40: 0a 09 3c 64 6c 3e 0a 0a 09 3c 64 74 3e 0a 09 20  ..<dl>...<dt>.. 
4d50: 20 3c 73 74 72 6f 6e 67 3e 61 6c 70 6e 3c 2f 73   <strong>alpn</s
4d60: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 70 72 6f 74 6f  trong> <em>proto
4d70: 63 6f 6c 3c 2f 65 6d 3e 0a 09 3c 2f 64 74 3e 0a  col</em>..</dt>.
4d80: 09 3c 64 64 3e 0a 09 20 20 46 6f 72 20 73 65 72  .<dd>..  For ser
4d90: 76 65 72 73 2c 20 74 68 69 73 20 66 6f 72 6d 20  vers, this form 
4da0: 6f 66 20 63 61 6c 6c 62 61 63 6b 20 69 73 20 69  of callback is i
4db0: 6e 76 6f 6b 65 64 20 77 68 65 6e 20 74 68 65 20  nvoked when the 
4dc0: 63 6c 69 65 6e 74 20 41 4c 50 4e 0a 09 20 20 68  client ALPN..  h
4dd0: 65 61 64 65 72 20 69 73 20 72 65 63 65 69 76 65  eader is receive
4de0: 64 20 61 6e 64 20 74 68 65 20 66 69 72 73 74 20  d and the first 
4df0: 2d 61 6c 70 6e 20 73 70 65 63 69 66 69 65 64 20  -alpn specified 
4e00: 70 72 6f 74 6f 63 6f 6c 20 63 6f 6d 6d 6f 6e 20  protocol common 
4e10: 74 6f 0a 09 20 20 74 68 65 20 62 6f 74 68 20 74  to..  the both t
4e20: 68 65 20 63 6c 69 65 6e 74 20 61 6e 64 20 73 65  he client and se
4e30: 72 76 65 72 20 69 73 20 73 65 6c 65 63 74 65 64  rver is selected
4e40: 2e 20 49 66 20 6e 6f 6e 65 2c 20 74 68 65 20 66  . If none, the f
4e50: 69 72 73 74 0a 09 20 20 63 6c 69 65 6e 74 20 73  irst..  client s
4e60: 70 65 63 69 66 69 65 64 20 70 72 6f 74 6f 63 6f  pecified protoco
4e70: 6c 20 69 73 20 75 73 65 64 2e 0a 09 3c 2f 64 64  l is used...</dd
4e80: 3e 0a 0a 09 3c 62 72 3e 0a 0a 3c 21 2d 2d 09 54  >...<br>..<!--.T
4e90: 68 69 73 20 66 6f 72 6d 20 6f 66 20 63 61 6c 6c  his form of call
4ea0: 62 61 63 6b 20 69 73 20 64 69 73 61 62 6c 65 64  back is disabled
4eb0: 2e 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c 73 74 72  ....<dt>..  <str
4ec0: 6f 6e 67 3e 65 72 72 6f 72 3c 2f 73 74 72 6f 6e  ong>error</stron
4ed0: 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 20 6d  g> <em>channel m
4ee0: 65 73 73 61 67 65 3c 2f 65 6d 3e 0a 09 3c 2f 64  essage</em>..</d
4ef0: 74 3e 0a 09 3c 64 64 3e 0a 09 20 20 54 68 65 20  t>..<dd>..  The 
4f00: 3c 65 6d 3e 6d 65 73 73 61 67 65 3c 2f 65 6d 3e  <em>message</em>
4f10: 20 61 72 67 75 6d 65 6e 74 20 63 6f 6e 74 61 69   argument contai
4f20: 6e 73 20 61 6e 20 65 72 72 6f 72 20 6d 65 73 73  ns an error mess
4f30: 61 67 65 20 67 65 6e 65 72 61 74 65 64 0a 09 20  age generated.. 
4f40: 20 62 79 20 74 68 65 20 4f 70 65 6e 53 53 4c 20   by the OpenSSL 
4f50: 66 75 6e 63 74 69 6f 6e 0a 09 20 20 3c 63 6f 64  function..  <cod
4f60: 65 3e 45 52 52 5f 72 65 61 73 6f 6e 5f 65 72 72  e>ERR_reason_err
4f70: 6f 72 5f 73 74 72 69 6e 67 28 29 3c 2f 63 6f 64  or_string()</cod
4f80: 65 3e 2e 0a 09 3c 2f 64 64 3e 0a 0a 09 3c 62 72  e>...</dd>...<br
4f90: 3e 0a 2d 2d 3e 0a 0a 09 3c 64 74 3e 0a 09 20 20  >.-->...<dt>..  
4fa0: 3c 73 74 72 6f 6e 67 3e 68 65 6c 6c 6f 3c 2f 73  <strong>hello</s
4fb0: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 65 72 76 65  trong> <em>serve
4fc0: 72 6e 61 6d 65 3c 2f 65 6d 3e 0a 09 3c 2f 64 74  rname</em>..</dt
4fd0: 3e 0a 09 3c 64 64 3e 0a 09 20 20 46 6f 72 20 73  >..<dd>..  For s
4fe0: 65 72 76 65 72 73 2c 20 74 68 69 73 20 66 6f 72  ervers, this for
4ff0: 6d 20 6f 66 20 63 61 6c 6c 62 61 63 6b 20 69 73  m of callback is
5000: 20 69 6e 76 6f 6b 65 64 20 64 75 72 69 6e 67 20   invoked during 
5010: 63 6c 69 65 6e 74 20 68 65 6c 6c 6f 0a 09 20 20  client hello..  
5020: 6d 65 73 73 61 67 65 20 70 72 6f 63 65 73 73 69  message processi
5030: 6e 67 2e 0a 09 3c 2f 64 64 3e 0a 0a 09 3c 62 72  ng...</dd>...<br
5040: 3e 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c 73 74 72  >...<dt>..  <str
5050: 6f 6e 67 3e 69 6e 66 6f 3c 2f 73 74 72 6f 6e 67  ong>info</strong
5060: 3e 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 20 6d 61  > <em>channel ma
5070: 6a 6f 72 20 6d 69 6e 6f 72 20 6d 65 73 73 61 67  jor minor messag
5080: 65 3c 2f 65 6d 3e 0a 09 3c 2f 64 74 3e 0a 09 3c  e</em>..</dt>..<
5090: 64 64 3e 0a 09 20 20 54 68 69 73 20 66 6f 72 6d  dd>..  This form
50a0: 20 6f 66 20 63 61 6c 6c 62 61 63 6b 20 69 73 20   of callback is 
50b0: 69 6e 76 6f 6b 65 64 20 62 79 20 74 68 65 20 4f  invoked by the O
50c0: 70 65 6e 53 53 4c 20 66 75 6e 63 74 69 6f 6e 0a  penSSL function.
50d0: 09 20 20 3c 63 6f 64 65 3e 53 53 4c 5f 43 54 58  .  <code>SSL_CTX
50e0: 5f 73 65 74 5f 69 6e 66 6f 5f 63 61 6c 6c 62 61  _set_info_callba
50f0: 63 6b 28 29 3c 2f 63 6f 64 65 3e 2e 0a 09 20 20  ck()</code>...  
5100: 3c 62 72 3e 0a 09 20 20 54 68 65 20 3c 65 6d 3e  <br>..  The <em>
5110: 6d 61 6a 6f 72 3c 2f 65 6d 3e 20 61 6e 64 20 3c  major</em> and <
5120: 65 6d 3e 6d 69 6e 6f 72 3c 2f 65 6d 3e 20 61 72  em>minor</em> ar
5130: 67 75 6d 65 6e 74 73 20 61 72 65 20 75 73 65 64  guments are used
5140: 20 74 6f 0a 09 20 20 72 65 70 72 65 73 65 6e 74   to..  represent
5150: 20 74 68 65 20 73 74 61 74 65 20 69 6e 66 6f 72   the state infor
5160: 6d 61 74 69 6f 6e 20 62 69 74 6d 61 73 6b 2e 0a  mation bitmask..
5170: 09 20 20 3c 64 6c 3e 0a 09 20 20 3c 64 74 3e 50  .  <dl>..  <dt>P
5180: 6f 73 73 69 62 6c 65 20 76 61 6c 75 65 73 20 66  ossible values f
5190: 6f 72 20 3c 65 6d 3e 6d 61 6a 6f 72 3c 2f 65 6d  or <em>major</em
51a0: 3e 20 61 72 65 3a 3c 2f 64 74 3e 0a 09 20 20 3c  > are:</dt>..  <
51b0: 64 64 3e 3c 63 6f 64 65 3e 68 61 6e 64 73 68 61  dd><code>handsha
51c0: 6b 65 2c 20 61 6c 65 72 74 2c 20 63 6f 6e 6e 65  ke, alert, conne
51d0: 63 74 2c 20 61 63 63 65 70 74 3c 2f 63 6f 64 65  ct, accept</code
51e0: 3e 2e 3c 2f 64 64 3e 0a 09 20 20 3c 64 74 3e 50  >.</dd>..  <dt>P
51f0: 6f 73 73 69 62 6c 65 20 76 61 6c 75 65 73 20 66  ossible values f
5200: 6f 72 20 3c 65 6d 3e 6d 69 6e 6f 72 3c 2f 65 6d  or <em>minor</em
5210: 3e 20 61 72 65 3a 3c 2f 64 74 3e 0a 09 20 20 3c  > are:</dt>..  <
5220: 64 64 3e 3c 63 6f 64 65 3e 73 74 61 72 74 2c 20  dd><code>start, 
5230: 64 6f 6e 65 2c 20 72 65 61 64 2c 20 77 72 69 74  done, read, writ
5240: 65 2c 20 6c 6f 6f 70 2c 20 65 78 69 74 3c 2f 63  e, loop, exit</c
5250: 6f 64 65 3e 2e 3c 2f 64 64 3e 0a 09 20 20 3c 2f  ode>.</dd>..  </
5260: 64 6c 3e 0a 09 20 20 54 68 65 20 3c 65 6d 3e 6d  dl>..  The <em>m
5270: 65 73 73 61 67 65 3c 2f 65 6d 3e 20 61 72 67 75  essage</em> argu
5280: 6d 65 6e 74 20 69 73 20 61 20 64 65 73 63 72 69  ment is a descri
5290: 70 74 69 76 65 20 73 74 72 69 6e 67 20 77 68 69  ptive string whi
52a0: 63 68 20 6d 61 79 0a 09 20 20 62 65 20 67 65 6e  ch may..  be gen
52b0: 65 72 61 74 65 64 20 65 69 74 68 65 72 20 62 79  erated either by
52c0: 0a 09 20 20 3c 63 6f 64 65 3e 53 53 4c 5f 73 74  ..  <code>SSL_st
52d0: 61 74 65 5f 73 74 72 69 6e 67 5f 6c 6f 6e 67 28  ate_string_long(
52e0: 29 3c 2f 63 6f 64 65 3e 20 6f 72 20 62 79 0a 09  )</code> or by..
52f0: 20 20 3c 63 6f 64 65 3e 53 53 4c 5f 61 6c 65 72    <code>SSL_aler
5300: 74 5f 64 65 73 63 5f 73 74 72 69 6e 67 5f 6c 6f  t_desc_string_lo
5310: 6e 67 28 29 3c 2f 63 6f 64 65 3e 2c 0a 09 20 20  ng()</code>,..  
5320: 64 65 70 65 6e 64 69 6e 67 20 6f 6e 20 63 6f 6e  depending on con
5330: 74 65 78 74 2e 0a 09 3c 2f 64 64 3e 0a 0a 09 3c  text...</dd>...<
5340: 62 72 3e 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c 73  br>...<dt>..  <s
5350: 74 72 6f 6e 67 3e 73 65 73 73 69 6f 6e 3c 2f 73  trong>session</s
5360: 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73 65 73 73 69  trong> <em>sessi
5370: 6f 6e 5f 69 64 20 74 69 63 6b 65 74 20 6c 69 66  on_id ticket lif
5380: 65 74 69 6d 65 3c 2f 65 6d 3e 0a 09 3c 2f 64 74  etime</em>..</dt
5390: 3e 0a 09 3c 64 64 3e 0a 09 20 20 54 68 69 73 20  >..<dd>..  This 
53a0: 66 6f 72 6d 20 6f 66 20 63 61 6c 6c 62 61 63 6b  form of callback
53b0: 20 69 73 20 69 6e 76 6f 6b 65 64 20 62 79 20 74   is invoked by t
53c0: 68 65 20 4f 70 65 6e 53 53 4c 20 66 75 6e 63 74  he OpenSSL funct
53d0: 69 6f 6e 0a 09 20 20 3c 63 6f 64 65 3e 53 53 4c  ion..  <code>SSL
53e0: 5f 43 54 58 5f 73 65 73 73 5f 73 65 74 5f 6e 65  _CTX_sess_set_ne
53f0: 77 5f 63 62 28 29 3c 2f 63 6f 64 65 3e 2e 0a 09  w_cb()</code>...
5400: 20 20 57 68 65 72 65 20 3c 65 6d 3e 73 65 73 73    Where <em>sess
5410: 69 6f 6e 5f 69 64 3c 2f 65 6d 3e 20 69 73 20 74  ion_id</em> is t
5420: 68 65 20 63 75 72 72 65 6e 74 20 73 65 73 73 69  he current sessi
5430: 6f 6e 20 69 64 65 6e 74 69 66 69 65 72 2c 0a 09  on identifier,..
5440: 20 20 3c 65 6d 3e 74 69 63 6b 65 74 3c 2f 65 6d    <em>ticket</em
5450: 3e 20 69 73 20 74 68 65 20 73 65 73 73 69 6f 6e  > is the session
5460: 20 74 69 63 6b 65 74 20 69 6e 66 6f 2c 20 61 6e   ticket info, an
5470: 64 20 3c 65 6d 3e 6c 69 66 65 74 69 6d 65 3c 2f  d <em>lifetime</
5480: 65 6d 3e 0a 09 20 20 69 73 20 74 68 65 20 74 68  em>..  is the th
5490: 65 20 74 69 63 6b 65 74 20 6c 69 66 65 74 69 6d  e ticket lifetim
54a0: 65 20 69 6e 20 73 65 63 6f 6e 64 73 2e 0a 09 3c  e in seconds...<
54b0: 2f 64 64 3e 0a 0a 09 3c 62 72 3e 0a 0a 09 3c 64  /dd>...<br>...<d
54c0: 74 3e 0a 09 20 20 3c 73 74 72 6f 6e 67 3e 73 6e  t>..  <strong>sn
54d0: 69 3c 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 73  i</strong> <em>s
54e0: 65 72 76 65 72 6e 61 6d 65 3c 2f 65 6d 3e 0a 09  ervername</em>..
54f0: 3c 2f 64 74 3e 0a 09 3c 64 64 3e 0a 09 20 20 46  </dt>..<dd>..  F
5500: 6f 72 20 73 65 72 76 65 72 73 2c 20 74 68 69 73  or servers, this
5510: 20 66 6f 72 6d 20 6f 66 20 63 61 6c 6c 62 61 63   form of callbac
5520: 6b 20 69 73 20 69 6e 76 6f 6b 65 64 20 77 68 65  k is invoked whe
5530: 6e 20 74 68 65 20 53 4e 49 20 68 65 61 64 65 72  n the SNI header
5540: 0a 09 20 20 66 72 6f 6d 20 74 68 65 20 63 6c 69  ..  from the cli
5550: 65 6e 74 20 69 73 20 72 65 63 65 69 76 65 64 2e  ent is received.
5560: 20 57 68 65 72 65 20 3c 69 3e 73 65 72 76 65 72   Where <i>server
5570: 6e 61 6d 65 3c 2f 69 3e 20 69 73 20 74 68 65 20  name</i> is the 
5580: 63 6c 69 65 6e 74 0a 09 20 20 73 70 65 63 69 66  client..  specif
5590: 69 65 64 20 73 65 72 76 65 72 6e 61 6d 65 2e 20  ied servername. 
55a0: 54 68 69 73 20 69 73 20 75 73 65 64 20 77 68 65  This is used whe
55b0: 6e 20 61 20 73 65 72 76 65 72 20 73 75 70 70 6f  n a server suppo
55c0: 72 74 73 20 6d 75 6c 74 69 70 6c 65 0a 09 20 20  rts multiple..  
55d0: 6e 61 6d 65 73 2c 20 73 6f 20 74 68 65 20 72 69  names, so the ri
55e0: 67 68 74 20 63 65 72 74 69 66 69 63 61 74 65 20  ght certificate 
55f0: 63 61 6e 20 62 65 20 75 73 65 64 2e 0a 09 3c 2f  can be used...</
5600: 64 64 3e 0a 0a 09 3c 62 72 3e 0a 09 3c 62 72 3e  dd>...<br>..<br>
5610: 0a 0a 09 3c 64 74 3e 0a 09 20 20 3c 73 74 72 6f  ...<dt>..  <stro
5620: 6e 67 3e 76 65 72 69 66 79 3c 2f 73 74 72 6f 6e  ng>verify</stron
5630: 67 3e 20 3c 65 6d 3e 63 68 61 6e 6e 65 6c 20 64  g> <em>channel d
5640: 65 70 74 68 20 63 65 72 74 20 73 74 61 74 75 73  epth cert status
5650: 20 65 72 72 6f 72 3c 2f 65 6d 3e 0a 09 3c 2f 64   error</em>..</d
5660: 74 3e 0a 09 3c 64 64 3e 0a 09 20 20 54 68 69 73  t>..<dd>..  This
5670: 20 66 6f 72 6d 20 6f 66 20 63 61 6c 6c 62 61 63   form of callbac
5680: 6b 20 69 73 20 69 6e 76 6f 6b 65 64 20 62 79 20  k is invoked by 
5690: 4f 70 65 6e 53 53 4c 20 77 68 65 6e 20 61 20 6e  OpenSSL when a n
56a0: 65 77 20 63 65 72 74 69 66 69 63 61 74 65 0a 09  ew certificate..
56b0: 20 20 69 73 20 72 65 63 65 69 76 65 64 20 66 72    is received fr
56c0: 6f 6d 20 74 68 65 20 70 65 65 72 2e 20 49 74 20  om the peer. It 
56d0: 61 6c 6c 6f 77 73 20 74 68 65 20 63 6c 69 65 6e  allows the clien
56e0: 74 20 74 6f 20 63 68 65 63 6b 20 74 68 65 0a 09  t to check the..
56f0: 20 20 63 65 72 74 69 66 69 63 61 74 65 20 76 65    certificate ve
5700: 72 69 66 69 63 61 74 69 6f 6e 20 72 65 73 75 6c  rification resul
5710: 74 20 61 6e 64 20 63 68 6f 6f 73 65 20 77 68 65  t and choose whe
5720: 74 68 65 72 20 74 6f 20 63 6f 6e 74 69 6e 75 65  ther to continue
5730: 20 6f 72 20 6e 6f 74 2e 0a 09 20 20 3c 62 72 3e   or not...  <br>
5740: 0a 09 20 20 54 68 65 20 3c 65 6d 3e 64 65 70 74  ..  The <em>dept
5750: 68 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e 74 20  h</em> argument 
5760: 69 73 20 61 6e 20 69 6e 74 65 67 65 72 20 72 65  is an integer re
5770: 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65 0a 09  presenting the..
5780: 20 20 63 75 72 72 65 6e 74 20 64 65 70 74 68 20    current depth 
5790: 6f 6e 20 74 68 65 20 63 65 72 74 69 66 69 63 61  on the certifica
57a0: 74 65 20 63 68 61 69 6e 2c 20 77 69 74 68 0a 09  te chain, with..
57b0: 20 20 3c 63 6f 64 65 3e 30 3c 2f 63 6f 64 65 3e    <code>0</code>
57c0: 20 61 73 20 74 68 65 20 73 75 62 6a 65 63 74 20   as the subject 
57d0: 63 65 72 74 69 66 69 63 61 74 65 20 61 6e 64 20  certificate and 
57e0: 68 69 67 68 65 72 20 76 61 6c 75 65 73 0a 09 20  higher values.. 
57f0: 20 64 65 6e 6f 74 69 6e 67 20 70 72 6f 67 72 65   denoting progre
5800: 73 73 69 76 65 6c 79 20 6d 6f 72 65 20 69 6e 64  ssively more ind
5810: 69 72 65 63 74 20 69 73 73 75 65 72 20 63 65 72  irect issuer cer
5820: 74 69 66 69 63 61 74 65 73 2e 0a 09 20 20 3c 62  tificates...  <b
5830: 72 3e 0a 09 20 20 54 68 65 20 3c 65 6d 3e 63 65  r>..  The <em>ce
5840: 72 74 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e 74  rt</em> argument
5850: 20 69 73 20 61 20 6c 69 73 74 20 6f 66 20 6b 65   is a list of ke
5860: 79 2d 76 61 6c 75 65 20 70 61 69 72 73 20 73 69  y-value pairs si
5870: 6d 69 6c 61 72 0a 09 20 20 74 6f 20 74 68 6f 73  milar..  to thos
5880: 65 20 72 65 74 75 72 6e 65 64 20 62 79 0a 09 20  e returned by.. 
5890: 20 3c 61 20 68 72 65 66 3d 22 23 74 6c 73 3a 3a   <a href="#tls::
58a0: 73 74 61 74 75 73 22 3e 3c 73 74 72 6f 6e 67 3e  status"><strong>
58b0: 74 6c 73 3a 3a 73 74 61 74 75 73 3c 2f 73 74 72  tls::status</str
58c0: 6f 6e 67 3e 3c 2f 61 3e 2e 0a 09 20 20 3c 62 72  ong></a>...  <br
58d0: 3e 0a 09 20 20 54 68 65 20 3c 65 6d 3e 73 74 61  >..  The <em>sta
58e0: 74 75 73 3c 2f 65 6d 3e 20 61 72 67 75 6d 65 6e  tus</em> argumen
58f0: 74 20 69 73 20 61 6e 20 69 6e 74 65 67 65 72 20  t is an integer 
5900: 72 65 70 72 65 73 65 6e 74 69 6e 67 20 74 68 65  representing the
5910: 0a 09 20 20 63 75 72 72 65 6e 74 20 76 61 6c 69  ..  current vali
5920: 64 69 74 79 20 6f 66 20 74 68 65 20 63 65 72 74  dity of the cert
5930: 69 66 69 63 61 74 65 2e 0a 09 20 20 41 20 76 61  ificate...  A va
5940: 6c 75 65 20 6f 66 20 3c 63 6f 64 65 3e 30 3c 2f  lue of <code>0</
5950: 63 6f 64 65 3e 20 6d 65 61 6e 73 20 74 68 65 20  code> means the 
5960: 63 65 72 74 69 66 69 63 61 74 65 20 69 73 20 64  certificate is d
5970: 65 65 6d 65 64 20 69 6e 76 61 6c 69 64 2e 0a 09  eemed invalid...
5980: 20 20 41 20 76 61 6c 75 65 20 6f 66 20 3c 63 6f    A value of <co
5990: 64 65 3e 31 3c 2f 63 6f 64 65 3e 20 6d 65 61 6e  de>1</code> mean
59a0: 73 20 74 68 65 20 63 65 72 74 69 66 69 63 61 74  s the certificat
59b0: 65 20 69 73 20 64 65 65 6d 65 64 20 76 61 6c 69  e is deemed vali
59c0: 64 2e 0a 09 20 20 3c 62 72 3e 0a 09 20 20 54 68  d...  <br>..  Th
59d0: 65 20 3c 65 6d 3e 65 72 72 6f 72 3c 2f 65 6d 3e  e <em>error</em>
59e0: 20 61 72 67 75 6d 65 6e 74 20 73 75 70 70 6c 69   argument suppli
59f0: 65 73 20 74 68 65 20 6d 65 73 73 61 67 65 2c 20  es the message, 
5a00: 69 66 20 61 6e 79 2c 20 67 65 6e 65 72 61 74 65  if any, generate
5a10: 64 0a 09 20 20 62 79 0a 09 20 20 3c 63 6f 64 65  d..  by..  <code
5a20: 3e 58 35 30 39 5f 53 54 4f 52 45 5f 43 54 58 5f  >X509_STORE_CTX_
5a30: 67 65 74 5f 65 72 72 6f 72 28 29 3c 2f 63 6f 64  get_error()</cod
5a40: 65 3e 2e 0a 09 20 20 3c 62 72 3e 0a 09 20 20 3c  e>...  <br>..  <
5a50: 62 72 3e 0a 09 20 20 54 68 65 20 63 61 6c 6c 62  br>..  The callb
5a60: 61 63 6b 20 6d 61 79 20 6f 76 65 72 72 69 64 65  ack may override
5a70: 20 6e 6f 72 6d 61 6c 20 76 61 6c 69 64 61 74 69   normal validati
5a80: 6f 6e 20 70 72 6f 63 65 73 73 69 6e 67 20 62 79  on processing by
5a90: 20 65 78 70 6c 69 63 69 74 6c 79 0a 09 20 20 72   explicitly..  r
5aa0: 65 74 75 72 6e 69 6e 67 20 6f 6e 65 20 6f 66 20  eturning one of 
5ab0: 74 68 65 20 61 62 6f 76 65 20 3c 65 6d 3e 73 74  the above <em>st
5ac0: 61 74 75 73 3c 2f 65 6d 3e 20 76 61 6c 75 65 73  atus</em> values
5ad0: 2e 0a 09 3c 2f 64 64 3e 0a 0a 09 3c 2f 64 6c 3e  ...</dd>...</dl>
5ae0: 0a 20 20 20 20 3c 2f 64 64 3e 0a 0a 20 20 20 20  .    </dd>..    
5af0: 3c 62 72 3e 0a 0a 20 20 20 20 3c 64 74 3e 3c 73  <br>..    <dt><s
5b00: 74 72 6f 6e 67 3e 2d 70 61 73 73 77 6f 72 64 3c  trong>-password<
5b10: 2f 73 74 72 6f 6e 67 3e 20 3c 65 6d 3e 63 61 6c  /strong> <em>cal
5b20: 6c 62 61 63 6b 3c 2f 65 6d 3e 3c 2f 64 74 3e 0a  lback</em></dt>.
5b30: 20 20 20 20 3c 64 64 3e 0a 09 49 6e 76 6f 6b 65      <dd>..Invoke
5b40: 73 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20  s the specified 
5b50: 3c 65 6d 3e 63 61 6c 6c 62 61 63 6b 3c 2f 65 6d  <em>callback</em
5b60: 3e 20 73 63 72 69 70 74 20 77 68 65 6e 20 4f 70  > script when Op
5b70: 65 6e 53 53 4c 20 6e 65 65 64 73 20 74 6f 0a 09  enSSL needs to..
5b80: 6f 62 74 61 69 6e 20 61 20 70 61 73 73 77 6f 72  obtain a passwor
5b90: 64 2e 20 20 54 68 65 20 63 61 6c 6c 62 61 63 6b  d.  The callback
5ba0: 20 73 68 6f 75 6c 64 20 72 65 74 75 72 6e 20 61   should return a
5bb0: 20 73 74 72 69 6e 67 20 77 68 69 63 68 0a 09 72   string which..r
5bc0: 65 70 72 65 73 65 6e 74 73 20 74 68 65 20 70 61  epresents the pa
5bd0: 73 73 77 6f 72 64 20 74 6f 20 62 65 20 75 73 65  ssword to be use
5be0: 64 2e 0a 09 4e 6f 20 61 72 67 75 6d 65 6e 74 73  d...No arguments
5bf0: 20 61 72 65 20 61 70 70 65 6e 64 65 64 20 74 6f   are appended to
5c00: 20 74 68 65 20 73 63 72 69 70 74 20 75 70 6f 6e   the script upon
5c10: 20 63 61 6c 6c 62 61 63 6b 2e 0a 20 20 20 20 3c   callback..    <
5c20: 2f 64 64 3e 0a 3c 2f 64 6c 3e 0a 3c 2f 62 6c 6f  /dd>.</dl>.</blo
5c30: 63 6b 71 75 6f 74 65 3e 0a 0a 3c 70 3e 0a 52 65  ckquote>..<p>.Re
5c40: 66 65 72 65 6e 63 65 20 69 6d 70 6c 65 6d 65 6e  ference implemen
5c50: 74 61 74 69 6f 6e 73 20 6f 66 20 74 68 65 73 65  tations of these
5c60: 20 63 61 6c 6c 62 61 63 6b 73 20 61 72 65 20 70   callbacks are p
5c70: 72 6f 76 69 64 65 64 20 69 6e 20 74 68 65 0a 64  rovided in the.d
5c80: 69 73 74 72 69 62 75 74 69 6f 6e 20 61 73 20 3c  istribution as <
5c90: 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 63 61 6c 6c  strong>tls::call
5ca0: 62 61 63 6b 3c 2f 73 74 72 6f 6e 67 3e 20 61 6e  back</strong> an
5cb0: 64 0a 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 70  d.<strong>tls::p
5cc0: 61 73 73 77 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e  assword</strong>
5cd0: 20 72 65 73 70 65 63 74 69 76 65 6c 79 2e 20 20   respectively.  
5ce0: 4e 6f 74 65 20 74 68 61 74 20 74 68 65 73 65 20  Note that these 
5cf0: 61 72 65 0a 3c 65 6d 3e 73 61 6d 70 6c 65 3c 2f  are.<em>sample</
5d00: 65 6d 3e 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69  em> implementati
5d10: 6f 6e 73 20 6f 6e 6c 79 2e 20 20 49 6e 20 61 20  ons only.  In a 
5d20: 6d 6f 72 65 20 72 65 61 6c 69 73 74 69 63 20 64  more realistic d
5d30: 65 70 6c 6f 79 6d 65 6e 74 0a 79 6f 75 20 77 6f  eployment.you wo
5d40: 75 6c 64 20 73 70 65 63 69 66 79 20 79 6f 75 72  uld specify your
5d50: 20 6f 77 6e 20 63 61 6c 6c 62 61 63 6b 20 73 63   own callback sc
5d60: 72 69 70 74 73 20 6f 6e 20 65 61 63 68 20 54 4c  ripts on each TL
5d70: 53 20 63 68 61 6e 6e 65 6c 0a 75 73 69 6e 67 20  S channel.using 
5d80: 74 68 65 20 3c 65 6d 3e 2d 63 6f 6d 6d 61 6e 64  the <em>-command
5d90: 3c 2f 65 6d 3e 20 61 6e 64 20 3c 65 6d 3e 2d 70  </em> and <em>-p
5da0: 61 73 73 77 6f 72 64 3c 2f 65 6d 3e 20 6f 70 74  assword</em> opt
5db0: 69 6f 6e 73 2e 0a 3c 2f 70 3e 0a 0a 3c 70 3e 0a  ions..</p>..<p>.
5dc0: 54 68 65 20 64 65 66 61 75 6c 74 20 62 65 68 61  The default beha
5dd0: 76 69 6f 72 20 77 68 65 6e 20 74 68 65 20 3c 65  vior when the <e
5de0: 6d 3e 2d 63 6f 6d 6d 61 6e 64 3c 2f 65 6d 3e 20  m>-command</em> 
5df0: 6f 70 74 69 6f 6e 20 69 73 20 6e 6f 74 20 73 70  option is not sp
5e00: 65 63 69 66 69 65 64 20 69 73 20 66 6f 72 0a 54  ecified is for.T
5e10: 4c 53 20 74 6f 20 70 72 6f 63 65 73 73 20 74 68  LS to process th
5e20: 65 20 61 73 73 6f 63 69 61 74 65 64 20 6c 69 62  e associated lib
5e30: 72 61 72 79 20 63 61 6c 6c 62 61 63 6b 73 20 69  rary callbacks i
5e40: 6e 74 65 72 6e 61 6c 6c 79 2e 0a 54 68 65 20 64  nternally..The d
5e50: 65 66 61 75 6c 74 20 62 65 68 61 76 69 6f 72 20  efault behavior 
5e60: 77 68 65 6e 20 74 68 65 20 3c 65 6d 3e 2d 70 61  when the <em>-pa
5e70: 73 73 77 6f 72 64 3c 2f 65 6d 3e 20 6f 70 74 69  ssword</em> opti
5e80: 6f 6e 20 69 73 20 6e 6f 74 20 73 70 65 63 69 66  on is not specif
5e90: 69 65 64 20 69 73 20 66 6f 72 0a 54 4c 53 20 74  ied is for.TLS t
5ea0: 6f 20 70 72 6f 63 65 73 73 20 74 68 65 20 61 73  o process the as
5eb0: 73 6f 63 69 61 74 65 64 20 6c 69 62 72 61 72 79  sociated library
5ec0: 20 63 61 6c 6c 62 61 63 6b 73 20 62 79 20 61 74   callbacks by at
5ed0: 74 65 6d 70 74 69 6e 67 20 74 6f 20 63 61 6c 6c  tempting to call
5ee0: 0a 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 70 61  .<strong>tls::pa
5ef0: 73 73 77 6f 72 64 3c 2f 73 74 72 6f 6e 67 3e 2e  ssword</strong>.
5f00: 0a 54 68 65 20 64 69 66 66 65 72 65 6e 63 65 20  .The difference 
5f10: 62 65 74 77 65 65 6e 20 74 68 65 73 65 20 74 77  between these tw
5f20: 6f 20 62 65 68 61 76 69 6f 72 73 20 69 73 20 61  o behaviors is a
5f30: 20 63 6f 6e 73 65 71 75 65 6e 63 65 20 6f 66 20   consequence of 
5f40: 6d 61 69 6e 74 61 69 6e 69 6e 67 0a 63 6f 6d 70  maintaining.comp
5f50: 61 74 69 62 69 6c 69 74 79 20 77 69 74 68 20 65  atibility with e
5f60: 61 72 6c 69 65 72 20 69 6d 70 6c 65 6d 65 6e 74  arlier implement
5f70: 61 74 69 6f 6e 73 2e 0a 3c 2f 70 3e 0a 0a 3c 70  ations..</p>..<p
5f80: 3e 0a 54 68 65 20 3c 73 74 72 6f 6e 67 3e 74 6c  >.The <strong>tl
5f90: 73 3a 3a 64 65 62 75 67 3c 2f 73 74 72 6f 6e 67  s::debug</strong
5fa0: 3e 20 76 61 72 69 61 62 6c 65 20 70 72 6f 76 69  > variable provi
5fb0: 64 65 73 20 73 6f 6d 65 20 61 64 64 69 74 69 6f  des some additio
5fc0: 6e 61 6c 0a 63 6f 6e 74 72 6f 6c 20 6f 76 65 72  nal.control over
5fd0: 20 74 68 65 73 65 20 72 65 66 65 72 65 6e 63 65   these reference
5fe0: 20 63 61 6c 6c 62 61 63 6b 73 2e 20 20 49 74 73   callbacks.  Its
5ff0: 20 76 61 6c 75 65 20 69 73 20 7a 65 72 6f 20 62   value is zero b
6000: 79 20 64 65 66 61 75 6c 74 2e 0a 48 69 67 68 65  y default..Highe
6010: 72 20 76 61 6c 75 65 73 20 70 72 6f 64 75 63 65  r values produce
6020: 20 6d 6f 72 65 20 64 69 61 67 6e 6f 73 74 69 63   more diagnostic
6030: 20 6f 75 74 70 75 74 2c 20 61 6e 64 20 77 69 6c   output, and wil
6040: 6c 20 61 6c 73 6f 20 66 6f 72 63 65 20 74 68 65  l also force the
6050: 0a 76 65 72 69 66 79 20 6d 65 74 68 6f 64 20 69  .verify method i
6060: 6e 20 3c 73 74 72 6f 6e 67 3e 74 6c 73 3a 3a 63  n <strong>tls::c
6070: 61 6c 6c 62 61 63 6b 3c 2f 73 74 72 6f 6e 67 3e  allback</strong>
6080: 20 74 6f 20 61 63 63 65 70 74 20 74 68 65 0a 63   to accept the.c
6090: 65 72 74 69 66 69 63 61 74 65 2c 20 65 76 65 6e  ertificate, even
60a0: 20 77 68 65 6e 20 69 74 20 69 73 20 69 6e 76 61   when it is inva
60b0: 6c 69 64 2e 0a 3c 2f 70 3e 0a 0a 3c 70 3e 0a 3c  lid..</p>..<p>.<
60c0: 65 6d 3e 0a 54 68 65 20 75 73 65 20 6f 66 20 74  em>.The use of t
60d0: 68 65 20 72 65 66 65 72 65 6e 63 65 20 63 61 6c  he reference cal
60e0: 6c 62 61 63 6b 73 20 3c 73 74 72 6f 6e 67 3e 74  lbacks <strong>t
60f0: 6c 73 3a 3a 63 61 6c 6c 62 61 63 6b 3c 2f 73 74  ls::callback</st
6100: 72 6f 6e 67 3e 20 61 6e 64 0a 3c 73 74 72 6f 6e  rong> and.<stron
6110: 67 3e 74 6c 73 3a 3a 70 61 73 73 77 6f 72 64 3c  g>tls::password<
6120: 2f 73 74 72 6f 6e 67 3e 20 69 73 20 6e 6f 74 20  /strong> is not 
6130: 72 65 63 6f 6d 6d 65 6e 64 65 64 2e 20 20 54 68  recommended.  Th
6140: 65 79 20 6d 61 79 20 62 65 20 72 65 6d 6f 76 65  ey may be remove
6150: 64 0a 66 72 6f 6d 20 66 75 74 75 72 65 20 72 65  d.from future re
6160: 6c 65 61 73 65 73 2e 0a 3c 2f 65 6d 3e 0a 3c 2f  leases..</em>.</
6170: 70 3e 0a 0a 3c 70 3e 0a 3c 65 6d 3e 0a 54 68 65  p>..<p>.<em>.The
6180: 20 75 73 65 20 6f 66 20 74 68 65 20 76 61 72 69   use of the vari
6190: 61 62 6c 65 20 3c 73 74 72 6f 6e 67 3e 74 6c 73  able <strong>tls
61a0: 3a 3a 64 65 62 75 67 3c 2f 73 74 72 6f 6e 67 3e  ::debug</strong>
61b0: 20 69 73 20 6e 6f 74 20 72 65 63 6f 6d 6d 65 6e   is not recommen
61c0: 64 65 64 2e 0a 49 74 20 6d 61 79 20 62 65 20 72  ded..It may be r
61d0: 65 6d 6f 76 65 64 20 66 72 6f 6d 20 66 75 74 75  emoved from futu
61e0: 72 65 20 72 65 6c 65 61 73 65 73 2e 0a 3c 2f 65  re releases..</e
61f0: 6d 3e 0a 3c 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 20  m>.</p>..<h3><a 
6200: 6e 61 6d 65 3d 22 44 45 42 55 47 22 3e 44 45 42  name="DEBUG">DEB
6210: 55 47 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a 54 4c 53  UG</a></h3>..TLS
6220: 20 6b 65 79 20 6c 6f 67 67 69 6e 67 20 63 61 6e   key logging can
6230: 20 62 65 20 65 6e 61 62 6c 65 64 20 62 79 20 73   be enabled by s
6240: 65 74 74 69 6e 67 20 74 68 65 20 65 6e 76 69 72  etting the envir
6250: 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 0a  onment variable.
6260: 3c 62 3e 53 53 4c 4b 45 59 4c 4f 47 46 49 4c 45  <b>SSLKEYLOGFILE
6270: 3c 2f 62 3e 20 74 6f 20 74 68 65 20 6e 61 6d 65  </b> to the name
6280: 20 6f 66 20 74 68 65 20 66 69 6c 65 20 74 6f 20   of the file to 
6290: 6c 6f 67 20 74 6f 2e 20 54 68 65 6e 20 77 68 65  log to. Then whe
62a0: 6e 65 76 65 72 20 54 4c 53 0a 6b 65 79 20 6d 61  never TLS.key ma
62b0: 74 65 72 69 61 6c 20 69 73 20 67 65 6e 65 72 61  terial is genera
62c0: 74 65 64 20 6f 72 20 72 65 63 65 69 76 65 64 20  ted or received 
62d0: 69 74 20 77 69 6c 6c 20 62 65 20 6c 6f 67 67 65  it will be logge
62e0: 64 20 74 6f 20 74 68 65 20 66 69 6c 65 2e 0a 0a  d to the file...
62f0: 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 48 54 54  <h3><a name="HTT
6300: 50 53 20 45 58 41 4d 50 4c 45 22 3e 48 54 54 50  PS EXAMPLE">HTTP
6310: 53 20 45 58 41 4d 50 4c 45 3c 2f 61 3e 3c 2f 68  S EXAMPLE</a></h
6320: 33 3e 0a 0a 3c 70 3e 54 68 69 73 20 65 78 61 6d  3>..<p>This exam
6330: 70 6c 65 20 75 73 65 73 20 61 20 73 61 6d 70 6c  ple uses a sampl
6340: 65 20 73 65 72 76 65 72 2e 70 65 6d 20 70 72 6f  e server.pem pro
6350: 76 69 64 65 64 20 77 69 74 68 20 74 68 65 20 54  vided with the T
6360: 4c 53 20 72 65 6c 65 61 73 65 2c 0a 63 6f 75 72  LS release,.cour
6370: 74 65 73 79 20 6f 66 20 74 68 65 20 3c 73 74 72  tesy of the <str
6380: 6f 6e 67 3e 4f 70 65 6e 53 53 4c 3c 2f 73 74 72  ong>OpenSSL</str
6390: 6f 6e 67 3e 20 70 72 6f 6a 65 63 74 2e 3c 2f 70  ong> project.</p
63a0: 3e 0a 0a 3c 70 72 65 3e 3c 63 6f 64 65 3e 0a 70  >..<pre><code>.p
63b0: 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 68  ackage require h
63c0: 74 74 70 0a 70 61 63 6b 61 67 65 20 72 65 71 75  ttp.package requ
63d0: 69 72 65 20 74 6c 73 0a 0a 68 74 74 70 3a 3a 72  ire tls..http::r
63e0: 65 67 69 73 74 65 72 20 68 74 74 70 73 20 34 34  egister https 44
63f0: 33 20 5b 6c 69 73 74 20 3a 3a 74 6c 73 3a 3a 73  3 [list ::tls::s
6400: 6f 63 6b 65 74 20 2d 61 75 74 6f 73 65 72 76 65  ocket -autoserve
6410: 72 6e 61 6d 65 20 74 72 75 65 20 2d 72 65 71 75  rname true -requ
6420: 69 72 65 20 74 72 75 65 20 2d 63 61 64 69 72 20  ire true -cadir 
6430: 2f 65 74 63 2f 73 73 6c 2f 63 65 72 74 73 5d 0a  /etc/ssl/certs].
6440: 0a 73 65 74 20 74 6f 6b 20 5b 68 74 74 70 3a 3a  .set tok [http::
6450: 67 65 74 75 72 6c 20 68 74 74 70 73 3a 2f 2f 77  geturl https://w
6460: 77 77 2e 74 63 6c 2e 74 6b 2f 5d 0a 3c 2f 63 6f  ww.tcl.tk/].</co
6470: 64 65 3e 3c 2f 70 72 65 3e 0a 0a 3c 68 33 3e 3c  de></pre>..<h3><
6480: 61 20 6e 61 6d 65 3d 22 53 50 45 43 49 41 4c 20  a name="SPECIAL 
6490: 43 4f 4e 53 49 44 45 52 41 54 49 4f 4e 53 22 3e  CONSIDERATIONS">
64a0: 53 50 45 43 49 41 4c 20 43 4f 4e 53 49 44 45 52  SPECIAL CONSIDER
64b0: 41 54 49 4f 4e 53 3c 2f 61 3e 3c 2f 68 33 3e 0a  ATIONS</a></h3>.
64c0: 0a 3c 70 3e 54 68 65 20 63 61 70 61 62 69 6c 69  .<p>The capabili
64d0: 74 69 65 73 20 6f 66 20 74 68 69 73 20 70 61 63  ties of this pac
64e0: 6b 61 67 65 20 63 61 6e 20 76 61 72 79 20 65 6e  kage can vary en
64f0: 6f 72 6d 6f 75 73 6c 79 20 62 61 73 65 64 0a 75  ormously based.u
6500: 70 6f 6e 20 68 6f 77 20 79 6f 75 72 20 4f 70 65  pon how your Ope
6510: 6e 53 53 4c 20 6c 69 62 72 61 72 79 20 77 61 73  nSSL library was
6520: 20 63 6f 6e 66 69 67 75 72 65 64 20 61 6e 64 20   configured and 
6530: 62 75 69 6c 74 2e 20 41 74 20 74 68 65 0a 6d 6f  built. At the.mo
6540: 73 74 20 6d 61 63 72 6f 2d 6c 65 76 65 6c 20 4f  st macro-level O
6550: 70 65 6e 53 53 4c 20 73 75 70 70 6f 72 74 73 20  penSSL supports 
6560: 61 20 26 71 75 6f 74 3b 6e 6f 20 70 61 74 65 6e  a &quot;no paten
6570: 74 73 26 71 75 6f 74 3b 20 62 75 69 6c 64 2c 0a  ts&quot; build,.
6580: 77 68 69 63 68 20 64 69 73 61 62 6c 65 73 20 52  which disables R
6590: 53 41 2c 20 49 44 45 41 2c 20 52 43 28 32 2c 34  SA, IDEA, RC(2,4
65a0: 2c 35 29 20 61 6e 64 20 53 53 4c 32 20 2d 20 69  ,5) and SSL2 - i
65b0: 66 20 79 6f 75 72 20 4f 70 65 6e 53 53 4c 20 69  f your OpenSSL i
65c0: 73 0a 63 6f 6e 66 69 67 75 72 65 64 20 74 68 69  s.configured thi
65d0: 73 20 77 61 79 20 74 68 65 6e 20 79 6f 75 20 77  s way then you w
65e0: 69 6c 6c 20 6e 65 65 64 20 74 6f 20 62 75 69 6c  ill need to buil
65f0: 64 20 54 4c 53 20 77 69 74 68 20 74 68 65 0a 2d  d TLS with the.-
6600: 44 4e 4f 5f 50 41 54 45 4e 54 53 20 6f 70 74 69  DNO_PATENTS opti
6610: 6f 6e 20 2d 20 61 6e 64 20 74 68 65 20 72 65 73  on - and the res
6620: 75 6c 74 61 6e 74 20 6d 6f 64 75 6c 65 20 77 69  ultant module wi
6630: 6c 6c 20 66 75 6e 63 74 69 6f 6e 0a 63 6f 72 72  ll function.corr
6640: 65 63 74 6c 79 20 61 6e 64 20 61 6c 73 6f 20 73  ectly and also s
6650: 75 70 70 6f 72 74 20 41 44 48 20 63 65 72 74 69  upport ADH certi
6660: 66 69 63 61 74 65 2d 6c 65 73 73 20 65 6e 63 72  ficate-less encr
6670: 79 70 74 69 6f 6e 2c 0a 68 6f 77 65 76 65 72 20  yption,.however 
6680: 79 6f 75 20 77 69 6c 6c 20 62 65 20 75 6e 61 62  you will be unab
6690: 6c 65 20 74 6f 20 75 74 69 6c 69 7a 65 20 74 68  le to utilize th
66a0: 69 73 20 74 6f 20 73 70 65 61 6b 20 74 6f 20 6e  is to speak to n
66b0: 6f 72 6d 61 6c 20 57 65 62 0a 53 65 72 76 65 72  ormal Web.Server
66c0: 73 2c 20 77 68 69 63 68 20 74 79 70 69 63 61 6c  s, which typical
66d0: 6c 79 20 72 65 71 75 69 72 65 20 52 53 41 20 73  ly require RSA s
66e0: 75 70 70 6f 72 74 2e 20 50 6c 65 61 73 65 20 73  upport. Please s
66f0: 65 65 20 3c 61 0a 68 72 65 66 3d 22 68 74 74 70  ee <a.href="http
6700: 3a 2f 2f 77 77 77 2e 6f 70 65 6e 73 73 6c 2e 6f  ://www.openssl.o
6710: 72 67 2f 22 3e 68 74 74 70 3a 2f 2f 77 77 77 2e  rg/">http://www.
6720: 6f 70 65 6e 73 73 6c 2e 6f 72 67 2f 3c 2f 61 3e  openssl.org/</a>
6730: 20 66 6f 72 0a 6d 6f 72 65 20 69 6e 66 6f 72 6d   for.more inform
6740: 61 74 69 6f 6e 20 6f 6e 20 74 68 65 20 77 68 6f  ation on the who
6750: 6c 65 20 69 73 73 75 65 20 6f 66 20 70 61 74 65  le issue of pate
6760: 6e 74 73 20 61 6e 64 20 55 53 20 65 78 70 6f 72  nts and US expor
6770: 74 0a 72 65 73 74 72 69 63 74 69 6f 6e 73 2e 20  t.restrictions. 
6780: 3c 2f 70 3e 0a 0a 3c 68 33 3e 3c 61 20 6e 61 6d  </p>..<h3><a nam
6790: 65 3d 22 53 45 45 20 41 4c 53 4f 22 3e 53 45 45  e="SEE ALSO">SEE
67a0: 20 41 4c 53 4f 3c 2f 61 3e 3c 2f 68 33 3e 0a 0a   ALSO</a></h3>..
67b0: 3c 70 3e 3c 73 74 72 6f 6e 67 3e 73 6f 63 6b 65  <p><strong>socke
67c0: 74 3c 2f 73 74 72 6f 6e 67 3e 2c 20 3c 73 74 72  t</strong>, <str
67d0: 6f 6e 67 3e 66 69 6c 65 65 76 65 6e 74 2c 20 3c  ong>fileevent, <
67e0: 2f 73 74 72 6f 6e 67 3e 3c 61 0a 68 72 65 66 3d  /strong><a.href=
67f0: 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f 70 65 6e  "http://www.open
6800: 73 73 6c 2e 6f 72 67 2f 22 3e 3c 73 74 72 6f 6e  ssl.org/"><stron
6810: 67 3e 4f 70 65 6e 53 53 4c 3c 2f 73 74 72 6f 6e  g>OpenSSL</stron
6820: 67 3e 3c 2f 61 3e 3c 2f 70 3e 0a 0a 3c 68 72 3e  g></a></p>..<hr>
6830: 0a 0a 3c 70 72 65 3e 0a 43 6f 70 79 72 69 67 68  ..<pre>.Copyrigh
6840: 74 20 26 63 6f 70 79 3b 20 31 39 39 39 20 4d 61  t &copy; 1999 Ma
6850: 74 74 20 4e 65 77 6d 61 6e 2e 0a 43 6f 70 79 72  tt Newman..Copyr
6860: 69 67 68 74 20 26 63 6f 70 79 3b 20 32 30 30 34  ight &copy; 2004
6870: 20 53 74 61 72 66 69 73 68 20 53 79 73 74 65 6d   Starfish System
6880: 73 2e 0a 3c 2f 70 72 65 3e 0a 3c 2f 62 6f 64 79  s..</pre>.</body
6890: 3e 0a 3c 2f 68 74 6d 6c 3e 0a                    >.</html>.