MySQL Forums
Forum List  »  Delphi

mysql_ssl_set & API
Posted by: Benjamin Crause
Date: July 10, 2006 12:35AM

Hello everyone

I wrote a small progamm using the Windows API for mysql to access my SQL-Database.

My problem:
If i connect manually to the mysql-server (ex. via mysql.exe-client) the connections works fine with SSL. The test says "HAVE SSL = YES" and "Encrypted = DES-.......". So the encryption/SSL works.

In Delphi 2006 i have the following code:

Showmessage('IFDEF HAVE_OPENSSL');
mysql_ssl_set(_myCon, 'c:\openssl\bin\mycompany\client-key.pem', 'c:\openssl\bin\mycompany\client-cert.pem', 'c:\openssl\bin\mycompany\cacert.pem', nil);

OpenSSL is installed local.
All the certificates are in place and correct.
The line "ShowMessage" is never hit. Therefor i can assume that the APi does not have SSL-Support?

Why does the server but not the API has it? Where can i get it? How to solve this? Or am i doing something wrong?

If i remove the {$IFDEF HAVE_OPENSSL} it causes a runtime access-violation.

Thanks and best regards,
Amargosa (Ben)

Options: ReplyQuote

Written By
mysql_ssl_set & API
July 10, 2006 12:35AM

Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.