TLS 1.2 / TIPCLIENTHTTP:New() & httpS

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

TLS 1.2 / TIPCLIENTHTTP:New() & httpS

Post by AUGE_OHR »

hi,

is it possible to use TIPCLIENTHTTP:New() with httpS for TLS 1.2 :?:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

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

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

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

Post 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__
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

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

Post by AUGE_OHR »

hi Edward,

thx for File, i will try it
have fun
Jimmy
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

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

Post by serge_girard »

Edward,

Is there also some libs for 64bits?

Serge
There's nothing you can do that can't be done...
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

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

Post 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 40 times
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

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

Post 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
There's nothing you can do that can't be done...
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

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

Post 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
Post Reply