dbTalk Databases Forums  

MySQL++ and SSL

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss MySQL++ and SSL in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lmarcilly@aressi.fr
 
Posts: n/a

Default MySQL++ and SSL - 07-13-2005 , 02:41 AM






Hi all,

i'm new with mysql and c++ and i have to wrote an application which insert data in a mysql database. I want data to be encrypt so i search on the web and i saw that mysql support SSL now.

I saw in the archive the question on SSL and C++ but i want more details :

- how to set ssl options ? I have found the mysql_ssl_set but it is C code and i'm not sure i can use it in C++ code... I think i can... Can i do this?

- to connect to the database, should i use the connect function in MySQL++ or since i'm using mysql_ssl_set, should i use mysql_real_connect of the C API ?

Thanks in advance and sorry for my english!!

lm.




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: MySQL++ and SSL - 07-21-2005 , 05:33 AM






On Wed, Jul 13, 2005 at 07:42:27AM +0000, lmarcilly (AT) aressi (DOT) fr wrote:
Quote:
- how to set ssl options ? I have found the mysql_ssl_set but it is C code and i'm not sure i can use it in C++ code... I think i can... Can i do this?
You'd have to check the mysql C API manual. http://www.mysql.com/


Quote:
- to connect to the database, should i use the connect function in MySQL++ or since i'm using mysql_ssl_set, should i use mysql_real_connect of the C API ?
If you're using mysql++, stick with C++, and use the Connection constructor
to set the options you'd set with mysql_real_connect.

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: MySQL++ and SSL - 07-22-2005 , 02:08 AM



lmarcilly (AT) aressi (DOT) fr wrote:
Quote:
- how to set ssl options ?
I've just added Connection::enable_ssl() to the repository version. If
you don't want to try that version, it will appear in the next release.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.