Harbour ChangeLog - Relevant for HMG interest
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Harbour ChangeLog - Relevant for HMG interest
Claudio, tus trabajos son siempre sorprendentes. Despertaste el interés de todos aqui, inclusive del jefe.
Pero ya que anunciaste algo que está en andamiento y te hicieron preguntas. Yo quisiera hacer una más.
En Harbour mandar emails, es algo poco prático por no decir que es espinoso de complicado cuando se refiere a direcciones que usan SSL.
Si bien que contamos con una biblioteca OPEN SOURCE que es utilizado por várias herramientas por ai... pero por lo que me parece (puedo estar equivocado) las versiones no se encuentran en sintonia o mejor dicho hay una carencia de informacion extraordinária con respecto a las bibliotecas SSL y Harbour. Inclusive en mi opinion personal, que yo como muchos, no me gusta utilizar DLLs.
Mi pregunta es: este proyecto, contempla alguna rutina de SSL ?
Yo imagino que si...
Porque de alli en más, en HMG estaríamos libres del uso de esas bibliotecas tan complicadas. O mejor, dejando de usar bibliotecas dinámicas o dependencia de bibliotecas externas... Puede ser ?
--- Googled ---
Claudio, your work is always surprising. You aroused everyone's interest here, including the boss.
But since you announced something that is in progress and they asked you questions. I would like to do one more.
In Harbour send emails, it is somewhat impractical not to say that it is daunting of complicated when it refers to address that use SSL.
While we have an OPEN SOURCE library that is used by various tools there ... but for what it seems (I may be wrong) the versions are not in tune or rather there is a lack of extraordinary information regarding SSL and Harbour libraries. Even in my personal opinion, that I like many, I do not like to use DLLs.
My question is: Does this project contemplate any SSL routine ?
I imagining... YES...
Because from there on, in HMG we would be free of the use of such complicated libraries. Or better, not using dynamic libraries or external libraries dependency... Can it be possible ?
Pero ya que anunciaste algo que está en andamiento y te hicieron preguntas. Yo quisiera hacer una más.
En Harbour mandar emails, es algo poco prático por no decir que es espinoso de complicado cuando se refiere a direcciones que usan SSL.
Si bien que contamos con una biblioteca OPEN SOURCE que es utilizado por várias herramientas por ai... pero por lo que me parece (puedo estar equivocado) las versiones no se encuentran en sintonia o mejor dicho hay una carencia de informacion extraordinária con respecto a las bibliotecas SSL y Harbour. Inclusive en mi opinion personal, que yo como muchos, no me gusta utilizar DLLs.
Mi pregunta es: este proyecto, contempla alguna rutina de SSL ?
Yo imagino que si...
Porque de alli en más, en HMG estaríamos libres del uso de esas bibliotecas tan complicadas. O mejor, dejando de usar bibliotecas dinámicas o dependencia de bibliotecas externas... Puede ser ?
--- Googled ---
Claudio, your work is always surprising. You aroused everyone's interest here, including the boss.
But since you announced something that is in progress and they asked you questions. I would like to do one more.
In Harbour send emails, it is somewhat impractical not to say that it is daunting of complicated when it refers to address that use SSL.
While we have an OPEN SOURCE library that is used by various tools there ... but for what it seems (I may be wrong) the versions are not in tune or rather there is a lack of extraordinary information regarding SSL and Harbour libraries. Even in my personal opinion, that I like many, I do not like to use DLLs.
My question is: Does this project contemplate any SSL routine ?
I imagining... YES...
Because from there on, in HMG we would be free of the use of such complicated libraries. Or better, not using dynamic libraries or external libraries dependency... Can it be possible ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Harbour ChangeLog - Relevant for HMG interest
Pablo,
no, the server only use the TCP/IP protocol without any type of certification.
no, the server only use the TCP/IP protocol without any type of certification.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Re: Harbour ChangeLog - Relevant for HMG interest
Own, what a pitysrvet_claudio wrote:no, the server only use the TCP/IP protocol without any type of certification.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Harbour ChangeLog - Relevant for HMG interest
If the Harbour team could not make it work simple and safe, I doubt I can do it better.Pablo César wrote:Own, what a pitysrvet_claudio wrote:no, the server only use the TCP/IP protocol without any type of certification.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Harbour ChangeLog - Relevant for HMG interest
I understand. Yet everything seems so confusing ... if you can not, imagine us here mere mortals ...
The problem that in Harbour 3.4 has been talking about for some time from TSL with tip_MailSend to send via OutLook and in our Harbour, still nothing...
Here's how Viktor increased:
I wanted to see myself free from using LibEay32.dll and SSLeay32.dll but it looks like it still needs a lot to evolve ...
The problem that in Harbour 3.4 has been talking about for some time from TSL with tip_MailSend to send via OutLook and in our Harbour, still nothing...
Here's how Viktor increased:
Code: Select all
/* Copyright 2009 Viktor Szakats (vszakats.net/harbour) */
#require "hbssl"
#require "hbtip"
#if ! defined( __HBSCRIPT__HBSHELL )
REQUEST __HBEXTERN__HBSSL__
#endif
#include "simpleio.ch"
Function Main( cFrom, cPassword, cTo, cHost )
LOCAL nPort
LOCAL lSTARTTLS := .F.
IF ! tip_SSL()
? "Error: Requires SSL support"
RETURN
ENDIF
hb_default( @cFrom , "<from@example.net>" )
hb_default( @cPassword, "password" )
hb_default( @cTo , "to@example.com" )
hb_default( @cHost , "localhost" )
cHost := Lower( cHost )
/* SMTPS works with SSL/TLS on port 465 and with STARTTLS
on port 587. STARTTLS mode is fully automatic and requires
SSL/TLS be disabled at first (it will be activated on
request after STARTTLS command) */
DO CASE
CASE cHost == "apple" .OR. "@icloud.com" $ cFrom .OR. "@mac.com" $ cFrom .OR. "@me.com" $ cFrom
cHost := "smtp.mail.me.com"; lSTARTTLS := .T.
CASE cHost == "fastmail" .OR. "@fastmail.com" $ cFrom .OR. "@fastmail.fm" $ cFrom
cHost := "smtp.fastmail.com"
CASE cHost == "gmx.net" .OR. "@gmx.net" $ cFrom .OR. "@gmx.ch" $ cFrom .OR. "@gmx.de" $ cFrom
cHost := "mail.gmx.net"; lSTARTTLS := .T.
CASE cHost == "google" .OR. "@gmail.com" $ cFrom .OR. "@googlemail.com" $ cFrom
cHost := "smtp.gmail.com"
CASE cHost == "mail.ru" .OR. "@mail.ru" $ cFrom
cHost := "smtp.mail.ru"
CASE cHost == "netease" .OR. "@163.com" $ cFrom
cHost := "smtp.163.com"
CASE cHost == "office365"
cHost := "smtp.office365.com"; lSTARTTLS := .T.
CASE cHost == "outlook" .OR. "@outlook.com" $ cFrom .OR. "@hotmail.com" $ cFrom
cHost := "smtp-mail.outlook.com"; lSTARTTLS := .T.
CASE cHost == "sina" .OR. "@sina.com" $ cFrom
cHost := "smtp.vip.sina.com"
CASE cHost == "uol" .OR. "@uol.com.br" $ cFrom
cHost := "smtps.uol.com.br"
CASE cHost == "yahoo" .OR. "@yahoo.com" $ cFrom
cHost := "smtp.mail.yahoo.com"
CASE ":" $ cHost
IF TUrl():New( cHost ):nPort != -1
nPort := TUrl():New( cHost ):nPort
ENDIF
lSTARTTLS := ( nPort == 587 )
cHost := TUrl():New( cHost ):cServer
ENDCASE
hb_default( @nPort, iif( lSTARTTLS, 587, 465 ) )
? "Host:", cHost, hb_ntos( nPort ), iif( lSTARTTLS, "(STARTTLS)", "" )
? tip_MailSend( cHost, ;
nPort, ;
cFrom, ;
cTo, ;
NIL, ; /* CC */
{}, ; /* BCC */
"text: body", ;
"text: subject", ;
NIL, ; /* attachment */
cFrom, ;
cPassword, ;
"", ;
NIL, ; /* nPriority */
NIL, ; /* lRead */
.T., ; /* lTrace */
.F., ;
NIL, ; /* lNoAuth */
NIL, ; /* nTimeOut */
NIL, ; /* cReplyTo */
nPort == 465 )
Return Nil
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Harbour ChangeLog - Relevant for HMG interest
Hi Claudio, sorry for insisting on this point. But as you've seen, Harbour itself has many variations (due to the non-trivial nature of internet protocols) to send emails and does so through: SLL / TSL / CDO / CURL. At least it's just now wanting for good working... but the solutions so far have been featured on Viktor's fork Harbour version.srvet_claudio wrote:If the Harbour team could not make it work simple and safe, I doubt I can do it better.
Most servers require a security protocol and use third-party library and still in the form of DLLs so most HMG users find it uncomfortable to update such libraries. It changes the functions of the Harbour, changes the versions of the SSL libraries, there we have to go to keep up to date. This causes a certain annoyance and certainty deficulty, since not all are advanced users.
That's why I think it's important for you to think for a future to make our own library. Both for shipping and for the issue of certification and security (if possible) of course.
At moment, I'm looking at how to send via CURL which seems to be the most guaranteed and simple. It uses a container file for certification given by the PEM file that is public and provided by Mozilla. This is the file: https://curl.haxx.se/ca/cacert.pem
In the public site has material regarding: https://curl.haxx.se/docs/caextract.html
Very useful for anyone who wants to develop something about it.
I am mentioning, since Apache uses this feature in some situations and it may be of interest to you, since you are designing a server.
Here is another concept about: http://pt.stackoverflow.com/questions/5 ... cacert-pem
There is a lot of material about it: https://docs.bolt.cm/3.0/howto/curl-ca-certificates
Well, I do not want to bother you anymore with this matter. It is something to be thought of and calm. And now what matters is his new project in which I am very anxious also to see more this conquest allied with JMG.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Harbour ChangeLog - Relevant for HMG interest
Pablo, I am honestly focused only on the development of an http deamon.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Harbour ChangeLog - Relevant for HMG interest
Tudo bem, Claudio.
Go ahead please.
Go ahead please.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Harbour ChangeLog - Relevant for HMG interest
13 years old bug
Solved in Viktor's fork.
By the other hand...
I think version 3.2 is dying ...
Maybe give way to 3.4 ...
Solved in Viktor's fork.
By the other hand...
I think version 3.2 is dying ...
Maybe give way to 3.4 ...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Harbour ChangeLog - Relevant for HMG interest
Uff, until finally something new in our Harbour...
New functions for time convertions:
New functions for time convertions:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein