Hi
how exactly was this function imported? what kind of changes was done?


Brona

On 20.12.2011 18:37, Petr Fejfar wrote:
Hi Lukas,

it seems there is another memory leak
in the method LoadPFX:

           ...
           ...
           cert := nil;
           pkey := nil;
           ca := nil;
           try {pf}
             if PKCS12parse(p12, FKeyPassword, pkey, cert, ca) > 0 then
               if SSLCTXusecertificate(Fctx, cert) > 0 then
                 if SSLCTXusePrivateKey(Fctx, pkey) > 0 then
                   Result := True;
           {pf}
           finally
             EvpPkeyFree(pkey);
             X509free(cert);
             SkX509PopFree(ca,_X509Free); // for ca=nil a new STACK is
allocated
           end;
           {/pf}
           ...
           ...


To fix it, I had imported SK_X509_POP_FREE function
and had exported the variable _X509Free to pass it
as a procedural argument.


pf

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

--

s pozdravem
         Bronislav Klučka


http://www.bauglir.com

http://www.bauglir.com
bronislav.klu...@bauglir.com

  * webové aplikace
  * software na zakázku

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to