hbtipssl.lib

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

hbtipssl.lib

Post 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
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: hbtipssl.lib

Post by cnavarro »

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
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: hbtipssl.lib

Post by Enrico Maria Giordano »

Right, sorry: BCC 7.40 32 bit.

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42599
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 41 times
Been thanked: 88 times
Contact:

Re: hbtipssl.lib

Post 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

-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
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: hbtipssl.lib

Post by Enrico Maria Giordano »

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

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42599
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 41 times
Been thanked: 88 times
Contact:

Re: hbtipssl.lib

Post by Antonio Linares »

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
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: hbtipssl.lib

Post 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

#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
User avatar
Antonio Linares
Site Admin
Posts: 42599
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 41 times
Been thanked: 88 times
Contact:

Re: hbtipssl.lib

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: hbtipssl.lib

Post by Enrico Maria Giordano »

I get:

.F.
-1

while using xHarbour I get:

.T.
0

that is the right result.

EMG
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: hbtipssl.lib

Post by Enrico Maria Giordano »

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

EMG
User avatar
Enrico Maria Giordano
Posts: 8767
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: hbtipssl.lib

Post by Enrico Maria Giordano »

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

EMG
Post Reply