Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
boinc
Commits
e20c9a42
Commit
e20c9a42
authored
12 years ago
by
David Anderson
Browse files
Options
Downloads
Patches
Plain Diff
- client: other Android stuff, from Joachim
svn path=/trunk/boinc/; revision=25983
parent
22f93cf0
Branches
Branches containing commit
Tags
debian/1.27-3
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
checkin_notes
+8
-0
8 additions, 0 deletions
checkin_notes
client/cs_platforms.cpp
+0
-2
0 additions, 2 deletions
client/cs_platforms.cpp
lib/md5_file.cpp
+11
-0
11 additions, 0 deletions
lib/md5_file.cpp
with
19 additions
and
2 deletions
checkin_notes
+
8
−
0
View file @
e20c9a42
...
...
@@ -5281,3 +5281,11 @@ David 3 Aug 2012
cs_prefs.cpp
main.cpp
hostinfo_network.cpp
David 3 Aug 2012
- client: other Android stuff, from Joachim
client/
cs_platforms.cpp
lib/
md5_file.cpp
This diff is collapsed.
Click to expand it.
client/cs_platforms.cpp
+
0
−
2
View file @
e20c9a42
...
...
@@ -96,8 +96,6 @@ void CLIENT_STATE::detect_platforms() {
}
add_platform
(
"windows_intelx86"
);
#endif
#elif defined(ANDROID)
add_platform
(
"arm-android"
);
#elif defined(__APPLE__)
...
...
This diff is collapsed.
Click to expand it.
lib/md5_file.cpp
+
11
−
0
View file @
e20c9a42
...
...
@@ -34,6 +34,10 @@
#include
<wincrypt.h>
#endif
#ifdef ANDROID
#include
<stdlib.h>
#endif
#include
"error_numbers.h"
#include
"md5.h"
...
...
@@ -96,6 +100,9 @@ std::string md5_string(const unsigned char* data, int nbytes) {
return
std
::
string
(
output
);
}
// make a random 32-char string
// (the MD5 of some quasi-random bits)
//
int
make_random_string
(
char
*
out
)
{
char
buf
[
256
];
#ifdef _WIN32
...
...
@@ -111,6 +118,10 @@ int make_random_string(char* out) {
}
CryptReleaseContext
(
hCryptProv
,
0
);
#elif defined ANDROID
// /dev/random not available on Android, using stdlib function instead
int
i
=
rand
();
snprintf
(
buf
,
sizeof
(
buf
),
"%d"
,
i
);
#else
#ifndef _USING_FCGI_
FILE
*
f
=
fopen
(
"/dev/random"
,
"r"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment