File: ssl.client

package info (click to toggle)
jimtcl 0.83-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,432 kB
  • sloc: ansic: 207,301; tcl: 5,862; sh: 4,834; cpp: 1,671; makefile: 288
file content (15 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Example of sending via a ssl encrypted, connected tcp socket

load_ssl_certs /etc/ssl/certs
set s [[socket stream 127.0.0.1:20000] ssl]
try {
	$s verify
} on error msg {
	stderr puts $msg
}

foreach i [range 1 20] {
	$s puts "1 << $i"

	puts [$s gets]
}