Hex Artifact Content

Artifact 3b89a850d23a2cc193097130cd8bc56a598458f7ee9dc3dcabc88406343f938a:


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 0d 0a 50 72 6f 70 65 72 74 69 65 73 3a  e....Properties:
0070: 0d 0a 2d 20 33 32 20 62 69 74 20 44 4c 4c 0d 0a  ..- 32 bit DLL..
0080: 2d 20 56 69 73 75 61 6c 53 74 75 64 69 6f 20 32  - VisualStudio 2
0090: 30 31 35 0d 0a 4e 6f 74 65 3a 20 56 75 69 73 75  015..Note: Vuisu
00a0: 61 6c 20 43 2b 2b 20 36 20 64 6f 65 73 20 6e 6f  al C++ 6 does no
00b0: 74 20 62 75 69 6c 64 20 4f 70 65 6e 53 53 4c 20  t build OpenSSL 
00c0: 28 6c 6f 6e 67 20 6c 6f 6e 67 20 73 79 6e 74 61  (long long synta
00d0: 78 20 65 72 72 6f 72 29 0d 0a 2d 20 43 79 67 77  x error)..- Cygw
00e0: 69 6e 33 32 20 28 74 65 6d 70 6f 72 61 72 79 20  in32 (temporary 
00f0: 68 65 6c 70 65 72 2c 20 70 6c 65 61 73 65 20 68  helper, please h
0100: 65 6c 70 20 74 6f 20 72 65 70 6c 61 63 65 20 62  elp to replace b
0110: 79 20 74 63 6c 73 68 29 0d 0a 2d 20 4f 70 65 6e  y tclsh)..- Open
0120: 53 53 4c 20 73 74 61 74 69 63 61 6c 6c 79 20 6c  SSL statically l
0130: 69 6e 6b 65 64 20 74 6f 20 54 43 4c 54 4c 53 20  inked to TCLTLS 
0140: 44 4c 4c 2e 0d 0a 4e 6f 74 65 3a 20 44 79 6e 61  DLL...Note: Dyna
0150: 6d 69 63 20 6c 69 6e 6b 69 6e 67 20 61 6c 73 6f  mic linking also
0160: 20 77 6f 72 6b 73 20 62 75 74 20 72 65 73 75 6c   works but resul
0170: 74 73 20 69 6e 20 61 20 44 4c 4c 20 64 65 70 65  ts in a DLL depe
0180: 6e 64 65 6e 79 20 6f 6e 20 4f 50 45 4e 53 53 4c  ndeny on OPENSSL
0190: 20 44 4c 4c 27 73 0d 0a 0d 0a 31 29 20 42 75 69   DLL's....1) Bui
01a0: 6c 64 20 4f 70 65 6e 53 53 4c 20 73 74 61 74 69  ld OpenSSL stati
01b0: 63 20 6c 69 62 72 61 72 69 65 73 3a 0d 0a 0d 0a  c libraries:....
01c0: 4f 70 65 6e 53 53 4c 20 73 6f 75 72 63 65 20 64  OpenSSL source d
01d0: 69 73 74 72 69 62 74 75 74 69 6f 6e 20 75 6e 70  istribtution unp
01e0: 61 63 6b 65 64 20 69 6e 3a 0d 0a 63 3a 5c 74 65  acked in:..c:\te
01f0: 73 74 5c 74 63 6c 74 6c 73 5c 4f 70 65 6e 73 73  st\tcltls\Openss
0200: 6c 5f 31 5f 31 5f 31 68 0d 0a 0d 0a 2d 20 49 6e  l_1_1_1h....- In
0210: 73 74 61 6c 6c 20 50 65 72 6c 20 66 72 6f 6d 20  stall Perl from 
0220: 68 74 74 70 3a 2f 2f 73 74 72 61 77 62 65 72 72  http://strawberr
0230: 79 70 65 72 6c 2e 63 6f 6d 2f 64 6f 77 6e 6c 6f  yperl.com/downlo
0240: 61 64 2f 35 2e 33 32 2e 30 2e 31 2f 73 74 72 61  ad/5.32.0.1/stra
0250: 77 62 65 72 72 79 2d 70 65 72 6c 2d 35 2e 33 32  wberry-perl-5.32
0260: 2e 30 2e 31 2d 33 32 62 69 74 2e 6d 73 69 0d 0a  .0.1-32bit.msi..
0270: 20 20 74 6f 20 43 3a 5c 70 65 72 6c 0d 0a 20 20    to C:\perl..  
0280: 28 41 63 74 69 76 65 50 65 72 6c 20 66 61 69 6c  (ActivePerl fail
0290: 65 64 20 64 75 65 20 74 6f 20 6d 69 73 73 69 6e  ed due to missin
02a0: 67 20 33 32 20 62 69 74 20 63 6f 6e 73 6f 6c 65  g 32 bit console
02b0: 20 6d 6f 64 75 6c 65 29 0d 0a 2d 20 49 6e 73 74   module)..- Inst
02c0: 61 6c 6c 20 4e 41 53 4d 20 41 73 73 65 6d 62 6c  all NASM Assembl
02d0: 65 72 3a 0d 0a 0d 0a 68 74 74 70 73 3a 2f 2f 77  er:....https://w
02e0: 77 77 2e 6e 61 73 6d 2e 75 73 2f 70 75 62 2f 6e  ww.nasm.us/pub/n
02f0: 61 73 6d 2f 72 65 6c 65 61 73 65 62 75 69 6c 64  asm/releasebuild
0300: 73 2f 32 2e 31 35 2e 30 35 2f 77 69 6e 33 32 2f  s/2.15.05/win32/
0310: 6e 61 73 6d 2d 32 2e 31 35 2e 30 35 2d 69 6e 73  nasm-2.15.05-ins
0320: 74 61 6c 6c 65 72 2d 78 38 36 2e 65 78 65 0d 0a  taller-x86.exe..
0330: 20 20 74 6f 20 43 3a 5c 50 72 6f 67 72 61 6d 20    to C:\Program 
0340: 46 69 6c 65 73 20 28 78 38 36 29 5c 4e 41 53 4d  Files (x86)\NASM
0350: 0d 0a 20 20 0d 0a 2d 3e 20 56 69 73 75 61 6c 20  ..  ..-> Visual 
0360: 53 74 75 64 69 6f 20 78 38 36 20 6e 61 74 69 76  Studio x86 nativ
0370: 65 20 70 72 6f 6d 70 74 2e 0d 0a 0d 0a 73 65 74  e prompt.....set
0380: 20 50 61 74 68 3d 25 50 41 54 48 25 3b 43 3a 5c   Path=%PATH%;C:\
0390: 50 72 6f 67 72 61 6d 20 46 69 6c 65 73 20 28 78  Program Files (x
03a0: 38 36 29 5c 4e 41 53 4d 3b 43 3a 5c 50 65 72 6c  86)\NASM;C:\Perl
03b0: 5c 70 65 72 6c 5c 62 69 6e 0d 0a 0d 0a 70 65 72  \perl\bin....per
03c0: 6c 20 43 6f 6e 66 69 67 75 72 65 20 56 43 2d 57  l Configure VC-W
03d0: 49 4e 33 32 20 2d 2d 70 72 65 66 69 78 3d 63 3a  IN32 --prefix=c:
03e0: 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c 6f 70 65  \test\tcltls\ope
03f0: 6e 73 73 6c 20 2d 2d 6f 70 65 6e 73 73 6c 64 69  nssl --openssldi
0400: 72 3d 63 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73  r=c:\test\tcltls
0410: 5c 6f 70 65 6e 73 73 6c 64 69 72 20 6e 6f 2d 73  \openssldir no-s
0420: 68 61 72 65 64 20 6e 6f 2d 66 69 6c 65 6e 61 6d  hared no-filenam
0430: 65 73 20 74 68 72 65 61 64 73 0d 0a 0d 0a 6e 6d  es threads....nm
0440: 61 6b 65 0d 0a 6e 6d 61 6b 65 20 74 65 73 74 0d  ake..nmake test.
0450: 0a 6e 61 6d 6b 65 20 69 6e 73 74 61 6c 6c 0d 0a  .namke install..
0460: 0d 0a 32 29 20 42 75 69 6c 64 20 54 43 4c 54 4c  ..2) Build TCLTL
0470: 53 0d 0a 0d 0a 55 6e 7a 69 70 20 64 69 73 74 72  S....Unzip distr
0480: 69 62 75 74 69 6f 6e 20 69 6e 3a 0d 0a 63 3a 5c  ibution in:..c:\
0490: 74 65 73 74 5c 74 63 6c 74 6c 73 5c 74 63 6c 74  test\tcltls\tclt
04a0: 6c 73 2d 31 2e 37 2e 32 32 0d 0a 0d 0a 2d 3e 20  ls-1.7.22....-> 
04b0: 73 74 61 72 74 20 63 79 67 77 69 6e 20 62 61 73  start cygwin bas
04c0: 68 20 70 72 6f 6d 70 74 0d 0a 0d 0a 63 64 20 2f  h prompt....cd /
04d0: 63 79 67 64 72 69 76 65 2f 63 2f 74 65 73 74 2f  cygdrive/c/test/
04e0: 74 63 6c 74 6c 73 2f 74 63 6c 74 6c 73 2d 31 2e  tcltls/tcltls-1.
04f0: 37 2e 32 32 0d 0a 2e 2f 67 65 6e 5f 64 68 5f 70  7.22.../gen_dh_p
0500: 61 72 61 6d 73 20 3e 20 64 68 5f 70 61 72 61 6d  arams > dh_param
0510: 73 2e 68 0d 0a 0d 0a 6f 64 20 2d 41 20 6e 20 2d  s.h....od -A n -
0520: 76 20 2d 74 20 78 43 20 3c 20 27 74 6c 73 2e 74  v -t xC < 'tls.t
0530: 63 6c 27 20 3e 20 74 6c 73 2e 74 63 6c 2e 68 2e  cl' > tls.tcl.h.
0540: 6e 65 77 2e 31 0d 0a 73 65 64 20 27 73 40 5b 5e  new.1..sed 's@[^
0550: 30 2d 39 41 2d 46 61 2d 66 5d 40 40 67 3b 73 40  0-9A-Fa-f]@@g;s@
0560: 2e 2e 40 30 78 26 2c 20 40 67 27 20 3c 20 74 6c  ..@0x&, @g' < tl
0570: 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31 20 3e 20  s.tcl.h.new.1 > 
0580: 74 6c 73 2e 74 63 6c 2e 68 0d 0a 72 6d 20 2d 66  tls.tcl.h..rm -f
0590: 20 74 6c 73 2e 74 63 6c 2e 68 2e 6e 65 77 2e 31   tls.tcl.h.new.1
05a0: 0d 0a 0d 0a 2d 3e 20 56 69 73 75 61 6c 20 53 74  ....-> Visual St
05b0: 75 64 69 6f 20 78 38 36 20 6e 61 74 69 76 65 20  udio x86 native 
05c0: 70 72 6f 6d 70 74 2e 0d 0a 0d 0a 63 64 20 43 3a  prompt.....cd C:
05d0: 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c 74 63 6c  \test\tcltls\tcl
05e0: 74 6c 73 2d 31 2e 37 2e 32 32 5c 77 69 6e 0d 0a  tls-1.7.22\win..
05f0: 0d 0a 6e 6d 61 6b 65 20 2d 66 20 6d 61 6b 65 66  ..nmake -f makef
0600: 69 6c 65 2e 76 63 20 54 43 4c 44 49 52 3d 63 3a  ile.vc TCLDIR=c:
0610: 5c 74 65 73 74 5c 74 63 6c 38 36 31 30 20 53 53  \test\tcl8610 SS
0620: 4c 5f 49 4e 53 54 41 4c 4c 5f 46 4f 4c 44 45 52  L_INSTALL_FOLDER
0630: 3d 43 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c  =C:\test\tcltls\
0640: 6f 70 65 6e 73 73 6c 0d 0a 0d 0a 6e 6d 61 6b 65  openssl....nmake
0650: 20 2d 66 20 6d 61 6b 65 66 69 6c 65 2e 76 63 20   -f makefile.vc 
0660: 69 6e 73 74 61 6c 6c 20 54 43 4c 44 49 52 3d 63  install TCLDIR=c
0670: 3a 5c 74 65 73 74 5c 74 63 6c 38 36 31 30 20 49  :\test\tcl8610 I
0680: 4e 53 54 41 4c 4c 44 49 52 3d 63 3a 5c 74 65 73  NSTALLDIR=c:\tes
0690: 74 5c 74 63 6c 74 6c 73 20 53 53 4c 5f 49 4e 53  t\tcltls SSL_INS
06a0: 54 41 4c 4c 5f 46 4f 4c 44 45 52 3d 43 3a 5c 74  TALL_FOLDER=C:\t
06b0: 65 73 74 5c 74 63 6c 74 6c 73 5c 6f 70 65 6e 73  est\tcltls\opens
06c0: 73 6c 0d 0a 0d 0a 74 6c 73 2e 63 3a 20 0d 0a 4c  sl....tls.c: ..L
06d0: 69 6e 65 73 20 31 37 37 39 2c 20 31 38 33 39 3a  ines 1779, 1839:
06e0: 20 72 65 70 6c 61 63 65 0d 0a 69 6e 74 20 54 6c   replace..int Tl
06f0: 73 5f 49 6e 69 74 20 62 79 0d 0a 44 4c 4c 45 58  s_Init by..DLLEX
0700: 50 4f 52 54 20 69 6e 74 20 20 54 6c 73 5f 49 6e  PORT int  Tls_In
0710: 69 74 0d 0a 0d 0a 74 6c 73 2e 68 3a 20 73 61 6d  it....tls.h: sam
0720: 65 20 63 68 61 6e 67 65 0d 0a 0d 0a 6c 61 70 70  e change....lapp
0730: 65 6e 64 20 61 75 74 6f 5f 70 61 74 68 20 7b 43  end auto_path {C
0740: 3a 5c 74 65 73 74 5c 74 63 6c 74 6c 73 5c 74 6c  :\test\tcltls\tl
0750: 73 31 2e 37 2e 32 32 7d 0d 0a 70 61 63 6b 61 67  s1.7.22}..packag
0760: 65 20 72 65 71 75 69 72 65 20 74 6c 73 0d 0a 0d  e require tls...
0770: 0a                                               .