/usr/lib/pike7.8/modules/Sql.pmod/mysqls.pike is in pike7.8-mysql 7.8.866-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | /*
* $Id: 56c2be6bffca5556d18cd359c13ae4a7227a36aa $
*
* Glue for the Mysql-module using SSL
*/
//! Implements SQL-urls for
//! @tt{mysqls://[user[:password]@@][hostname][:port][/database]@}
//!
//! Sets the connection to SSL-mode, and sets the default configuration
//! file to @expr{"/etc/my.cnf"@}.
//!
//! @fixme
//! Ought to load a suitable default configuration file for Win32 too.
//!
//! @note
//! This connection method only exists if the Mysql-module has been
//! compiled with SSL-support.
#pike __REAL_VERSION__
// Cannot dump this since the #if constant(...) check below may depend
// on the presence of system libs at runtime.
constant dont_dump_program = 1;
#if constant(Mysql.mysql.CLIENT_SSL)
inherit Sql.mysql;
void create(string host,
string db,
string user,
string password,
mapping(string:mixed)|void options)
{
if (!mappingp(options))
options = ([ ]);
options->connect_options |= CLIENT_SSL;
if (!options->mysql_config_file)
options->mysql_config_file = "/etc/my.cnf";
::create(host||"", db||"", user||"", password||"", options);
}
#else
constant this_program_does_not_exist = 1;
#endif
|