Artifact
fb324cb603e99e83110d0b6fe9d62b3ebcc6a56bd88215d05a28471c1ab4eae0:
0000: 09 57 69 6e 64 6f 77 73 20 44 4c 4c 20 42 75 69 .Windows DLL Bui
0010: 6c 64 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 20 ld instructions
0020: 75 73 69 6e 67 20 6e 6d 61 6b 65 20 62 75 69 6c using nmake buil
0030: 64 20 73 79 73 74 65 6d 0d 0a 09 32 30 32 30 2d d system...2020-
0040: 31 30 2d 31 35 20 48 61 72 61 6c 64 2e 4f 65 68 10-15 Harald.Oeh
0050: 6c 6d 61 6e 6e 40 65 6c 6d 69 63 72 6f 6e 2e 64 lmann@elmicron.d
0060: 65 0d 0a 09 32 30 32 33 2d 30 38 2d 32 32 20 4b e...2023-08-22 K
0070: 65 76 69 6e 20 57 61 6c 7a 65 72 20 28 6b 77 40 evin Walzer (kw@
0080: 63 6f 64 65 62 79 6b 65 76 69 6e 2e 63 6f 6d 29 codebykevin.com)
0090: 0d 0a 0d 0a 50 72 6f 70 65 72 74 69 65 73 3a 0d ....Properties:.
00a0: 0a 2d 20 36 34 20 62 69 74 20 44 4c 4c 0d 0a 2d .- 64 bit DLL..-
00b0: 20 56 69 73 75 61 6c 53 74 75 64 69 6f 20 32 30 VisualStudio 20
00c0: 31 39 0d 0a 2d 20 57 53 4c 20 0d 0a 2d 20 4f 70 19..- WSL ..- Op
00d0: 65 6e 53 53 4c 20 64 79 6e 61 6d 69 63 61 6c 6c enSSL dynamicall
00e0: 79 20 6c 69 6e 6b 65 64 20 74 6f 20 54 43 4c 54 y linked to TCLT
00f0: 4c 53 20 44 4c 4c 2e 20 57 65 20 75 73 65 64 20 LS DLL. We used
0100: 61 20 66 72 65 65 6c 79 20 72 65 64 69 73 74 72 a freely redistr
0110: 69 62 75 74 61 62 6c 65 20 62 75 69 6c 64 20 6f ibutable build o
0120: 66 20 4f 70 65 6e 53 53 4c 20 66 72 6f 6d 20 68 f OpenSSL from h
0130: 74 74 70 73 3a 2f 2f 77 77 77 2e 66 69 72 65 64 ttps://www.fired
0140: 61 65 6d 6f 6e 2e 63 6f 6d 2f 66 69 72 65 64 61 aemon.com/fireda
0150: 65 6d 6f 6e 2d 6f 70 65 6e 73 73 6c 2e 20 55 6e emon-openssl. Un
0160: 7a 69 70 20 61 6e 64 20 69 6e 73 74 61 6c 6c 20 zip and install
0170: 4f 70 65 6e 53 53 4c 20 69 6e 20 61 6e 20 61 63 OpenSSL in an ac
0180: 63 65 73 73 69 62 6c 65 20 70 6c 61 63 65 20 28 cessible place (
0190: 77 65 20 75 73 65 64 20 74 68 65 20 6c 69 62 20 we used the lib
01a0: 73 75 62 64 69 72 65 63 74 6f 72 79 20 6f 66 20 subdirectory of
01b0: 6f 75 72 20 54 63 6c 20 69 6e 73 74 61 6c 6c 61 our Tcl installa
01c0: 74 69 6f 6e 29 2e 0d 0a 0d 0a 31 2e 20 56 69 73 tion).....1. Vis
01d0: 75 61 6c 20 53 74 75 64 69 6f 20 78 38 36 20 6e ual Studio x86 n
01e0: 61 74 69 76 65 20 70 72 6f 6d 70 74 2e 20 55 70 ative prompt. Up
01f0: 64 61 74 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 date environment
0200: 61 6c 20 76 61 72 69 61 62 6c 65 73 20 66 6f 72 al variables for
0210: 20 62 75 69 6c 64 69 6e 67 20 54 63 6c 74 6c 73 building Tcltls
0220: 2e 20 43 75 73 74 6f 6d 69 7a 65 20 74 68 65 20 . Customize the
0230: 62 65 6c 6f 77 20 65 6e 74 72 69 65 73 20 66 6f below entries fo
0240: 72 20 79 6f 75 72 20 73 65 74 75 70 2e 20 0d 0a r your setup. ..
0250: 0d 0a 73 65 74 20 50 41 54 48 3d 25 50 41 54 48 ..set PATH=%PATH
0260: 25 3b 43 3a 5c 74 63 6c 2d 74 72 75 6e 6b 5c 6c %;C:\tcl-trunk\l
0270: 69 62 5c 6f 70 65 6e 73 73 6c 2d 33 5c 78 36 34 ib\openssl-3\x64
0280: 5c 62 69 6e 0d 0a 73 65 74 20 49 4e 43 4c 55 44 \bin..set INCLUD
0290: 45 3d 25 49 4e 43 4c 55 44 45 25 3b 43 3a 5c 74 E=%INCLUDE%;C:\t
02a0: 63 6c 2d 74 72 75 6e 6b 5c 74 63 6c 5c 6c 69 62 cl-trunk\tcl\lib
02b0: 5c 6f 70 65 6e 73 73 6c 2d 33 5c 78 36 34 5c 69 \openssl-3\x64\i
02c0: 6e 63 6c 75 64 65 5c 6f 70 65 6e 73 73 6c 0d 0a nclude\openssl..
02d0: 73 65 74 20 4c 49 42 3d 25 4c 49 42 25 3b 43 3a set LIB=%LIB%;C:
02e0: 5c 74 63 6c 2d 74 72 75 6e 6b 5c 74 63 6c 5c 6c \tcl-trunk\tcl\l
02f0: 69 62 5c 6f 70 65 6e 73 73 6c 2d 33 5c 78 36 34 ib\openssl-3\x64
0300: 5c 62 69 6e 0d 0a 0d 0a 0d 0a 32 29 20 42 75 69 \bin......2) Bui
0310: 6c 64 20 54 43 4c 54 4c 53 0d 0a 0d 0a 2d 3e 20 ld TCLTLS....->
0320: 55 6e 7a 69 70 20 64 69 73 74 72 69 62 75 74 69 Unzip distributi
0330: 6f 6e 20 6f 6e 20 79 6f 75 72 20 73 79 73 74 65 on on your syste
0340: 6d 2e 20 0d 0a 2d 3e 20 53 74 61 72 74 20 57 53 m. ..-> Start WS
0350: 4c 2e 0d 0a 2d 3e 20 63 64 20 2f 6d 6e 74 2f 63 L...-> cd /mnt/c
0360: 2f 70 61 74 68 2f 74 6f 2f 74 63 6c 74 6c 73 0d /path/to/tcltls.
0370: 0a 0d 0a 2e 2f 67 65 6e 5f 64 68 5f 70 61 72 61 ..../gen_dh_para
0380: 6d 73 20 3e 20 64 68 5f 70 61 72 61 6d 73 2e 68 ms > dh_params.h
0390: 0d 0a 0d 0a 6f 64 20 2d 41 20 6e 20 2d 76 20 2d ....od -A n -v -
03a0: 74 20 78 43 20 3c 20 27 74 6c 73 2e 74 63 6c 27 t xC < 'tls.tcl'
03b0: 20 3e 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 > tls.tcl.h.new
03c0: 2e 31 0d 0a 73 65 64 20 27 73 40 5b 5e 30 2d 39 .1..sed 's@[^0-9
03d0: 41 2d 46 61 2d 66 5d 40 40 67 3b 73 40 2e 2e 40 A-Fa-f]@@g;s@..@
03e0: 30 78 26 2c 20 40 67 27 20 3c 20 74 6c 73 2e 74 0x&, @g' < tls.t
03f0: 63 6c 2e 68 2e 6e 65 77 2e 31 20 3e 20 74 6c 73 cl.h.new.1 > tls
0400: 2e 74 63 6c 2e 68 0d 0a 72 6d 20 2d 66 20 74 6c .tcl.h..rm -f tl
0410: 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 0d 0a 0d s.tcl.h.new.1...
0420: 0a 2d 3e 20 56 69 73 75 61 6c 20 53 74 75 64 69 .-> Visual Studi
0430: 6f 20 78 38 36 20 6e 61 74 69 76 65 20 70 72 6f o x86 native pro
0440: 6d 70 74 2e 0d 0a 0d 0a 63 64 20 43 3a 70 61 74 mpt.....cd C:pat
0450: 68 5c 74 6f 5c 74 63 6c 74 6c 73 5c 77 69 6e 0d h\to\tcltls\win.
0460: 0a 0d 0a 52 75 6e 20 74 68 65 20 66 6f 6c 6c 6f ...Run the follo
0470: 77 69 6e 67 20 63 6f 6d 6d 61 6e 64 73 20 28 6d wing commands (m
0480: 6f 64 69 66 79 20 74 68 65 20 66 6c 61 67 73 20 odify the flags
0490: 74 6f 20 79 6f 75 72 20 73 70 65 63 69 66 69 63 to your specific
04a0: 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 73 29 2e installations).
04b0: 0d 0a 0d 0a 6e 6d 61 6b 65 20 2d 66 20 6d 61 6b ....nmake -f mak
04c0: 65 66 69 6c 65 2e 76 63 20 54 43 4c 44 49 52 3d efile.vc TCLDIR=
04d0: 63 3a 5c 75 73 65 72 73 5c 77 6f 72 64 74 5c 74 c:\users\wordt\t
04e0: 63 6c 20 49 4e 53 54 41 4c 4c 44 49 52 3d 63 3a cl INSTALLDIR=c:
04f0: 5c 74 63 6c 2d 74 72 75 6e 6b 5c 74 63 6c 5c 6c \tcl-trunk\tcl\l
0500: 69 62 20 53 53 4c 5f 49 4e 53 54 41 4c 4c 5f 46 ib SSL_INSTALL_F
0510: 4f 4c 44 45 52 3d 43 3a 5c 74 63 6c 2d 74 72 75 OLDER=C:\tcl-tru
0520: 6e 6b 5c 74 63 6c 5c 6c 69 62 5c 6f 70 65 6e 73 nk\tcl\lib\opens
0530: 73 6c 2d 33 5c 78 36 34 0d 0a 0d 0a 6e 6d 61 6b sl-3\x64....nmak
0540: 65 20 2d 66 20 6d 61 6b 65 66 69 6c 65 2e 76 63 e -f makefile.vc
0550: 20 54 43 4c 44 49 52 3d 63 3a 5c 75 73 65 72 73 TCLDIR=c:\users
0560: 5c 77 6f 72 64 74 5c 74 63 6c 20 49 4e 53 54 41 \wordt\tcl INSTA
0570: 4c 4c 44 49 52 3d 63 3a 5c 74 63 6c 2d 74 72 75 LLDIR=c:\tcl-tru
0580: 6e 6b 5c 74 63 6c 5c 6c 69 62 20 53 53 4c 5f 49 nk\tcl\lib SSL_I
0590: 4e 53 54 41 4c 4c 5f 46 4f 4c 44 45 52 3d 43 3a NSTALL_FOLDER=C:
05a0: 5c 74 63 6c 2d 74 72 75 6e 6b 5c 74 63 6c 5c 6c \tcl-trunk\tcl\l
05b0: 69 62 5c 6f 70 65 6e 73 73 6c 2d 33 5c 78 36 34 ib\openssl-3\x64
05c0: 20 69 6e 73 74 61 6c 6c 0d 0a 0d 0a 54 68 65 20 install....The
05d0: 72 65 73 75 6c 74 69 6e 67 20 69 6e 73 74 61 6c resulting instal
05e0: 6c 61 74 69 6f 6e 20 77 69 6c 6c 20 69 6e 63 6c lation will incl
05f0: 75 64 65 20 62 6f 74 68 20 74 68 65 20 74 63 6c ude both the tcl
0600: 74 6c 73 20 70 61 63 6b 61 67 65 20 61 6e 64 20 tls package and
0610: 61 6c 73 6f 20 68 61 76 65 20 6c 69 62 63 72 79 also have libcry
0620: 70 74 6f 2e 64 6c 6c 20 61 6e 64 20 6c 69 62 73 pto.dll and libs
0630: 73 6c 2e 64 6c 6c 20 63 6f 70 69 65 64 20 69 6e sl.dll copied in
0640: 74 6f 20 74 68 65 20 73 61 6d 65 20 64 69 72 65 to the same dire
0650: 63 74 6f 72 79 2e 20 0d 0a 0d 0a 33 29 20 54 65 ctory. ....3) Te
0660: 73 74 0d 0a 0d 0a 53 74 61 72 74 20 74 63 6c 73 st....Start tcls
0670: 68 0d 0a 0d 0a 70 61 63 6b 61 67 65 20 72 65 71 h....package req
0680: 75 69 72 65 20 74 6c 73 0d 0a 70 61 63 6b 61 67 uire tls..packag
0690: 65 20 72 65 71 75 69 72 65 20 68 74 74 70 0d 0a e require http..
06a0: 68 74 74 70 3a 3a 72 65 67 69 73 74 65 72 20 68 http::register h
06b0: 74 74 70 73 20 34 34 33 20 5b 6c 69 73 74 20 3a ttps 443 [list :
06c0: 3a 74 6c 73 3a 3a 73 6f 63 6b 65 74 20 2d 61 75 :tls::socket -au
06d0: 74 6f 73 65 72 76 65 72 6e 61 6d 65 20 74 72 75 toservername tru
06e0: 65 5d 0d 0a 73 65 74 20 74 6f 6b 20 5b 68 74 74 e]..set tok [htt
06f0: 70 3a 3a 64 61 74 61 20 5b 68 74 74 70 3a 3a 67 p::data [http::g
0700: 65 74 75 72 6c 20 68 74 74 70 73 3a 2f 2f 77 77 eturl https://ww
0710: 77 2e 74 63 6c 2d 6c 61 6e 67 2e 6f 72 67 5d 5d w.tcl-lang.org]]