HMG 3.5

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
AUGE_OHR
Posts: 1143
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 211 times
Been thanked: 303 times

Re: HMG 3.5

Post by AUGE_OHR »

hi,

have your include SSL Libs :?:

in hmg32.hbc / hmg64.hbc

Code: Select all

libs=hbssl
libs=libeay32
libs=ssleay32
have fun
Jimmy

User avatar
serge_girard
Posts: 2630
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 904 times
Been thanked: 164 times
Contact:

Post by serge_girard »

Hi Jimmy,

It wasn't ! Now added but still:

Code: Select all

  
cannot find -llibeay32 
cannot find -lssleay32 
Is there a path or something missing?

Serge

User avatar
Rathinagiri
Posts: 5351
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 211 times
Been thanked: 232 times
Contact:

Post by Rathinagiri »

This is from the changelog of Harbour during 2018-11-16 (exactly 2 years before!)

* contrib/hbssl/bio.c
* contrib/hbssl/err.c
* contrib/hbssl/evp.c
* contrib/hbssl/evpciph.c
* contrib/hbssl/evpenc.c
* contrib/hbssl/evpmd.c
* contrib/hbssl/evppkey.c
* contrib/hbssl/hbssl.ch
* contrib/hbssl/hbssl.h
* contrib/hbssl/hbssl.hbx
* contrib/hbssl/pem.c
* contrib/hbssl/rand.c
* contrib/hbssl/ssl.c
* contrib/hbssl/ssl_hb.c
* contrib/hbssl/ssl_inet.c
* contrib/hbssl/ssl_sock.c
* contrib/hbssl/sslciph.c
* contrib/hbssl/sslctx.c
* contrib/hbssl/sslsess.c
* contrib/hbssl/x509.c
* synced with Viktor's 3.4 branch and updated to OpenSSL 1.1

Now SSL is updated in 1.1 and in this version we don't have libeay32 and ssleay32. That is why you have this problem. Instead we have "liblibssl-1_1.a" and "liblibcrypto-1_1.a" only.

I think in your application also, wherever you are using/referring openssl try to change as specified in the contrib\hbssl\test folder of Harbour.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
salamandra
Posts: 250
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil
Has thanked: 130 times
Been thanked: 9 times

Post by salamandra »

:) Hi Serge,
serge_girard wrote:
Tue Nov 17, 2020 3:53 pm
Hi Jimmy,

It wasn't ! Now added but still:

Code: Select all

  
cannot find -llibeay32 
cannot find -lssleay32 
Is there a path or something missing?

Serge

Your sample has compiled and works fine here...
I just needed to add libeay32.dll and ssleay32.dll.
TEST.rar
(2.54 MiB) Downloaded 23 times


Best regards,

Salamandra, Brazil
There is one time in which is crucial awakening. That time is now. ( Buddha )

User avatar
Rathinagiri
Posts: 5351
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 211 times
Been thanked: 232 times
Contact:

Post by Rathinagiri »

salamandra wrote:
Tue Nov 17, 2020 8:02 pm
:) Hi Serge,
serge_girard wrote:
Tue Nov 17, 2020 3:53 pm
Hi Jimmy,

It wasn't ! Now added but still:

Code: Select all

  
cannot find -llibeay32 
cannot find -lssleay32 
Is there a path or something missing?

Serge

Your sample has compiled and works fine here...
I just needed to add libeay32.dll and ssleay32.dll.

TEST.rar



Best regards,

Salamandra, Brazil
Is this done in new version?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
serge_girard
Posts: 2630
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 904 times
Been thanked: 164 times
Contact:

Post by serge_girard »

I cannot get it working! See attachment, Serge
Attachments
TEST.zip
(803.55 KiB) Downloaded 8 times

User avatar
Rathinagiri
Posts: 5351
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 211 times
Been thanked: 232 times
Contact:

Post by Rathinagiri »

Serge,

I have tried the following and it works:

1. Copy libhbssl.a from HMG.3.4.4\harbour\lib\win\mingw\ folder and renamed as libhbsslold.a
2. Pasted in HMG.3.5.\harbour\lib\win\mingw\ folder.
3. Referred hbsslold in the harbour project.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
serge_girard
Posts: 2630
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 904 times
Been thanked: 164 times
Contact:

Post by serge_girard »

Sorry Rathi...... I missed something:

1. Rename HMG.3.5.\harbour\lib\win\mingw\libhbssl.a to HMG.3.5.\harbour\lib\win\mingw\libhbsslold.a
2. Copy HMG.3.4.4\harbour\lib\win\mingw\libhbssl.a to HMG.3.5.\harbour\lib\win\mingw\libhbssl.a
3. Referred hbsslold? You mean in my HBC file?

1&2 Correct?
3 HBC file?

Serge

User avatar
Rathinagiri
Posts: 5351
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 211 times
Been thanked: 232 times
Contact:

Post by Rathinagiri »

No!

Copy \hmg.3.4.4\harbour\lib\win\mingw\libhbssl.a to \hmg.3.5\harbour\lib\mingw\libhbssl.a (since a new version in the same name is available, I have renamed the old (3.4.4) one as libhbsslold.a and pasted. So, we have two files now in the \hmg.3.5\harbour\lib\mingw\ folder.

This is the hbc file.

Code: Select all

inc=yes
head=native
libs=hbsslOld
libs=libeay32
libs=ssleay32
I have attached the lib file also for your kind reference.
Attachments
libhbsslOld.zip
(46.26 KiB) Downloaded 24 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Jagadeesan
Posts: 6
Joined: Sat Mar 14, 2020 4:23 am
DBs Used: DBF
Has thanked: 14 times
Been thanked: 1 time

Post by Jagadeesan »

Thanks a lot

Post Reply