🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #129

Re: Indy and SSL

#129
From: Oleg Tiktinski
Date: Thu, 29 May 2008 01:49
50 lines
2600 bytes
Please excuse my stupidity, but it's not defined in any header file.
I found this function only in IdSSLOpenSSL.pas
I.e. call  Idsslopenssl::LoadOpenSLLibrary(); will not work since it's 
not part of  Idsslopenssl namespace.
I tried :

extern PACKAGE bool __fastcall LoadOpenSLLibrary(void);

void function()
{
  LoadOpenSLLibrary();
}

it's ok for compiler, but linker failing on it.
What I am doing wrong  ?


Remy Lebeau (TeamB) wrote:
> "Oleg Tiktinski" <oleg@sequoiars.com> wrote in message 
> news:483dd3e1$1@newsgroups.borland.com...
> 
>> Well it did not help:
> 
> Yes, it does.  Pay closer attention to what you are looking at.
> 
>>   if not IdSSLOpenSSL.LoadOpenSLLibrary then begin
> 
> LoadOpenSSLLibrary() calls IdSSLOpenSSLHeaders::Load() internally to load 
> the OpenSSL DLLs, but only does so once.  So LoadOpenSSLLibrary() can be 
> called multiple times, and only the first time will delay.  Subsequent calls 
> will exit immediately without doing anything.  LoadOpenSLLibrary() is a 
> publically accessible function in the IdSSLOpenSSL unit, so call it anytime 
> you want.
> 
>> So this line:
>>
>> IdSSLOpenSSL.LoadOpenSLLibrary takes lots of time to execute.
> 
> Only the first time it is called.
> 
>> I do that after IdSSLOpenSSLHeaders::Load();
> 
> That is your problem.  You are letting IdSSLOpenSSLHeaders::Load() get 
> called multiple times.  Don't call it yourself at all anymore.  Call only 
> IdSSLOpenSSL::LoadOpenSLLibrary() instead.
> 
> 
> Gambit 
> 
> 
Technical Details
Message-ID: <483e0ba1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <483cc31b$1@newsgroups.borland.com> <483daa9d$1@newsgroups.borland.com> <483dcfae$1@newsgroups.borland.com> <483dd005$1@newsgroups.borland.com> <483dd3e1$1@newsgroups.borland.com> <483de3f3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a02f5e13cae23a18
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 28 May 2008 18:49:23 -0700
From: Oleg Tiktinski <oleg@sequoiars.com>
User-Agent: Thunderbird 1.5.0.14 (Windows/20071210)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Indy and SSL
References: <483cc31b$1@newsgroups.borland.com> <483daa9d$1@newsgroups.borland.com> <483dcfae$1@newsgroups.borland.com> <483dd005$1@newsgroups.borland.com> <483dd3e1$1@newsgroups.borland.com> <483de3f3$1@newsgroups.borland.com>
In-Reply-To: <483de3f3$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.4.183.142
Message-ID: <483e0ba1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212025761 69.4.183.142 (28 May 2008 18:49:21 -0700)
Lines: 50
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail