Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
fbf47d52
Commit
fbf47d52
authored
Apr 23, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug#68: ssl_test.c does not compile/work
parent
711eb800
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
client/Makefile.am
client/Makefile.am
+1
-1
client/ssl_test.c
client/ssl_test.c
+4
-3
No files found.
client/Makefile.am
View file @
fbf47d52
...
...
@@ -22,7 +22,7 @@ LIBS = @CLIENT_LIBS@
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysql/libmysqlclient.la
bin_PROGRAMS
=
mysql mysqladmin mysqlcheck mysqlshow
\
mysqldump mysqlimport mysqltest mysqlbinlog mysqlmanagerc mysqlmanager-pwgen
noinst_PROGRAMS
=
insert_test select_test thread_test
noinst_PROGRAMS
=
insert_test select_test thread_test
ssl_test
noinst_HEADERS
=
sql_string.h completion_hash.h my_readline.h
\
client_priv.h
mysql_SOURCES
=
mysql.cc readline.cc sql_string.cc completion_hash.cc
...
...
client/ssl_test.c
View file @
fbf47d52
...
...
@@ -41,7 +41,9 @@ int main(int argc, char **argv)
mysql_init
(
&
mysql
);
#ifdef HAVE_OPENSSL
mysql_ssl_set
(
&
mysql
,
"../SSL/MySQL-client-key.pem"
,
"../SSL/MySQL-client-cert.pem"
,
"../SSL/MySQL-ca-cert.pem"
,
"../SSL/"
);
mysql_ssl_set
(
&
mysql
,
"../SSL/MySQL-client-key.pem"
,
"../SSL/MySQL-client-cert.pem"
,
"../SSL/MySQL-ca-cert.pem"
,
0
,
0
);
#endif
if
(
!
(
sock
=
mysql_real_connect
(
&
mysql
,
"127.0.0.1"
,
0
,
0
,
argv
[
1
],
3306
,
NULL
,
0
)))
{
...
...
@@ -49,7 +51,6 @@ int main(int argc, char **argv)
perror
(
""
);
exit
(
1
);
}
printf
(
"Cipher:%s
\n
"
,
mysql_ssl_cipher
(
&
mysql
));
count
=
0
;
num
=
atoi
(
argv
[
2
]);
while
(
count
<
num
)
...
...
@@ -62,7 +63,7 @@ int main(int argc, char **argv)
}
if
(
!
(
res
=
mysql_store_result
(
sock
)))
{
fprintf
(
stderr
,
"Couldn't get result from query failed
\n
"
,
fprintf
(
stderr
,
"Couldn't get result from query failed
(%s)
\n
"
,
mysql_error
(
sock
));
exit
(
1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment