FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hbtipssl.lib
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
hbtipssl.lib
Posted: Sun Feb 20, 2022 10:03 AM

Dear friends, I need hbtipssl.lib. It is not in the official Harbour distribution. I already searched this forum but I haven't found a clear answer.

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 10:57 AM

Enrico, For which compiler?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 11:12 AM

Right, sorry: BCC 7.40 32 bit.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 03:59 PM
Dear Enrico,

Here it is explained how to build it:
http://forums.fivetechsupport.com/viewtopic.php?p=245715&sid=3b2145523f315598c7ef11fc611d3ac5&sid=3b2145523f315598c7ef11fc611d3ac5#p245715

hbtipssl.hbp
Code (fw): Select all Collapse
-env:HB_TIP_OPENSSL=yes
hbtip.hbp


c:\harbour\bin\win\bcc\hbmk2 hbtipssl.hbp -comp=bcc

Here you have it already built:
https://github.com/FiveTechSoft/Harbour_builder/tree/master/win32_hbtipssl
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 04:03 PM

Thank you, but I don't have Harbour source code. :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 04:10 PM

Previous post updated to provide url to download it :-)

You may get some unresolved externals. Please tell them

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 05:36 PM
Thank you. No errors building the EXE but it can't read an SSL mailbox (the same code works fine using xHarbour). Here it is a sample:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    GETMAIL( cServer, cUser, cPassword )

    RETURN NIL


STATIC FUNCTION GETMAIL( cServer, cUser, cPassword )

    LOCAL lOk := .F.

    LOCAL oCli

    oCli = TIPClientPOP():New( "pop://" + cUser + ":" + cPassword + "@" + cServer )

    oCli:oUrl:cUserid = cUser

    oCli:nDefaultPort = 995

    oCli:lSSL = .T.

    ? oCli:Open()

    ? oCli:CountMail()

    oCli:Close()

    RETURN lOk


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 05:51 PM

What error do you get ? How do you know that it is failing ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hbtipssl.lib
Posted: Sun Feb 20, 2022 07:01 PM

I get:

.F.
-1

while using xHarbour I get:

.T.
0

that is the right result.

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hbtipssl.lib
Posted: Mon Feb 21, 2022 09:02 AM

Sorry, I just edited my sample (using standard FW include now).

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: hbtipssl.lib
Posted: Mon Feb 28, 2022 09:10 AM

I'm still stucking on this problem. Do I have to give up with Harbour and SSL?

EMG

Continue the discussion