SSL files location lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- torbente · 2022-01-22 00:45 Hi everyone; I believe this is a pretty simple question, and i was unable to find nothing relative. Using a TFPHttpClient... It is mandatory to keep the SLL files on the same folder of our app? Or we can redirect its location, something like... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i MyTFPHttpClient.SSLFiles.path:= Path; // Different from app path Or maybe to resource files included in the app binary? Thanks ---------------------------------------------------------------------- PascalDragon · 2022-01-23 12:31 Quote from: torbente on January 22, 2022, 01:45:58 amIt is mandatory to keep the SLL files on the same folder of our app? Or we can redirect its location, something like... What do you mean with “SSL files”? The libraries or the certificates? ---------------------------------------------------------------------- torbente · 2022-01-23 12:36 Quote from: PascalDragon on January 23, 2022, 01:31:58 pmQuote from: torbente on January 22, 2022, 01:45:58 amIt is mandatory to keep the SLL files on the same folder of our app? Or we can redirect its location, something like... What do you mean with “SSL files”? The libraries or the certificates? Libraryes: ssleay.dll and libeay.dll ---------------------------------------------------------------------- PascalDragon · 2022-01-23 12:40 You can determine their location by calling InitSSLInterface of the unit OpenSSL before using any SSL related functionality (at best as soon as possible in your main program). Please note that this should only really be necessary for Windows as other operating systems provide suitable default libraries. ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2022-01-23 12:58 Hey PascalDragon, Quote from: PascalDragon on January 23, 2022, 01:40:30 pmYou can determine their location by calling InitSSLInterface of the unit OpenSSL before using any SSL related functionality (at best as soon as possible in your main program). Please note that this should only really be necessary for Windows as other operating systems provide suitable default libraries. The OP's question is if you can SET the location not how to GET the location. He wants a tidy system and wants the App to be in a folder and the .dlls to be in AppFolder/SSL so it's all neat and organised. He's asking if it's possible to provide an extra path in conjunction to the paths already in the PATH variable. If so, then how? If not, I'll undertake the task to console him of his grief Cheers, Gus ---------------------------------------------------------------------- PascalDragon · 2022-01-23 13:06 Quote from: Gustavo 'Gus' Carreno on January 23, 2022, 01:58:02 pmHey PascalDragon, Quote from: PascalDragon on January 23, 2022, 01:40:30 pmYou can determine their location by calling InitSSLInterface of the unit OpenSSL before using any SSL related functionality (at best as soon as possible in your main program). Please note that this should only really be necessary for Windows as other operating systems provide suitable default libraries. The OP's question is if you can SET the location not how to GET the location. determine was meant as a synonym of regulate or control and not retrieve. The function takes the paths to the two libraries to initialize the function imports. Thus torbente is able to control where the libraries should be placed. The remainder is up to them. ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2022-01-23 13:16 Hey PascalDragon, Quote from: PascalDragon on January 23, 2022, 02:06:57 pmdetermine was meant as a synonym of regulate or control and not retrieve. The function takes the paths to the two libraries to initialize the function imports. Thus torbente is able to control where the libraries should be placed. The remainder is up to them. Ooops, mea culpa, really sorry. I get it now!! So I'm guessing that one of the params for InitSSLInterface will be the path to the libs. Does this include the lib name's themselves o just a folder name to look them up? Cheers, Gus ---------------------------------------------------------------------- torbente · 2022-01-23 23:16 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i determine was meant as a synonym of regulate or control and not retrieve. The function takes the paths to the two libraries to initialize the function imports. Thus torbente is able to control where the libraries should be placed. The remainder is up to them. Hi @PascalDragon Any working code example? Or a link to any previous related thread to give me a better idea? Thanks a lot in advance... ---------------------------------------------------------------------- PascalDragon · 2022-01-24 12:47 Not tested, but should give you an idea: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program tssl; {$mode objfpc}{$H+} uses  OpenSSL, SysUtils; var  p: String;begin  p := IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0)) + 'Libs');  InitSSLInterface(p + 'ssleay32.dll', p + 'libeay32.dll');  // do something with SSLend.