Page 1 of 1

hbtipssl.lib

PostPosted: Sun Feb 20, 2022 10:03 am
by Enrico Maria Giordano
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

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 10:57 am
by cnavarro
Enrico, For which compiler?

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 11:12 am
by Enrico Maria Giordano
Right, sorry: BCC 7.40 32 bit.

EMG

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 3:59 pm
by Antonio Linares
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: Select all  Expand view
-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

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 4:03 pm
by Enrico Maria Giordano
Thank you, but I don't have Harbour source code. :-(

EMG

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 4:10 pm
by Antonio Linares
Previous post updated to provide url to download it :-)

You may get some unresolved externals. Please tell them

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 5:36 pm
by Enrico Maria Giordano
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: Select all  Expand view
#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

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 5:51 pm
by Antonio Linares
What error do you get ? How do you know that it is failing ?

Re: hbtipssl.lib

PostPosted: Sun Feb 20, 2022 7:01 pm
by Enrico Maria Giordano
I get:

.F.
-1

while using xHarbour I get:

.T.
0

that is the right result.

EMG

Re: hbtipssl.lib

PostPosted: Mon Feb 21, 2022 9:02 am
by Enrico Maria Giordano
Sorry, I just edited my sample (using standard FW include now).

EMG

Re: hbtipssl.lib

PostPosted: Tue Feb 22, 2022 9:53 pm
by Enrico Maria Giordano
Any ideas?

EMG

Re: hbtipssl.lib

PostPosted: Mon Feb 28, 2022 9:10 am
by Enrico Maria Giordano
I'm still stucking on this problem. Do I have to give up with Harbour and SSL?

EMG