Overview
Comment: | added Matt's patches for the tclhttpd server |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
efd347fa7e35cdfd5b63c99fb3170809 |
User & Date: | aborr on 2000-01-20 01:50:55 |
Other Links: | manifest | tags |
Context
2000-01-20
| ||
01:51 | updated copyright notice check-in: 4afdc17574 user: aborr tags: trunk | |
01:50 | added Matt's patches for the tclhttpd server check-in: efd347fa7e user: aborr tags: trunk | |
01:49 | updated copyright notice check-in: 733bc1fa8f user: aborr tags: trunk | |
Changes
Modified tls.c from [65b25f6ccd] to [230e3f6e31].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 | - + | /* * Copyright (C) 1997-1999 Matt Newman <[email protected]> * |
︙ | |||
649 650 651 652 653 654 655 656 657 658 659 660 661 662 | 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | + + + + + + + | if (request) verify |= SSL_VERIFY_CLIENT_ONCE | SSL_VERIFY_PEER; if (request && require) verify |= SSL_VERIFY_FAIL_IF_NO_PEER_CERT; if (verify == 0) verify = SSL_VERIFY_NONE; proto |= (ssl2 ? TLS_PROTO_SSL2 : 0); proto |= (ssl3 ? TLS_PROTO_SSL3 : 0); proto |= (tls1 ? TLS_PROTO_TLS1 : 0); /* reset to NULL if blank string provided */ if (cert && !*cert) cert = NULL; if (key && !*key) key = NULL; if (ciphers && !*ciphers) ciphers = NULL; if (CAfile && !*CAfile) CAfile = NULL; if (CAdir && !*CAdir) CAdir = NULL; if (model != NULL) { int mode; /* Get the "model" context */ chan = Tcl_GetChannel( interp, model, &mode); if (chan == (Tcl_Channel)0) { return TCL_ERROR; |
︙ |
Modified tls.tcl from [195c4c676f] to [0307107ef1].
1 | 1 2 3 4 5 6 7 8 9 10 11 | - + - + | # |
︙ | |||
47 48 49 50 51 52 53 54 55 56 57 58 59 60 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | + | for {set idx 0} {$idx < $argc} {incr idx} { set arg [lindex $args $idx] switch -glob -- $server,$arg { 0,-myport - *,-myaddr {lappend sopts $arg [lindex $args [incr idx]]} 0,-async {lappend sopts $arg} *,-cipher - *,-cadir - *,-cafile - *,-certfile - *,-keyfile - *,-command - *,-request - *,-require - |
︙ | |||
101 102 103 104 105 106 107 | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | + - + + + + + + + | } proc tls::_accept { iopts callback chan ipaddr port } { log 2 [list tls::_accept $iopts $callback $chan $ipaddr $port] set chan [eval [list tls::import $chan] $iopts] lappend callback $chan $ipaddr $port if {[catch { |
︙ |