[Lazarus] TSQLConnector for Mysql using certificates

2023-04-20 Thread Koenraad Lelong via lazarus
Hi, Now I have TLSv1.2 working I would like to use a certificate to verify the server. Using the mysql-command I have to use --ssl-mode=VERIFY_CA or --ssl-mode=VERIFY_IDENTITY and --ssl-ca=ca.pem. How do I set these in TSQLConnector ? I tried setting the params of TSQLconnector, but that seems

Re: [Lazarus] TLS connection to MySQL

2023-04-20 Thread Koenraad Lelong via lazarus
Please ignore. PEBKAC. I copied the dll to the wrong directory. Thanks anyway. Op 20/04/2023 om 15:07 schreef Koenraad Lelong via lazarus: Op 20/04/2023 om 14:43 schreef Michael Van Canneyt via lazarus: TSQLConnector will only pass on any connection parameters you set up to the mysql layer.

Re: [Lazarus] TLS connection to MySQL

2023-04-20 Thread Koenraad Lelong via lazarus
Op 20/04/2023 om 14:43 schreef Michael Van Canneyt via lazarus: TSQLConnector will only pass on any connection parameters you set up to the mysql layer. So I can give parameters for the connection. Are those documented ? Like I said, to use TLSv1.1 I don't have to do anything. If it fails fo

Re: [Lazarus] TLS connection to MySQL

2023-04-20 Thread Michael Van Canneyt via lazarus
On Thu, 20 Apr 2023, Koenraad Lelong via lazarus wrote: Hi, I'm updating an application that uses TSQLConnector to connect to MySQL 5.7. The MySQL server (5.7.42) will be restricted to use only TSLv1.2 (or higher). Is this possible with TSQLConnector ? TLSv1.1 works without configuring any

[Lazarus] TLS connection to MySQL

2023-04-20 Thread Koenraad Lelong via lazarus
Hi, I'm updating an application that uses TSQLConnector to connect to MySQL 5.7. The MySQL server (5.7.42) will be restricted to use only TSLv1.2 (or higher). Is this possible with TSQLConnector ? TLSv1.1 works without configuring anything. With my test-server, it fails to connect when this is

[Lazarus] Color Palette of Timage

2023-04-20 Thread Karl-Michael Schindler via lazarus
Hi. I have an 8 bit grey value image without color palette in memory from a camera, which I want to display in a TImage, whereby, the color white has to be converted to red. I expected to do this by adding to the RawImage of TImage a color palette of size 256 and filling the palette with values