[Phpmyadmin-devel] MYSQLI_CLIENT_SSL

Sebastian Mendel lists at sebastianmendel.de
Thu Mar 1 13:30:28 CET 2007


Marc Delisle schrieb:
> Hi,
> I wonder if
> $cfg['Servers'][$i]['ssl']           = true;
> 
> being true by default will not cause us some problems.
> 
> https://sourceforge.net/forum/forum.php?thread_id=1683182&forum_id=72909
> 
> http://php.net/mysqli
> MYSQLI_CLIENT_SSL
> 
> Use SSL (encrypted protocol). This option should not be set by 
> application programs; it is set internally in the MySQL client library.
> ===========
> 
> "should not be set by application programs": this is us, no? :)

     /* Optionally enable SSL */
     if ($GLOBALS['cfg']['Server']['ssl'] && defined('MYSQLI_CLIENT_SSL')) {
         $client_flags |= MYSQLI_CLIENT_SSL;
     }

should be:

     /* Optionally enable SSL */
     if ($GLOBALS['cfg']['Server']['ssl'] && defined('MYSQLI_CLIENT_SSL')) {
         mysqli_ssl_set(...)
     }

but this requires key and certificate ...

http://php.net/mysqli_ssl_set



> They don't mention this warning for MYSQL_CLIENT_SSL.

there is no other function to enable SSL in mysql


do the bug reporter have used mysqli or mysql?

seems problem occurs only on mysqli with ssl support enabled

all other seems to not use mysqli or not have build in ssl support ...


-- 
Sebastian Mendel

www.sebastianmendel.de




More information about the Developers mailing list