Page 1 of 1

TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Tue Jul 18, 2023 8:52 pm
by AUGE_OHR
hi,

is it possible to use TIPCLIENTHTTP:New() with httpS for TLS 1.2 :?:

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Sun Jul 23, 2023 2:03 am
by danielmaximiliano
hola jimmy , esto dice la libreria hbtip
* TIP Class oriented Internet protocol library
*
* Copyright 2003 Giancarlo Niccolai <gian@niccolai.ws>

* Copyright 2015 Jean Lefebvre (STARTTLS support)
el soporte lo da hbssl ,habria que revisar los parametros para enviar que version de tls usar
mirar en ssl.c

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Wed Jul 26, 2023 11:08 am
by edk
AUGE_OHR wrote: Tue Jul 18, 2023 8:52 pm hi,

is it possible to use TIPCLIENTHTTP:New() with httpS for TLS 1.2 :?:
Try using these dlls:
dll_tls1.3.7z
(594.58 KiB) Downloaded 127 times
, it should work for 32 bit.
You do not need to specify a specific encryption, the client should negotiate with the server itself.
A host above Windows 7 is required.

Code: Select all

#require "hbtip"
#require "hbssl"

REQUEST __HBEXTERN__HBSSL__

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Thu Jul 27, 2023 5:29 am
by AUGE_OHR
hi Edward,

thx for File, i will try it

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Mon Jan 20, 2025 12:19 pm
by serge_girard
Edward,

Is there also some libs for 64bits?

Serge

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Tue Jan 21, 2025 8:41 pm
by edk
Serge.
If you built hbssl using the instructions in this post https://hmgforum.com/viewtopic.php?p=71447#p71447 , you don't need any external SSL libraries. When building an application that uses hbssl, the necessary libraries will be included in the executable. See example in attachment.
hbtip64.zip
(1.08 KiB) Downloaded 41 times

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Wed Jan 22, 2025 2:20 pm
by serge_girard
Edward,

Somehow it always tries to find lssleay32 ..

Code: Select all

Harbour 3.2.0dev (r2304211101)
Copyright (c) 1999-2023, https://harbour.github.io/
P:/hmg.3.6/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lssleay32: No such file or directory
P:/hmg.3.6/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -llibeay32: No such file or directory
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe C:/Users/Serge/AppData/Local/Temp/hbmk_44snhb.dir/httspadv.o C:/Users/Serge/AppData/Local/Temp/hbmk_44snhb.dir/hbmk_2mq7xs.o P:/hmg.3.6/DB_GEN_NEW/_temp.o    -pthread  -static-libgcc  -static-libstdc++  -static -lpthread -mconsole -Wl,--start-group -l"hmg-64" -l"crypt-64" -l"edit-64" -l"editex-64" -l"graph-64" -l"ini-64" -l"report-64" -l"hfcl-64" -lmsvfw32 -lvfw32 -lhbmysql -llibmysql -l"hbvpdf-64" -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lhbodbc -lodbc32 -lhbhpdf -lhbnetio -lxhb -lpng -llibhpdf -lhbzebra -lhbssl -lssleay32 -llibeay32 -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lwinmm -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib   -Wl,--end-group -ohttps_adv_64.exe  -LP:/hmg.3.6/harbour64/lib/win/mingw64 -L"P:/hmg.3.6/lib-64"
I surely miss something...!

Serge

Re: TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Posted: Wed Jan 22, 2025 4:14 pm
by edk
Check what libraries you have set in config of your project. For the new hbssl 3.0 64-bit you should have
libs=hbssl
libs=libssl-3-x64
libs=libcrypto-3-x64
or there is something wrong with hbssl integration.

I'm uploading my hmg.3.6 integration with OpenSSL 3 and mySQL: https://www.easypaste.org/file/GDwo7dzk ... 7z?lang=en