Recent

Author Topic: InitSSLInterface(Const aSSLName... only in trunk? how to accomplish in non trnk  (Read 286 times)

Josh

  • Hero Member
  • *****
  • Posts: 998
Hi

I use the initsslinterface function of the unit openssl to select the location and name of the .dlls file ie
Code: Pascal  [Select][+][-]
  1. if not InitSSLInterface(dllfolder+'ssleay32',dllfolder+'libeay32') then // display error

however in fixes and stable this function is not defined.

The header of the unit has no reference to this being a new function..

How can this be accomplished in non Trunk version?

Code: Pascal  [Select][+][-]
  1. function IsSSLloaded: Boolean;
  2. function InitSSLInterface: Boolean; overload;
  3. function DestroySSLInterface: Boolean;
  4.  
  5. // compatibility with old versions.
  6. function Islibealoaded: Boolean; deprecated;
  7. function InitSSLInterface(AVerboseLoading: Boolean): Boolean ; overload; deprecated;
  8. function InitSSLEAInterface(AVerboseLoading: Boolean): Boolean; deprecated;
  9. function InitLibeaInterface(AVerboseLoading: Boolean = false): Boolean; deprecated;
  10. function DestroySSLEAInterface: Boolean; deprecated;
  11. function DestroyLibeaInterface: Boolean; deprecated;                                        
  12.  

in trunk it is defined
Code: Pascal  [Select][+][-]
  1. function IsSSLloaded: Boolean;
  2. function InitSSLInterface(Const aSSLName, acryptoName : String) : Boolean; overload;
  3. function InitSSLInterface: Boolean; overload;
  4. function DestroySSLInterface: Boolean;
  5.  
  6. // compatibility with old versions.
  7. function Islibealoaded: Boolean; deprecated;
  8. function InitSSLInterface(AVerboseLoading: Boolean): Boolean ; overload; deprecated;
  9. function InitSSLEAInterface(AVerboseLoading: Boolean): Boolean; deprecated;
  10. function InitLibeaInterface(AVerboseLoading: Boolean = false): Boolean; deprecated;
  11. function DestroySSLEAInterface: Boolean; deprecated;
  12. function DestroyLibeaInterface: Boolean; deprecated;                                  

Is this a new change
« Last Edit: August 18, 2022, 05:19:21 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

PascalDragon

  • Hero Member
  • *****
  • Posts: 4573
  • Compiler Developer
The header of the unit has no reference to this being a new function..

Changes are not documented inside the units themselves (and any such that exist are simply legacy remnants). The revision log of the version control system is the documentation for that.

How can this be accomplished in non Trunk version?

You can't. That's why it was added after all.

Is this a new change

Yes, this was added in October '21. Maybe I'll trigger a merge of that to 3.2.3...

 

TinyPortal © 2005-2018