[fpc-pascal] TLS connection using OpenSSL
Hello, In FreePascal, how is the right way to do a connection using OpenSSL like: openssl s_client -tls1 -connect beta.registro.br:700 -cert client.pem I tried using Synapse (http://ararat.cz/synapse/), but without success (I didn't know how inform the client.pem file). Thanks in advance, Evandro ps: I know maybe this is not the most appropriate list to this kind of question, my apologies, but I found not help in other lists. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] LongStrings Question
Hi, I'm using {$LONGSTRINGS ON} to use a string variable like ansistring. In this example, if I uncomment the s1 variable I got "Error: Constant strings can't be longer than 255 chars", but if I uncomment the s2 variable (formed by concatenation of strings) the project compiles perfectly. program testLongString; {$LONGSTRINGS ON} var s1, s2: String; begin // test strings with more than 255 characters // s1:= '1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 end'; { s2:= '1 1 1 1 1 1 1 1 1 1 1 1 ' + '1 1 1 1 1 1 1 1 1 1 1 1 ' + '1 1 1 1 1 1 1 1 1 1 1 1 ' + '1 1 1 end'; } end. I need use the s1 variable way because I'm receiving in a string a value read from a BD. I also tried compile with "-Mdelphi", but the error stills the same. Thanks in advance, Evandro Sestrem -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/273 - Release Date: 2/3/2006 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] RES: FreePascal in a FreeBSD
Thank you very much, Marco! You really helped me a lot. Pierre: you can use de BaseUnix.GetEnvironmentVariable almost the same like you use Windows.GetEnvironmentVariable in Delphi. Now I'm looking for correspondents for these Windows APIs in the FreePascal: - LoadLibrary (Linux: dlopen) - FreeLibrary (Linux: dlclose) - GetProcAddress (Linux: dlsym) Can somebody help me? Best regards, Evandro Sestrem -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/228 - Release Date: 12/1/2006 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] FreePascal in a FreeBSD
Hello, I'm trying compile a project using FreePascal (2.0.2 [2005/11/17] for i386) in a FreeBSD 4.1. I can compile this project in Delphi (in a Windows) and Kylix (in a Debian), but infortunatelly I can't compile this project using FreePascal/FreeBSD. I have this code: {$IFDEF WIN32} uses Windows; {$ENDIF} {$IFDEF LINUX} uses Libc; {$ENDIF} to use the getenv function. What the correspondent for FreeBSD to Libc? Thanks in advance! Evandro Sestrem www.blueone.com.br -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/227 - Release Date: 11/1/2006 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal