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
776dea81
Commit
776dea81
authored
May 31, 2001
by
tonu@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item_strfunc.cc renamed MD5* to my_MD5* to avoid name clashes with openssl library
parent
1e9414a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sql/item_strfunc.cc
sql/item_strfunc.cc
+4
-5
No files found.
sql/item_strfunc.cc
View file @
776dea81
...
...
@@ -30,7 +30,6 @@
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#include "md5.h"
String
empty_string
(
""
);
...
...
@@ -66,13 +65,13 @@ String *Item_func_md5::val_str(String *str)
String
*
sptr
=
args
[
0
]
->
val_str
(
str
);
if
(
sptr
)
{
MD5_CTX
context
;
my_
MD5_CTX
context
;
unsigned
char
digest
[
16
];
null_value
=
0
;
MD5Init
(
&
context
);
MD5Update
(
&
context
,(
unsigned
char
*
)
sptr
->
ptr
(),
sptr
->
length
());
MD5Final
(
digest
,
&
context
);
my_
MD5Init
(
&
context
);
my_
MD5Update
(
&
context
,(
unsigned
char
*
)
sptr
->
ptr
(),
sptr
->
length
());
my_
MD5Final
(
digest
,
&
context
);
str
->
alloc
(
32
);
// Ensure that memory is free
sprintf
((
char
*
)
str
->
ptr
(),
"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x"
,
...
...
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