Re: [twsocket] DomainKeys/DKIM signature

2012-03-31 Thread Max Terentiev
Hi,

One more question: looks like OpenSSL contains all necessary 
functions (RSA and SHA-256 ciphers).

But can I use this functions inside my sending threads ?

It's thread safe ?


 -Original Message-
 From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
 Behalf Of Arno Garrels
 Sent: Friday, March 30, 2012 8:50 PM
 To: ICS support mailing
 Subject: Re: [twsocket] DomainKeys/DKIM signature
 
 Max Terentiev wrote:
  Hi,
 
 
 
  My app uses TSmtpCli for sending messages.
 
 
 
  Does ICS contain any function or components for adding DomainKeys or
  DKIM
 
  signature in to headers of my messages ?
 
 
 How to add custom header lines is demonstrated in the OverbyteIcsMailSnd
 demo, but you are probably looking for an implementation of rfc4871. I'm
not
 aware of such an implementation. RSA and Sha265 is possible with OpenSSL,
 for RSA encryption take a look at the OverbyteIcsPemTool demo. In order to
be
 able to hash the mail content you'll have to send the mail to a file or
stream first.
 
 --
 Arno
 --
 To unsubscribe or change your settings for TWSocket mailing list please
goto
 http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DomainKeys/DKIM signature

2012-03-31 Thread Arno Garrels
Max Terentiev wrote:
 
 One more question: looks like OpenSSL contains all necessary
 functions (RSA and SHA-256 ciphers).
 
 But can I use this functions inside my sending threads ?
 It's thread safe ?

OpenSSL is not thread-safe unless you provide callbacks for the required
locking. The components TSslDynamicLock and TSslStaticLock are made for 
this purpose. Read the comments in OverbyteIcsThrdLock.pas.
Create _one_ of those components in your main thread and set property
Enabled to True before any other call to OpenSSL, that's it. 

In order to avoid memory leaks use this code at the end of TThread's
Execute method:
  //* thread-local cleanup */
if @f_ERR_remove_thread_state  nil then
f_ERR_remove_thread_state(nil) // OSSL v1.0.0+
else
f_ERR_remove_state(0); // deprecated

For debugging you should define OPENSSL_USE_DELPHI_MM in the project
options. If defined OpenSSL will use current Delphi memory manager which
makes detection of OpenSSL memory leaks possible.
You will however notice that there's always one (or two?) small leak(s) 
in OpenSSL on shutting down the application, this can be safely ignored.

-- 
Arno

 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] WiFi Access List?

2012-03-31 Thread François Piette
 Do anyone know of a quick way to grab just visible SSID's 

AFAIK this is out of ICS scope. You should probably ask this in the general
Delphi mailing list (del...@elists.org which as you can see is served by the
same mailing list server).

 And while I'm at it

It is better to state your opinion by answering the corresponding message
because you answer will be completely lost when the results are examined. As
for any topic, it is always preferable to use the proper subject for each
message. Many people only read the message content if the subject match
their interest.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] WiFi Access List?

2012-03-31 Thread Dod
Hello,

This  question  is OT, ICS is not concerned about such function but if
you  google  wmi list wifi ssid you'll get tons of sources for doing
it  using  WMI  that is easy way to retrieve such information at a non
API Level.

regards.

BM This has probably already been asked somewhere before but I can't seem 
BM to find it in my archives of this list.

BM Do anyone know of a quick way to grab just visible SSID's and display 
BM them in a listbox? I don't care about the 802.11 type, authentication, 
BM security or anything else. Just the SSID's that are visible at that 
BM point in time.

BM And while I'm at it, I use Delphi 7 on a Windows 7 64 bit machine with 
BM 16gig ram and have no plans at all to use Delphi XE. So count my vote as 
BM keeping full support for Delphi 7. I just don't like the look and feel 
BM of Delphi XE. I own it, but never use it.

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Should next ICS version support anything before Delphi XE ?

2012-03-31 Thread Hoby Smith
Hey...

Still maintain some stuff in D2007 with ICS.  All new development in XE2.  

Bug fixes are fine for older D2007, so don't care about new development with
D2007.  However, DESPERATELY want to see a good socket solution for XE2.  :)

Regards...

Hoby

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of François Piette
Sent: Wednesday, March 28, 2012 12:59 PM
To: ICS support mailing
Subject: [twsocket] Should next ICS version support anything before Delphi
XE ?

Hi !

 

I’m planning the next ICS version…

Being unable to use any features added to Delphi in the last 10 years is
very restricted.  Maybe we need to cease support for old Delphi versions ?
Of course ICS V5 and V7 will remains available however, the only changes
will be bug fixes.

 

What do you think ? Please keep your answer as short as possible, I just
want to have an idea about how many of you are still using an old Delphi
version.

 

--

francois.pie...@overbyte.be

The author of the freeware multi-tier middleware MidWare

The author of the freeware Internet Component Suite (ICS)

http://www.overbyte.be

 

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be